Add support for 36 bits wide smmu context bank for SM8550
target.
CRs-fixed: 3065594
Change-Id: Ib2953a3f4fe0bb9283719ce91dcef128cd63ab20
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
Disable cpas writing to ICP QoS registers, since they are in
ICP clock domain, which has not been enabled by the time cpas
probes to configure the registers.
CRs-Fixed: 3048249
Change-Id: Iaada5194a06408ecee69cb724eb94c6ffb7bfb95
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
Cape has different version of CPAS version which
requires camnoc interface changes and CPAS version
change. This change adds the same.
CRs-Fixed: 3063982
Change-Id: Iaca2f12954cc12224da6c8cdb2ee76f2b14aca0b
Signed-off-by: Alok Chauhan <quic_alokc@quicinc.com>
Moves custom smmu API's to cam_compat as some of them are legacy and
will not be supported in newer kernel versions.
CRs-Fixed: 3048249
Change-Id: Ic9db5d9d295eb02e8bd2d593721b65e30d605f72
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
Remove return checks from debugfs_create_bool, as the API changed in
kernel 5.15+.
CRs-Fixed: 3048249
Change-Id: I2351776615a5fb17db1c54d285be2bf8e55443ab
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
dma_buf_vmap function signature changed between kernel version
5.10 and 5.15.
CRs-Fixed: 3048249
Change-Id: I4c8dc951cc383c3dc888fca1d0b1becf92f4662c
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
Moves ion include to cam_compat since there is difference in location
between 5.10 and 5.15 kernels.
CRs-Fixed: 3048249
Change-Id: Ieb2ea976c149475ef6618fae53813c7a49b90ae0
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
Starting with kernel 5.14+ callbacks using list_head structs need to
be const qualified.
CRs-Fixed: 3048249
Change-Id: I80611317b5a69fee8bb0901697d8a6df1bd4aab8
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
Deprecates legacy api of_fdt_get_ddrtype() as new targets only have
LPDDR5 for platforms that support linux kernel 5.15 and newer.
CRs-Fixed: 3048249
Change-Id: I8e7f3274eadc597870118956b964fb87d69549ee
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
Print long and short packet infor with wrong mask, and also shift
correct bits value for all values.
Change-Id: I3596a059b7266cb53faa51699f7712ff3baaec9f
CRs-Fixed: 3066821
Signed-off-by: Pengfei Liu <pengfeiliu@codeaurora.org>
Current implementaton of cam_ife_csid_get_format_rdi has many nested
switch cases. In new targets, there is a requirement of having
unpacked data from CSID even if it supports packing. Modifications
in current function adds more if-else conditions.
To fix this problem and make the function simplified, this commit
modifies the cam_ife_csid_get_format_rdi function to compute the
incoming and outgoing programmable values separately. This commit
also adds one util function to validate the incoming and out format
combinations.
CRs-Fixed: 2948116
Change-Id: I06b93148d96bc7ec2b7b31a561297588f2786b08
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
We are moving CSID error type and error handler from csid driver
to target header file.
This commit prints additional debug information in case of MUP
mismatch and line buffer conflict CSID errors.
CRs-Fixed: 2948116
Change-Id: I46e7e8cb49a94c649862c35f7da009c86df60cc6
Signed-off-by: Chandan Kumar Jha <cjha@codeaurora.org>
Fix the incorrect condition in the cdm code and also
remove cdm debug register dump from ife_hw_mgr_config
function to avoid the duplication of the dump with the
one being printed from cdm workqueue.
CRs-fixed: 3064926
Change-Id: Idd5938030d4f9737e5ab3301d08dd221b25a54ea
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
Change mode of all LITE RDI WMs to line based mode to account for
SFE ZSL RAW 80 byte stride alignment. This change is to make
it generic for all RAW outputs. If the mode needs to be made
frame based, userland will override it. The change also
updates mipi pack property in CSID LITE header.
CRs-Fixed: 3032597
Change-Id: Id3bc7686adae33506d1ffced73fef16776f4e28c
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
Avoid programming RUP/AUP at CSID start for internal recovery.
The request being recovered will configure this appropriately via CDM.
Also avoid resetting epoch factor for IFE PIX resource at stream off
that is triggered internally, the UMD configured epoch factor is
needed to stream on again post recovery.
CRs-Fixed: 3045706
Change-Id: I865ad0c2c08330a29eacfea63b4e15892a84bd69
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
This change handles a race condition in which cdm workqueue is
scheduled on one of the cores and cdm flush is executing on
another core. We come across a dead lock between fifo_lock and
hw_mutex lock.
CRs-Fixed: 3049531
Change-Id: Ie0b8982a7e55218fc5655f8e3d08a952fd852ed7
Signed-off-by: Vikram Sharma <vikramsa@codeaurora.org>
Regulator_get is being moved with probe time for opertional
performance improvement. With this change regualtor phandle can
only be derive at power cycle. In case of power_on/down failure case
currently regulator phandle is set with NULL which can cause
failure in power related operation in all future sessions. This change
removes NULL setting to regulator phandle in failure case.
CRs-Fixed: 3052638
Change-Id: I4abec311416e852bbe1922024b05755e2b3a3d25
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
Rearrange the rt-wrapper property in order to
not request for the ioremap for the rt-wrapper region
unnecessarily and also to make the code more general
for upcoming targets.
CRs-Fixed: 3060818
Change-Id: I45da335c1e1c372229388350612f659720326066
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>