Returning false if mutex lock is not successful
in cvp_fence-wait function instead of sleep.
Change-Id: Ieddfb6e16c72d571646a39a63c073a1b9912b3bc
Signed-off-by: VIVEK VARDHAN JOSHI <quic_vivekvar@quicinc.com>
This change helps to read firmware elf name from device tree.
Change-Id: Idc5779063d386ceb0ed8435090a4a70c9651f19d
Signed-off-by: Gopireddy Arunteja Reddy <quic_garuntej@quicinc.com>
Extracts DSP buffer information for log printing upon SMMU faults
Change-Id: I36b1900ea84a85cdfdb2dec8ad62b67a5ff57119
Signed-off-by: Jingyu Su <quic_jingyus@quicinc.com>
Instead of returning from validate session failure with SSR,
doing other required clean up.
Change-Id: I5a2baa7039bc4e23758c541af31648d58a58823c
Signed-off-by: Palak Joshi <quic_palakash@quicinc.com>
Cliffs common and platform data structures are added.
Change-Id: I16156da7f1a801fca74fc5e2daff3d317031aaaa
Signed-off-by: Gopireddy Arunteja Reddy <quic_garuntej@quicinc.com>
Use dma_alloc_coherent to allocate 4MB dsp hfi queues and map
them in non-io-coherent way.
Change-Id: I6d8adb58ebcddae569259862a83e3aeffa3d2304
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
From original 2s. It enables CPU and DSP communication timeout
to 1.5s.
Change-Id: I33cba756e95cd2cc535927960610c1dab26d4242
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
The order of MPU and OD is wrong, which will cause confusion
when logcat to debug.
Change-Id: Iff298350bde322a03dda28e78a3737996d5a2965
Signed-off-by: Jingjing Guo <quic_jig@quicinc.com>
To avoid confusion in code reading and prepare for
future compatibility changes.
Change-Id: I43d61e18d2e2d75d1fd46ceb2e763511329ee32d
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
Avoid delete non-existing session and power on check before
register write.
Change-Id: I0b7d5045d68fd18e5a9a041d3ad3e37f4dac16ad
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
In case clients passing larger size than the actual dma-buf size.
It may avoid DSP caused SMMU fault.
Change-Id: I1f87d203f65a2d18d1a35e9e0b8dec281020150b
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
when SSR is releasing core and some clients voting for bus.
Change-Id: I8575d747c17f234bbce216c346843ab07ea6b340
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
Avoid kernel crash due to unbalance refcount operations.
Change-Id: I280682ec3352164b62ecf3469303371f2af24a7d
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
MVResampling frame packet has up to 38 buffers. Without the
change, kernel will complain if MV resampling number is increased
above 13.
Change-Id: I95a97045a312163f378be157394a4ff041b57a57
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
Include prematurely reaching max number of sessions and
unreliable DSP session deletion.
Change-Id: Ic489291c9d75964106834f84e20cf32bc334d1a7
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
In case DSP session creation failed due to reaching max
number of EVA sessions. There is a chance DSP may resend
delete session. Blocks re-deletion attempt.
Change-Id: Idf54a9eff124c60af5867b013de641c93450960f
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
Fix a racing between power voting and SSR shutdown.
Change-Id: I75c13353174a514ef175056dd98f827a987bff7a
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
Add WarpNCC user-space OOB pointer access
checks to improve code safety in case of
an under-allocated buffer.
Change-Id: I51e8464b37711d8ffcc1847376e2ebfb80f035b0
Signed-off-by: Sabharsh Sidhu <quic_ssidhu@quicinc.com>
For user mode to save into a dump file. It helps FW debugging.
Change-Id: I1c9c52d27d0dfd20e3eeb54b203416f6df095c8d
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
Core shall be powered on and WRAPPER_SPARE bit 1 shall be clear.
Change-Id: Id225c44f4a245482a8b9387109211461d03042e9
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
Do it after user mode can handle it more gracefully.
Change-Id: I1e42fc957f1a1fbe3f15738b3680ad169fb93f42
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
Update KMD copy of HFI macros for snapshot
set, release, and notify commands to align
with the latest HFI Common Lib.
Change-Id: I572dff24630a28da256aa8a0877badf04ee30105
Signed-off-by: Sabharsh Sidhu <quic_ssidhu@quicinc.com>
During message handling path.
Remove DCVS for FD.
Change-Id: Iace13914014b4305553729ac305c141433b79a8f
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
As PM QOS request needs to done for silver cores only for EVA and
number of silver cores would be different for different target so,
better to identify the actual number of available silver cores.
Added cpu_possible check to confirm if cpu is available or not.
Change-Id: Ibccc7688200732c3c666041a8fe414b4f2818993
Signed-off-by: Palak Joshi <quic_palakash@quicinc.com>
For FW to hold debug info. Simplify driver structure for easy
dump in T32.
Change-Id: Ib310a3d9fe3437d5ce49783eb813fbb2d8bd3216
Signed-off-by: George Shen <quic_sqiao@quicinc.com>