提交線圖

1568 次程式碼提交

作者 SHA1 備註 日期
Camera Software Integration
af0f7b69bf Merge "msm: camera: isp: Fix prevent issues in cam_isp" into camera-kernel.lnx.7.0 2024-03-20 10:14:40 -07:00
Camera Software Integration
ad7bb7184b Merge "msm: camera: isp: Fixing CSID halt sequence" into camera-kernel.lnx.7.0 2024-03-19 11:15:37 -07:00
Camera Software Integration
f392c81e33 Merge "msm: camera: isp: Enhance logging in isp" into camera-kernel.lnx.7.0 2024-03-19 11:15:19 -07:00
Camera Software Integration
c88327f907 Merge "msm: camera: isp: Fixing missing logging parameter" into camera-kernel.lnx.7.0 2024-03-19 11:15:03 -07:00
Shivakumar Malke
8a4731d3c1 msm: camera: isp: Fix prevent issues in cam_isp
This change fixes prevent issues like incorrect
sizeof expression and incorrect format specifiers
in cam_isp.

CRs-Fixed: 3751374
Change-Id: Ia1383a655412176c4de30ef17412c2ff900f768e
Signed-off-by: Shivakumar Malke <quic_smalke@quicinc.com>
2024-03-12 22:41:35 -07:00
Yash Upadhyay
68c51a5a48 msm: camera: isp: Fixing missing logging parameter
Fixes missing logging parameter in few of the logs.

CRs-Fixed: 3758192
Change-Id: Ic4d351fdf11213c515d975bda48a299e885e123d
Signed-off-by: Yash Upadhyay <quic_yupadhya@quicinc.com>
2024-03-12 22:37:24 -07:00
Alok Chauhan
73609891e9 msm: camera: isp: Add TFE and CSID header file for 665 HW
This commit adds TFE and CSID header file for titan
version 665 hardware.

CRs-Fixed: 3746224
Change-Id: Iefcf6b2791da3eb449e2287d33f74b409c06fa68
Signed-off-by: Alok Chauhan <quic_alokc@quicinc.com>
2024-03-12 21:45:54 -07:00
Yash Upadhyay
6b19fffad2 msm: camera: isp: Fixing CSID halt sequence
PP overflow, Pdaf violation issues were observed after
flush in stop sequence on crow. This change fixes csid
halt sequence for any usecase by correctly setting halt
mode and cmd while enabling and disabling ipp/ppp paths.
Here we are setting halt cmd to resume at frame boundary
at start and halt at frame boundary at stop.

CRs-Fixed: 3628412
Change-Id: I804e8077676e461376b49446ffbf74d0fb8c092e
Signed-off-by: Yash Upadhyay <quic_yupadhya@quicinc.com>
2024-03-11 17:08:33 +05:30
Alok Chauhan
85974e9c0d msm: camera: isp: Enhance logging in isp
Enhance logging in ISP code to avoid excessive logging.

CRs-Fixed: 3746224
Change-Id: Ib16945f7cd6beb7a74c4c742b8fa4f06ea83bc97
Signed-off-by: Alok Chauhan <quic_alokc@quicinc.com>
2024-03-11 00:23:28 -07:00
Camera Software Integration
8a6c3c4c6e Merge "msm: camera: cdm: check irq status on hang detection" into camera-kernel.lnx.7.0 2024-03-07 02:47:01 -08:00
Alok Chauhan
ec6515da0e msm: camera: tfe: Add epd support
This change add support for EPD mode high data
rate sensors which send EPD instead of EOT. This
change is only for CPHY EPD sensors and not applicable
to DPHY EPD sensors. For CPHY EPD sensor, EOT error masked.

