Commit Graph

2422 Commits

Author SHA1 Message Date
Karthik Anantha Ram
561dbfc61d msm: camera: isp: Increase number of configs per request
For IFE only use-cases bump up the max number of configs
from 25 to 30, to support dual IFE requirements on Kailua.

CRs-Fixed: 3163468
Change-Id: Iffa5735fba3f8271b47ad368437b9174244ef889
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2022-04-05 21:37:22 -07:00
Chandan Kumar Jha
fcc220e1c2 msm: camera: isp: Add check to prevent duplicate ack increment
Due to the scheduling delay, We are seeing back to back
two top half for buff done for 2 different requests
but we were expecting the bottom half after 1st top half.

We update the last consumed address in the bottom half so
we have 2nd req buffer address in last consumed reg as
we received 2nd req top half before 1st req bottom half.

We increment num_ack variable of 2nd request in case
of 1st req buff-done as it had 2nd buffer address in
last consumed address.

Ack is going beyond during the 2nd req buff-done.

This check will prevent duplicate acknowledgment increment.

CRs-Fixed: 3165255
Change-Id: I9ea3bca2a782bae6017565f30162484adf2fc789
Signed-off-by: Chandan Kumar Jha <quic_cjha@quicinc.com>
2022-04-05 21:37:01 -07:00
Rishab Garg
5a75aa8dea msm: camera: sensor: Dynamically vote for tpg src clock
Select the clock corner of tpg source clock based on the input clock
received in the globalconfig command.

CRs-Fixed: 3164948
Change-Id: Ib945e0f82790d3a33ac5028850ef55a806c84784
Signed-off-by: Rishab Garg <quic_rishabg@quicinc.com>
2022-04-05 21:36:47 -07:00
Tejas Prajapati
33b64709fd msm: camera: isp: Add eof notification for rdi only context
For RDI only context EOF is not notified; it should be
notified, for the corner case if the flash is
configured to apply at EOF then it will block apply for
ISP on SOF as well until the EOF is notified, this
change adds EOF notification.

CRs-Fixed: 3091241
Change-Id: If6d974d092d640d9def89bbcf7a88fba0d85579b
Signed-off-by: Tejas Prajapati <quic_tpraja@quicinc.com>
2022-04-05 21:36:23 -07:00
Savita Patted
3eade02a0d Snap for drop 03/31/2022 mainline 751 LA.VENDOR.13.2.0.AU173
camera-kernel:
71e118f Merge "msm: camera: csiphy: Add support for SM8650" into camera-kernel.lnx.dev
3669f21 Merge "msm: camera: csiphy: Add support for multiple AON Cameras" into camera-kernel.lnx.dev
989d5ff Merge "msm: camera: cdm: Remove Kernel Internal Buffer for Gen IRQ" into camera-kernel.lnx.dev

Change-Id: I99fdc36124335a26c7badfbd0bb74ac405ab355c
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-03-31 18:36:12 -07:00
Jigar Agrawal
3c8d5b58ea msm: camera: cdm: Remove Kernel Internal Buffer for Gen IRQ
Currently we allocate the memory for CDM GENIRQ command
within the Kernel on every stream on. Presil framework
do not have an ability to transfer the kernel only buffers
to the user daemon. For that reason we need to add support
to use the user allocated command buffer instead of the
kernel generated memory to add the GenIRQ cdm command
while submitting BLs. This change also helps to reduce
the stream on and stream off latency by not having to
allocate and free the GENIRQ memory on every stream on and
stream off respectively.

CRs-Fixed: 3115399
Change-Id: Ic159efd56fb9c4480ed1eb25cf2c058cbb914332
Signed-off-by: Jigar Agrawal <quic_jigar@quicinc.com>
2022-03-31 17:36:35 -07:00
Jigar Agrawal
4767d2ccb1 msm: camera: csiphy: Add support for SM8650
Add bring up sequence header and driver support
for SM8650.

