Commit Graph

3275 Commits

Author SHA1 Message Date
Ayush Kumar
1b91ba1b2f msm: camera: tfe: Add support for epoch blob in TFE HW
In overlap SHDR, epoch irq from TFE need to configure in such
a way that request should be apply at epoch of shorter exposure frame
before start of the next frame of long exposure to make sure that
new settings should apply properly in time.

CRs-Fixed: 3396382
Change-Id: I1ddc3ce95c6d404a3f76a27cc58083e11b03bace
Signed-off-by: Ayush Kumar <quic_ayushkr@quicinc.com>
2023-12-18 03:59:56 -08:00
Ayush Kumar
6e2c1b9671 msm: camera: tfe: Add support for auto SHDR
This change add support for activate and deactivate ISP device in the
link when dual trigger mode in the link is set.

CRs-Fixed: 3374385
Change-Id: Ib6d25ab295d613fa5cd3edf1780362476920d74d
Signed-off-by: Ayush Kumar <quic_ayushkr@quicinc.com>
2023-12-18 17:08:13 +05:30
Camera Software Integration
a90b42d899 Merge "msm: camera: sensor: Add Trace logs for CCI BURST WRITE" into camera-kernel.lnx.7.0 2023-12-13 02:01:14 -08:00
Camera Software Integration
7cdb3df0f5 Merge "msm: camera: sensor: Add CCI BURST WRITE Support" into camera-kernel.lnx.7.0 2023-12-11 09:08:15 -08:00
Camera Software Integration
7afb256737 Merge "msm: camera: isp: fix prevent issues" into camera-kernel.lnx.7.0 2023-12-11 09:08:12 -08:00
Camera Software Integration
7f85e79c66 Merge "msm: camera: common: update msm-mmrm dependency for volcono" into camera-kernel.lnx.7.0 2023-12-11 09:07:57 -08:00
Camera Software Integration
192fbd4d41 Merge "msm: camera: csiphy: Update PHY secure CP register for Crow" into camera-kernel.lnx.7.0 2023-12-11 09:07:44 -08:00
Camera Software Integration
85469b7344 Merge "msm: camera: csiphy: Update PHY secure CP register" into camera-kernel.lnx.7.0 2023-12-11 09:07:28 -08:00
Lokesh Kumar Aakulu
8bc2eafe25 msm: camera: sensor: Add Trace logs for CCI BURST WRITE
Add Trace logs for each threshold irq and corresponding
Error cases for BURST WRITE usecases.

CRs-Fixed: 3562709
Change-Id: I9e91fc0b9ae0eda20063c8150c8c4694b583355f
Signed-off-by: Lokesh Kumar Aakulu <quic_lkumar@quicinc.com>
(cherry picked from commit 9326d397a2ec90696ce37a5d5966cdc671d657e3)
2023-12-10 06:19:49 -08:00
Camera Software Integration
92aed74949 Merge "Revert "msm: camera: isp: Fix value of min hbi in CSID path"" into camera-kernel.lnx.7.0 2023-12-07 22:45:52 -08:00
Sridhar Gujje
c019fc5e03 Revert "msm: camera: isp: Fix value of min hbi in CSID path"
This reverts commit 5fdbdc7281.

Change-Id: Ib5770144046564b0e33aad78695f6f899906c5cc
Signed-off-by: Sridhar Gujje <quic_sgujje@quicinc.com>
2023-12-07 22:36:34 -08:00
Camera Software Integration
46c3009877 Merge "msm: camera: isp: fix KMD prevent issues like OOB" into camera-kernel.lnx.7.0 2023-12-07 21:18:05 -08:00
Camera Software Integration
c5f0f907fd Merge "msm: camera: isp: fix potential out of bounds" into camera-kernel.lnx.7.0 2023-12-07 21:17:58 -08:00
Camera Software Integration
0183615dc2 Merge "msm: camera: ife: Adding sanity check at the time of buf done" into camera-kernel.lnx.7.0 2023-12-07 21:17:48 -08:00
Camera Software Integration
c9d8fed32d Merge "msm: camera: ife: Fix to enable FCG configurations in Cliffs" into camera-kernel.lnx.7.0 2023-12-07 21:17:42 -08:00
Lokesh Kumar Aakulu
3efecb742f msm: camera: sensor: Add CCI BURST WRITE Support
Introduce Threshold IRQ and compose dynamically
allocated buffer with CCI BURST WRITE Commands
and finally write to the CCI HW register and
manage Threshold Interrupts in optimized way. So,
that SW Driver latencies will not affect the I2C
BURST WRITE functionality.

