İşleme Grafiği

57 İşleme

Yazar SHA1 Mesaj Tarih
VIVEK VARDHAN JOSHI
636d3499d6 msm: eva: Handling mutex lock in case of failure
Retrying the mutex lock, if it is not successful
in cvp_fence-wait function instead returning false.

Change-Id: I8dfb24b92eef50218d4d9a73f76c5533352a31fc
Signed-off-by: VIVEK VARDHAN JOSHI <quic_vivekvar@quicinc.com>
2023-10-17 03:46:04 -07:00
Vivek Vardhan Joshi
59387891a2 Revert "msm: eva: Handling mutex lock in case of failure"
This reverts commit e1502aacbd.

Reason for revert: Causing CVP session close failure

Change-Id: I79f22e6ee694f46d9a9de51d1b51f42d67bad828
Signed-off-by: VIVEK VARDHAN JOSHI <quic_vivekvar@quicinc.com>
2023-10-11 13:02:36 +05:30
VIVEK VARDHAN JOSHI
e1502aacbd msm: eva: Handling mutex lock in case of failure
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>
2023-09-26 03:27:55 -07:00
Palak Joshi
536a3ed754 msm: eva: Clean up in case of SSR
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>
2023-09-06 11:40:17 +05:30
George Shen
b293b5b713 msm: eva: Rename hfi related devices
To avoid confusion in code reading and prepare for
future compatibility changes.

Change-Id: I43d61e18d2e2d75d1fd46ceb2e763511329ee32d
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2023-07-29 16:34:22 -07:00
George Shen
936925471d msm: eva: Enhanced check to avoid kernel panic
Avoid delete non-existing session and power on check before
register write.

Change-Id: I0b7d5045d68fd18e5a9a041d3ad3e37f4dac16ad
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2023-07-29 12:09:46 -07:00
George Shen
65165e0b23 msm: eva: Fix Sys Fault Reg refcount issue
Avoid kernel crash due to unbalance refcount operations.

Change-Id: I280682ec3352164b62ecf3469303371f2af24a7d
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2023-07-17 18:19:16 -07:00
George Shen
ea94318515 msm: eva: mmap firmware debug memory
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>
2023-06-20 14:14:02 -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
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
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
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
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
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
Naveen Ravi
ab30e5fc6f msm: eva: fence override mode
Change-Id: I0cd8b3dc234168f365d8664f3a4d0c09094a1da1
2023-04-11 15:13:48 -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
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
e9bc85d930 msm: eva: Return correct fence number
In case of the fence command setup thread being pre-empted,
the fence command can be processed by HW even before the setup
thread returns. In that case, the setup thread may be using
wrong fence number, causing it resends the HFI packet that has
been processed. The consequence could be SMMU fault.

Change-Id: I8be9808e993a27a1c7664e68a5382d145a8bc3cc
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2023-03-16 17:10:19 -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
Sabharsh Sidhu
6aabaf3247 msm: eva: Improve error handling for pkt enqueuing
Report error code for pkt enqueue failure - critical
for reporting rejected frames in flush scenarios.
Improve logging for unprocessed frames.

Change-Id: Ic5d04a56122b0bbf94f69117ee0fde9f5993e275
Signed-off-by: Sabharsh Sidhu <quic_ssidhu@quicinc.com>
2023-03-03 11:03:41 -08:00
George Shen
9de86afd60 msm: eva: fix a missing frame issue during flush
Racing happens when a new fence command submitted and flushing
is requested from a different thread.

Change-Id: I2d4f1e02c245f9a4a7eeb2e541ddb0e99b63b461
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2023-02-28 15:28:59 -08:00
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
a9db98a35d msm: eva: Fix KW issues
Change-Id: Ia2ec86faf79959511f491025489cd5cecf56fec5
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2023-01-30 09:21:23 -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
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
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
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
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
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
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
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
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
8205a08975 msm: eva: Support synx version update
The change makes it easier for eva driver to support backward
and forwardcompatibility of SynX versions.

Change-Id: I6382d5c904d30bd38692ce74e747749e113be621
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2022-03-14 14:36:31 -07:00
Sabharsh Sidhu
01c34574ca msm: eva: Add WarpNCC CPU support
Adds Out-of-Band (OOB) functionality. Adds
WarpNCC OOB processing for metadata buffer
IOVA population. Adds WarpNCC source buffer
registration that does IOVA book-keeping and
returns buffer ID to UMD.

Change-Id: I182c270454eec194f28a31c494bae0ad9eface02
Signed-off-by: Sabharsh Sidhu <quic_ssidhu@quicinc.com>
2022-02-01 14:13:13 -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
f8342d4cf9 msm: eva: Remove deprecated header
Allows compiling independent of synx, fastrpc and mmrm readiness.