CRs-Fixed: 3736696
Signed-off-by: Alok Chauhan <quic_alokc@quicinc.com>
Change-Id: I5ef0dac8e590daa1c4f3bc217f7da81a7a193dfe
2024-02-29 09:46:12 +05:30
Yash Upadhyay
f3e30c161c msm: camera: cdm: check irq status on hang detection
On checking IRQ status on cdm hang detection, if the
inline IRQ is set then the cdm has triggered IRQ, but
there could be workqueue scheduling delay causing cdm's
config timeout. To prevent the timeout due to scheduling
delay check both work record and irq status and return
true if its delay.

CRs-Fixed: 3433175
Change-Id: Iaa34f8ff9b57e7da9f80677a7da9b4f9a53dad14
Signed-off-by: Yash Upadhyay <quic_yupadhya@quicinc.com>
2024-02-27 16:55:06 +05:30
Camera Software Integration
bcd1e03f83 Merge "cam: isp: tfe: fix buffer alignment for shdr usecase" into camera-kernel.lnx.7.0 2024-02-25 22:47:26 -08:00
Wasim Khan
6a766662e7 Merge "msm: camera: isp: Avoid un-clocked access of registers during regdump" into camera-kernel.lnx.7.0 2024-02-20 02:42:13 -08:00
Wasim Khan
a0337e9cff Merge "msm: camera: isp: Fix the logic to disable TFE WM clients dynamically" into camera-kernel.lnx.7.0 2024-02-20 02:42:11 -08:00
Alok Chauhan
5f072e257c cam: isp: tfe: fix buffer alignment for shdr usecase
For shdr usecase, buffer alignment is not happening to
right resource due to wrong resource id mapping.

Correct the resource id mapping for shdr buffer alignment.

CRs-Fixed: 3696470
Signed-off-by: Alok Chauhan <quic_alokc@quicinc.com>
Change-Id: I9921add8a434cce04229cea5bdcd1c720a9b680a
2024-02-19 15:59:01 +05:30
Wasim Khan
d15a414b70 Merge "msm: camera: isp: Release mutex in case of error" into camera-kernel.lnx.7.0 2024-02-12 04:17:50 -08:00
Wasim Khan
7c2568adff Merge "msm: camera: common: Prevent NULL access in ISP & Sensor driver" into camera-kernel.lnx.7.0 2024-02-12 04:17:42 -08:00
Wasim Khan
0e52fe8cef Merge "msm: camera: isp: Handle error for invalid camif lite resource" into camera-kernel.lnx.7.0 2024-02-12 04:17:40 -08:00
Wasim Khan
6ac65d9079 Merge "msm: camera: isp: Prevent NULL dereference for invalid HW Res" into camera-kernel.lnx.7.0 2024-02-12 04:17:37 -08:00
Camera Software Integration
377e4bf094 Merge "msm: camera: isp: Release mutex in case of error" into camera-kernel.lnx.7.0 2024-02-11 07:20:38 -08:00
Alok Chauhan
0595a89841 msm: camera: isp: Fix the logic to disable TFE WM clients dynamically
TFE disable WM client logic is broken due to ISP common framework
changes and last consume address changes in ISP common framework.

Fixed the logic to disable WM dynamically. This change add the
fix for invalid pointer access in last consume address logic
as well.

CRs-Fixed: 3696470
Signed-off-by: Alok Chauhan <quic_alokc@quicinc.com>
Change-Id: I31d06e0dfe17ef660e7ff023b41ada1d713ff92f
2024-02-07 16:30:04 +05:30
Vikram Sharma
b828d51bef msm: camera: isp: Handle error for invalid camif lite resource
During deinitialization of camif lite resources,
potential dereference of NULL pointer can cause
stability issues.
This commit adds validity checks
before accessing the camif lite resource pointers.

CRs-Fixed: 3715678
Change-Id: Id13b09d35f6602fbf97d835fe3b574d70f68dad4
Signed-off-by: Vikram Sharma <quic_vikramsa@quicinc.com>
2024-02-07 00:42:52 -08:00
Vikram Sharma
04be5ad880 msm: camera: isp: Prevent NULL dereference for invalid HW Res
In init and deinit of a camera Hardware resources
parameters can be invalid/uninitialized which can
be NULL.
By adding NULL checks before dereferencing
will avoid error scenario.

