提交图

3470 次代码提交

作者 SHA1 备注 提交日期
Wasim Khan
51e0c1f577 Merge "msm: camera: jpeg: Use spin lock irqsave to avoid preemption" into camera-kernel.lnx.7.0 2024-02-12 04:17:47 -08:00
Wasim Khan
fb4c143ef7 Merge "msm: camera: icp: Unlock mutex in case of ICP packet failure" into camera-kernel.lnx.7.0 2024-02-12 04:17:44 -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
Shivi Mangal
0ed9862f09 msm: camera: sensor: Proper handling of race condition in util api
Power count is coming from user space which can be modified due to
access to shared memory. This change scopes the data locally so
as to avoid vulnerability of count being modified by external
means while executing due to being in shared memory.

CRs-Fixed: 3691744.

Change-Id: I57d13435453195f8aab0c9aad4414d290274ff81
Signed-off-by: Shivi Mangal <quic_smangal@quicinc.com>
2024-02-11 08:58:57 -08:00
Camera Software Integration
f888f2c3b9 Merge "msm: camera: sensor: Proper handling of NULL Dereference" into camera-kernel.lnx.7.0 2024-02-11 07:20:53 -08:00
Camera Software Integration
82fcf87afd Merge "msm: camera: sensor: Use bubble packet for request reapply" into camera-kernel.lnx.7.0 2024-02-11 07:20:45 -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
Camera Software Integration
477f423ee1 Merge "msm: camera: cre: Fix null pointer dereference in CRE driver" into camera-kernel.lnx.7.0 2024-02-11 07:20:30 -08:00
Camera Software Integration
45284ffb94 Merge "msm: camera: isp: Fix buf done handling in tfe bus" into camera-kernel.lnx.7.0 2024-02-11 07:20:23 -08:00
Alok Chauhan
1f665fe89f msm: camera: common: Increase num usecase variable
Increase num usecase variable to accommodate new
clock levels introduced.

CRs-Fixed: 3696470
Signed-off-by: Alok Chauhan <quic_alokc@quicinc.com>
Change-Id: I0bfd8b2fe0d2956c238e3993280bde87fc10b922
2024-02-08 20:30:37 -08:00
Dharmender Sharma
d37bbdafbf msm: camera: common: dma-buf: support users to change dma_buf name
This change add name to dma_buf, it's difficult to debug kernel
dma_buf users as until now as we could not set it at kernel side.

dma_buf_set_name function is exported by Android kernel. So in future if
it is exported for any kernel version then based on that we need
to support.

CRs-Fixed: 3728228
Signed-off-by: Soumen Ghosh <quic_soumeng@quicinc.com>
Signed-off-by: Dharmender Sharma <quic_dharshar@quicinc.com>
Change-Id: I556992cb4fd4cbedb820dae5b976f3a77dd6022e
2024-02-08 02:01:25 -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
Vikram Sharma
7ef7162e36 msm: camera: icp: Unlock mutex in case of ICP packet failure
Mutex unlock is missing if the packet size is not
equal to the packet header size during ICP packet
validation.
This commit add mutex unlock, which unlocks
the mutex to handle the above scenario.

CRs-Fixed: 3715702
Change-Id: Iafa94c1e6b3ee62cd7fd14ccfeb992c3c5c1c4c4
Signed-off-by: Vikram Sharma <quic_vikramsa@quicinc.com>
2024-02-06 03:15:03 -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
Wasim Khan
13b47dbe8a Merge "cam: isp: tfe: Fix null pointer crash for out map" into camera-kernel.lnx.7.0 2024-02-05 03:24:26 -08:00
Wasim Khan
99846be0fd Merge "msm: camera: icp: Enhance support for HW capability" into camera-kernel.lnx.7.0 2024-02-05 03:24:22 -08:00
Wasim Khan
0f44ebacdf Merge "msm: camera: tpg: Handling Null Pointer Dereference" into camera-kernel.lnx.7.0 2024-02-05 03:24:19 -08:00
Wasim Khan
0fc142d2fa Merge "msm: camera: csiphy: Trigger ISP callback on phy clock change" into camera-kernel.lnx.7.0 2024-02-05 03:24:15 -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
Dharmender Sharma
c7e96a7e98 msm: camera: jpeg: Use spin lock irqsave to avoid preemption
Use spin_lock_irqsave utility to avoid preemtpion of process_cmd thread
in jpeg. This can come in rare conditions when IRQ is received on same
CPU which is handling the thread.
Such cases will result in deadlock conditions.

