提交图

2645 次代码提交

作者 SHA1 备注 提交日期
chengxue
ca6e872b2f msm: camera: isp: Flag acquired rdi res for all RDIs acquire
For SFE enabled usecase, if the RDI0 is an input image stream
for SFE IPP,  we doesn't flag the global value acquired rdi res,
if PDAF stream is enabled, the RDI0 will be acquired again, and
reserve another CSID set, and the stream on fail.

CRs-Fixed: 3288480
Change-Id: I2a6b2363c5cc6bff27736e6848686781cba3f560
Signed-off-by: chengxue <quic_chengxue@quicinc.com>
2022-09-16 16:36:12 -07:00
Haritha Chintalapati
eb10937da2 Snap for drop 09/15/2022 mainline 841 LA.VENDOR.13.2.0.AU335
camera-kernel:
4c99d42 Merge "msm: camera: cpas: Correct offsets for camnoc V880" into camera-kernel.lnx.dev
ae3059c Merge "msm: camera: isp: Update register offset for VFELITE-880" into camera-kernel.lnx.dev
c1babe2 Merge "msm: camera: cpas: Smart QoS parameters upgrade" into camera-kernel.lnx.dev
0ce5103 Merge "msm: camera: common: Update headers for new target" into camera-kernel.lnx.dev
e7178f8 Merge "msm: camera: common: Import dma-buf heap name space" into camera-kernel.lnx.dev.

Change-Id: Iba8d6727e28d470345ba9dcd09c54ffe47452886
Signed-off-by: Haritha Chintalapati <quic_hchintal@quicinc.com>
2022-09-15 18:06:08 -07:00
zhuo
423fcc2859 msm: camera: cpas: Correct offsets for camnoc V880
Correct qosgen shaping low register offset for NOC NRT 3.

CRs-Fixed: 3272686
Change-Id: Ia16455df60b4ef76a1f53bb61cbbc66bc203aa24
Signed-off-by: zhuo <quic_zhuo@quicinc.com>
2022-09-15 16:36:55 -07:00
Mukund Madhusudan Atre
434b591240 msm: camera: common: Update headers for new target
Some definitions need to be updated based on device tree
configuration for new target. Add appropriate changes to
support it.

CRs-Fixed: 3244380
Change-Id: I919facfe319ca56477e594b782dcd2ad659cb193
Signed-off-by: Mukund Madhusudan Atre <quic_matre@quicinc.com>
2022-09-15 16:36:48 -07:00
chengxue
666c7b9cd7 msm: camera: cpas: Smart QoS parameters upgrade
Add tuning parameters for smart QoS parameter upgrade.

CRs-Fixed: 3248165
Change-Id: I3cb4de370310923abca7ad3d5cb05cacb11bd03f
Signed-off-by: chengxue <quic_chengxue@quicinc.com>
2022-09-15 16:36:42 -07:00
zhuo
88a8d26e57 msm: camera: isp: Update register offset for VFELITE-880
Update register offset for VFE-Lite 880.
Discarding csid secure register offset which is beginning
of reg space and not accesable from HLOS.

CRs-Fixed: 3263421
Change-Id: Ib10a9b54057f262a92612e3a53bc29dd8afb5fe3
Signed-off-by: zhuo <quic_zhuo@quicinc.com>
2022-09-15 16:36:21 -07:00
zhuo
345cf9f62c msm: camera: common: Import dma-buf heap name space
Due to dma-buf symbols into the dma_buf module namespace,
when use them, need to import dma-buf name space.

CRs-Fixed: 3245719
Change-Id: I57bb808c675105bf567f7a628fb88c3259512721
Signed-off-by: zhuo <quic_zhuo@quicinc.com>
2022-09-15 16:36:14 -07:00
Haritha Chintalapati
984c6208d6 Snap for drop 09/13/2022 mainline 840 LA.VENDOR.13.2.0.AU335
camera-kernel:
d3138bc msm: camera: sync: Avoid use after free.