Avoid including KP 2.0 deprecated headers.

Change-Id: Ibf026f409b7f6284705c95b01a5251ac6a498b32
Signed-off-by: George Shen <sqiao@codeaurora.org>
2021-09-09 16:34:56 -07:00
Ronald Karyodisa
27132cb626 msm: cvp: Fix dynamic clock voting
Prevent dcvs voting below the current aggregated clock.

Change-Id: Ie3ea259521a7b241cdef40a049563f054b089687
Signed-off-by: Ronald Karyodisa <ronaldk@codeaurora.org>
2021-08-20 11:35:03 -07:00
Ronald Karyodisa
d49b4e5574 msm: eva: Add FD type check for DCVS
Add FD packet check and add log to catch the
unexpected FD packet size.

Change-Id: I794d659a2e33e5efc521d31476c6923ca5462554
Signed-off-by: Ronald Karyodisa <ronaldk@codeaurora.org>
2021-08-18 17:23:27 -07:00
George Shen
022b7d2d1b msm: eva: Avoid printing unnecessary warnings
When handling HFI response of config packets.

Change-Id: I16e373d07c1cc7617624160921bcca972381277b
Signed-off-by: George Shen <sqiao@codeaurora.org>
2021-06-24 17:11:27 -07:00
Yu SI
99ad8575b2 msm: eva: adjust log level for non-fatal msg
change msg trace level to CVP_INFO
for cvp_wait_process_msg non-fatal.

Change-Id: If2e245f894d3076ed129f322e477ad5b1beead32
Signed-off-by: Yu SI <ysi@codeaurora.org>
2021-06-23 13:18:55 -07:00
Karthik Nagarajan
322bbdeaa3 msm: eva: Enable hangdump mode in EVA
Include new hfi packets and enable the pipeline to
dump hangdump buffers in UMD.

Change-Id: Id66538c69d3080c09c5a140dadcb0dfe87d9efc7
Signed-off-by: Karthik Nagarajan <karnagar@codeaurora.org>
2021-06-04 12:15:07 -07:00
George Shen
11a18d4d23 msm: cvp: Reduce kmd's feature dependency
Move feature configuration processing out of kmd. Relocate
feature specific code to msm_cvp_platform.c and cvp_hfi.h.

Change-Id: I425ee8b8638bd7b81c653c860f1ed1f5d95abac8
Signed-off-by: George Shen <sqiao@codeaurora.org>
2021-06-02 10:49:25 -07:00
Ronald Karyodisa
fe9fae2af4 msm: eva: Add debug option to disable DCVS
Add debug option using debugfs to disable DCVS.
Add extra check for DCVS.

Change-Id: I989ef72857dde306fa0ca9466843ebc1d2b30f85
Signed-off-by: Ronald Karyodisa <ronaldk@codeaurora.org>
2021-05-06 10:47:51 -07:00
Ronald Karyodisa
68b7c2cfa3 msm: eva: Fix sum fps aggregation setting
Initialize the sum fps calculation to avoid the
value keep increasing.
Add addional option (fps=0) to disable FD dcvs.
Fix HFI header size checking.

Change-Id: Ieb44b626a112205091327c7785a8c92c8c77c0b0
Signed-off-by: Ronald Karyodisa <ronaldk@codeaurora.org>
2021-04-30 14:54:17 -07:00
Karthik Nagarajan
64eb1ea98d msm: eva: Enable query of eva workload
Enable logic to provide current eva workload.
Workload estimated across sessions at hardware block level.

Change-Id: If8729f4ecd31b05a9b232475de9c7722845b37db
Signed-off-by: Karthik Nagarajan <karnagar@codeaurora.org>
2021-04-12 08:46:56 -07:00
George Shen
98e9135563 msm: eva: Simplify EVA DSP interface
Control EVA directly through kernel driver low-level functions.
Add error handling in session creation.
Unwind task and file reference count during buffer un-mapping.

Change-Id: I1ae5ae4afd3fea8e90faee1d8fe2c1ff92eeb9c2
Signed-off-by: George Shen <sqiao@codeaurora.org>
2021-04-08 13:13:23 -07:00
George Shen
600394cf35 msm: eva: Update date of source
To comply with open source scan requirements.

Change-Id: Idd9a4dec7dbe7ee7d4dd7294083d9b045438f67d
Signed-off-by: George Shen <sqiao@codeaurora.org>
2021-03-15 14:53:26 -07:00
George Shen
521f3d374f msm: eva: Fixed static analysis error
Fix static analysis tool detected errors.

Change-Id: I882dd7aebe544b930abb49ba998c1482991a49c9
Signed-off-by: George Shen <sqiao@codeaurora.org>
2021-02-23 13:23:17 -08:00