CRs-Fixed: 3562709
Change-Id: I5749ba3b61e28d8f2c1075f46f470f5a9c5bd6b5
Signed-off-by: Lokesh Kumar Aakulu <quic_lkumar@quicinc.com>
(cherry picked from commit 1e4f481db9076c766b7300bb65364a13a61247c1)
2023-12-06 08:10:04 -08:00
Vikram Sharma
f220a81b54 msm: camera: isp: fix prevent issues
This change fix uninitialized local variable issue
in sfe driver.

CRs-Fixed: 3665080
Change-Id: I7b781f51cdf6ecc8842f44df3b841ea9a9984a6b
Signed-off-by: Vikram Sharma <quic_vikramsa@quicinc.com>
(cherry picked from commit 505bbbc5c6f1817d9a097a0bfc99d83a3e91f7b9)
2023-12-06 08:09:21 -08:00
Alok Chauhan
5af9459694 msm: camera: common: update msm-mmrm dependency for volcono
Updates board list of supported msm-mmrm boards to include volcono.

CRs-Fixed: 3671077
Signed-off-by: Alok Chauhan <quic_alokc@quicinc.com>
Change-Id: Ia5c26af59e029506d961052a4a4f9f8b3f0fef18
2023-12-05 11:08:56 +05:30
Shivakumar Malke
9a45cdd009 msm: camera: isp: fix KMD prevent issues like OOB
Integer pointer passed as a parameter to function
cam_irq_controller_register_dependent is used as an
array iterating over num_registers. This might corrupt
or misinterpret adjacent memory locations causing out
of bound access issues.

This change fixes this issue by passing an array of
size num_registers as a parameter to
cam_irq_controller_register_dependent. Also, initializes
struct dma_buf_map to 0.

CRs-Fixed: 3658797
Change-Id: I18260c9be4df77716f00c3f5980aeb506e35dcdc
Signed-off-by: Shivakumar Malke <quic_smalke@quicinc.com>
2023-12-04 20:59:02 -08:00
Camera Software Integration
7bc34c139c Merge "msm: camera: sensor: Remove mutex sensitive call in interrupt context" into camera-kernel.lnx.7.0 2023-12-03 19:50:55 -08:00
Camera Software Integration
a6195c5d0e Merge "msm: camera: cre: Fix concurrency issue for multi-context CRE use cases" into camera-kernel.lnx.7.0 2023-12-03 19:49:22 -08:00
Camera Software Integration
ddb486586c Merge "msm: camera: isp: Fix value of min hbi in CSID path" into camera-kernel.lnx.7.0 2023-12-03 19:48:46 -08:00
Camera Software Integration
de9479755d Merge "msm: camera: isp: Correct path data type for TFE lite" into camera-kernel.lnx.7.0 2023-12-03 19:48:38 -08:00
Camera Software Integration
f84ad2b1ad Merge "msm: camera: icp: Add missing mutex unlock" into camera-kernel.lnx.7.0 2023-12-03 19:48:31 -08:00
Yash Upadhyay
1dbcbf1d04 msm: camera: ife: Adding sanity check at the time of buf done
In case of null pointing addresses in payload at bufdone irq handling,
will lead to crash. This change will do proper sanity to avoid null
pointer access.

CRs-Fixed: 3634649
Change-Id: I4b988101001dfafdd4250eb75377d03a3a8474c2
Signed-off-by: Yash Upadhyay <quic_yupadhya@quicinc.com>
(cherry picked from commit 75ef1aef5d3b740a15eef8f5b60a453568ca5721)
2023-11-30 23:45:06 -08:00
Vikram Sharma
5d36106df2 msm: camera: isp: fix potential out of bounds
This change fix multiple prevent issues.
fix over bound array access, add NULL checks,
fix format specifier and fix typecasting.

CRs-Fixed: 3643117
Change-Id: I16b4405c52ae9a6c53f6ff954dc32735719a99ad
Signed-off-by: Vikram Sharma <quic_vikramsa@quicinc.com>
2023-12-01 11:07:59 +05:30
Dharmender Sharma
4614811d85 msm: camera: ife: Fix to enable FCG configurations in Cliffs
In Mix SHDR use case, Camera switch to video mode is failing.
Reason is FCG configurations support not enabled for Cliffs.
So to fix this issue enabled FCG configuration for Cliffs.