Change-Id: I3141a4a0609df3a7e16ae61c4e796d7161c0fab1
Signed-off-by: Haritha Chintalapati <quic_hchintal@quicinc.com>
2022-09-13 16:07:59 -07:00
Karthik Anantha Ram
167437bdeb msm: camera: sync: Avoid use after free
There is a narrow window, in which the critical section is
not fully protected which possibly could lead to use after free.
To avoid this, hold the row lock and validate the state prior
to processing the dma fence.

CRs-Fixed: 3273450
Change-Id: Ib1f09e62a5060a38b5cd8f3d4594bce2e533b3d3
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2022-09-13 16:07:33 -07:00
Haritha Chintalapati
53d149b019 Snap for drop 09/07/2022 mainline 836 LA.VENDOR.13.2.0.AU335
camera-kernel:
bf905db Merge "msm: camera: common: Add camera banner" into camera-kernel.lnx.dev.

Change-Id: If36a38109db4705647b78ee3fd180f9519b89b12
Signed-off-by: Haritha Chintalapati <quic_hchintal@quicinc.com>
2022-09-07 15:06:06 -07:00
Trishansh Bhardwaj
58fab0efe0 msm: camera: common: Add camera banner
camera_banner contains compilation timestamp, which can be used
to find mismatch between ramdump and symbols.

CRs-Fixed: 3261129
Change-Id: I021f6f9417b227d07a4424f7522e27c8535b0363
Signed-off-by: Trishansh Bhardwaj <quic_tbhardwa@quicinc.com>
2022-09-07 14:36:08 -07:00
Haritha Chintalapati
28ef245c26 Snap for drop 09/01/2022 mainline 833 LA.VENDOR.13.2.0.AU329
camera-kernel:
1510140 msm: camera: isp: Disable RUP_AUP latch feature.

Change-Id: If4fb7d1d4deb51edd84f00bfab75226bcb69c16c
Signed-off-by: Haritha Chintalapati <quic_hchintal@quicinc.com>
2022-09-01 15:36:13 -07:00
Karthik Anantha Ram
f67c612c46 msm: camera: isp: Disable RUP_AUP latch feature
In HW, the rup_aup latching scheme is enabled for dynamic switch
use-cases. The feature is to handle delayed rup_aup programming
between CSID SOF and CAMIF SOF. On Kailua with this feature enabled
we seem to be encountering CCIF protocol violations on IPP/PPP paths.
Disabling the feature, for now. The issue this feature is trying
to address is SW programming in a narrow window of 4 CSID clock cycles,
which is really small in SW.

CRs-Fixed: 3247669
Change-Id: I7678174541e8dd6b533eb95922e0814035811258
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2022-09-01 15:06:18 -07:00
Haritha Chintalapati
c0d79704b8 Snap for drop 08/25/2022 mainline 828 LA.VENDOR.13.2.0.AU322
camera-kernel:
e293eea msm: camera: isp: Fix the potential issue caused by list operation.

Change-Id: Ic8e42fd852ff154ad8b0dbfaed1cb57e6d538d60
Signed-off-by: Haritha Chintalapati <quic_hchintal@quicinc.com>
2022-08-25 16:36:08 -07:00
mingpan
3131e4321b msm: camera: isp: Fix the potential issue caused by list operation
In function cam_ife_hw_mgr_acquire_res_ife_csid_pxl, if csid_res is added
to res_list_ife_csid, and if no_res_acquired is true, the csid_res will be
add to free_res_list without list delete operation, this will damage the
res_list_ife_csid.

