Commit Graph

2897 Commits

Author SHA1 Message Date
mingpan
8b33590932 msm: camera: isp: Modify the timestamp format of ISP state monitor
Modify the timestamp format of ISP state monitor. We need to use the
dump info from CRM and ISP to draw a timing diagram for debugging,
so we need to keep their timestamp format same.

CRs-Fixed: 3413642
Change-Id: Icc397a04f18fe1fd41c2c78e228730c245f8ef49
Signed-off-by: mingpan <quic_mingpan@quicinc.com>
2023-03-20 13:45:08 -07:00
hchintal
c1f6de794f Snap for drop 03/16/2023 mainline 946 LA.VENDOR.14.3.0.AU194
camera-kernel:
e13ff6a Merge "msm: camera: sensor: optimize i2c and i3c table write" into camera-kernel.lnx.dev
1c279f8 Merge "msm: camera: sensor: update aon_cam_id to uint32 value in csiphy driver" into camera-kernel.lnx.dev
586edb9 Merge "msm: camera: isp: Add logic to make null terminated string" into camera-kernel.lnx.dev.

Change-Id: I5aaae3b26007e1f1b782c86ae77fb3ad245ad07c
Signed-off-by: hchintal <quic_hchintal@quicinc.com>
2023-03-17 21:36:05 -07:00
Ridhi Shah
c7f95fddce msm: camera: sensor: optimize i2c and i3c table write
Optimize i2c and i3c table write to send all settings to QUP at once.
Previously we called QUP transfer API for every single register write
which caused latency
In current solution we write all settings to a buffer and send entire
buffer to QUP master by calling the transfer API just once.

CRs-Fixed: 3408965
Change-Id: I251360e36a2d304addd083abd5b02fb6ed7f4bbb
Signed-off-by: Ridhi Shah <quic_ridhshah@quicinc.com>
2023-03-17 21:36:05 -07:00
Dharmender Sharma
dde3e48d13 msm: camera: isp: Add logic to make null terminated string
copy_from_user function is copying one extra byte using
sizeof(input_buf) and also string is not null terminated.
So Added logic to avoid copying one extra byte and making
string null terminated.

CRs-Fixed: 3422931
Change-Id: I4657ad17adc2e8a82f1ff39c2493089412193f52
Signed-off-by: Dharmender Sharma <quic_dharshar@quicinc.com>
2023-03-17 21:36:05 -07:00
Ridhi Shah
82830d42b4 msm: camera: sensor: update aon_cam_id to uint32 value in csiphy driver
Update the AON cam id value to uint32  for csiphy driver.

CRs-Fixed: 3355901
Change-Id: I6f16cdc22c7dd0affc5e61f39cb783d2d67c39f9
Signed-off-by: Ridhi Shah <quic_ridhshah@quicinc.com>
2023-03-17 21:36:05 -07:00
hchintal
580ab56829 Snap for drop 03/15/2023 mainline 945 LA.VENDOR.14.3.0.AU185
camera-kernel:
13a72c8 Merge "msm: camera: utils: Add support for multiple IRQ lines per device" into camera-kernel.lnx.dev
f42e06f Merge "msm: camera: isp: Modify reset type on CSID stream off" into camera-kernel.lnx.dev
07a2b6b Merge "msm: camera: cci: Move load report cmd in lock context" into camera-kernel.lnx.dev.

Change-Id: I5ef0eb7025d50f6a07d776ba07f580458f55a298
Signed-off-by: hchintal <quic_hchintal@quicinc.com>
2023-03-17 21:36:05 -07:00
Sokchetra Eung
740de40e65 msm: camera: utils: Add support for multiple IRQ lines per device
Update SOC util to be able to parse multiple irq names from DT and,
request, enable, disable multiple irq lines per soc.

All IRQ lines per SOC will have the same handler but different data,
so ISR will have their own private data to differentiate source of irq
in the same handling function.