CRs-Fixed: 3149299
Change-Id: I072f3dd57f99c1625f58e90711e6908e6e97efe9
Signed-off-by: Jigar Agrawal <quic_jigar@quicinc.com>
2022-03-31 17:36:26 -07:00
Jigar Agrawal
f8d9ddc7a4 msm: camera: csiphy: Add support for multiple AON Cameras
Add support for more than one AON cameras for SM8650 target.

CRs-Fixed: 3149294
Change-Id: I842317ab59812109785a026fd0f728baf837b27f
Signed-off-by: Jigar Agrawal <quic_jigar@quicinc.com>
2022-03-31 17:36:11 -07:00
Savita Patted
e994f3799b Snap for drop 03/30/2022 mainline 750 LA.VENDOR.13.2.0.AU173
camera-kernel:
91ae823 Merge "msm: camera: cdm: CDM page fault handling improvement" into camera-kernel.lnx.dev

Change-Id: I3443f9bfc652080eded4e2f2c97b7fe293a00809
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-03-30 17:36:10 -07:00
sokchetra eung
4ae959b7b8 msm: camera: cdm: CDM page fault handling improvement
Modify sequence of CDM page fault handling to include pausing
cdm, setting global CDM PF bit, and streaming off all clients.
It also reduces PF handling latency by omitting CDM HW reset when
calling CDM stream off. While handling page fault, the faulted CDM
hw would not service all APIs to clients (except release) until all
clients release the CDM.

CRs-Fixed: 3156647
Change-Id: I3532bf68ba59800b2084dee252d7fd0807e0c68a
Signed-off-by: sokchetra eung <quic_eung@quicinc.com>
2022-03-30 16:06:31 -07:00
Savita Patted
d4e63cea46 Snap for drop 03/29/2022 mainline 748 & 749 LA.VENDOR.13.2.0.AU173
camera-kernel:
ec283f3 Merge "msm: camera: uapi: Modify PF event Macros" into camera-kernel.lnx.dev

Change-Id: I241fddaf42bd08361e2bbc1795dca865aa4d49de
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-03-29 15:36:21 -07:00
sokchetra eung
d74e00016b msm: camera: uapi: Modify PF event Macros
Split the buffer CDM_SHARED Page Fault event macro in UAPI
into two - CDM Page Fault event and Shared Page Fault
event macros.

CRs-Fixed: 3156671
Change-Id: I450e270c4f0421d0ed3c5fe30458e3052594b236
Signed-off-by: sokchetra eung <quic_eung@quicinc.com>
2022-03-29 10:06:15 -07:00
Savita Patted
2b0f17ff7a CAMX: Snap for drop 03/24/2022 mainline 747 LA.VENDOR.13.2.0.AU167
camera-kernel:
895bfca Merge "msm: camera: sensor: Fix cci core error log" into camera-kernel.lnx.dev
d16b9c4 Merge "msm: camera: isp: Fix data type issue for rdi lcr value" into camera-kernel.lnx.dev
4b43606 Merge "msm: camera: common: LDAR Dump Changes/Fixes" into camera-kernel.lnx.dev

Change-Id: I804a1b7d17e8963f34fcddbaf777cd85fcd88148
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-03-24 19:06:12 -07:00
Joshua Florez
6d780a38e4 msm: camera: sensor: Fix cci core error log
Fix error log in cci core so arguments match formatter.

CRs-Fixed: 3127448
Change-Id: I0af1121349868fc9b543a48d95429d267ab2cf26
Signed-off-by: Joshua Florez <quic_jflorez@quicinc.com>
2022-03-24 18:36:39 -07:00
Gaurav Jindal
22f3cd5269 msm: camera: isp: Fix data type issue for rdi lcr value
RDI LCR variable is defined as bool in place of uint32_t causing
corruption of value.
This commit fixes this issue.