CRs-Fixed: 3272891
Change-Id: Ic6ee6edeed8dce82fb7a2907daf5fa634cca8a7f
Signed-off-by: mingpan <quic_mingpan@quicinc.com>
2022-08-25 15:36:07 -07:00
Haritha Chintalapati
5de7a991f7 Snap for drop 08/18/2022 mainline 824 LA.VENDOR.13.2.0.AU315
camera-kernel:
fecbcff Merge "msm: camera: csiphy: Stop csiphy during shutdown" into camera-kernel.lnx.dev
93379dd Merge "msm: camera: sensor: Support backup sensor use different power voltage" into camera-kernel.lnx.dev.

Change-Id: I2330bff3455f102f8790e9aaa4d28bbd94cb45db
Signed-off-by: Haritha Chintalapati <quic_hchintal@quicinc.com>
2022-08-18 17:06:25 -07:00
Depeng Shao
57e37f63a5 msm: camera: csiphy: Stop csiphy during shutdown
Sometimes, userland may release the csiphy but doesn't
stop the csiphy, then the csiphy can't be stopped since
the state isn't in start state. We can't recovery to
normal state even shutdown the csiphy.
This change also checks the start count during shutdown
and stop the csiphy if the start count isn't zero. Then
we can make sure the state can be recovered after shutdown.

CRs-Fixed: 3261846
Change-Id: I5eef839e84125785e17c5f11f4118a8627b1fb63
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
2022-08-18 17:06:19 -07:00
chengxue
f95a41d2dd msm: camera: sensor: Support backup sensor use different power voltage
On customer side, the main and backup sensor who share a same
dtsi slot, may have different power voltage for VDIG/VIO/VANA
and so on, use sensor driver xml file power configValue on
powerUpSequence to enable regulator for both main and backup
sensor.

CRs-Fixed: 3254166
Change-Id: Ica54eb66ec9c5050aa3ee70f44fb6dfd3b7c4103
Signed-off-by: chengxue <quic_chengxue@quicinc.com>
2022-08-18 17:06:08 -07:00
Haritha Chintalapati
76bab613db Snap for drop 08/17/2022 mainline 823 LA.VENDOR.13.2.0.AU315.
Change-Id: I60d46c2af683e09812565628668d078154943c74
Signed-off-by: Haritha Chintalapati <quic_hchintal@quicinc.com>
2022-08-17 17:36:17 -07:00
Haritha Chintalapati
45193d3423 Snap for drop 08/16/2022 mainline 822 LA.VENDOR.13.2.0.AU315
camera-kernel:
ce813cf Merge "msm: camera: sensor: Fix side effect of adding generic blobs" into camera-kernel.lnx.dev
7480870 Merge "msm: camera: common: Add support to populate i3c slaves as platform device" into camera-kernel.lnx.dev.

Change-Id: I39a3f261912e09dd71a6734c57fd5aa6aca573ce
Signed-off-by: Haritha Chintalapati <quic_hchintal@quicinc.com>
2022-08-16 14:36:38 -07:00
Li Sha Lim
df0433e08e msm: camera: sensor: Fix side effect of adding generic blobs
When generic blobs are added to process debugging information
from userspace, these blobs are sent as separate packets
from the packets which carry actual configuration settings.

However, both are sent as the same packet opcode of
CAM_SENSOR_PACKET_OPCODE_SENSOR_CONFIG, where they differ is
a level below, within the meta_data type of the command buffer.

Further downstream after parsing the packets, packets with
config opcodes get applied. With this new change, we want to
add an exception for those sent as generic blobs. This change
introduces the fix for it.

CRs-Fixed: 3266290
Change-Id: Iee2ea186e594479d61dbe30dd1d0399352986028
Signed-off-by: Li Sha Lim <quic_lishlim@quicinc.com>
2022-08-16 14:36:29 -07:00
Mukund Madhusudan Atre
11d9f8afa7 msm: camera: common: Add support to populate i3c slaves as platform device
Currently, the mechanism to create platform device out of i3c slave DT
nodes is done through "simple-bus" compatibility string in camera DT. The
addition of this compatibility string in parent nodes is causing probes
to be fired for parent drivers when they don't expect it. Change this
mechanism and add support to do the same using of_platform_populate()
call for camera sensor module nodes under i3c master DT node.