CRs-Fixed: 3395596
Change-Id: Id9ca1cd3ef105d732a82decd7c8078bd29668326
Signed-off-by: Sokchetra Eung <quic_eung@quicinc.com>
2023-03-17 21:36:05 -07:00
Karthik Anantha Ram
8037b0404c msm: camera: isp: Modify reset type on CSID stream off
Currently prior to issuing a SW reset to CSID, we are
ensuring the input to CSID rx is cut off. On any fatal
rx error, the driver tries to issue a SW global reset
without halting the bus. If bus is not IDLE, it could
lead to an invalid domain ID getting propagated leading to
a global fault. To avoid this use path reset on CSID stream off,
global reset to be used on use-case boundaries when we are
certain that the bus is IDLE.

CRs-Fixed: 3420832
Change-Id: Id3beb42963357c881d073c258b7357360797b4bf
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2023-03-17 21:36:05 -07:00
Depeng Shao
a039cf068a msm: camera: cci: Move load report cmd in lock context
This change moves load report cmd in lock context,
then all sequence in one queue will be defined as
atomic queue commands without interruption from
the other queue commands.

CRs-Fixed: 3415571
Change-Id: Icda2271b580bd3f462c306ad0f229969a94079f6
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
2023-03-17 21:36:05 -07:00
wasikhan
66e3320456 Merge "msm: camera: cpas: Adding a removed operation" into camera-kernel.lnx.7.0 2023-03-17 12:50:31 -07:00
wasikhan
3b052555f0 msm: camera: cpas: Adding a removed operation
This change adds a do_div operation that's been
incorrectly removed.

CRs-Fixed: 3436133
Change-Id: I946a57570bd10cff124d2e3c0d1805935e4953a1
Signed-off-by: Atiya Kailany <quic_akailany@quicinc.com>
Signed-off-by: wasikhan <quic_wasikhan@quicinc.com>
2023-03-17 12:41:09 -07:00
hchintal
3d17c08240 Snap for drop 03/14/2023 mainline 944 LA.VENDOR.14.3.0.AU185
camera-kernel:
4c6191b Merge "msm: camera: csiphy: Add Support for datarate config per csiphy" into camera-kernel.lnx.dev.

Change-Id: I72febf46ad0bf341b8e731419a5cbbb0f4ede68b
Signed-off-by: hchintal <quic_hchintal@quicinc.com>
2023-03-14 15:06:14 -07:00
Lokesh Kumar Aakulu
1d7db3ca45 msm: camera: csiphy: Add Support for datarate config per csiphy
Tough sensor data rate is same for multiple camera sensors
still it'll depend up the mounting distance from sensor
to CSIPHY or SOC. Hence update datarate setting based on
CSIPHY instance.

CRs-Fixed: 3420314
Change-Id: Ie098b121394e241f360f9ae775bfd83b6bace15b
Signed-off-by: Lokesh Kumar Aakulu <quic_lkumar@quicinc.com>
2023-03-14 15:06:06 -07:00
hchintal
d7c30573e9 Snap for drop 03/09/2023 mainline 943 LA.VENDOR.14.3.0.AU185
camera-kernel:
07f26d8 Merge "msm: camera: sync: Add extra support for monitor dump" into camera-kernel.lnx.dev.

Change-Id: Id2374541a16588a12385734bfaded187c8b88fc0
Signed-off-by: hchintal <quic_hchintal@quicinc.com>
2023-03-10 00:06:06 -08:00
Haochen Yang
ae91bc4768 msm: camera: sync: Add extra support for monitor dump
Add monitor dump when dma/synx is already in signaled
state or has registered a cb, and when sync fails to
signal its corresponding dma/synx.

CRs-Fixed: 3350863
Change-Id: I4b52647f1d3f53eff119df1ab143be6848dd0d5d
Signed-off-by: Haochen Yang <quic_haocyang@quicinc.com>
2023-03-09 23:36:05 -08:00
Savita Patted
69aaaa4e89 Snap for drop 03/08/2023 mainline 942 LA.VENDOR.14.3.0.AU185
camera-kernel:
48d5257 Merge "msm: camera: sensor: Add OIS FW version check support" into camera-kernel.lnx.dev.

Change-Id: Ifd50e76f3ecc24075174cc5418af8eb2497600a4
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2023-03-08 18:06:05 -08:00
Karthik Anantha Ram
c3364a0aa2 msm: camera: sensor: Add OIS FW version check support
Adding infrastructure to check OIS FW version before downloading
OIS FW to avoid downloading the same FW.

