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>
That breaks kernel compilation due to PW setting override.
Change-Id: I9b15fe2676a9f2350684066363c4915fa3203016
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
Through POLL SSR event, only notify the error session. Other
sessions will not be impacted. This is different than SSR
handling.
Change-Id: I5acb4e21c19909b16350816621ae085d54fe05ac
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
In adjust_bw_freq function, we are assigning bus node based on
index that will give side effect if bus node order got changed.
So, assigning bus node based on bus name and vote appropriately.
Change-Id: Ied0e1f691439d499e4133a52ef55d36c430586c1
Signed-off-by: Gopireddy Arunteja Reddy <quic_garuntej@quicinc.com>
Fix the racing in buf-unmap between session close and frame
processing in fence path.
Change-Id: Ia7e7ac6549a856b97c583c00f526a81c575a3cb2
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
Drop dma_buf name from debugging property of smem. fd can provide
similar debug value for EVA clients.
Change-Id: I8a6ccf394f274e990efa6e3eef33e1fd84b362df
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
Needs extra change to enable EVA SMMU fault. This change clears
all the obstacles to achieve the goal.
Change-Id: Ia93ff2132ff53741f3c20d4271083f6f93824cac
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
Avoid using invalid session id in case of DSP session failed.
Increase the number of per IOCTL session properties setting
from 8 to 64.
Change-Id: Ia9979001fe6e0ed247067d7b12314c327897fead
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
inst node gets deleted in delete_dsp_session call but
again after this call we try to access inst to delete the
dsp session list. This will lead to use after free issue.
Change-Id: Ic4e1736b06f8e49895f70428124b245e1d2ce782
Signed-off-by: Aniruddh Sharma <anirshar@qti.qualcomm.com>
To support multi-PDs per user process. Fastrpc handle is
no longer PID. Add change to support the FR.
Change-Id: I39d7043f048597f1e4e728c48d588f12bb740b56
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
Use CVP_PWR instead of CVP_PROF.
Add AON timer reading.
Avoid SSR if core init failed.
Change-Id: I1dd40edc893009a2f2794e3431bb08398ec6352b
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
Fence queue could be used during SSR, which may happen right after
session is created. Relocate fence queue init to the point before
session creation becomes visible to SSR handling.
Change-Id: Ie21537383b44bbdf40d87af434df0e55a677a85d
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
Validate session pointer passed in by DSP driver and save the
most recently un-mapped DSP buffers for SMMU fault debugging.
Change-Id: I1beebcce190874e3129fc1bd3806ffee61eb6d4d
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
Validate s->next is not NULL before dereferencing
Change-Id: I8112eb20aab939b917243e283583ab9d0884e3e8
Signed-off-by: Jingyu Su <quic_jingyus@quicinc.com>
Simplify code base for future generations of driver.
Change-Id: I9ed940184da3b2224c74092ac31163de29c84f64
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
Ensure smmu fault dump before calling BUG_ON. Rely on WD timeout
for FW hang debugging.
Change-Id: I0d7fba31dbc602b244af74da6774885c56af0fcc
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
Match MPTest sequence to facilitate presilicon bringup.
Change-Id: Iafd4443eb0f9d6045e61eb2dd33b6663dc3f1334
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
Keep wncc working in case of kernel heap leakage. wncc buffer
requires 128kb. Driver will pre-allocate and store 8 buffers
in the pool if wncc use case starts.
Save all recently de-register wncc buffer mappings through
deregister_buffer API.
Change-Id: Iaa422bed9d3dd6f6cfe349a4931bfde28a3e3a51
Signed-off-by: George Shen <quic_sqiao@quicinc.com>