CRs-Fixed: 3259550
Change-Id: I92523e7178ff78cdc783ca0b67b2dfbcebd0be61
Signed-off-by: Mukund Madhusudan Atre <quic_matre@quicinc.com>
2022-08-16 14:36:13 -07:00
Savita Patted
60fde6b63b Snap for drop 08/15/2022 mainline 821 LA.VENDOR.13.2.0.AU308
camera-kernel:
dec11d9 Merge "msm: camera: isp: Add domain-id support" into camera-kernel.lnx.dev

Change-Id: Idd57d22c9b9b68305d253042a5c75d7de7708489
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-08-15 16:36:08 -07:00
Li Sha Lim
e1ec8594f4 msm: camera: isp: Add domain-id support
This change adds domain-id support for new
targets. This change involves adding information
to the SCM call currently in use such that it is
a superset, and the additional fields needed are
the IFE and CDM number being used, and VC mask.
These are in addition to existing PHY mask selection,
and lane/trio mask selection.

All the information above will be sent over from CSID
to the PHY driver, and the PHY driver will pack the
information in a generic format before sending it
over in an SCM call. Where previously, this information
is packed in format that matches the register, this
will be sent generically moving forward.

Given that there are multiple instances per physical
PHY hardware, and that the usual dev_handle used by
userspace to identify them are not accessible CSID
side, the lane_assign/lane_cfg parameter is used to find
the specific PHY instance used in conjunction with the
CSID instance in a session. lane_assign from PHY driver
and lane_cfg from CSID have the same values.

CRs-Fixed: 3259706
Change-Id: Ie050b1b9e742c6a63812eb38db7eca76db24667f
Signed-off-by: Li Sha Lim <quic_lishlim@quicinc.com>
2022-08-15 15:36:12 -07:00
Savita Patted
5f64e7661b Snap for drop 08/12/2022 mainline 820 LA.VENDOR.13.2.0.AU308
camera-kernel:
7614eeb Merge "msm: camera: isp: Resume HW only when getting one valid req" into camera-kernel.lnx.dev

Change-Id: Ic908242e1b123d843f8aba65b4fe93bb1c4030f9
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-08-12 16:06:05 -07:00
Depeng Shao
48d9123083 msm: camera: isp: Resume HW only when getting one valid req
Variable fps usecase needs to get valid req with init packet
flag after flush, this change adds a flag to detect if we
get a valid req before resuming HW. This change also stops
the sensors during flush if useland already request to stop
dev.

CRs-Fixed: 3256139
Change-Id: Ieabd327a3b5cf380ca60548c85714c96635a272d
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
2022-08-12 15:06:07 -07:00
Savita Patted
0bf472ae71 Snap for drop 08/10/2022 mainline 818 LA.VENDOR.13.2.0.AU308
camera-kernel:
3970a75 Merge "msm: camera: isp: Update resume cmd to global" into camera-kernel.lnx.dev

Change-Id: Iac710f0ba6ca57f9767ba0135256f0630e61e8d9
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-08-10 19:36:11 -07:00
Karthik Anantha Ram
a7f96b41f0 msm: camera: isp: Update resume cmd to global
Starting from Kailua, for LCR-PD use-cases HW expects certain
timing constraints to be met by the 2 paths(RDI0/PPP).
On flush/resume scenarios where the sensor continues to stream, and
if we do an independent path resume it is possible that
due to intrinsic SW/AHB latencies the two paths might latch
at different times. In order to overcome such issues, we
enable sync between RDI0 & PPP, RDI0 being the master and issue
a global resume cmd. With global resume all paths will resume
at the same time, and with the sync enabled we are certain that
RDI0/PPP will be resumed in sync as well. This change configures
global resume for single IFE lcr use-cases.