CRs-Fixed: 3383153
Change-Id: Ic92b62bfe2277eaba9b417a13201fabeab04383e
Signed-off-by: Yulei Yao <quic_yuleiy@quicinc.com>
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2023-03-08 17:36:06 -08:00
hchintal
e494f8909d Snap for drop 03/07/2023 mainline 940 & 941 LA.VENDOR.14.3.0.AU176
camera-kernel:
a214723 Merge "msm: camera: reqmgr: Dead code removal" into camera-kernel.lnx.dev
1f7d6d8 Merge "msm: camera: custom: Removing dead code" into camera-kernel.lnx.dev
9277e7b Merge "msm: camera: cdm: Removing dead code" into camera-kernel.lnx.dev
ba22217 Merge "msm: camera: config: Remove config_spectra_custom" into camera-kernel.lnx.dev.

Change-Id: I966106fe689c09a5a30c8b84a5529d508de94956
Signed-off-by: hchintal <quic_hchintal@quicinc.com>
2023-03-07 18:36:05 -08:00
Atiya Kailany
e9fba3cc33 msm: camera: reqmgr: Dead code removal
This change removes some unused variables and
checks bounds for an index in camera driver.

CRs-Fixed: 3394193
Change-Id: I1e38834f09a4ef9717787e87df8689ab2541fd84
Signed-off-by: Atiya Kailany <quic_akailany@quicinc.com>
2023-03-07 18:06:30 -08:00
Atiya Kailany
97b61780f6 msm: camera: cdm: Removing dead code
This change removes unused variables in CDM driver.

CRs-Fixed: 3394193
Change-Id: I21b1b8c5ad3483b0883d5fb09e48f5156f0d8b12
Signed-off-by: Atiya Kailany <quic_akailany@quicinc.com>
2023-03-07 18:06:24 -08:00
Atiya Kailany
51c72321ae msm: camera: custom: Removing dead code
This change removes some variables that are
never used after assignment.

CRs-Fixed: 3394193
Change-Id: I47458d5408b14580a309749823e29b3d61f85681
Signed-off-by: Atiya Kailany <quic_akailany@quicinc.com>
2023-03-07 18:06:17 -08:00
Haochen Yang
8aff234f51 msm: camera: config: Remove config_spectra_custom
Remove config_spectra_custom from localized kconfig
settings and remove corresponding flags passed to
C preprocessor during the build.

CRs-Fixed: 3421836
Change-Id: If6f70edf8c2c84184a111e133d3d1fad523ac247
Signed-off-by: Haochen Yang <quic_haocyang@quicinc.com>
2023-03-07 18:06:08 -08:00
hchintal
df22242fde Snap for drop 03/03/2023 mainline 939 LA.VENDOR.14.3.0.AU176.
camera-kernel:
f95a540 Merge "msm: camera: icp: Remove static allocation of hw mgr" into camera-kernel.lnx.dev
6ec8547 Merge "msm: camera: reqmgr: Add CRM state monitor" into camera-kernel.lnx.dev.

Change-Id: Id3402e78a73fb4a66e7d447c6f4507836a6e3bcc
Signed-off-by: hchintal <quic_hchintal@quicinc.com>
2023-03-03 19:36:19 -08:00
Karthik Anantha Ram
866af8ebcf msm: camera: icp: Remove static allocation of hw mgr
To scale for 2 ICP hw managers, currently the driver statically
allocates an array of 2 HW managers. As opposed to static allocation,
the change allocates memory for the HW manager only based on number
of ICP driver instances running.

CRs-Fixed: 3421571
Change-Id: I96ae6bdcdc46e9d194aedaf6f2aff15c2e3d258d
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2023-03-03 19:36:13 -08:00
mingpan
e50b732b82 msm: camera: reqmgr: Add CRM state monitor
Add CRM state monitor for recording some recent CRM states,
such as notify trigger, notify error, when CRM notify recovery,
it will dump these operations records to help debugging.

