提交图

191 次代码提交

作者 SHA1 备注 提交日期
George Shen
2dbd8c396e msm: eva: Support Lanai new HFI cvp_buf_type
Keep ERR/WARN/FW logging only.

Change-Id: I910dd109fa6d16f093848e7c3c3a03c1568f87e6
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-12-08 11:40:12 -08:00
Sabharsh Sidhu
94711ec8b3 msm: eva: Update WarpNCC offset macro
Change-Id: I380b1ea1afbf8699dd27dfea7f68b0b905a20e49
Signed-off-by: Sabharsh Sidhu <quic_ssidhu@quicinc.com>
2022-12-07 18:28:17 -08:00
qctecmdr
91ed840b6f Merge "msm: eva: Move cvp_buf_type to UAPI" 2022-12-07 16:27:21 -08:00
qctecmdr
a26769efd3 Merge "msm: eva: Print more hfi queue info" 2022-12-05 13:23:30 -08:00
George Shen
f2e6be65e4 msm: eva: Move cvp_buf_type to UAPI
Ensure consistent buffer type use between UMD and KMD.

Change-Id: I77d619420d584e3c29babc8ddc5e80232f901009
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-12-05 13:22:44 -08:00
George Shen
991c1ebc43 msm: eva: handle SoC fencing returning MSG
Needs to unmap frame buffer and avoid enqueue the MSG
in session queue. In SoC fencing cases, session queue
will not be drained by UMD. It can lead to session
stop error.

Change-Id: I980689ae16286712df704f94385ca0ccfc64488a
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-12-01 22:16:58 -08:00
Yu SI
900e40a17f msm: eva: enable Synx dependency
enable synx dependency

Change-Id: Iaf60e8478df52f65a5ae401e038d1692f5a37939
Signed-off-by: Yu SI <quic_ysi@quicinc.com>
2022-11-28 10:10:02 -08:00
George Shen
867c0cc2b4 msm: eva: Print more hfi queue info
To help EVA timeout debugging.

Change-Id: I431a4b9b0088c4e1b2a93adacd75457ca7caf6da
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-11-22 09:47:08 -08:00
George Shen
4be6d0c36b msm: eva: Reset IOVA in invalid buf entry
Set 0 as IOVA and SIZE of the invalid buffer entry in HFI
packet.

Change-Id: I1ea90d2188a0dd6047fd24a44e16b9a40fc4d8dc
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-11-21 11:41:19 -08:00
George Shen
1fb08bdc09 msm: eva: add RGE, VADL ITOF CB setting print
Dumps registers to debug FW issue in setting CBs
for CDM buffers.

Change-Id: I287f18455f2a6b2f7cebd520c73a0de84030a8e6
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-11-17 12:39:07 -08:00
qctecmdr
28d54d81ef Merge "msm: eva: port eva-kernel.lnx.2.0 changes" 2022-11-15 22:28:45 -08:00
qctecmdr
8d708c7dc8 Merge "msm: eva: Use dummy CB to map secure camera buf" 2022-11-15 19:58:14 -08:00
George Shen
75bac29145 msm: eva: port eva-kernel.lnx.2.0 changes
Change-Id: I3121f71a11c8a48081309ad46c04bedc6b6a3ca1
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-11-15 10:06:14 -08:00
qctecmdr
1d324d3d9e Merge "msm: eva: add support for Synx fastRpc ko dependency" 2022-11-14 14:28:38 -08:00
Yu SI
b92ce51570 msm: eva: add support for Synx fastRpc ko dependency
--added support for Synx ko dependency
--enable Synx compilation flag
--added MODULE_SOFTDEP on synx-driver

--similar updates applied for fastRPC
--use KBUILD_REQUIRED_KOS instead of KBUILD_EXTRA_SYMBOLS
--last patch disable synx temporarily

Change-Id: Ib4fe2fd6b16e200f924f0105ece4363bc8c882e6
Signed-off-by: Yu SI <quic_ysi@quicinc.com>
2022-11-12 00:02:57 -08:00
George Shen
d052ed9da6 msm: eva: print kdata in MSG
For presilicon debugging

Change-Id: I4fc82e1a14d8f623f237c30e3ab63877ddfb97f5
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-11-10 10:01:20 -08:00
Ronald Karyodisa
816d381554 msm: eva: Fix dprintk compilation errors
Change-Id: Idc30f3b510ada403548f27df6dcb19793966e5f0
2022-11-08 09:29:44 -08:00
George Shen
c7a2d986df msm: eva: Fix dprintk compilation errors
Shown in recent Lanai releases

