Граф коммитов

77 Коммитов

Автор SHA1 Сообщение Дата
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
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
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
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
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
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
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
George Shen
dcaf2dcdfb msm: eva: Remove unused dsp power flags
Avoid mis-use of old flag that could lead to failure in
powering collapse EVA when a session becomes idle for 3s.

Change-Id: I954bc0972b1f627b274b78659c34626127619af5
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2023-03-21 14:13:07 -07:00
Palak Joshi
a33d13c191 msm: eva: Updated error handling in case of core init fails.
Removed release and disable subcache in case of core init fails,
as subcache deinit is done as part of load FW failure error handling
and also as part of unload FW.

Change-Id: Ic1a6bf75eacaa8a4ccb95a7155e720932a372a58
Signed-off-by: Palak Joshi <quic_palakash@quicinc.com>
2023-03-20 23:27:56 -07:00
Sabharsh Sidhu
db7c8ad719 msm: eva: Add CVP_CMD debug logging
Add cmd logging functionality as an
alternative to pkt logging. This has
advantages related to log dropping
and log mangling.

Change-Id: I0ff6801445821e1224f83fa7e2eb8bf8a849962b
2023-03-17 15:17:23 -07:00
George Shen
f466a36b98 msm: eva: Print SID programming registers
During SMMU fault.

Change-Id: Ic66736ed5d5c97ec6344c295c0ec0f1ca01cf19a
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2023-03-16 11:34:49 -07:00
Nagesh Gunna
79c9987bbe eva-kernel: hfi q info at session timeout
Printing hfi q info at the of
           session queue time out to get debug
           info on missed cmd/frame pkt.

Change-Id: I9b324a6496699272f9f1b9cb794f3e322d5421ae
Signed-off-by: Nagesh Gunna <quic_ngunna@quicinc.com>
2023-03-15 19:10:24 +05:30
George Shen
264f4c7c0d msm: eva: Add session start/stop through FW
New HFI allows FW stop session and notify driver of
its completion. Driver is safe to reclaim resources
allocated for the session.

Change-Id: Ic6a08334a0bafd57f366a635c53f4f5f8f31f77e
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2023-02-25 14:58:02 -08:00
George Shen
fe87e8f0fa msm: eva: Add AON Timer mapping for fW
Reorganize the way to store FW required register mappings.
It will make future error check and debugging easier.

Update MID value to name translation table.

Change-Id: I6e3dbd837f2f2c297af16152754f27242aeb2637
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2023-02-13 14:17:51 -08:00
George Shen
608f7035b6 msm: eva: moves synx_recovery ahead of f/w loading
Before booting f/w, synx_recovery() shall be called as part of
SSR.

Change-Id: I1d03f073c964eaf5b26dd4fec5aac88b7d9de1a8
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2023-02-09 16:41:01 -08:00
George Shen
5d1307dda2 msm: eva: Checks clocks before accesing NoC
Checks AHB, MVS1, MVS1C, SLEEP, XO clocks, ensure they are
turned on before initial accessing NoC registers.

Change-Id: I429e2e410ac29aab893b490dbbd985914843ed9b
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2023-02-06 15:10:36 -08:00
George Shen
26bf3dba95 msm: eva: Update QoS, SMMU debug register offsets
SMMU debug register block was relocated. New QoS registers was
introduced. Without the change, S1 fault will end up as S2 fault.
The EVA driver cannot dump appropriate debugging info.

Change-Id: I5e833cee51a56164f7853baa91e8c6011ec41189
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2023-01-24 15:49:38 -08:00
George Shen
5c1c699cc1 msm: eva: Release resources after core init fail
Change-Id: Ic19fc13405c570a8747ce17df62d59d5c6d9d652
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2023-01-13 20:52:03 -08:00
Yu SI
a605440282 msm: eva: updated AON mapping attribute for FW
updated AON mapping attribute for FW

Change-Id: I207e7aaf0413e9d71db1d7f98f99db8d28a831a8
2023-01-06 16:27:36 -08:00
Yu SI
803a412ea9 msm: eva: add AON mapping for FW
added support to map AON reg range for FW
updated clk_get return check

Change-Id: I93732f840a6354558853d6c6644b569c53fa93db
Signed-off-by: Yu SI <quic_ysi@quicinc.com>
2023-01-05 16:31:13 -08:00
George Shen
b873ee6df9 msm: eva: Support XO clock reset mutual exclusion
Using existing clock reset APIs.
Remove DSP debug level bitmask check.

Change-Id: Iab6ff6309b2d56e678b468b2137834f8931071e9
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2023-01-04 10:37:53 -08:00
Yu SI
d9410c7653 msm: eva: power on off sequence update
update according to HPG
--added utility to asser & de-assert clk individually by name
--added xo clk reset and vote for sleep_clk
--defined more CVP_AON_WRAPPER_XXX regs in IO header
--updated power off controller sequence
--updated power on controller sequence
Debug, to move later
--clk_set_flags for mvs1c cbcr for retain_periph retain_mem

