Define CONFIG_EVA_LE compiler flag.
Add separate VM support module.
Define stub functions to initialize synx function table in case
SYNX is disabled.
Change-Id: I0f6b28cbd2a43cbb7f464629a329581a73c4de89
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
CFG_SREGR is added for all cores in Kailua. Some of EVA
registers in VIDEOCC have offset down-shfited.
Change-Id: Ibd5d5153e4c633209a65abea74d97c5b39b7ea5d
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
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>
To remove debugfs root in case of failure
Change-Id: I8a9a03a45c3a2c1f5b620f55ae0f5745debf3881
Signed-off-by: Aakash Preetam <quic_apreetam@quicinc.com>
To correctly place the core0 directory at debugfs root
Signed-off-by: Aakash Preetam <quic_apreetam@quicinc.com>
Change-Id: Ib08798e93b202dd07dc02a9b9034397199767900
Only applicable on Pre-sil platform. Restore silicon setting later.
Change-Id: Ib1e3f4e3a5de7521e7bb36540fe8bc2c6a4342ee
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
The change also allows runtime change of auto-pil setting. It will
help presilicon bring up.
Change-Id: I9fd97a09e6730a2e13ae4503c74f8a2962c614c5
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
The change makes EVA kernel driver more self-contained after
removing one more dependency from kernel component.
propagated from 3858889.
Change-Id: I20d34b631f516ee917d50329081f5135a1c4bec6
Signed-off-by: Yu SI <quic_ysi@quicinc.com>
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>
Some code cleanup to follow linux coding standards..
Change-Id: I6412ebba97646f027354944ae939004bd121feeb
Signed-off-by: Aniruddh Sharma <anirshar@codeaurora.org>
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>
Use kernel power management API to block suspend during fw loading.
Change-Id: I28e0c658d148ddf2bdb971b6a07242e1f1ff9a3c
Signed-off-by: George Shen <sqiao@codeaurora.org>
Without the fix, there is chance ARP buffer was accessed after
it's unmapped in the cases DSP PD is killed unexpectedly.
Change-Id: I3480120ce95b7cde0aac5ac95f0e369e6da8ba87
Signed-off-by: George Shen <sqiao@codeaurora.org>
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>
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>
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>
Flushing debug queue may trigger interrupt to FW. So flushing it
before Tensilica going to WFI.
Change-Id: I3b93183612439d5f499a30aadea18f0c2348ee13
Signed-off-by: George Shen <sqiao@codeaurora.org>
Increases max synx objects supported by eva_kmd_arg
from 16/2=8 to 64/2=32.
Change-Id: I8d893b829a6af5f1929298cc8562095f22b0c633
Signed-off-by: Sabharsh Sidhu <ssidhu@codeaurora.org>
There is a chance user process crashed when EVA is being used.
In that case, files pointer is set to NULL by kernel. Add
support of global timestamp support. Check wfi after pc ready.
Change-Id: Id01d07a79beec03e48885dd051549b5c39bc4846
Signed-off-by: George Shen <sqiao@codeaurora.org>
re-order the mmrm deregister call in core release sequence;
set eva mmrm client structure ptr to NULL after deregister;
re-arrange the error handling code;
in mmrm dereg check if clk enabled before call set value to 0,
since already set value to 0 once when unprepare & disable clk.
Change-Id: Ia89919e219ffda94a19b5214e91f1b3adc575086
Signed-off-by: Yu SI <ysi@codeaurora.org>
Removed the logging which access mmrm eva client
structure after calling mmrm deregister.
Change-Id: I467c147bd76b980971b0ca512212292e572b1b18
Signed-off-by: Yu SI <ysi@codeaurora.org>
Prevent dcvs voting below the current aggregated clock.
Change-Id: Ie3ea259521a7b241cdef40a049563f054b089687
Signed-off-by: Ronald Karyodisa <ronaldk@codeaurora.org>