Revīziju grafs

327 Revīzijas

Autors SHA1 Ziņojums Datums
George Shen
18d64ef8af msm: eva: revert session error handling change
Do it after user mode can handle it more gracefully.

Change-Id: I1e42fc957f1a1fbe3f15738b3680ad169fb93f42
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2023-06-15 13:35:46 -07:00
Anthony Adamo
ff26582f86 msm eva: Add QMAA flags to guard compilation
guard compilation of msm-eva.ko with qmaa flags.

Change-Id: Iaea7270e8b268887aea364ef0ea4391c50aae84d
2023-06-14 12:08:04 -07:00
qctecmdr
b390547905 Merge "msm: eva: Update HFI snapshot cmd macros" 2023-06-12 12:41:55 -07:00
Sabharsh Sidhu
d9847b8714 msm: eva: Update HFI snapshot cmd macros
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>
2023-06-09 13:36:35 -07:00
George Shen
efc1db7f27 msm: eva: fix deadlock to acquire core lock
During message handling path.
Remove DCVS for FD.

Change-Id: Iace13914014b4305553729ac305c141433b79a8f
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2023-06-08 10:19:32 -07:00
qctecmdr
887ec8b2a2 Merge "msm: eva: Fix KW issue" 2023-06-05 23:04:47 -07:00
qctecmdr
31619ac384 Merge "msm: eva: enable bazel compilation for eva" 2023-06-05 17:32:47 -07:00
George Shen
33825ea411 msm: eva: Fix KW issue
Change-Id: I93a8ff3ac20de452c2aa220a3dc4bc052880762e
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2023-06-05 17:01:56 -07:00
Naveen Ravi
3b5b676e7a msm: eva: enable bazel compilation for eva
Enabling EVA driver DDK build.

Change-Id: Ia2b7a440249dd463495eed51969e59d0608f4d37
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2023-06-05 10:29:30 -07:00
Palak Joshi
0eedd436e1 msm: eva: Identify the actual number of silver cores available with target
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>
2023-06-05 03:29:31 -07:00
George Shen
304e2cf9c0 msm: eva: Allocate 1MB debug buffer for FW
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>
2023-06-02 14:40:35 -07:00
George Shen
df291cad83 msm: eva: Give EVA IRQ thread realtime priority
To ensure consistent EVA feature performance.

Change-Id: I8068984bb677b7eef388b114efc36520be9f8d76
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2023-06-02 10:01:55 -07:00
qctecmdr
f97eda6bba Merge "msm: eva: fix a compilation issue" 2023-06-01 11:50:58 -07:00
George Shen
0ae23cf079 msm: eva: fix a compilation issue
That breaks kernel compilation due to PW setting override.

Change-Id: I9b15fe2676a9f2350684066363c4915fa3203016
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2023-06-01 10:55:54 -07:00
qctecmdr
d1e66a6d4f Merge "msm: eva: Bw vote by checking bus node name" 2023-06-01 10:36:50 -07:00
George Shen
43c37a29e1 msm: eva: Send EVA session error to UMD
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>
2023-06-01 08:36:30 -07:00
Gopireddy Arunteja Reddy
364d2b1f7e msm: eva: Bw vote by checking bus node name
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>
2023-05-31 23:23:07 -07:00
George Shen
4bd20f9c7c msm: eva: Fix a race in frame buf un-mapping
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>
2023-05-31 22:26:37 -07:00
George Shen
064e379912 msm: eva: Avoid printing freed dma_buf name
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>
2023-05-23 11:44:18 -07:00
George Shen
37a21d759b msm: eva: Recover EVA SMMU fault
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>
2023-05-23 10:06:11 -07:00
George Shen
40bd33147d msm: eva: Fix an issue in DSP sess create failure
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>
2023-05-20 22:17:24 -07:00
Aniruddh Sharma
6315e184ca msm: eva: Fix for use after free of inst node
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>
2023-05-18 06:29:27 -07:00
George Shen
4e37a3a40b msm: eva: Adopt Fastrpc Feature Request
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>
2023-05-17 21:46:43 -07:00
George Shen
115a7bf5c7 msm: eva: Enhance power and perf logging
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>
2023-05-16 11:09:28 -07:00
Naveen Ravi
36fa77e4d7 msm: eva: add Bazel Build Support for EVA KMD
Change-Id: I93af2eb7c5cc2cf0ee4bff5b6d838c18d886d21a
2023-05-11 11:46:50 -07:00
George Shen
efdc66a282 msm: eva: Init fence queue before its use
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>
2023-05-09 10:49:06 -07:00
George Shen
55c9e97cab msm: eva: Enhance DSP debugging
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>
2023-05-05 12:18:43 -07:00
qctecmdr
2d0cec88e3 Merge "msm: eva: Support Synx V2 only" 2023-05-02 15:32:28 -07:00
qctecmdr
35334bffd6 Merge "msm: eva: Fix Kw p1 issue" 2023-05-02 12:57:40 -07:00
Jingyu Su
267b6bd153 msm: eva: Fix Kw p1 issue
Validate s->next is not NULL before dereferencing

Change-Id: I8112eb20aab939b917243e283583ab9d0884e3e8
Signed-off-by: Jingyu Su <quic_jingyus@quicinc.com>
2023-05-02 11:25:47 -07:00
George Shen
73f3cecfbd msm: eva: Support Synx V2 only
Simplify code base for future generations of driver.