Change-Id: Ia85a57756a35f14d4426ea5ea10cd5374188a9d4
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-11-07 09:57:57 -08:00
George Shen
e8a2fe9b88 msm: eva: Make synx packet config pkt
Make kernel fencing works.

Change-Id: Ib524c9ace64be89d05a516bf6ccbac64b133b219
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-11-04 12:47:51 -07:00
qctecmdr
f23fa1b288 Merge "EVA-kernel:Added DME mode HFI command to eva kernel" 2022-10-31 23:31:42 -07:00
VIVEK VARDHAN JOSHI
1002a6ed6a EVA-kernel:Added DME mode HFI command to eva kernel
Change-Id: I0d9d4ceac9cc5ffd2198570b383c15e47dab1b6f
2022-11-01 01:26:12 +05:30
Aniruddh Sharma
c96b96ee2d msm: eva: Correction in the buffer validity check
Offset of kmd_arg is expected to be in words (As we are feeding the
offset in word size from UMD lib). Whereas the validity check function
treats it as bytes which is wrong. This might lead to crash if lager offset
is feed from UMD via ioctl call.

Change-Id: I7de76cea5abe9a34d4194d041af7a3af7550d86d
Signed-off-by: Aniruddh Sharma <quic_anirshar@quicinc.com>
2022-10-31 06:01:36 -07:00
George Shen
7b624f7924 msm: eva: Use dummy CB to map secure camera buf
Per SMMU driver team recommendation. The "mapped" result will be
the virtual addresss of S2 VM_SECURE_CAMERA page tables.

Change-Id: Ide5a330e208e503182e4aa46a8fa2ba093202ced
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-10-28 11:17:24 -07:00
George Shen
1aed484f01 msm: eva: enabling support for data path bringup.
Add checksum support per packet type, configurable.
Add debug hook to print SID setting registers at SMMU fault.
Enable Auto-PIL.
Enable DSP interface.

Change-Id: Ie1fd2c584681b751836854667981a3c10beb56d4
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-10-26 15:29:57 -07:00
qctecmdr
088ff00d6d Merge "msm: eva: Add core power on/off seq change" 2022-10-26 14:13:36 -07:00
George Shen
abe2519bd8 msm: eva: Add EVA4.0 blocks for power voting
VADL, TOF, RGE, XRA and LSR added.

Change-Id: I5099b72bb38199d493a710c716fc528ab2cc0e7c
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-10-25 13:41:12 -07:00
George Shen
163d88795c msm: eva: Add core power on/off seq change
For Lanai

Change-Id: I06572cd9923d4b8c1565638006f01cb09af90bb5
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-10-19 15:41:40 -07:00
Yu SI
7597271dde msm: eva: synx v2 support
propagated sync v2 support from 2.0
reference 4162025

Change-Id: I3427657e21e7eda92088d828203a330ba3c86335
Signed-off-by: Yu SI <quic_ysi@quicinc.com>
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-10-10 18:20:57 -07:00
George Shen
98e4c251f6 msm: eva: Increase f/w boot timeout
Add HW fence testing command.

Change-Id: I8f0b21dd678b06ace25a42fdbaf365d01b61f580
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-10-05 22:57:47 -07:00
George Shen
991125b3b1 msm: eva: Enable Lanai compiling
EVA Kernel driver.

Change-Id: Ie415075a05707a20d9eac1e478a2f18c741b3446
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-09-28 18:33:20 -07:00
George Shen
fcbb3d87ab msm: eva: Propagate tip of 2.0 to 3.0
Add back all changes made after Aug. 3rd from
Kailua to Lanai.

Change-Id: I725b77892ab24354014b3d9bbc13d14c710aff5a
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-09-27 12:52:27 -07:00
George Shen
18119d7649 msm: eva: improve frame buf dump info
Fix a missing pkt_type dump from dma_cache.

Change-Id: I99bbbb7bd6278ecf04c8bfcbba041373ab28826d
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-08-05 18:30:43 -07:00
George Shen
e30e31d72b msm: eva: fix DSP session deletion racing
The racing to delete DSP session may happen after DSP SSR when
EVA DSP driver just sent session deletion command to CPU driver.

Change-Id: I252000bc2c04148874db02b50d0a94c10edbb6e6
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-08-03 08:56:21 -07:00
George Shen
dcbb74265f msm: eva: Add Lanai EVA HFI check
Adds XRA, DLFL, DLFD, RGE and ITOF packets sanity check.
Optimizes packet type table to avoid linear search during
each packet handling. Instead use packet type as index to expedite
searching. Packet type table grows to over 60 entries and each
entry uses 40B. There will be quite some memory access delay for
each packet handling without optimization.