Change-Id: Ia0872270412119e4dc6c3e2b12b59862adeea0c5
Signed-off-by: Yu SI <quic_ysi@quicinc.com>
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2023-01-02 17:03:49 -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
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
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
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
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
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
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
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
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
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
7a7d1cf8b5 msm: eva: Add initial drop of VM manager
First drop for common code base.

Change-Id: If0147395cc946f1cad69c270226b0ff20e11b6ef
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-04-04 10:01:35 -07:00
George Shen
7cc6e333d2 msm: eva: Use rate limited printk API
Avoid potential system level RT throttling issue.

Change-Id: I0fbe198957ef9e5c21435fef2c6e8b6df551da5b
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-03-18 15:26:02 -07:00
George Shen
26396dd79a msm: eva: Enable EVA power colapse
Remove temporary changes for RUMI bring up.

Change-Id: Ibad6025fcc9b18d062cd46bf33f6c7e051dbf91d
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-02-17 10:08:39 -08:00
George Shen
6ca205da54 msm: eva: Enable all feature dependencies
Except minidump for kailua.

Change-Id: I8e0d5fe57f05a027f47088111811f362f7bf0c2f
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-01-05 11:07:23 -08:00
George Shen
364e984422 msm: eva: Extend timeout to wait for F/W boot
Only applicable on Pre-sil platform. Restore silicon setting later.

Change-Id: Ib1e3f4e3a5de7521e7bb36540fe8bc2c6a4342ee
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2021-12-29 12:20:48 -08:00
George Shen
250bb8b4e1 msm: eva: Propagate tip of 1.0 to 2.0
For Kailua SoD bring up.

Change-Id: I69e41850b55c688caf40f2066ed2628c2df274a3
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2021-11-28 14:51:51 -08:00
Yu SI
4981885760 msm: eva: merged tip from eva-kernel.lnx.1.0
merged tip source code from eva-kernel.lnx.1.0,
and verify the promotion flow.

Change-Id: I031508fd8a23995a166506f3d190e5e228eb13c2
Signed-off-by: Yu SI <ysi@codeaurora.org>
2021-10-27 18:14:30 -07:00
George Shen
2b303bbbf4 msm: eva: Validate instance before deleting
The change will avoid panic during DSP session deletion in case
an invaid instance pointer passed in. Disable suspend early
during core init.

Change-Id: I0ec1e95d17a65b26fb29c970889926d9507bf554
Signed-off-by: George Shen <sqiao@codeaurora.org>
2021-09-24 15:54:34 -07:00
George Shen
58dc151523 msm: eva: Restart EVA in case warmboot fails
Firmware cannot recover by power cycling EVA. Try cold boot.

Change-Id: I83778941f8626d4a3ee7e1f7670a64186ccde831
Signed-off-by: George Shen <sqiao@codeaurora.org>
2021-09-22 22:21:50 -07:00
George Shen
61ea9c1a38 msm: eva: Do not allow suspend during fw loading
Use kernel power management API to block suspend during fw loading.

Change-Id: I28e0c658d148ddf2bdb971b6a07242e1f1ff9a3c
Signed-off-by: George Shen <sqiao@codeaurora.org>
2021-09-22 16:37:57 -07:00
George Shen
d20d1298e2 msm: eva: reset AXI and CTRL clocks
Avoid pending transaction after EVA is power off. The transactions
may be introduced by PDX FIFO CX side pointer not reset after EVA power
collapsed. PMU can turn on AXI clock on CX side. It may trigger spurious
DDR transactions that are abnormal, in our case, the write transaction
has header, but not data.

Change-Id: I1374aa5ddf64ecc56c6c806cf096bed2761fd9a7
Signed-off-by: George Shen <sqiao@codeaurora.org>
2021-09-20 11:48:46 -07:00
George Shen
f8e8640ce2 msm: eva: Add NoC QoS setting
The setting will be target specific and used to set correct
priority of EVA DDR traffic.

Change-Id: I165a761393bf9dfb4ef08482d1439959cd46baa4
Signed-off-by: George Shen <sqiao@codeaurora.org>
2021-09-16 14:10:22 -07:00
Aniruddh Sharma
b30be7e544 msm: eva: Minidump enablement for eva
Enabled FW static dump.
Enabled VA_MD for CMD and MSG queues, both for CPU and DSP.
Enabled VA_MD for debug structs.

Change-Id: I9a5a2418620cd0608b90301eefe0726a462c1ce3
Signed-off-by: Aniruddh Sharma <anirshar@codeaurora.org>
2021-09-14 09:49:24 -07:00