camera-kernel:
104d40e Merge "msm: camera: isp: Read back and update top debug cfg register" into camera-kernel.lnx.dev
061a006 Merge changes I632469bc,I53326589 into camera-kernel.lnx.dev
a617493 Merge "msm: camera: icp: Log all active requests on enomem from FW" into camera-kernel.lnx.dev
76de8ff Merge "msm: camera: common: Add I3C Driver support" into camera-kernel.lnx.dev
6c88212 Merge "msm: camera: csiphy: Add support for RF channel based csiphy settings" into camera-kernel.lnx.dev
5e07d97 Merge "msm: camera: isp: Remove IFE HW mgr reference from ISP ctx" into camera-kernel.lnx.dev
82f9e1c Merge "msm: camera: common: Add support for DRV config" into camera-kernel.lnx.dev
d010e1e Merge "msm: camera: common: Add support for bw update blob v3" into camera-kernel.lnx.dev
d05f4a4 Merge "dt-bindings: camera: Add camera DRV definitions" into camera-kernel.lnx.dev
Change-Id: I1b568b90293d287f23fde7531d2865f0a66799f1
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
Enable config for rpmh calls, which is needed to control
state of rsc devices for drv.
CRs-Fixed: 3065551
Change-Id: I632469bc2c91a00345b53c3b3c51e6bd1c8d325a
Signed-off-by: Mukund Madhusudan Atre <quic_matre@quicinc.com>
Add error handling and information logging for drv error and
info irqs for drv. Also, add debugfs for vote up and down irqs.
Add ddr and mnoc register value logging in vote up and down
irq bottom half.
CRs-Fixed: 3065551
Change-Id: I5332658924762a528625e628c3fa5d5dec07da62
Signed-off-by: Mukund Madhusudan Atre <quic_matre@quicinc.com>
Add support for bw update version 3. Add provision to
maintain cpas per path bw info internally in drivers.
CRs-Fixed: 3065551
Change-Id: I65e97c6e41f933818f1211bbc27651842e93c028
Signed-off-by: Mukund Madhusudan Atre <quic_matre@quicinc.com>
Top debug cfg register is getting reset while starting RDI resources.
This commit adds the register data to RDI resources and reads back
the register before updating the register.
CRs-Fixed: 3207575
Change-Id: I4e149fc81cbfc60adb6d3bb842a1057e8202903f
Signed-off-by: Gaurav Jindal <quic_gjindal@quicinc.com>
Upon Enomem error received from FW, log all active request ids
from all active streams to understand the request traffic pattern
to FW.
CRs-Fixed: 3204850
Change-Id: I450049ab7faa0871880b6511e65ffaf15c570e4e
Signed-off-by: Sokchetra Eung <quic_eung@quicinc.com>
Add support for RF channel based the csiphy 3 phase datarate settings.
CRs-Fixed: 3201451
Change-Id: Ic06531a577c6513d40ccf6cae163a482f2e9c9ae
Signed-off-by: Jigar Agrawal <quic_jigar@quicinc.com>
Removes IFE HW manager reference from ISP context and moves some
LDAR dump functionality for stream info to IFE HW manager.
CRs-Fixed: 3210247
Change-Id: I311c7cd8d8684a68ba0bfbe279ef9ba55cfbbe82
Signed-off-by: Joshua Florez <quic_jflorez@quicinc.com>
Add camera DRV feature enable mask definition. Add
definitions to communicate the DRV voting index from
device tree, which can be used to get the applicable
mnoc index for a client in cpas driver. The mnoc index
would eventually be used to vote the DRV bandwidth at
correct bus ID.
CRs-Fixed: 3065551
Change-Id: Ic429a3a7d40f9004818ea5f3e65469b40a92b438
Signed-off-by: Mukund Madhusudan Atre <quic_matre@quicinc.com>
camera-kernel:
a37d03c Merge "msm: camera: icp: Update HFI cmdq/msgq size" into camera-kernel.lnx.dev
6d3cd8d Merge "msm: camera: uapi: Add interface for DRV config" into camera-kernel.lnx.dev
1200063 Merge "msm: camera: memmgr: Set name for dma buffer to help profiling" into camera-kernel.lnx.dev
05c9d49 Merge "msm: camera: isp: Use spin lock bh to avoid thread preemption" into camera-kernel.lnx.dev
f047884 Merge "msm: camera: sync: Add support for dma fences" into camera-kernel.lnx.dev
38f0dfc Merge "msm: camera: reqmgr: SAT switch latency optimization" into camera-kernel.lnx.dev
5707a77 Merge "msm: camera: isp: Configure UBWC registers during stream on" into camera-kernel.lnx.dev
8998637 Merge "msm: camera: reqmgr: Fix out of sync issue after flashing" into camera-kernel.lnx.dev
Change-Id: I2ce11c70eea644e14f1a9a8f9dde6ea73e95be6e
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
To optimize SAT switch latency, Link handles will be passed along
with OpenRequest so that KMD can get sync link info per request and
UMD don't need to wait all pending requests to be done before activing
new links.
CRs-Fixed: 3094388
Change-Id: Ia52a95d9eaf444bd982a288bacf1e62b276130f2
Signed-off-by: Stark Lin <quic_starlin@quicinc.com>
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
In bokeh mode, if we set flash on one link and flash off
on the other link, will lead to out of sync between these
two links. So keep them in sync by syncing the according
req table slot info on the sync link.
CRs-Fixed: 3199523
Change-Id: I11ae4df36aa4363d136112284e1c94cadff323db
Signed-off-by: Wang Kan <quic_wkan@quicinc.com>
Use spin_lock_bh utility to avoid the preemtpion of recovery thread
in ISP context. This can come in rare conditions when IRQ is received
on same CPU which is handling the thread.
Such cases will result in deadlock conditions.
CRs-Fixed: 3208733
Change-Id: I25fde15b484fd72fa779aed393ef94d4fbb183b6
Signed-off-by: Gaurav Jindal <quic_gjindal@quicinc.com>
Increase cmdq/msgq size to 8K. Update HFI read API to
reflect the bump in size.
CRs-Fixed: 3190507
Change-Id: I70f5ded8e6155534cf2fa0fe94d3fdd1a378b5f7
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
Add support to create, release, signal and import
a dma fence. When a sync object is imported for a dma fence
signal the dma fence when signaling the sync object with
appropriate status. This is achieved by implementing
generic fence scheme. The change also adds support
for batched fences.
CRs-Fixed: 3207212
Change-Id: I23fbc0992281cfee0303e213a30bce138ae7bdff
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
For dma buffer profiling,we don't konw the owner of one dma
buffer. So we add it's name to show it's owner.
If you use v1 struct to alloc/map dma buffer it will use
default buffer name "UNKNOWN". For v2 struct you can set dma
buffer name at UMD side.
CRs-Fixed: 3131442
Change-Id: I24ce6aa1d97cd9fc26d9bd8796ab2367607008f6
Signed-off-by: Fengjie Chen <quic_fengjiec@quicinc.com>
In some cases while using scratch buffer UBWC registers are not
configured even after receiving the update blob from Userland.
This results in constraint errors at bus side.
This commit configures the UBWC registers at stream on if the
blob was received for the ports which are UBWC enabled.
Change-Id: Icf9a66808432052c84f52bbf470880fde082cee3
CRs-Fixed: 3108015
Signed-off-by: Gaurav Jindal <quic_gjindal@quicinc.com>
camera-kernel:
e3b23a4 Merge "msm: camera: icp: Add unified dev type field in icp ctx struct" into camera-kernel.lnx.dev
8fd344f Merge "msm: camera: isp: Update condition check for SFE pix port acquire" into camera-kernel.lnx.dev
b3dce54 Merge "msm: camera: csiphy: Add support to handle new cmd buffers" into camera-kernel.lnx.dev
a1db9e4 Merge "msm: camera: uapi: Add UAPI for new CPHY cmd buffers" into camera-kernel.lnx.dev
631aed9 Merge "msm: camera: isp: Pack the data for plain128" into camera-kernel.lnx.dev
cd81cd2 Merge "msm: camera: isp: Update buf-done IRQ handler for CSID-Lite 880" into camera-kernel.lnx.dev
fd950da Merge "msm: camera: isp: Add irq index to RDI resource" into camera-kernel.lnx.dev
9225bbb Merge "msm: camera: cdm: Fix the memory handle passed to presil API" into camera-kernel.lnx.dev
6fea65d Merge "msm: camera: isp: Add logic to support 3rd SFE in CSID" into camera-kernel.lnx.dev
e18a27f Merge "msm: camera: isp: Fix IRQ register sets for csid lite" into camera-kernel.lnx.dev
e170602 Merge "msm: camera: reqmgr: Correct log of applied req id" into camera-kernel.lnx.dev
7616629 Merge "msm: camera: isp: Add debugfs mask to print SFE Cache info" into camera-kernel.lnx.dev
Change-Id: I6fe64bc07acd6067d659ce8a4336c38a05905fc7
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
Add a unified dev type field in icp hw ctx struct to store unified
dev type value. The unified dev type is for logical usage in kernel.
UMD sent dev type has more variations (IPE/IPE_RT/IPE_SEMI_RT...)
It's used for debugging/printing.
CRs-Fixed: 3204811
Change-Id: Ic6c93fc6238aab7fe56d6beab55f4bcfcd1f81fb
Signed-off-by: Sokchetra Eung <quic_eung@quicinc.com>
The change adds support to handle new cmd buffer blobs.
Add support for CDR sweep. Also add support to read/write
data rate aux mask for a given phy from a provided output buffer.
CRs-Fixed: 3186732
Change-Id: Id18715c6778dfb1a1586e7297da70f36587f13d9
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
Only for FE use-cases, allow SFE pix ports to be acquired when the
input resource is RDI0-2.
CRs-Fixed: 3207073
Change-Id: Ic190d6ba1fb8cb63db5fef63bda05a7cac9c0c51
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
Fix the memory handled passed to the Presil API while
submitting the gen irq BL.
CRs-Fixed: 3185684
Change-Id: Icbc702c70cae5e301d3f646f903fc761bb0bc6e5
Signed-off-by: Jigar Agrawal <quic_jigar@quicinc.com>
If csid doesn't give unpacked msb out, packing needs
to be done at csid side for plain128 in order to
enable RPP subpath.
CRs-Fixed: 3198208
Change-Id: I9b228382804a9eb41d45b6d7bf6433bcfd4b4e40
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
Currently, the IRQ reg set is not having an empty RDI4 entry,
causing an out of bounds access during probe. Add empty
entry to reg set in headers to enable correct irq register
info to be retrieved in driver.
CRs-Fixed: 3198089
Change-Id: If963ed4295c902651d3d62158cc6c0546cd8e470
Signed-off-by: Mukund Madhusudan Atre <quic_matre@quicinc.com>
While printing the resource name in path irq handler, RDI resource
is pointing to TOP Irq index. This prints the wrong IRQ tag.
This commit fixed the issue by assinging correct IRQ index to RDI
resource.
CRs-Fixed: 3197257
Change-Id: I25db915ff427838ae429a86a698424314c3264f6
Signed-off-by: Gaurav Jindal <quic_gjindal@quicinc.com>
This commit adds debugfs mask(Bit 30) to print SFE Cache
information. This helps to check the SCID settings on SFE
bus read and write master.
Change-Id: I75355bbc167763a09442114f43b23dd1b82e0960
CRs-Fixed: 3197257
Signed-off-by: Gaurav Jindal <quic_gjindal@quicinc.com>
Correct log of applied req id in case the highest pd dev ranks last in
send sequence.
CRs-Fixed: 3198237
Change-Id: I5b12828e4dbf03c01b0b06bbcd21f384b7373333
Signed-off-by: Stark Lin <quic_starlin@quicinc.com>
camera-kernel:
7702c8f Merge "msm: camera: memmgr: Avoid TOCTOU buffer access during multiple use of same fd" into camera-kernel.lnx.dev
56c738e Merge "msm: camera: sensor: Fix the sensor code for missing symbol" into camera-kernel.lnx.dev
Change-Id: I79b3a6dd994050a49a978abb7e881ba2f8b5bc3e
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
Fd is a user-accessible value, referring it multiple times
leads to TOCTOU issues. Dma_buf can be freed after the 1st
use of fd and userspace can create another dma_buf but with
same fd. In such scenario, during 2nd use of fd, we may get
a different dma_buf with different length. To avoid this, we
can use same dma_buf instead of retrieving it twice using same
fd. In this change FD is accessed only once in syscall.
CRs-Fixed: 3159446
Change-Id: I00eb6dd3d798165f5c6c0bd59feabe80a68592b1
Signed-off-by: Yash Upadhyay <quic_yupadhya@quicinc.com>
Fix the sensor code failure for i3cdev_to_dev API
which is missing the symbol in the kernel allow list.
CRs-Fixed: 3200508
Change-Id: I2ffc28d20e5e0e1e454e187299f61c983801d05c
Signed-off-by: Jigar Agrawal <quic_jigar@quicinc.com>
Signed-off-by: Wasim Khan <quic_wasikhan@quicinc.com>
Fix the sensor code failure for i3cdev_to_dev API
which is missing the symbol in the kernel allow list.
CRs-Fixed: 3200508
Change-Id: I99f1ae98e322ae4116cccb9cc7ba42fcc7b8a89a
Signed-off-by: Jigar Agrawal <quic_jigar@quicinc.com>
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
Signed-off-by: Abhijit Trivedi <quic_abhijitt@quicinc.com>
This change adds supoort for variable fps feature, this
feature needs to stream off the sensor at EOF. So, this
change sends an EOF event to sensor to do the streamimg
off. Since sensor only outputs one frame every round, so
we need to apply the IFE packet to HW immediately, then
the every frame will be valid frame.
CRs-Fixed: 3178221
Change-Id: Ifc57987aac11c9655edd979734e5568c19262571
Signed-off-by: Wang Kan <quic_wkan@quicinc.com>
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
Default clock rate is hardcoded to 400 MHZ.
This change will fill svs clock level from dtsi dynamically.
CRs-Fixed: 3189984
Change-Id: I3ef5a0d119bc4ff97f72aa0389e83b540307993d
Signed-off-by: Chandan Kumar Jha <quic_cjha@quicinc.com>
When a page fault is encountered by IFE/SFE, as a side affect
a bus overflow is also seen, which results in CSID overflow.
In this change, CSID driver registers a callback with CPAS,
and on camnoc slave error irq notification CSID will
skip processing the overflow. This will avoid resetting
the SFE/IFE pipeline and all necessary logs for PF debug
will be available. With this change kernel will post only
one error event to userland for PF as opposed to two
for PF and bus overflow.
CRs-Fixed: 3175797
Change-Id: I9789314452075e2b943cf08b19002a645eafb16b
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
Add i3c bus support for qup i3c based
I3C target.
CRs-Fixed: 3169593
Change-Id: I0209f799d800daf9afe7a846310a3d4f4f2ee420
Signed-off-by: Jigarkumar Zala <quic_jzala@quicinc.com>
Signed-off-by: Jigar Agrawal <quic_jigar@quicinc.com>
Check IRQ status on hang detection; if the inline IRQ
is set then the cdm has triggered IRQ but there is a
workqueue scheduling delay which is causing the cdm
config timeout. To prevent the timeout due to
scheduling check the work record and irq status.
Change-Id: Id3d224d6393b69638b27c82ebf0933a6a3dce231
CRs-Fixed: 3163828
Signed-off-by: Shardul Bankar <quic_sharbank@quicinc.com>
Add debugfs to invoke kernel panic on Page Fault for specified
context bank index upon encountering Page Fault on non-fatal
property.
CRs-Fixed: 3190298
Change-Id: I0b68d70ec893c93d1ba0df4ee6b6484fba8e31d1
Signed-off-by: Sokchetra Eung <quic_eung@quicinc.com>
Fix syntactical errors that resulted in failed compilation
for TFE and OPE.
CRs-Fixed: 3179075
Change-Id: Iec4dc104160651fb46b18be17a556356dce3b3c0
Signed-off-by: Sokchetra Eung <quic_eung@quicinc.com>