CRs-Fixed: 3296185
Change-Id: I190b2201b36f12cdf7970962dad0304188fd4564
Signed-off-by: mingpan <quic_mingpan@quicinc.com>
2023-03-03 19:36:06 -08:00
hchintal
ab08e68706 Snap for drop 03/02/2023 mainline 938 LA.VENDOR.14.3.0.AU176
camera-kernel:
d64018d0 Merge "msm: camera: core: Unused variable Fix" into camera-kernel.lnx.dev
48e3a5a3 Merge "msm: camera: cpas: Removing dead code and unused variables" into camera-kernel.lnx.dev.

Change-Id: I80c5108854cabdac847ba1d6a821a89d9ba752d9
Signed-off-by: hchintal <quic_hchintal@quicinc.com>
2023-03-02 19:06:05 -08:00
Atiya Kailany
ecc67608a5 msm: camera: core: Unused variable Fix
This change makes use of a variable after assignment.

CRs-Fixed: 3394193
Change-Id: I4e0df3646c71e8e3fc4219ba4b500a7ac6cc03d6
Signed-off-by: Atiya Kailany <quic_akailany@quicinc.com>
2023-03-02 18:36:17 -08:00
Atiya Kailany
44b640e8d5 msm: camera: cpas: Removing dead code and unused variables
Removed dead code and variables in camera driver and
handled return value appropriately.

CRs-Fixed: 3394193
Change-Id: I42fda0ad538a23cc8967f9cbce936d22c31e72fb
Signed-off-by: Atiya Kailany <quic_akailany@quicinc.com>
2023-03-02 18:36:11 -08:00
hchintal
df3566be46 Snap for drop 03/01/2023 mainline 937 LA.VENDOR.14.3.0.AU176
camera-kernel:
58e999b Merge "msm: camera: isp: Some logic fixes and removing dead code" into camera-kernel.lnx.dev
536724e Merge "msm: camera: isp: Add support for TS combined VC index" into camera-kernel.lnx.dev
bc2594d Merge "msm: camera: jpeg: Removing dead code" into camera-kernel.lnx.dev.

Change-Id: Iec726db6189e0b533b626d849dfe02c1e745f750
Signed-off-by: hchintal <quic_hchintal@quicinc.com>
2023-03-01 18:06:07 -08:00
Atiya Kailany
20dad11849 msm: camera: isp: Some logic fixes and removing dead code
These changes fix some logic errors that were left in code, in
addition to fixing memory leak issues and removing unused
variables.

CRs-Fixed: 3394193
Change-Id: Ib257dcaf05d48913038718beca9e071730ac21c0
Signed-off-by: Atiya Kailany <quic_akailany@quicinc.com>
2023-03-01 17:06:22 -08:00
Atiya Kailany
fc0c352ebe msm: camera: jpeg: Removing dead code
This change removes some flags and unused variables
in JPEG driver.

CRs-Fixed: 3394193
Change-Id: Iccdadebbd6943322e58da682986c4f6145ca9a64
Signed-off-by: Atiya Kailany <quic_akailany@quicinc.com>
2023-03-01 17:06:15 -08:00
Depeng Shao
3ae6a2abc9 msm: camera: isp: Add support for TS combined VC index
This change enables the timestamp combined vc index,
we can get the VC index of the received frames during
mup mismatch, also print out the timestamp to get the
frame duration info.

CRs-Fixed: 3397057
Change-Id: I433765777043b50dd153efc54070156e812f6200
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
2023-03-01 17:06:08 -08:00
hchintal
3b6af1a00f Snap for drop 02/28/2023 mainline 936 LA.VENDOR.14.3.0.AU172
camera-kernel:
58cc7e5 Merge "msm: camera: smmu: Address checking in SMMU page fault handler" into camera-kernel.lnx.dev.

Change-Id: I1bee4ecf3ae8c0af211e59ec12e4a650e25b61c8
Signed-off-by: hchintal <quic_hchintal@quicinc.com>
2023-02-28 18:06:07 -08:00
Haochen Yang
d595a9e70a msm: camera: smmu: Address checking in SMMU page fault handler
Update the address boundary of setting the in_map_region to
be true when SMMU page fault handler tries to find the closest
mapping.

Update the log information to better describe the mapping.