CRs-Fixed: 3672728
Change-Id: I6cbc5db1d02c07bb4df422c4b07d6b7eca1df3c6
Signed-off-by: Dharmender Sharma <quic_dharshar@quicinc.com>
2023-11-28 15:05:40 +05:30
Shadul Shaikh
24376453b3 msm: camera: csiphy: Update PHY secure CP register for Crow
Update secure CP register bitmask for Crow csiphy-v2.1.2.

CRs-Fixed: 3542076

Change-Id: I02cbb9528661767f0c275b6ad110002ce372591e
Signed-off-by: Shadul Shaikh <quic_shaduls@quicinc.com>
(cherry picked from commit 42c8aa11f18a71c6acd272574e8149d58a5dfd52)
2023-11-28 10:40:37 +05:30
Camera Software Integration
7d82a270a3 Merge "msm: camera: tfe: Multiple fixes for TFE Lite" into camera-kernel.lnx.7.0 2023-11-27 02:18:01 -08:00
Camera Software Integration
b2565f210d Merge "msm: camera: tfe: TFE and CSID probe based on fuse" into camera-kernel.lnx.7.0 2023-11-27 02:17:42 -08:00
Camera Software Integration
5de13d5f6d Merge "msm: camera: isp: Don't enable TFE WM at Start HW" into camera-kernel.lnx.7.0 2023-11-27 02:15:51 -08:00
Camera Software Integration
1805af21ee Merge "msm: camera: tfe: initialise the flush and error dump id to max value" into camera-kernel.lnx.7.0 2023-11-27 02:14:14 -08:00
Camera Software Integration
7b0cf83ff8 Merge "msm: camera: tfe: correct wm configuration for LCR PD port" into camera-kernel.lnx.7.0 2023-11-27 02:12:24 -08:00
Alok Chauhan
5d7887b24d msm: camera: cpas: Update QOS value for camera
Updating correct QOS values for Camera, based on HW
recommendation.

CRs-Fixed: 3509972
Change-Id: I10d8e6126fa0d82efbcff0daf927adaea1deb32b
Signed-off-by: Alok Chauhan <quic_alokc@quicinc.com>
2023-11-27 02:10:33 -08:00
Camera Software Integration
3aa1230bdc Merge "msm: camera: cpas: Add support for Crow Camera" into camera-kernel.lnx.7.0 2023-11-27 02:09:14 -08:00
Haochen Yang
786833cd4e msm: camera: icp: Add missing mutex unlock
This change adds missing mutex unlock when the command descriptor
is not valid during configuring stream settings.

CRs-Fixed: 3663869
Change-Id: I891699141f8c1c1b6cdbafb0068d5c8117dacdf8
Signed-off-by: Haochen Yang <quic_haocyang@quicinc.com>
(cherry picked from commit 3a6161b01d7c7c5540d7019b70903dc60e9a84bc)
2023-11-27 01:53:32 -08:00
Shadul Shaikh
a6fbca726b msm: camera: sensor: Remove mutex sensitive call in interrupt context
Remove the function call, is getting clock rates with mutex locked
in interrupt context.

CRs-Fixed: 3615675

Change-Id: I838fbd0b211e454de812b7631a1bb8072072ec75
Signed-off-by: Shadul Shaikh <quic_shaduls@quicinc.com>
(cherry picked from commit a42bed83fbfd0dff1940ce7b221ee3370f1e917e)
2023-11-23 14:20:26 +05:30
Ayush Kumar
5fdbdc7281 msm: camera: isp: Fix value of min hbi in CSID path
This change is to fix the value of min hbi in csid
path cfg1 register.

CRs-Fixed: 3184294
Change-Id: I2db440d8edf29844ee87067f79465089b81c205e
Signed-off-by: Ayush Kumar <quic_ayushkr@quicinc.com>
(cherry picked from commit 9784b390cdcd1c518fe1ce85af12bd02390149e7)
2023-11-22 09:46:07 -08:00
Shadul Shaikh
0ab2c977a1 msm: camera: csiphy: Update PHY secure CP register
Update PHY secure CP register bitmask logic for CSIPHY
1.2.3.

CRs-Fixed: 3176306
Change-Id: Ie15767f3bd5d162ba544080e25de8c41c57d4ad4
Signed-off-by: shiwgupt <quic_shiwgupt@quicinc.com>
Signed-off-by: Shadul Shaikh <quic_shaduls@quicinc.com>
(cherry picked from commit e35411f0ea905b01cf45ee6b7ffe74e1a7781df0)
2023-11-22 09:26:42 -08:00
Alok Chauhan
1d421a5dc0 msm: camera: isp: Correct path data type for TFE lite
Correct path data type incase if voting from TFE lite
during cpas start.