Change-Id: I1ee26d0d5d0b83d3c15fbcafa7414017c418b6e3
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-07-29 11:02:27 -07:00
George Shen
2eea29b825 msm: eva: Add debug message when suspend dsp fail
Check if promoting to LE SI works or not.

Change-Id: I6e69cf602d39a6ebd1f99deb565832ccf7494cba
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-07-28 15:24:10 -07:00
George Shen
04232ceea4 msm: eva: Fix fd reuse problem.
Fix KW issue and fd reuse issue in persistent buffer mapping.

Change-Id: I9d971abe14460ac57d9f48ee086f97abec1b6f2b
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-07-26 13:55:56 -07:00
George Shen
1cb056362c msm: eva: Add process name for debugging
Also fix a persistbuf optimization problem that failed
multi-loop DMM test.

Change-Id: Ib197077a708dea99967f0a9f4ed1c09d12023edc
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-07-08 16:57:03 -07:00
George Shen
98cd09c61f msm: eva: Fix power collapse failure
In case there is a live but unused DSP session.

Change-Id: I7dd0d7baeb89365a2d8ba6905ddffd1e5569c872
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-07-08 14:59:34 -07:00
qctecmdr
1f62f73764 Merge "msm: eva: Avoid caching persist buf mapping" 2022-07-08 13:31:47 -07:00
George Shen
6b7cb5f836 msm: eva: Fix nested mutex lock in DSP SSR
rpmsg remove call back hangs with the problem.

Change-Id: I60df9d8772f31778051a905197479aa9f9d61e9f
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-07-06 15:48:38 -07:00
George Shen
e92994b6b9 msm: eva: Avoid caching persist buf mapping
Remove unused user persist buffer unmap code as the HFI of
UNMAP_USER_PERSIST is not supported.

Change-Id: If8ca0c24318adb1d33ab525ac0023bc5f8ae4573
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-07-06 12:51:32 -07:00
George Shen
4bfd66f039 msm: eva: Enhance SMMU fault debugability
Changes only applicable on CPU EVA path, including
- tracking packet type and buffer index for each dma_buf
- print feature config packet type
- print session properties in error cases.

Change-Id: I938cf463bee9284760145f3fd9e030b3b8134caa
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-07-01 09:25:43 -07:00
qctecmdr
c56291ac5c Merge "msm: eva: Workaround of EVA ssr failure in DSP UCs" 2022-06-30 21:55:03 -07:00
George Shen
8f1f20ab0c msm: eva: Workaround of EVA ssr failure in DSP UCs
After EVA SSR and shutdown DSP driver, remove all DSP sessions.

Change-Id: I23cbd2ab3d5ec8c03ec0f4059be287c28ddb0f9a
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-06-27 14:26:56 -07:00
Yu SI
3a0d392d6f msm: eva: add msgq implementation
added msgq send and receive implementation

Change-Id: Ib1585096d1d9b48e4c245263e4d68702011b4d0c
Signed-off-by: Yu SI <quic_ysi@quicinc.com>
2022-05-26 15:30:15 -07:00
George Shen
1addadfe9f msm: eva: Use Kailua GCC offset
GCC_VIDEO_AXI1_CBCR relocated in kailua. The driver print
the register in case fail to put NoC into low power.

Change-Id: I2fd7fc57f8c7980060a79438355f704654d86f18
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-05-12 11:57:54 -07:00
George Shen
5353ebd455 msm: eva: Support non-ratelimit pr_info for debug
The default debug level in the build supports ratelimit version
of kernel print. For debugging purpose, setting bit 31 of debug
level node will disable ratelimit of kernel print from EVA driver.

Change-Id: I8e43043f1601a2adc10c0aeab79e0fdc94be327f
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-05-07 14:12:13 -07:00
George Shen
b129cf0b8a msm: eva: Add vm sub-driver
Add framework for future implementation.

Change-Id: I2ba070e791320e56339c632120ffa821e57db113
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-04-25 20:56:22 -07:00
George Shen
81fb7564e7 msm: eva: Reuse HFI/SFR memory after SSR
Avoid realloc, remap HFI after SSR.

Change-Id: I6801b3cc33643f2936634c94cb5094fc91773348
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-04-05 13:25:42 -07:00
George Shen
30f964242d msm: eva: Remove unnecessary suspend warning
It always happen in TVM.

Change-Id: If77c1799cbeb7f331e2c13db1ceb9e38b1162def
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-04-04 21:38:14 -07:00