CRs-Fixed: 3712176
Change-Id: Ib0d9997495272ab49a75b0419eb1e0fd84b1962c
Signed-off-by: Dharmender Sharma <quic_dharshar@quicinc.com>
2024-02-01 21:58:42 -08:00
Abhilash Mahapatra
23bc30fee2 msm: camera: sensor: Proper handling of NULL Dereference
- Change to dereference s_ctrl only after proper
  NULL Dereference Check.
- Proper Handling in case of invalid pinctrl
  index.
CIDs Fixed: 50869, 41493

CRs-Fixed: 3715664
Change-Id: If55f7d0854eb4709bd9e93f10bf67318a348a035
Signed-off-by: Abhilash Mahapatra <quic_abhmah@quicinc.com>
2024-02-01 01:02:54 -08:00
Karthik Anantha Ram
6d725cc619 msm: camera: sensor: Use bubble packet for request reapply
Use bubble packet for request reapply for all scenarios
irrespective of mode switch. Bubble packet carries exposure
updates as well.

CRs-Fixed: 3689201
Change-Id: If2170fd77ea7fe88155ed7101fc053d13bd592a8
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
(cherry picked from commit c0b8a1bad215c6ba71851897ad642611f085dfb3)
2024-01-31 23:12:59 -08:00
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
Ayush Kumar
cffdf3f9b5 msm: camera: cre: Fix null pointer dereference in CRE driver
Flush all cmd release all request from CRE request list, once release
these request should not be access by other threads. This commit
add proper mutex lock and conditions to prevent use of released request
from CRE request list. Also change SW reset to HW reset in case of
flush all.

CRs-Fixed: 3583508
Change-Id: I35b38bf5b1771a26bb5a37d3404f6e577abcb66b
Signed-off-by: Ayush Kumar <quic_ayushkr@quicinc.com>
2024-01-24 06:05:13 -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
Abhilash Mahapatra
2d9d2bc7ec msm: camera: tpg: Handling Null Pointer Dereference
Proper handling of null pointer dereference in tpg
kernel code.
Fix for cust CID: 121781 119491

CRs-Fixed: 3714844
Change-Id: I653a6e3721223f705a4f1579ab54c2a145bf2d3c
Signed-off-by: Abhilash Mahapatra <quic_abhmah@quicinc.com>
2024-01-24 00:58:10 -08:00
Shadul Shaikh
57f19ae659 msm: camera: sensor: Duplicate TPG changes for Crow
Add support to skip TPG hardware operations with
"hw-no-ops" property.

CRs-Fixed: 3562223

Change-Id: I2ce3cc3d46d90567dba23e8952bb41e7b5936be4
Signed-off-by: Shadul Shaikh <quic_shaduls@quicinc.com>
(cherry picked from commit a117f9910be023824aea1ad598bf59359730e1f4)
2024-01-23 16:00:15 +05:30
Camera Software Integration
1d217d4df2 Merge "msm: camera: cpas: Enabling ICP clk for qchannel" into camera-kernel.lnx.7.0 2024-01-22 02:34:59 -08:00
Camera Software Integration
ad71795ee2 Merge "msm: camera: reqmgr: Increase total link capacity" into camera-kernel.lnx.7.0 2024-01-22 02:34:51 -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
ded3482130 Merge "msm: camera: sensor: add missing call for put buf" into camera-kernel.lnx.7.0 2024-01-22 02:32:09 -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