rpmh_flush() is called for APPS RSC only from last CPU entering power
down. spin_trylock() was used to abort flushing as it would mean another
CPU is already up.
However rpmh_flush() may get invoked by other RSCes too and may fail if
another CPU is holding lock. Fix by removing spin_trylock().
Change-Id: Ic94f6bcb9a762e02ccfb98c79f6181f20ee67915
Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
The RSC channel switch in certain cases may take more time
to complete at RPMH end.
Add delay of maximum 100usec.
Change-Id: I65862ad80fbb698e6b66e2038a7692c4b78c2ce9
Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
Currently SMMU context banks are chosen dynamically based on
available context bank. Few use cases requires context banks to
be fixed to retain SMMU mappings even after process exits and resumes
again. Few other use cases requires to use multiple context banks of
similar remote subsystem process types. Allocate designated context
bank session with process type matching with remote subsystem
process type.
Change-Id: Ie8ccad2fde4e2e21aaf8c6ede0ab31645cdf350c
Acked-by: Santosh Sakore <quic_ssakore@quicinc.com>
Signed-off-by: Ansa Ahmed <quic_ansa@quicinc.com>
BAM SMMU should be disabled when mapping config is set as bypass.
Change-Id: If92cd1ed23ada0473fc7e8dea0adf35a88980ce0
Signed-off-by: Xiaoqi Zhuang <quic_xiaozhua@quicinc.com>
FDE only use one ice keyslot on gen3, the remains used by FBE. For
the ufs crypto layer, it needs to support FBE and FDE request concurrently.
Test cases:
1. LV host FDE OTA and basic test validated pass
2. LA container FBE OTA and basic test validated pass.
Change-Id: Ic0c6e0f9d39d351c1095f531f1fa8bd2a8e614b7
Signed-off-by: jianshu <quic_jianshu@quicinc.com>
This change enables sharing of a new page to DSP.
New page will contain initial debug parameters which we
need to pass to the DSP during process initiation.
Change-Id: Idb5793f2dc9fe3c0892c68da103abef9e3f3ea18
Acked-by: quic_anane <quic_anane@quicinc.com>
Signed-off-by: Ansa Ahmed <quic_ansa@quicinc.com>
Handle deviations in Deepsleep requirements by introducing new
callbacks that would be invoked during deepsleep suspend.
Change-Id: I988a72fa3b175de4338b4e5fa2a90191a438aa4b
Signed-off-by: Shreyas K K <quic_shrekk@quicinc.com>
There can be a possibility that runtime power management
has powered-down SMMU. Now, if there is a freeze request
on top of that, we will see SMMU register access errors,
as the SMMU is already powered-down.
Power-on SMMU during the freeze for accessing the SMMU
registers as part of qcom_free_io_pgtable_ops().
Change-Id: I6fff3ca0a70c071947e34bc4e574e3e565ee875d
Signed-off-by: Shreyas K K <quic_shrekk@quicinc.com>
Signed-off-by: Yadu MG <quic_ymg@quicinc.com>
Add new QMI messages and struct to support ETH PDU TSN FR.
Change-Id: I4197893741673db72177447dc281349992cb0c10
Signed-off-by: Sivakanth Vaka <quic_svaka@quicinc.com>
During low memory situations caused by some scenarios such as OTA
upgrade rpmh transfers may fail.
Use stack memory for rpmh transfers to avoid such failures.
Change-Id: I904f788dd865d083191bc5113a27e6ee232ebfc8
Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
Add Interconnect, qos, qnoc, clock support for QCS605.
Change-Id: Iead8fb2a4cb306213bd187576150ca2f51211fc4
Signed-off-by: Chetan C R <quic_cchinnad@quicinc.com>
This reverts commit 7da358c0ed.
Reason for revert: HLOS is accessing outside PIL region causing crash,
so reverting the change that is accessing outside SPSS PIL region.
Change-Id: I1cbc4c9a0885a316509ab829fcd3559a1aeb0bb8
Signed-off-by: Srinivasarao Pathipati <quic_c_spathi@quicinc.com>
Enable CONFIG_USB_NET_AX88179_178A for kalama LE target.
Change-Id: I7a3a40ed2b58d44bc091f1b469a359fd619bd719
Signed-off-by: zhezhe song <quic_zhezsong@quicinc.com>
There was a debug feature on minidump to collect content around
pointers present in panicked cpu registers from X0-X30. PC, LR,
SP. and it was having check present before copy the contents about
address need to be kernel mapped and not hyp assigned. We should
be able to do most of the checking present as well but tracking
the buffers which are assigned to other VMID through
qcom_scm_assign_mem() and since it is upstream API and adding magic
value to each PFN and restore it if there is failure is kind of
overhead for such a debug feature, ideally it should have done on
client side but doing at the client is very difficult task to do
as there are many users of this API.
For now, we are cleaning this up, unless we know the user of this
information and it is worth doable.
Change-Id: I638877063a4c8c6dabb7d16bcc4eeb63f5108fba
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
Signed-off-by: Srinivasarao Pathipati <quic_c_spathi@quicinc.com>
Inclusion of interval tree support for Graphics compilation.
Change-Id: If3018a03ae83a256e5b3c48cf327a2d953b3e5a5
Signed-off-by: Sayantan Majumder <quic_smajumde@quicinc.com>
One of the ipc logging statement was missing argument
of ret. Corrected by adding last argument in ipc log.
Change-Id: Icaf6cba021abb1df8d12ab6b821a9a12c04e4f17
Signed-off-by: Mehul Raninga <quic_mraninga@quicinc.com>
Directly including linux/rwlock.h breaks RT build failure.
Fix this by including linux/spinlock.h which includes the
correct rwlock header based on the selected PREEMPT configuration.
Change-Id: I6e90d570be302cfc8ee05e78dc47073ae97ffee4
Signed-off-by: Kassey Li <quic_yingangl@quicinc.com>
Add measure support for CPU clks in DEBUGCC in Trinket
so that one can get the frequency at which they are
running at.
Change-Id: Ic199787dc6ef32415c41f721011d0e3e93e496ad
Signed-off-by: Prerna Singh <quic_prersing@quicinc.com>
In geni_i2c_irq_handle_watermark, due to spurious
interrupt gi2c->cur is becoming null resulting in crash.
Hence added a check to prevent this scenario due to
spurious interrupts.
Change-Id: I522b2dbdacb48208ecddd81115c7a9a7c40da021
Signed-off-by: Visweswara Tanuku <quic_vtanuku@quicinc.com>
Signed-off-by: Somesh Dey <quic_somedey@quicinc.com>
Signed-off-by: Madhu Ananthula <quic_mananthu@quicinc.com>
To get better performance, the priority of tasklet for receiving
message in Virtio HAB should be increased from normal to high.
Change-Id: I03151641d2af992ff0fcaaa38912f42b1f097d70
Signed-off-by: lixiang <quic_lixian@quicinc.com>
cases where IBs exceed DBQ command region, make use of extended
DBQ region to submit indirect IBs.
Change-Id: Ic7673e9a0f79b844fd0acb382d662a96a86e13bc
Signed-off-by: Jeyaprabu J <quic_jeyaprab@quicinc.com>
Disable fpesel capability which is not needed
and causing crash during LPM.
Change-Id: I9698cb54edfe09dfc16c4c6b1b241f4dc05e655d
Signed-off-by: Ashok Kadavul <quic_asholnu@quicinc.com>