CRs-Fixed: 3153295
Change-Id: Ibbdd6617b4f738a6e047938e51d5bd613749854b
Signed-off-by: Gaurav Jindal <quic_gjindal@quicinc.com>
2022-03-24 18:36:27 -07:00
Joshua Florez
b31c24849c msm: camera: common: LDAR Dump Changes/Fixes
Separated ISP register dump from LDAR dump, fixed issue where LDAR dump
would fail if no active requests found, removed excessive logging function
call in ISP state monitor dump, fixed pending request/applied request dump
order to match tags in context utils, added more info from ISP stream.

CRs-Fixed: 3142549
Change-Id: Iaf25c0313714b5a776e3db81c11e96c7762d0f6e
Signed-off-by: Joshua Florez <quic_jflorez@quicinc.com>
2022-03-24 18:36:12 -07:00
Savita Patted
8ffcfa5c72 Snap for drop 03/24/2022 mainline 746 LA.VENDOR.13.2.0.AU167
camera-kernel:
a20f971 Merge "msm: camera: common: Add camera error injection utility" into camera-kernel.lnx.dev

Change-Id: Ica260b22bb0b0af33d230d857d44e3350e6138b9
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-03-24 14:36:10 -07:00
Pranav Sanwal
1220255b08 msm: camera: common: Add camera error injection utility
Add and implement sysfs parameters to inject errors to
camera HW on demand through UMD for IFE,ICP and JPEG.

CRs-Fixed: 3115857
Change-Id: I4376fe31016cd81ad7e6f04cbc55e8ce010a6154
Signed-off-by: Pranav Sanwal <quic_psanwal@quicinc.com>
2022-03-24 12:36:48 -07:00
Savita Patted
b997a29613 CAMX: Snap for drop 03/15/2022 mainline 740 LA.VENDOR.1.0.AU457
camera-kernel:
eac7eca msm: camera: isp: Update correct ife src for sfe context type
9eb726b msm: camera: isp: Skip writing reset values to drop registers

Change-Id: I0e8174e4a3fb9b5eb491583b9b60591a5722813e
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-03-16 01:06:09 -07:00
Mukund Madhusudan Atre
54590ba210 msm: camera: isp: Update correct ife src for sfe context type
Currently, for sfe cases, we are searching for ife src corresponding
to ife rdi out resource, which is bound to fail. Add sfe rdi out
resources to map to ife src resource, which can be used in vfe top
to configure pdaf input config.

CRs-Fixed: 3149309
Change-Id: I51ca142bfa4a17ce10a18ce764799f46e029c347
Signed-off-by: Mukund Madhusudan Atre <quic_matre@quicinc.com>
2022-03-15 19:36:22 -07:00
Mukund Madhusudan Atre
e40a90dd4c msm: camera: isp: Skip writing reset values to drop registers
Currently, we are writing reset values to frame/line/pxl drop
pattern and period registers at stream on, which is not required.
Also, this can overwrite any init config that user space might be
programming. Skip writing these registers in csid.

CRs-Fixed: 3144774
Change-Id: Iea253345467e12c068ab2c938ca8aadc591997ce
Signed-off-by: Mukund Madhusudan Atre <quic_matre@quicinc.com>
2022-03-15 19:36:10 -07:00
Savita Patted
6d73f2184d Snap for drop 03/04/2022 mainline 734 LA.VENDOR.1.0.AU457
camera-kernel:
347ef9a Merge "msm: camera: icp: CRE and OPE voting fixes" into camera-kernel.lnx.dev

Change-Id: I8a03d4e2d454f82aeea603f04851080fd1f54a88
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-03-04 16:36:09 -08:00
Ayush Kumar
a5afa0b63a msm: camera: icp: CRE and OPE voting fixes
- Added Voting Option for APP Port send from UMD.
- Adding Path type and transaction type for CRE.