CRs-Fixed: 3233582
Change-Id: I034b1a491afa951298e2cb63e6242dcbd499b19e
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2022-08-10 18:36:28 -07:00
Savita Patted
4e66069c97 Snap for drop 08/09/2022 mainline 816 & 817 LA.VENDOR.13.2.0.AU301
camera-kernel:
873c379 Merge "msm: camera: isp: Trigger reg dump for INIT packet" into camera-kernel.lnx.dev
da5e7b4 Merge "msm: camera: sensor: Store resolution info settings" into camera-kernel.lnx.dev
580f449 Merge "msm: camera: uapi: Add UAPI for new sensor cmd buffers" into camera-kernel.lnx.dev

Change-Id: If76ee9031d0e7a4f2f7c0267f30b373f7fe17ca0
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-08-10 01:36:32 -07:00
Li Sha Lim
4236eefe68 msm: camera: sensor: Store resolution info settings
Resolution index settings for a sensor can be set
in three ways, during initial configuration,
an acquire when switching between sensors during a
session, and dynamically while the sensor itself is
running. To aid debugging efforts, this information
about the resolution index, along with other helpful
properties, whenenever they're changed, is
passed over from UMD and stored in KMD.

CRs-Fixed: 3214150
Change-Id: I2a83177966a4ccecad0a9d19ec7d2ba11dc10d45
Signed-off-by: Li Sha Lim <quic_lishlim@quicinc.com>
2022-08-10 01:36:26 -07:00
Li Sha Lim
5cc52ef416 msm: camera: uapi: Add UAPI for new sensor cmd buffers
Adding generic blob type of cmd buffers to support
receiving debugging information from userspace.
This generic blob type can be extended to receive
additional debugging information in the future.

This change starts with support for sensor resolution
info setting changes.

CRs-Fixed: 3256097
Change-Id: I1c1416cedf238402338e0d236d18e3c4a4efcb13
Signed-off-by: Li Sha Lim <quic_lishlim@quicinc.com>
2022-08-10 01:36:19 -07:00
Karthik Anantha Ram
6bc9721515 msm: camera: isp: Trigger reg dump for INIT packet
Irrespective of kernel debugfs, if there is a regdump
buffer provided for INIT packet trigger the dump.

CRs-Fixed: 3258552
Change-Id: I96d79ff6956ad567e526524500bf37f83e23908b
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2022-08-10 01:36:11 -07:00
Savita Patted
8bb4b36b46 Snap for drop 08/04/2022 mainline 815 LA.VENDOR.13.2.0.AU301
camera-kernel:
ccb7847 Merge "msm: camera: isp: Handle CSID release sequence" into camera-kernel.lnx.dev
48ea000 Merge "msm: camera: isp: Correct offsets for SFE v780" into camera-kernel.lnx.dev
f9eb1fc Merge "msm: camera: reqmgr: Disconnect the link and sync link for the flushed req" into camera-kernel.lnx.dev

Change-Id: Ide64d261246153c28bc42ff570dc4b226cd17315
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-08-04 23:36:08 -07:00
Wang Kan
590833a650 msm: camera: reqmgr: Disconnect the link and sync link for the flushed req
When link A is flushed, its sync link B didn't do flush,
so link B can't get info from flushed request of link A.
This change adds a support to disconnect the link and
sync link for the flushed req.

CRs-Fixed: 3236148
Change-Id: I5ef8e608856851426ef4b51cc3bbb939cc81eddb
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
Signed-off-by: Wang Kan <quic_wkan@quicinc.com>
2022-08-04 23:06:28 -07:00
Karthik Anantha Ram
a47b203490 msm: camera: isp: Correct offsets for SFE v780
Correct address config register offset for SFE RDI0 client.

CRs-Fixed: 3258552
Change-Id: I0215b4dac90b0d65d7fddd0c4162e7dac918ee06
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2022-08-04 23:06:21 -07:00
Karthik Anantha Ram
07743a70aa msm: camera: isp: Handle CSID release sequence
In case of dual CSID acquire, if the acquire fails
for the second CSID, we fail to free the first one.
The change addresses this issue.