CRs-Fixed: 3409108
Change-Id: I302abaf78281df62516646b9b095fdcb2b61c276
Signed-off-by: Haochen Yang <quic_haocyang@quicinc.com>
2023-02-28 17:36:09 -08:00
hchintal
2eeab509c1 Snap for drop 02/27/2023 mainline 935 LA.VENDOR.14.3.0.AU172.
Change-Id: Ice39d4d32fed46757a2fd768e431ff5937d4554b
Signed-off-by: hchintal <quic_hchintal@quicinc.com>
2023-02-27 17:06:07 -08:00
hchintal
f7ad88ac05 Snap for drop 02/24/2023 mainline 934 LA.VENDOR.14.3.0.AU172
camera-kernel:
df0e5c2 Merge "msm: camera: isp: Update RDIs write master format" into camera-kernel.lnx.dev
8cb51df Merge "msm: camera: sensor: Handle init for settings command config" into camera-kernel.lnx.dev
6d2f533 Merge "msm: camera: sync: Sync Driver Null Pointer Fix" into camera-kernel.lnx.dev.

Change-Id: Iecefb1fb6a79a232831f48c889d1abc22cbc7c79
Signed-off-by: hchintal <quic_hchintal@quicinc.com>
2023-02-24 21:36:08 -08:00
Atiya Kailany
b5af93e730 msm: camera: sync: Sync Driver Null Pointer Fix
Fixed null pointer dereference and uninitialized index variable.

CRs-Fixed: 3394193
Change-Id: I4a77060e227a9b39bb127c041515481549a99a42
Signed-off-by: Atiya Kailany <quic_akailany@quicinc.com>
2023-02-24 21:06:22 -08:00
chengxue
50e32058f5 msm: camera: isp: Update RDIs write master format
For RAW10/RAW12/RAW14 sensor mode seamless switch case, the
RDIs write master format may be changed while update write
master config, so we update RDIs write master data to support
RAW10/RAW12/RAW14 sensor mode seamless switch.

CRs-Fixed: 3411933
Change-Id: Id549ca41861cbc8cbbed447271971293602f6adf
Signed-off-by: chengxue <quic_chengxue@quicinc.com>
2023-02-24 21:06:16 -08:00
Shivi Mangal
fd62485780 msm: camera: sensor: Handle init for settings command config
This change is to call the tpg_hw_configure_init_settings_v3
function which is responsible for enabling clock and
resetting tpg clock in case of settings command config.

CRs-Fixed: 3406224
Change-Id: I17edb716074a121e12d04735166b3a0209a19359
Signed-off-by: Shivi Mangal <quic_smangal@quicinc.com>
2023-02-24 21:06:08 -08:00
hchintal
73828ddc0d Snap for drop 02/23/2023 mainline 933 LA.VENDOR.14.3.0.AU172
camera-kernel:
c534efa Merge "msm: camera: isp: Update framedrop config only for full IFE WMs" into camera-kernel.lnx.dev
cf38c0b Merge "msm: camera: smmu: Update checks to handle multiple same regions" into camera-kernel.lnx.dev.

Change-Id: Iab75f990f24159be6261765e8a61271ed8305132
Signed-off-by: hchintal <quic_hchintal@quicinc.com>
2023-02-23 17:36:09 -08:00
Mukund Madhusudan Atre
71bef9dce8 msm: camera: isp: Update framedrop config only for full IFE WMs
Currently, we are trying to update framedrop config as part of
HFR config update for IFE Lite WMs as well, which is not supported.
Skip framedrop config for IFE Lite WMs.

CRs-Fixed: 3388991
Change-Id: I70708925592d2471a480455f9ba3fb6857de7075
Signed-off-by: Mukund Madhusudan Atre <quic_matre@quicinc.com>
2023-02-23 16:36:17 -08:00
Karthik Anantha Ram
0c3d6d21a0 msm: camera: smmu: Update checks to handle multiple same regions
Update handle checks for context banks having multiple regions
of the same type.