CRs-Fixed: 3081144
Change-Id: Id5e8eb8d41cc2354d76f9dbbad8dfb3e09cf66a3
Signed-off-by: Alok Pandey <quic_akumarpa@quicinc.com>
Signed-off-by: Ayush Kumar <quic_ayushkr@quicinc.com>
2022-03-04 16:06:12 -08:00
Savita Patted
81b17b4ad2 Snap for drop 03/03/2022 mainline 733 LA.VENDOR.1.0.AU457
45d5b04 Merge "msm: camera: ife: use universal qtime-to-boottime offset for all cams" into camera-kernel.lnx.dev
9a1735e Merge "msm: camera: isp: Don't move substate to SOF" into camera-kernel.lnx.dev
f1057f7 Merge "msm: camera: isp: Update scratch buffer scheme for IFE/SFE" into camera-kernel.lnx.dev
6fc63b2 Merge "msm: camera: smmu: Fix misunderstanding buffer handle in smmu log" into camera-kernel.lnx.dev

Change-Id: I0cdb84efa110b3b82f95424c2af48c78afcd020a
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-03-03 17:37:43 -08:00
Li Sha Lim
d30d360635 msm: camera: ife: use universal qtime-to-boottime offset for all cams
Modify IFE timestamp calculation to use a single qtime-to-boottime offset
value for all cameras. This will allow more precise timestamp comparison
between cameras.

CRs-Fixed: 3050973
Change-Id: Ic16864f544ad88e0215ae4d05a077d874af78fe9
Signed-off-by: Li Sha Lim <quic_lishlim@quicinc.com>
2022-03-03 17:06:41 -08:00
Karthik Anantha Ram
b9aae5eaa6 msm: camera: isp: Update scratch buffer scheme for IFE/SFE
For ePCR/PCRs allow different combinations of scratch buffer
and ZSL buffer to be applied for different SFE/IFE ports.

CRs-Fixed: 3110947
Change-Id: I11677deaaa820955a2bc408bf90a848660ab831a
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2022-03-03 17:06:34 -08:00
Depeng Shao
05c1bc0f18 msm: camera: isp: Don't move substate to SOF
In RDI only usecase, if we get RUP and buf done
late, then we will enter bubble substate. In
current logic, we will move to SOF substate if
we get SOF in bubble substate, it causes the
buf done of bubble req can't be received. Since
we don't have valid interface for buf done in
SOF substate.
This changes don't move substate to SOF if we
are processing bubble.

CRs-Fixed: 3126554
Change-Id: I955173f12b5c1f5a699fa102e1ca6c82913c86e4
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
2022-03-03 17:06:25 -08:00
zhuo
8f2d538d47 msm: camera: smmu: Fix misunderstanding buffer handle in smmu log
When smmu page fault happen, buffer handle in smmu log
is always not identified due to using the index defined
in smmu. The index is smmu client index, buffer handle
should use the index defined in memory.

CRs-Fixed: 3096436
Change-Id: I69e5014c88ec507e31c6394564fb1990f5ae2d25
Signed-off-by: zhuo <quic_zhuo@quicinc.com>
2022-03-03 17:06:13 -08:00
Karthik Anantha Ram
f0d04ce780 msm: camera: isp: Fix the width calculation for WM packing
On CSID unpack and WM pack, align the sensor width to 8,
when WM packs the data when writing to DDR.

CRs-Fixed: 3140614
Change-Id: Ie994cbe45b5b87c8a50a4ae2a9929dee6a31860e
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2022-03-03 14:31:39 -08:00
Vikram Sharma
8a16e39373 msm: camera: ope: Increase max bl limit and max stripe to process
Increase “OPE_MAX_CDM_BLS” to 32 from 24 and MAX_STRIPES to
64 from 48.