CRs-Fixed: 3253317
Change-Id: I3fd8e7b7c38a3fa31fd93f281f2afdd98b9994a6
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2022-08-04 23:06:12 -07:00
Savita Patted
f1979e642e Snap for drop 08/03/2022 mainline 814 LA.VENDOR.13.2.0.AU296
camera-kernel:
91419d2 Merge "msm: camera: reqmgr: Process frame skip for sHDR scratch config" into camera-kernel.lnx.dev
ffc5f78 Merge "msm: camera: isp: Add timestamp for CSID CAMIF events" into camera-kernel.lnx.dev

Change-Id: I709019d060ef161ce7e7076fee1c11de32e3a108
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-08-04 00:36:11 -07:00
Gaurav Jindal
f0a55aadf7 msm: camera: isp: Add timestamp for CSID CAMIF events
This commit saves the timestamp for CSID CAMIF IRQs and
print in case of overflow. In case of IFE, it avoids
dumping timestamps if no IRQ are subsribed.

CRs-Fixed: 3249483
Change-Id: Icac71f60f0616fc14aeb5e5b6efd5d203b27ddcc
Signed-off-by: Gaurav Jindal <quic_gjindal@quicinc.com>
2022-08-03 18:06:44 -07:00
chengxue
1d0a29d2b7 msm: camera: reqmgr: Process frame skip for sHDR scratch config
In case of sHDR to have a continuous flow of frames, program
scratch buffer even if there are no pending requests to apply
to lower pd devices.

CRs-Fixed: 3254135
Change-Id: I07cedcfdcf58f2a37c81e39a5f887945e7f05bc1
Signed-off-by: chengxue <quic_chengxue@quicinc.com>
2022-08-03 18:06:35 -07:00
Savita Patted
a64e9c3b8b Snap for drop 08/02/2022 mainline 813 LA.VENDOR.13.2.0.AU296
camera-kernel:
2670612 Merge "msm: camera: isp: Remove pattern/period limitation for RDI clients" into camera-kernel.lnx.dev

Change-Id: Ied1bf1981adaa953ab5cc2d58483f4bccb50fc83
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-08-02 21:06:12 -07:00
Karthik Anantha Ram
d368d7fa41 msm: camera: isp: Remove pattern/period limitation for RDI clients
RDI WMs are no exception to period/pattern config. Just like other WMs
RDIs can be configured to any period/pattern. This change is only
for bus ver3, for which address increment register exists for all
RDIs, so we can remove any limitation checks.

CRs-Fixed: 3249063
Change-Id: Ib24a7178e2a3ca6e56898ed1ff57331fed270222
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2022-08-02 19:06:19 -07:00
Savita Patted
447cc22b3d Snap for drop 08/01/2022 mainline 812 LA.VENDOR.13.2.0.AU296
camera-kernel:
3d9f6a2 Merge "msm: camera: csiphy: Remove duplicate register settings" into camera-kernel.lnx.dev
94619c0 Merge "msm: camera: common: Add drv debug flag to enable logging" into camera-kernel.lnx.dev

Change-Id: I1e58c6d74069c5ca24115928e609a248d31c98bc
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-08-02 10:06:14 -07:00
Mukund Madhusudan Atre
7fea2743d8 msm: camera: common: Add drv debug flag to enable logging
Add debug drv flag to enable info logging for drv.

CRs-Fixed: 3065551
Change-Id: Ief9e2a84a379b9f0261567bcf13e2405f3c97d15
Signed-off-by: Mukund Madhusudan Atre <quic_matre@quicinc.com>
2022-08-01 16:36:22 -07:00
Karthik Anantha Ram
16b9458c5a msm: camera: csiphy: Remove duplicate register settings
Remove data rate settings from common register array.
This change is to avoind re-programming same registers,
with different values.