CRs-Fixed: 3715918
Change-Id: I6dd28d5f27fc108b01a274aa2b6ea9988e612837
Signed-off-by: Vikram Sharma <quic_vikramsa@quicinc.com>
2024-02-07 00:42:11 -08:00
Dharmender Sharma
7a0764952b msm: camera: isp: Avoid un-clocked access of registers during regdump
Un-clocked access of registers during dumping the registers while
handling the start failure.
Reason for the issue is that handle_reg_dump trying to read the hw
registers when HW clocks are disabled.
This commits adds a check to validate if the hw is initialized before
accessing the registers.

CRs-Fixed: 3668129
Change-Id: I98039af2382df7acce767422689992388210004f
Signed-off-by: Dharmender Sharma <quic_dharshar@quicinc.com>
2024-02-06 22:53:18 -08:00
Sourabh Soni
7ca6a56b11 msm: camera: common: Prevent NULL access in ISP & Sensor driver
Null arguments in ISP and Sensor drivers during init
and deinit calls can result in invalid dereferences
impacting the stability.
This commit adds checks to
handle such invalid arguments.

CRs-Fixed: 3711570
Change-Id: I08727201f787af0d5bc5dbe85acea03bb4db247c
Signed-off-by: Sourabh Soni <quic_soursoni@quicinc.com>
2024-02-06 03:14:00 -08:00
Chandan Kumar Jha
6dca977b60 msm: camera: isp: Release mutex in case of error
Mutex unlock was missing in isp driver during hw manager init
This change adds the missing mutex unlock.

CRs-Fixed: 3711067
Change-Id: Ic12671fdb81c80b6b426c840b6a6887fb38a8b36
Signed-off-by: Vikram Sharma <quic_vikramsa@quicinc.com>
Signed-off-by: Chandan Kumar Jha <quic_cjha@quicinc.com>
2024-02-05 15:56:59 +05:30
Alok Chauhan
04943eec61 msm: camera: isp: Fix buf done handling in tfe bus
Fix buf done handling in tfe bus driver due to missing
handling for multiple out resource.

CRs-Fixed: 3696470
Signed-off-by: Alok Chauhan <quic_alokc@quicinc.com>
Change-Id: Ie5597b83d21368f921d232d242c82be671ab8080
2024-01-29 22:13:22 -08:00
Alok Chauhan
80ac4f8b52 cam: isp: tfe: Fix null pointer crash for out map
Output port map structure is not defined for TFE.
This is causing null pointer dereference in add io
buffer api.

Add support for outport map structure in TFE driver.

CRs-Fixed: 3696470
Signed-off-by: Alok Chauhan <quic_alokc@quicinc.com>
Change-Id: I35fa1f36a65bb0ba3dfd896567b47549b6bebf9d
2024-01-24 07:20:08 -08:00
Gaurav Jindal
629c599958 msm: camera: isp: Release mutex in case of error
Mutex unlock was missing in CSID driver in case the drv clk rate
call fails. This can result in recursive locking situations.
This commit handles the error scenario.