CRs-Fixed: 3082993
Change-Id: I9e3631cc86c5e10e4e2020d4a9b2264ea282e437
Signed-off-by: Vikram Sharma <quic_vikramsa@quicinc.com>
2022-03-03 14:31:39 -08:00
Stark Lin
5953bec5c2 msm: camera: sensor: Add support to write sensor registers in probe
Few sensors needs to unlock register bank for reading
sensor ID from sensor register for probe. And this change
adds support to write sensor registers in probe cmd just
after power on and before reading the sensor ID.

CRs-Fixed: 3111822
Change-Id: Iee2e6bd0ba896a0a2d0c4cc23fe272ba4aae3ab2
Signed-off-by: Stark Lin <quic_starlin@quicinc.com>
2022-03-03 14:31:39 -08:00
Nirmal Abraham
d57da841d6 msm: camera: reqmgr: Avoid freeing subdev twice
The 'l_device' pointer in __cam_req_mgr_destroy_subdev is
set to NULL after freeing but this is done on a
local copy of the variable in stack. This results in
double-free when this function is called again. To avoid
this, pass 'l_device' pointer by reference and assign it
to NULL after freeing.

CRs-Fixed: 3120468
Change-Id: If2dde6f1c702bee26a3c8a68c2f45bafbf0f7cd6
Signed-off-by: Nirmal Abraham <quic_c_nabrah@quicinc.com>
2022-03-03 14:31:39 -08:00
Depeng Shao
4b560cae54 msm: camera: sensor: Don't print CCI error log during probing
Since the CCI error isn't fatal error during probing sensor,
so we can just print an info log for the CCI error.

CRs-Fixed: 3118450
Change-Id: Ie980c9eb37e410b07c434a7a304ab1c18925319b
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
2022-03-03 14:31:39 -08:00
chengxue
c733f90dd6 msm: camera: uapi: Add message type for kmd internal recovery
When KMD faces overflow errors, it will try internal recovery
first, every time KMD do internal recovery, it notifies to UMD
to do according process.

CRs-Fixed: 3131351
Change-Id: I06e7dc3c258b12fc2865d3383280a456b42c2163
Signed-off-by: chengxue <quic_chengxue@quicinc.com>
2022-03-03 14:31:39 -08:00
Suraj Dongre
9a9c865019 msm: camera: common: hfi presil api change for eva
Added client id param to presil hfi apis.

CRs-Fixed: 2932495
Change-Id: Ibd7d97a882e27782de902ee133faaa422a66e4cd
Signed-off-by: Suraj Dongre <quic_sdongre@quicinc.com>
2022-03-03 14:31:39 -08:00
Savita Patted
a260b82c1b Snap for drop 02/28/2022 mainline 730 LA.VENDOR.1.0.AU457
16eed9a Merge "msm: camera: icp: Fix HFI error logging" into camera-kernel.lnx.dev
a2fbd90 Merge "msm: camera: common: Add support to update auxiliary settings" into camera-kernel.lnx.dev
678323b Merge "msm: camera: reqmgr: Validate the link handle" into camera-kernel.lnx.dev

Change-Id: I276b2cd1cc1b04a8336a331dbf2d68368b9135e2
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-03-03 14:31:38 -08:00
Li Sha Lim
477dbfc187 msm: camera: icp: Fix HFI error logging
This fix addresses the current problem of ICP communicating through HFI
prior to HFI being set up.

CRs-Fixed: 3130279
Change-Id: I306b6dd85eb08b7c5c6f49f9f2aad05a42b394bc
Signed-off-by: Li Sha Lim <quic_lishlim@quicinc.com>
2022-03-03 14:27:11 -08:00
Jigar Agrawal
cebdc84875 msm: camera: common: Add support to update auxiliary settings
On CSID encountering a fatal rx error, notify phy to update it's
aux settings for the given data rate when it streams on the
next time. The phy device will book keep all the data
rates that need updated aux settings and on all the
occasions they are streamed on the updated aux settings will
be configured. This is supported for all data rates
from 1.2 - 2.35 GSpS. The change also adds a debugfs in phy driver
to disable aux settings update altogether.