CRs-Fixed: 3247785
Change-Id: Ic6790b006b32911e06f2abc1fefa2f44b3820ee6
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2022-08-01 16:36:14 -07:00
Savita Patted
48ec34cea9 Snap for drop 07/29/2022 mainline 811 LA.VENDOR.13.2.0.AU296
camera-kernel:
ba1651a Merge "msm: camera: common: Add checking for regulator count" into camera-kernel.lnx.dev
00b64ec Merge "msm: camera: icp: Domain-id support for non secure FW loads" into camera-kernel.lnx.dev
aa1c250 Merge "msm: camera: isp: Extend internal recovery scheme" into camera-kernel.lnx.dev
2b42da5 Merge "msm: camera: common: Fix possible dereference of NULL pointer" into camera-kernel.lnx.dev
1412a19 Merge "msm: camera: isp: Fix null pointer issue" into camera-kernel.lnx.dev
35e220b Merge "msm: camera: isp: Add the value of macro CAM_SOC_MAX_BLOCK" into camera-kernel.lnx.dev

Change-Id: Iab030127b82d541f1c12377e7b6abdd581d1499e
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-07-29 17:36:09 -07:00
Li Sha Lim
53b771ccfe msm: camera: icp: Domain-id support for non secure FW loads
For non secure FW loads, ICP domain mask config registers will
not be protected and is accessible from HLOS, so we are to
program these registers with the correct mask values. These
will then be validated with the domain id value passed over
from userland.

CRs-Fixed: 3249982
Change-Id: I1440dde67f6e7a4b58b482d6c3964d19cdb33967
Signed-off-by: Li Sha Lim <quic_lishlim@quicinc.com>
2022-07-29 17:06:43 -07:00
Karthik Anantha Ram
404b983783 msm: camera: isp: Extend internal recovery scheme
This change extends internal scheme for certain specific
scenarios. If the mode switch is applied in between exposures
it could potentially lead to out_of_sync/hang. On the switching
frame if there is no sufficient common blanking among different
exposures, CSID HW flags it, internal recovery is triggered for this.
Also it's possible that due to packet delays, IFE & sensor go out of sync,
we can try internal recovery in this case as well on receiving
out of sync error consecutively for 3 frames.

CRs-Fixed: 3254775
Change-Id: I56b40bb9f73959e66174af382025c897c18ffed4
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2022-07-29 17:06:38 -07:00
Stark Lin
45d440634d msm: camera: common: Fix possible dereference of NULL pointer
Null pointer 'flush_args.flush_req_pending' may be dereferenced,
this change add check snippet before the dereference.

CRs-Fixed: 3250285
Change-Id: I1170a291e7d0d986abe2d5909e6c328e248e4d27
Signed-off-by: Stark Lin <quic_starlin@quicinc.com>
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
2022-07-29 17:06:32 -07:00
mingpan
fe66664222 msm: camera: isp: Add the value of macro CAM_SOC_MAX_BLOCK
In function cam_ife_mgr_acquire_dev, will assign
cdm_reg_map to base_array according to index, but
the array length of base_array is less than
CAM_IFE_HW_NUM_MAX now, so it may cause to array
index out of bounds. If we acquire 8 IFEs, we
need to send cdm the reg_base for all 8.

CRs-Fixed: 3250612
Change-Id: I791659e1ad72d301de89fb374d37720ce58f102b
Signed-off-by: mingpan <quic_mingpan@quicinc.com>
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
2022-07-29 17:06:27 -07:00
Depeng Shao
8f0ed15532 msm: camera: common: Add checking for regulator count
This change adds a checking for regulator count,
since the regulator array has fixed length, so
add a protection to avoid meeting index ouf of
bounds issue.

CRs-Fixed: 3250328
Change-Id: I123ffa993ee7b1deb06e3789fa4add6ca5ce6b9f
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
2022-07-29 17:06:21 -07:00