CRs-Fixed: 3391818
Change-Id: I99bd3f11947730095031b80169b36cb9054267de
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2023-02-23 16:36:10 -08:00
hchintal
c285263c75 Snap for drop 02/22/2023 mainline 932 LA.VENDOR.14.3.0.AU163
camera-kernel:
6e4e780 Merge "msm: camera: custom: Removing dead code" into camera-kernel.lnx.dev
a0d2496 Merge "msm: camera: common: Memory leak and unused variable fixes" into camera-kernel.lnx.dev
beda236 Merge "msm: camera: cpas: Enable JPEG OT update" into camera-kernel.lnx.dev.

Change-Id: Ib092f870b19b14acdb124aa79e0ad34b5d3592a9
Signed-off-by: hchintal <quic_hchintal@quicinc.com>
2023-02-22 16:06:22 -08:00
Atiya Kailany
cfa0b3800b msm: camera: custom: Removing dead code
Some variables are never used after assignment,
so they are removed.

CRs-Fixed: 3394193
Change-Id: I3e475f96e6ff419aaa67ef0910c886dc707fc93b
Signed-off-by: Atiya Kailany <quic_akailany@quicinc.com>
2023-02-22 16:06:15 -08:00
Atiya Kailany
faad1003f2 msm: camera: common: Memory leak and unused variable fixes
Some dead code was removed and a memory leak issue was resolved
This solves issues related to VA_UNUSED.GEN and MLK.MIGHT.

CRs-Fixed: 3394193
Change-Id: I387587a3e359df9ad44a15e3e3f58b3422c81ad9
Signed-off-by: Atiya Kailany <quic_akailany@quicinc.com>
2023-02-22 16:06:08 -08:00
Depeng Shao
ef9248717e msm: camera: cpas: Enable JPEG OT update
This change enables JPEG OT update.

CRs-Fixed: 3395774
Change-Id: Ie080dfae67c8bab2e4eabbb044f227df3d525f10
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
2023-02-22 15:36:10 -08:00
Savita Patted
fbf8332cdd Snap for drop 02/17/2023 mainline 930 LA.VENDOR.14.3.0.AU163
camera-kernel:
cc73e57 Merge "msm: camera: common: Enable config for cesta clock update calls" into camera-kernel.lnx.dev
3e60de7 Merge "msm: camera: icp: Handle OFE config IO separately" into camera-kernel.lnx.dev
eb71675 Merge "msm: camera: common: workq delay debug" into camera-kernel.lnx.dev
fbb4fd4 Merge "msm: camera: isp: Remove duplicate assignments on ife hw" into camera-kernel.lnx.dev.

Change-Id: I4b71f7a53aa212af64d05230f7990343a0edb2ae
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2023-02-17 17:36:09 -08:00
Mukund Madhusudan Atre
5ad7a2bbd1 msm: camera: common: Enable config for cesta clock update calls
Enable config for clock update calls that vote the cesta hw client
votes. Update existing ddr drv flags to include spectra for camera
specific flags.

CRs-Fixed: 3315013
Change-Id: I63e0107a517d3c71f8fac7f2d631e2c37f62f8b3
Signed-off-by: Mukund Madhusudan Atre <quic_matre@quicinc.com>
Signed-off-by: Pavan Kumar Chilamkurthi <quic_pchilamk@quicinc.com>
2023-02-17 16:36:41 -08:00
Sokchetra Eung
8c3228ced8 msm: camera: icp: Handle OFE config IO separately
Since OFE config IO opcode has the same value as BPS config IO opcode,
generic handling function for config io ack msg cannot distinguish
BPS or OFE based on the opcode. So, instead, this change handles
the OFE IO config ack msg with the help of command type in the packet.

CRs-Fixed: 3406414
Change-Id: I847bf82cec8cdd86b387c75805060d6a7e44fcb6
Signed-off-by: Sokchetra Eung <quic_eung@quicinc.com>
2023-02-17 16:36:31 -08:00
chengxue
1fd9d783ca msm: camera: isp: Remove duplicate assignments on ife hw
Remove the duplicate assignments while acquire ife csid
pxl res.

CRs-Fixed: 3405767
Change-Id: I9d335bdf89d0a3d9e8bca3a69e31c8a4e5b69bb4
Signed-off-by: chengxue <quic_chengxue@quicinc.com>
2023-02-17 16:36:24 -08:00