CRs-Fixed: 3120043
Change-Id: Ia1ea3b9278c2eb918a527ee3d7b1ecfe53c4f2c2
Signed-off-by: Jigar Agrawal <quic_jigar@quicinc.com>
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2022-03-03 14:26:54 -08:00
Yash Upadhyay
6c2f7f959f msm: camera: reqmgr: Validate the link handle
Instead of correct link handle, if some other handle like
dev handle is passed then it may access some other data space.
To avoid such scenario, need to check whether link handle
passed by ioctl is same as retrieved link handle.

CRs-Fixed: 3120454
Change-Id: Idff2e3c25b60563788ffb426c7cabc367c3c97f8
Signed-off-by: Yash Upadhyay <quic_yupadhya@quicinc.com>
2022-03-03 14:26:33 -08:00
Savita Patted
be8df059d5 Snap for drop 02/24/2022 mainline 728 LA.VENDOR.1.0.AU457
camera-kernel:
e8caeb0 Merge "msm: camera: tpg: call soc disable resources in shutdown" into camera-kernel.lnx.dev
498d578 Merge "msm: camera: uapi: Add message type for kmd internal recovery" into camera-kernel.lnx.dev
9c9cc65 Merge "msm: camera: common: hfi presil api change for eva" into camera-kernel.lnx.dev
678a2b1 Merge "msm: camera: common: Fix the CPAS Calls" into camera-kernel.lnx.dev
4a990f8 Merge "msm: camera: common: Reinstate API to check memory types" into camera-kernel.lnx.dev
f667556 Merge "msm: camera: cpas: Enable icp clk for qchannel handshake" into camera-kernel.lnx.dev
90145d6 Merge "msm: camera: sensor: Don't print CCI error log during probing" into camera-kernel.lnx.dev

Change-Id: Ib0c9e45eaa6737ab018c854c4802eac903b5f841
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-03-03 14:25:28 -08:00
wasikhan
ba5572d0c7 msm: camera: common: Reinstate API to check memory types
Add back in check for ddr memory type to distinguish between DDR4/5
memory types.

CRs-fixed: 3136181
Change-Id: Ia152cde2786bf6e3da172d2b7046f9871d4f8e3c
Signed-off-by: Karthik Jayakumar <quic_kjayakum@quicinc.com>
Signed-off-by: Wasim Khan <quic_wasikhan@quicinc.com>
2022-02-25 14:33:38 -08:00
Jigar Agrawal
eb511bb3f5 msm: camera: common: Fix the CPAS Calls
Fix the CPAS Start and CPAS stop call sequence
for the Sensor power up. Also, only start and stop
the CPAS when we really want to write to the
AON-Main Camera Mux register.

CRs-Fixed: 3134267
Change-Id: If73ddc838d59a71f0e6cd21d390c7e603c42b2d6
Signed-off-by: Jigar Agrawal <quic_jigar@quicinc.com>
2022-02-24 22:33:13 -08:00
Pavan Kumar Chilamkurthi
83b1ffe863 msm: camera: tpg: call soc disable resources in shutdown
Without this, tpg is keeping refCount on titan top gdsc and
thus causing qchannel handshake side effects.
Sequence:
1. TPG calls cpas_start, increments refCount on gdsc with
   soc_enable_resources
2. run usecase
3. TPG missing disable_soc_resource
4. TPG calling cpas_stop : which shuts down qchannel
5. When next iteration starts, because gdsc is still on from
   previous session, cpas top is not getting reset state
   registers - thus keeping qchannel still in shut down state.
   qchannel goes to good state if gdsc is actually turned off
   and then turned on.

