Remove dead code from the camera driver.
CRs-Fixed: 3328154
Change-Id: I7dea63fed8f6c35825db079f89f8c34f6730f155
Signed-off-by: Chandan Kumar Jha <quic_cjha@quicinc.com>
Get slave address from user mode and update in i2c info structure.
CRs-Fixed: 3244380
Change-Id: I85bbe07927cfe072f2640cd632505fd6a168133c
Signed-off-by: Ridhi Shah <quic_ridhshah@quicinc.com>
Resolve possible array out of bounds issue.
Add break in the if for better readibility.
CRs-Fixed: 3298809
Change-Id: I3fb2085df073f4ba0530d3441344cf5b99a83f31
Signed-off-by: Petar Ivanov <quic_pivanov@quicinc.com>
Removes unnecessary rc assignments since they were not
being checked and there are already logs in the called
functions in case of error.
CRs-Fixed: 3322998
Change-Id: I3a087dea790b688956de34fd4a76911261293629
Signed-off-by: Joshua Florez <quic_jflorez@quicinc.com>
Adds a check for rc in case of VFE process cmd failure
during cam_ife_mgr_start_hw function.
CRs-Fixed: 3317130
Change-Id: I686828ed5593aeaae6e00bb2435df32b27a2a9bd
Signed-off-by: Joshua Florez <quic_jflorez@quicinc.com>
camera-kernel:
269a02d Merge "msm: camera: common: Fix return conditions in the camera driver" into camera-kernel.lnx.dev
c5dc6c2 Merge "msm: camera: reqmgr: Fix for uninitialized scalar variable" into camera-kernel.lnx.dev
d653140 Merge "msm: camera: csid: Use function return value for error" into camera-kernel.lnx.dev
3b5d776 Merge "msm: camera: isp: Classify sfe bw vote info correctly" into camera-kernel.lnx.dev
1c5a08f Merge "msm: camera: reqmgr: Update frame timeout value" into camera-kernel.lnx.dev
437fee1 Merge "msm: camera: cpas: Add support to turn on optional clks" into camera-kernel.lnx.dev
7ca9482 Merge "msm: camera: cpas: Update query cap to support domain id" into camera-kernel.lnx.dev
e8bb141 Merge "msm: camera: uapi: Add new query cap and domain id structures" into camera-kernel.lnx.dev.
Change-Id: I59c44d4b2a4988215fdc692fe6f845c81d57b6f3
Signed-off-by: hchintal <quic_hchintal@quicinc.com>
This change is needed for domain id feature support.
When a PHY and its lanes for a particular CSID are
protected in a secure session, the same for other
unused CSIDs are to be protected as well. This is
to prevent other CSIDs from tapping the data streaming
onto those lanes if they share the same PHY.
For this, the clocks for other CSIDs (eg CSID-Lite)
need to be turned on. Given that the existing driver
turns on the clocks for the CSID in use, and that
this clock information is embedded within the CSID
hw blocks, these clocks are now exposed as optional
clocks to CPAS to enable the PHY driver to turn them
on during streamon for secure session.
CRs-Fixed: 3304650
Change-Id: I1415e78467208b6b4a74223521d964a199288857
Signed-off-by: Li Sha Lim <quic_lishlim@quicinc.com>
With more restricted compilation flags, void parameter is
needed in funciton prototype if no other args exist.
CRs-Fixed: 3306362
Change-Id: I7cdc7d56ff0a5bf5e626ff964dd284faae424bc1
Signed-off-by: Pavan Kumar Chilamkurthi <quic_pchilamk@quicinc.com>
Add support to create, release, signal and import a synx object
using the existing generic fence operations. Handle signaling of
underlying synx object when a sync object is signaled & vice versa.
CRs-Fixed: 3317280
Change-Id: Ia6fac6eb732ed7091ec62f04875bdb30d88c8676
Signed-off-by: Petar Nedev <quic_pnedev@quicinc.com>
Removes an assignment to the path_found variable that would
immediately be overwritten because of a continue.
CRs-Fixed: 3320785
Change-Id: I73cef3065a657e070d1173710f49cff8457066e2
Signed-off-by: Joshua Florez <quic_jflorez@quicinc.com>
This change adds synx object support for all fence ops.
CRs-Fixed: 3317280
Change-Id: Id370a9fdb3155378c61a84dde2fa849a993ec6a2
Signed-off-by: Petar Nedev <quic_pnedev@quicinc.com>
Add generic changes to support RGBIR, 3x3 and 4x4
XCFA from TPG XML.
CRs-Fixed: 3175994
External Impact: No
Change-Id: I129e20eb5db2bf2f168202f4854de62926eb613b
Signed-off-by: Rishab Garg <quic_rishabg@quicinc.com>
This commit adds missing break in switch while selecting
the phy values for CSID.
Change-Id: I901e8715861f70ec59e34d64b7d553ca9d747b8f
CRs-Fixed: 3307427
Signed-off-by: Gaurav Jindal <quic_gjindal@quicinc.com>
Create OFE HW layer which contains device, soc, and core files.
Device file provides the prob functionality and OFE dev interface
to ICP HW MGR. Core file provides HW related functionalities such
as PC, reset, init/deinit hw, etc. Soc file provides intermediate
functions to utilize camera soc APIs such as DT parsing, Clock
update, etc.
Modify Kbuild to include compilation of the source files. Update
camera main file to invoke ofe init module function during camera
module init. Update camera main header file to allow CRM to match
OFE driver for component bind.
Update OFE HW register addresses such as power status/power ctrl,
reset, irq, etc.
CRs-Fixed: 3266673
Change-Id: I97efe095801b1b42e9de07aeba6f26112cb8f92b
Signed-off-by: Sokchetra Eung <quic_eung@quicinc.com>
Adds a return condition for wm failure in vfe bus ver3.
CRs-Fixed: 3316560
Change-Id: I6e8792509b2a6f4276f15bce8bcf221a7bdfdcd7
Signed-off-by: Joshua Florez <quic_jflorez@quicinc.com>
Configure go_cmd once per CSID/IFE, irrespective of the base
index.
CRs-Fixed: 3309163
Change-Id: Iee2d876ff9351e92c96aecd8f12b968f56f01cde
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
Add new property to configure FW ram dump level.
It is disabled by default.
CRs-Fixed: 3261717
Change-Id: I58db96929d9887a130ce5d7edb9bb13383a342f8
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
Skip epoch height config from userland for CSID CAMIF, if
they are not subscribed for as primary events in non-SFE
use-cases.
CRs-Fixed: 3306019
Change-Id: I08546d568661cbf040dbb22c3bc9d4e92cec332b
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
Address enabling CSID IRQs on SOF freeze. Enable the input
IRQ events when state machine encounters congestion as well.
CRs-Fixed: 3309151
Change-Id: Ib7611167444a795dd14339cb689a0e116e30b5fd
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
Fix return conditions leading to structurally dead code in csid.
CRs-Fixed: 3306112, 3306117
Change-Id: Id6716f970186756be4c6d879335f2630cecf403c
Signed-off-by: Mukund Madhusudan Atre <quic_matre@quicinc.com>
Add precision to nanosecond part of monotonic timestamps.
Update delimiters between second and nanosecond values.
CRs-Fixed: 3307225
Change-Id: I4e7aab0ea9256c2ff769a87c3873002d715ed3c9
Signed-off-by: Mukund Madhusudan Atre <quic_matre@quicinc.com>
Add separate log mask for sensor util. Update i3c device id
logs to show device node name as well.
CRs-Fixed: 3258478
Change-Id: I5bdacc17fc39ee4b2491907ddb02234af2edd767
Signed-off-by: Mukund Madhusudan Atre <quic_matre@quicinc.com>
Removes if statement condition that would always evaluate
to false.
CRs-Fixed: 3300441
Change-Id: Ia5e68cdcf28dedd8e38c06feb475340fec7d4d9e
Signed-off-by: Joshua Florez <quic_jflorez@quicinc.com>
Sometimes current link has reset the slot, but the corresponding
sync slot hasn't been processed, then sync link won't get the
corresponding slot. This change reset the sync mode of sync slot.
CRs-Fixed: 3305718
Change-Id: I6f826fe32edfabe74986fc0586a29e2060412b82
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
camera-kernel:
ede8d6b Merge "msm: camera: core: fix the compilation error" into camera-kernel.lnx.dev
838dece Merge "msm: camera: icp: Always dump HW Info when requested by LDAR dump" into camera-kernel.lnx.dev
d57e5af Merge "msm: camera: icp: Add LDAR support for wait and pending lists" into camera-kernel.lnx.dev
61b13aa Merge "msm: camera: isp: Add check for pending requests for LDAR dump" into camera-kernel.lnx.dev.
Change-Id: Idcd740ac53eb9fe99b9120097326bb73f54ec74d
Signed-off-by: hchintal <quic_hchintal@quicinc.com>
There is a possiblity to enter the function without any currently
active frames to dump. Even though the context info should be dumped.
In this case overwrite frame ts to 0 and dump the HW info.
CRs-Fixed: 3298809
Change-Id: Ide672f0ff8ac3f351fc4be1933bb23afbcf923f2
Signed-off-by: Petar Ivanov <quic_pivanov@quicinc.com>
Adds a check for pending requests in the LDAR dump.
CRs-Fixed: 3286072
Change-Id: Iad73705ecde770902cc6dbe2fe69a09a220431cc
Signed-off-by: Joshua Florez <quic_jflorez@quicinc.com>
When LDAR dump is triggered check for any remaining buffers in all
possible buffer lists in the ICP, in case of found buffers add their
info to the LDAR Dump.
CRs-Fixed: 3298809
Change-Id: I55d3780c7d789e3a77e78c9ef3ecffc9a36419f3
Signed-off-by: Petar Ivanov <quic_pivanov@quicinc.com>
fix the compilation issue, of switch case where break statement was
missing.
Change-Id: Ibae74f966f13cea0e218c14caf9dafbb4bfb87cb
CRs-Fixed: 3306362
Signed-off-by: Soumen Ghosh <quic_soumeng@quicinc.com>
camera-kernel:
335bf34 Merge "msm: camera: reqmgr: Wait for the streaming of sync link" into camera-kernel.lnx.dev.
Change-Id: Iff623bdc7e2287f5e5fcbfc28932c47243edbe90
Signed-off-by: hchintal <quic_hchintal@quicinc.com>
We should make sure the sync link has streamed on
when current req bigger than or equal to the next
req of sync link.
CRs-Fixed: 3305718
Change-Id: I571d0d7ce4ced723c8a4885a475e555f667fd923
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>