Change-Id: Ie1e60006713f0a96831ec1174bec1b40ab460a1f
CRs-Fixed: 3712878
Signed-off-by: Gaurav Jindal <quic_gjindal@quicinc.com>
2024-01-24 01:31:45 -08:00
Camera Software Integration
42eec23c01 Merge "msm: camera: isp: Clean up pending request list" into camera-kernel.lnx.7.0 2024-01-22 02:34:44 -08:00
Camera Software Integration
38003d61e9 Merge "msm: camera: isp: Change notification type" into camera-kernel.lnx.7.0 2024-01-22 02:32:02 -08:00
Camera Software Integration
d52050dc72 Merge "msm: camera: isp: Update WM mode dynamically for RDI resources" into camera-kernel.lnx.7.0 2024-01-22 02:31:55 -08:00
Camera Software Integration
ad2991a8b3 Merge "cam: isp: tfe: add query cap for comp grp in legacy acquire" into camera-kernel.lnx.7.0 2024-01-22 02:31:33 -08:00
Camera Software Integration
176e3a5d63 Merge "msm: camera: tfe: Fix null pointer deference during acquire failure" into camera-kernel.lnx.7.0 2024-01-22 02:31:09 -08:00
Camera Software Integration
921b7720cf Merge "msm: camera: isp: Move the CSID subdev Notify to bottom half" into camera-kernel.lnx.7.0 2024-01-22 02:30:58 -08:00
Camera Software Integration
277627e5e8 Merge "msm: camera: tfe: Refactor TFE hw_mgr error handling" into camera-kernel.lnx.7.0 2024-01-22 02:30:21 -08:00
Camera Software Integration
3adae3be7c Merge "msm: camera: isp: Iterate for out resources based on bus_priv" into camera-kernel.lnx.7.0 2024-01-22 02:30:04 -08:00
Camera Software Integration
5ba7db9d90 Merge "msm: camera: isp: Fix KW issue for out_rsrc_data" into camera-kernel.lnx.7.0 2024-01-22 02:29:55 -08:00
Camera Software Integration
a4d3649de5 Merge "imsm: camera: isp: Reset TFE WM data related to buffer alignment" into camera-kernel.lnx.7.0 2024-01-22 02:29:33 -08:00
Camera Software Integration
f718db2d53 Merge "msm: camera: isp: Acquire correct IFE & SFE" into camera-kernel.lnx.7.0 2024-01-18 07:30:14 -08:00
Camera Software Integration
c3b3bd221e Merge "msm: camera: isp: Write Reg update cmd for slave in SDHR" into camera-kernel.lnx.7.0 2024-01-18 07:29:58 -08:00
Camera Software Integration
ceb80be070 Merge "msm: camera: isp: Enable format measure for PPP path with debugfs" into camera-kernel.lnx.7.0 2024-01-18 07:29:41 -08:00
Camera Software Integration
9359fc9f49 Merge "msm: camera: isp: Enable format measure in TFE HW" into camera-kernel.lnx.7.0 2024-01-18 07:29:26 -08:00
Camera Software Integration
7948fbd861 Merge "msm: camera: isp: Drop initial few frames in TFE CSID" into camera-kernel.lnx.7.0 2024-01-18 07:29:13 -08:00
Camera Software Integration
ae835473e7 Merge "msm: camera: isp: Correct BL type CDM BL cmd for TFE" into camera-kernel.lnx.7.0 2024-01-18 07:28:58 -08:00
Camera Software Integration
2800b07e59 Merge "msm: camera: isp: Stop handling error IRQs after HW stop" into camera-kernel.lnx.7.0 2024-01-18 07:28:46 -08:00
Camera Software Integration
d1632454e5 Merge "msm: camera: isp: Handling IRQ delay from CDM in tfe" into camera-kernel.lnx.7.0 2024-01-18 07:28:29 -08:00
Camera Software Integration
716373a57d Merge "msm: camera: tfe: Fix errors found in KW static code analysis tool" into camera-kernel.lnx.7.0 2024-01-18 07:27:59 -08:00
Chandan Kumar Jha
12fcadb429 msm: camera: isp: Update WM mode dynamically for RDI resources
Program WM mode based on mode flag for RDI resources..

CRs-Fixed: 3627088
Change-Id: Ie2918462fdfa8fe486983e63fcf66f9ec568c75f
Signed-off-by: Chandan Kumar Jha <quic_cjha@quicinc.com>
2024-01-16 21:51:05 -08:00