CRs-Fixed: 3131613
Change-Id: Iacb837f7ee3fd7d6b094d0271d0f2d9c15f0b306
Signed-off-by: Pavan Kumar Chilamkurthi <quic_pchilamk@quicinc.com>
2022-02-24 22:33:13 -08:00
Pavan Kumar Chilamkurthi
a32a315e54 msm: camera: cpas: Enable icp clk for qchannel handshake
For some chipsets, qchannel handshake needs icp clk to be
enabled. Add support to enable icp clk while qchannel
handshake by adding as optional clk in cpas node. Whether
to enable icp clk or not is controlled through workaround
list populated for each chipset.
Add mechanism to retry qchannel acceptance if the first
auto try has failed, by explicity writing 0x1 to qchannel
ctrl register. This will bring back qchannel to good state.

CRs-Fixed: 3131613
Change-Id: Ie39a9789b2eb1bf9c0f6adb26fe6d6e1823eff70
Signed-off-by: Pavan Kumar Chilamkurthi <quic_pchilamk@quicinc.com>
2022-02-24 22:33:13 -08:00
Savita Patted
c885a64448 Snap for drop 02/22/2022 mainline 726 & 725 LA.VENDOR.1.0.AU457
camera-kernel:
9adaf4c Merge "msm: camera: memmgr: avoid race condition by checking bitmap" into camera-kernel.lnx.dev
2f692c2 Merge "msm: camera: cdm: Add CDM Dump Functionality" into camera-kernel.lnx.dev

Change-Id: I0b3955b3ff23142a38478d12f044b5d8a24d0e34
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-02-22 20:06:14 -08:00
Jigar Agrawal
3e365bafda msm: camera: cdm: Add CDM Dump Functionality
Add CDM core registers dump functionality for
the scenariors where the cdm reset timesout and
the workqueue is delayed.

CRs-Fixed: 3130212
Change-Id: Ib79bb24164c77082eacfbecd14795b726bb14201
Signed-off-by: Jigar Agrawal <quic_jigar@quicinc.com>
2022-02-22 18:10:39 -08:00
Tejas Prajapati
bf3419cc94 msm: camera: memmgr: avoid race condition by checking bitmap
bufq mutex can be destroyed at unmap, if other thread
is trying to lock the bufq mutex it can result in
bad magic number. To avoid such race condition
check bitmap with protection of global mutex lock.

CRs-Fixed: 3120472
Change-Id: Id95be0faa5b0d921c4a0370ea5d2f3b23c229280
Signed-off-by: Tejas Prajapati <quic_tpraja@quicinc.com>
2022-02-22 18:06:26 -08:00
Savita Patted
67ea3bc2bb Snap for drop 02/17/2022 mainline 724 LA.VENDOR.1.0.AU457
camera-kernel:
f2af702 Merge "msm: camera: common: Report fence causes and ICP fatal errors" into camera-kernel.lnx.dev
a41746f Merge "msm: camera: common: Dynamically allocated flush request array" into camera-kernel.lnx.dev

Change-Id: I15f3a09f314d3817a703876e450c6283dfbccf02
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-02-18 13:37:23 -08:00
sokchetra eung
1a01a14003 msm: camera: common: Report fence causes and ICP fatal errors
Add support to report causes of fence errors for ICP and IFE.
The change also reports ICP critical failures like WD bark
and system error to userspace.

CRs-Fixed: 3035452
Change-Id: I699621ae71e0f8902cb7b9d42203effd2e2e40de
Signed-off-by: sokchetra eung <quic_eung@quicinc.com>
2022-02-18 13:36:36 -08:00
sokchetra eung
fb6888d8bb msm: camera: common: Dynamically allocated flush request array
Change flush request active and flush request pending arrays from
static of size 20 to dynamically allocated size based on current
pending and active request lists.

CRs-Fixed: 3046003
Change-Id: Iaa1179881d786359dbe9d37411a6ef3ae8038227
Signed-off-by: sokchetra eung <quic_eung@quicinc.com>
2022-02-18 13:36:17 -08:00