CRs-Fixed: 3509972
Change-Id: If2a0949f09a3ca6bd5afdca1f4b6c9202adf6334
Signed-off-by: Alok Chauhan <quic_alokc@quicinc.com>
(cherry picked from commit 5df6eed6590a1355dabe8b676aca6b67c033d239)
2023-11-22 08:22:15 -08:00
Ayush Kumar
52c7ce7ef9 msm: camera: cre: Fix concurrency issue for multi-context CRE use cases
Add list to track request while configuring and processing in
multi-context environment. This will avoid looping over wrong
context and accessing invalid request list.

CRs-Fixed: 3426117
Change-Id: I987abc7685a11a596cd3d2ba14ff2b141358d618
Signed-off-by: Ayush Kumar <quic_ayushkr@quicinc.com>
(cherry picked from commit 9e3f7d8a57c6ead740bb1261f461a38ae35bd57a)
2023-11-22 08:21:55 -08:00
Camera Software Integration
e383234b62 Merge "msm: camera: icp: fix out of range for devcount" into camera-kernel.lnx.7.0 2023-11-21 23:12:34 -08:00
jinguiw
efd58b1e1b msm: camera: icp: fix out of range for devcount
Fix loop range to hw_dev_cnt-1 to deal with out of range issue.

CRs-Fixed: 3660771
Change-Id: I5d8b76e44af04207ed4b68208474620fa9cb1b86
Signed-off-by: jinguiw <quic_jinguiw@quicinc.com>
(cherry picked from commit ead659d4bf783c37ff17af1bb4bc87edb4e64938)
2023-11-21 23:11:01 -08:00
Shravan Nevatia
5e66e1bf36 msm: camera: csiphy: Add support for dummy PHY settings
Add the CSIPHY_DNP_PARAMS macro to specify dummy PHY
settings. These settings will not be applied to HW
and can be used to pad the settings arrays.

CRs-Fixed: 3642100
Change-Id: I42859598996d6190b23111e8ac655bb34e174238
Signed-off-by: Shravan Nevatia <quic_snevatia@quicinc.com>
(cherry picked from commit b78027078dd6654f96f6d0472ebab09c6e1b088b)
2023-11-21 23:10:55 -08:00
Camera Software Integration
395c2c88e4 Merge changes I841105b4,I4a971058,I4697bb54 into camera-kernel.lnx.7.0
* changes:
  msm: camera: isp: Correct sync mode of HW in Dual TFE usecase
  msm: camera: isp: Fix crash if PPI hw is not present
  cam: tfe: Correct master select and halt mode
2023-11-21 23:06:52 -08:00
Camera Software Integration
669b0698c8 Merge "msm: camera: isp: Program PPP path core config from acquire data" into camera-kernel.lnx.7.0 2023-11-21 23:05:40 -08:00
Camera Software Integration
b68af30718 Merge "msm: camera: tfe: Add support RT CDM in TFE" into camera-kernel.lnx.7.0 2023-11-21 23:05:31 -08:00
Camera Software Integration
9c3ade469b Merge "msm: camera: tfe: Fixes for CSIM issues" into camera-kernel.lnx.7.0 2023-11-21 23:05:12 -08:00
Camera Software Integration
ff07076ebe Merge changes Ifd44dc75,Ieb6f1245,I16d53737,I34c5227b,I56dc1091, ... into camera-kernel.lnx.7.0
* changes:
  msm: camera: tfe: Add out of sync error handling
  msm: camera: tfe: Add PDAF support in tfe 770 header
  msm: camera: common: update msm-mmrm dependency to camera-kernel
  msm: camera: tfe: Add TFE and TFE LITE header file for 770 HW
  msm: camera: isp: Add support for PDAF HW
  msm: camera: tfe: Remove hardcoding of shift values
  msm: camera: isp: Add support for CSID 770
  msm: camera: tfe: Add support for TFE LITE HW
  msm: camera: tfe: Add MUP support for TFE HW
2023-11-21 00:28:50 -08:00
Camera Software Integration
224cae6a96 Merge "msm: camera: cpas: update the QOS setting" into camera-kernel.lnx.7.0 2023-11-21 00:26:52 -08:00