Change-Id: I9ed940184da3b2224c74092ac31163de29c84f64
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2023-05-02 10:06:41 -07:00
qctecmdr
e6a01f04a6 Merge "msm: eva: Enhance session error handling" 2023-05-02 01:24:55 -07:00
qctecmdr
4558e11243 Merge "msm: eva: Change FW boot sequence" 2023-05-02 00:28:23 -07:00
George Shen
2bdff6770e msm: eva: Enhance session error handling
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>
2023-05-01 21:46:25 -07:00
George Shen
4e3d3a91bd msm: eva: Change FW boot sequence
Match MPTest sequence to facilitate presilicon bringup.

Change-Id: Iafd4443eb0f9d6045e61eb2dd33b6663dc3f1334
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2023-04-28 15:22:11 -07:00
George Shen
1f5a03e9a6 msm: eva: Use pool allocator to allocate wncc oobs
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>
2023-04-27 13:52:41 -07:00
qctecmdr
d4e1c81dc6 Merge "msm: eva: Update WarpNCC-related UAPI" 2023-04-26 17:08:44 -07:00
qctecmdr
de91fb222e Merge "msm: eva: Wait EVA ready for sess deletion" 2023-04-26 10:21:11 -07:00
Sabharsh Sidhu
28d5691237 msm: eva: Update WarpNCC-related UAPI
Update UAPI for future backward compatibility.
Add mechanism to dynamically specify WarpNCC
metadata buffer offset instead of using macro.
Add UMD-KMD shared definitions header file.

Change-Id: If8ea7046e692eef1a784d2744228846b6f752d0d
Signed-off-by: Sabharsh Sidhu <quic_ssidhu@quicinc.com>
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2023-04-25 16:59:57 -07:00
Jingyu Su
564ed96df0 msm: eva: fix KASAN stack-out-of-bounds issue in __iface_cmdq_write_relaxed
Change-Id: Id5b07cf778804ac7865f150e72331be6e94cb80d
Signed-off-by: Jingyu Su <quic_jingyus@quicinc.com>
2023-04-25 09:58:09 -07:00
Naveen Ravi
fec60a4a00 msm: eva: change warp frame to kw fence
Change-Id: I271eb88f166e22c81d9f0d9245faefd1277602f0
2023-04-24 22:39:03 -07:00
George Shen
23fb4cfeac msm: eva: Wait EVA ready for sess deletion
Avoid EVA in middle of processing frames when CDSP SSR caused
force session deletion.

Change-Id: I245f13086173c832a098b5f5aad5b38f38bd28b3
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2023-04-24 12:13:24 -07:00
Palak Joshi
00f7039e3c msm: eva: Added EVA FW/HW hung detection mechanism using WD ISR
Recovery mechanism is added to invoke SSR when WD ISR is triggered.

Change-Id: I6f7a289f822c6f1a50494cd6a4855a2c3ba2cc72
Signed-off-by: Palak Joshi <quic_palakash@quicinc.com>
2023-04-14 01:33:58 +05:30
Naveen Ravi
ab30e5fc6f msm: eva: fence override mode
Change-Id: I0cd8b3dc234168f365d8664f3a4d0c09094a1da1
2023-04-11 15:13:48 -07:00
George Shen
2532f316af msm: eva: Use correct error code in __dsp_suspend
Incorrect error code misleads driver to trigger SSR.

Change-Id: I6e64c6b79be973c4e5b0b9968dc3b952855a2004
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2023-04-11 10:31:22 -07:00
George Shen
815ffdf422 msm: eva: Fix NoC Hang When accessing NoC
Acquire xo_reset before accessing CVP NoC. There is a chance the NoC clock,
XO clock is disabled during XO reset. Acquiring xo_reset will block the
XO clock reset.

Change-Id: I51ab201beafbd1a4b998ee33a9d23c1efa3e2a14
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2023-04-10 21:58:52 -07:00
Jingyu Su
cde58caa65 msm: eva: Remove two calls to qcom_clk_set_flags() in cvp_hfi.c
Change-Id: I6ffd3e045999ce701825aaec66f38255fd98cff2
Signed-off-by: Jingyu Su <quic_jingyus@quicinc.com>
2023-04-06 17:06:35 -07:00
Prakruthi Deepak Heragu
c0feafd278 msm: eva: Rename Gunyah RM APIs
As we are merging upstream patches, resolve conflicts of namespaces in
downstream gunyah modules.

Change-Id: I6bc4719132e30e984974077c9923d3753faf539a
Signed-off-by: Prakruthi Deepak Heragu <quic_pheragu@quicinc.com>
2023-04-05 15:32:23 -07:00
George Shen
9d1d8dfa53 msm: eva: Use ratelimited kernel logging
In case of error recurring frequently.

Change-Id: I5d8f9b3a65a3d1faa6646c38dbd2e96d3beeca1b
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2023-03-31 10:03:42 -07:00
George Shen
84334be2a1 msm: eva: Define kernel timeout in one place
Easy to maintain.

Change-Id: Iacf8ae5481c08d69259f41db26ac6ac2216a54f6
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2023-03-27 23:30:30 -07:00