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>
Add bit mask to control internal recovery for different
scenarios independently.
CRs-Fixed: 3300310
Change-Id: Ie55a1517c5dd9c503152368d9a921132eeab7a76
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
Update from error injection framework to event injection framework to
support PF event inducement and node event. Different set of user
input parameters are required dependent on which event to injection.
ICP and ISP support error event and page fault event injection. JPEG
supports node event and page fault event injection. However, buf done
error injection is only supported for JPEG and ICP.
Create a query API to check whether PF is fatal for a context bank.
Using the API, if PF is fatal, page fault event injection is not
supported for the device that owns the context bank.
Make change to JPEG context event callback handling to account for
various events including Event Injection event.
CRs-Fixed: 3210139
Change-Id: I582ee0bda8dbf631ece2522a5a8145f38ec71928
Signed-off-by: Sokchetra Eung <quic_eung@quicinc.com>
Rename symbols in ICP driver to accommodate for newly added
OFE driver. Symbols that specifically contain string "ipe_bps"
or "ipebps" are renamed to "dev" or "device" to make the symbol
generic and adaptable to any distinct HW names such as OFE.
CRs-fixed: 3266661
Change-Id: I141342e40d52cbb3c676389a13f1428435054913
Signed-off-by: Sokchetra Eung <quic_eung@quicinc.com>
Handle the deferred buf done in case of a back-to-back
bubble scenario.
CRs-Fixed: 3297235
Change-Id: I62a4fcd906742ffe20ad1648739528357870f20d
Signed-off-by: Chandan Kumar Jha <quic_cjha@quicinc.com>
Remove direct shell commands from Android makefiles to better make use
of android function definitions.
Also changes mmrm dependency to be based on whether or not the driver
is detected in the build before setting it as a dependency.
CRs-Fixed: 3298147
Change-Id: I0d5f2c9eb34ac635604c515638c9f00e29ae0b2a
Signed-off-by: Suraj Dongre <quic_sdongre@quicinc.com>
Currently, we are checking the clock struct pointer for NULL
returned from clk_get functions. certain critical clocks might
have NULL returned for clk pointer, since they are enabled during
boot itself. Update return check condition for err only and ignore
NULL value and skip its usage.
CRs-Fixed: 3296865
Change-Id: I5c1852f2348ae8aeeb0508a2f4a052a8c4f1989e
Signed-off-by: Mukund Madhusudan Atre <quic_matre@quicinc.com>
Update register offset for CSID and CSID-Lite 880.
Discarding CSID secure register offset which is beginning
of reg space and not accessible from HLOS.
CRs-Fixed: 3291241
Change-Id: I693f85ef4f824e159f3fb0589b7d4bfc2148d000
Signed-off-by: Chandan Kumar Jha <quic_cjha@quicinc.com>
The process_req is locked by session lock, then sub devices
on different links can't apply setting concurrently, it will
affect the performance for per frame req applying on bokeh
mode. This change removes the session lock for sending req
and adds it only for checking req ready.
CRs-Fixed: 3292804
Change-Id: I97025774ddb5f89fcc3a3d596921e1240a2d464c
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
This change add the timestamp in different io config when read
actuator packet. In order to ensure the accuracy of the time dimension
of the data, the timestamp of the Kernel is returned synchronously when
read HALL data.
CRs-Fixed: 3244812
Change-Id: I2ddb9450108e2b0f47769c7b02078903c4f3812b
Signed-off-by: Wang Kan <quic_wkan@quicinc.com>