Commit graph android_kernel_motorola_sm6375/techpack/camera
Author SHA1 Message Date
Michael Bestas
9ca541ecda
Merge tag 'MMI-U1UGS34.23-110-23-2' of https://github.com/MotorolaMobilityLLC/kernel-msm-5.4-techpack-camera into lineage-22.2
Fogos push for Android 14

* tag 'MMI-U1UGS34.23-110-23-2' of https://github.com/MotorolaMobilityLLC/kernel-msm-5.4-techpack-camera: (86 commits)
  fogo: fix tombstone when use secure camera
  fogo: Fix secure mode switch error (2/2)
  Bangkk: reset ois when read standby_flag fail
  fogos: Actuator noise reduction[2/2]
  fogor: Actuator noise reduction[2/2]
  bangkk: Powerup and initialize sensor early [3/4]
  bangkk: Fix flash request GPIO-24 failed
  bangkk: support dw9784 af drift
  bangkk: Open Camera preview will be black then camera error
  bangkk: open Camera preview may be black sometimes
  bangkk: dw9784 ois bring up
  bangkk: Secondary supply flash driver ic compatible
  Tundra: restore ois delete submit
  Tundra: add delay at check ois data_ready
  Revert "(CR): milanf: modify ois vsync irq processing flow"
  penang: Adjust actuator noise reduction
  penang: Adjust actuator noise reduction
  penang: Actuator noise reduction
  milanf: modify ois vsync irq processing flow
  camera: ois: avoid ois power down twice when download firmware failed
  ...

 Conflicts:
	techpack/camera/drivers/cam_sensor_module/cam_ois/cam_ois_core.c

Change-Id: I9aa733fcd4412059a267c7cb9408b05e91eba111
2025-03-21 18:36:20 +02:00
Michael Bestas
8efcbedd97
Merge tag 'LA.UM.9.14.r1-25800-LAHAINA.QSSI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel into android13-5.4-lahaina
"LA.UM.9.14.r1-25800-LAHAINA.QSSI15.0"

* tag 'LA.UM.9.14.r1-25800-LAHAINA.QSSI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel:
  msm: camera: isp: Copy the userdata in kernel to avoid TOCTOU condition
  msm: camera: ois: Copy packet header in kernel
  msm: camera: sensor: TOCTOU error handling
  msm: camera: common: Add missing put_cpu_buf calls

Change-Id: Ic121b19c5d8911f3e223a11389208763f5ac2229
2025-02-14 03:31:00 +02:00
Swami Reddy Reddy
771c29041c
msm: camera: sensor: TOCTOU error handling
- Proper Handling in case of invalid pinctrl index
- Removing dead code and unused variables
- Change to dereference s_ctrl only after proper
  NULL Dereference Check.

CRs-Fixed: 3875406
Change-Id: I8e2c717b22efff2a7d6503d38c048e30eff230da
Signed-off-by: Swami Reddy Reddy <quic_swamired@quicinc.com>
2025-02-04 21:35:46 +02:00
Albert Tang
281c6276aa techpack: camera: Fix enum comparison warning
drivers/cam_isp/isp_hw_mgr/cam_tfe_hw_mgr.c:3038:21: error:
comparison of different enumeration types ('enum cam_tfe_csid_halt_cmd'
and 'enum cam_ife_csid_halt_cmd') [-Werror,-Wenum-compare]

	if (csid_halt_type == CAM_CSID_HALT_IMMEDIATELY)
	    ~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~

Change-Id: I13b0c86ded5ba544380c2ca9fd3d1a73db9ea63b
2024-12-20 13:26:37 -08:00
Michael Bestas
475adf7cee
Merge tag 'LA.UM.9.14.r1-25000.02-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel into android13-5.4-lahaina
"LA.UM.9.14.r1-25000.02-LAHAINA.QSSI14.0"

* tag 'LA.UM.9.14.r1-25000.02-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel:
  msm: camera: sensor: handling condition for random read
  msm: camera: icp: io buf config num validation
  msm: camera: ope: check cpu buffer offset and cmd buf idx

Change-Id: Id26854dd09597215befc5aaff1e5f6731a0fb3e0
2024-10-09 18:08:16 +00:00
Michael Bestas
6f41a7e92b
Merge tag 'LA.UM.9.14.r1-24900-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel into android13-5.4-lahaina
"LA.UM.9.14.r1-24900-LAHAINA.QSSI14.0"

* tag 'LA.UM.9.14.r1-24900-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel:
  msm: camera: sensor: TOCTOU error handling in eeprom
  msm: camera: sensor: TOCTOU error handling in eeprom
  msm: camera: sensor: TOCTOU error handling in eeprom
  msm: camera: sensor: TOCTOU error handling in eeprom

Change-Id: I185fde58c627ce0efc41855773e3b7d52075fd39
2024-08-05 22:15:53 +03:00
Michael Bestas
0edbb3c4df
Merge tag 'LA.UM.9.14.r1-24700-LAHAINA.QSSI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel into android13-5.4-lahaina
"LA.UM.9.14.r1-24700-LAHAINA.QSSI15.0"

* tag 'LA.UM.9.14.r1-24700-LAHAINA.QSSI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel:
  msm: camera: memmgr: Add refcount to track umd in use buffers
  msm: camera: memmgr: Add refcount to track umd in use buffers
  msm: camera: sensor: Handling race condition in util api

Change-Id: I4708288ccf2096b70148fbeb2bb543991ac8df4d
2024-05-29 03:04:52 +03:00
Michael Bestas
c609876f88
Merge tag 'LA.UM.9.14.r1-24200-LAHAINA.QSSI13.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel into android13-5.4-lahaina
"LA.UM.9.14.r1-24200-LAHAINA.QSSI13.0"

* tag 'LA.UM.9.14.r1-24200-LAHAINA.QSSI13.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel:
  msm: camera: sensor: Proper handling of race condition in util api
  msm: camera: sensor: Proper handling of race condition in util api
  msm: camera: memmgr: Add missing calls of put buf to avoid leak

Change-Id: I0aff5a21e16f44c2e13ed99b463f326eb57b1653
2024-03-23 17:40:57 +02:00
Michael Bestas
5a22f4da61
Merge tag 'LA.UM.9.14.r1-23800-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel into android13-5.4-lahaina
"LA.UM.9.14.r1-23800-LAHAINA.QSSI14.0"

* tag 'LA.UM.9.14.r1-23800-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel:
  msm: camera: common: Fix possible OOB reads and writes operation

Change-Id: I943de389f42e93c7ac39c827b176eaea1f65dcb1
2024-02-09 00:42:47 +02:00
Alexander Winkowski
1ecb1c7ff0
techpack: camera: Add missing braces in cam_ope_mgr_create_kmd_buf()
Cross-checked with msm-5.15 tag. The change does not exist as a separate
commit and is squashed into the initial import.

Change-Id: Ie922c512d7ea24661d3179cfd156ab8eb6fcc363
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
2023-11-11 17:25:25 +02:00
LuK1337
06fbccbb01 msm: camera: Fix strict-prototypes error
Change-Id: Iaad4cda7407ea12558a2d4a0f4acb4586bed5d0a
2023-10-21 12:59:36 +02:00
Michael Bestas
6026539bb5
Merge tag 'LA.UM.9.14.r1-22400-LAHAINA.QSSI13.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel into android13-5.4-lahaina
"LA.UM.9.14.r1-22400-LAHAINA.QSSI13.0"

* tag 'LA.UM.9.14.r1-22400-LAHAINA.QSSI13.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel:
  msm: camera: memmgr: release buffers after usage

Change-Id: Ib871ecd60cc9037ca43823170409c59e8071a52c
2023-09-19 17:26:07 +03:00
Michael Bestas
d76bd768e3
Merge tag 'LA.UM.9.14.r1-22200-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel into android13-5.4-lahaina
"LA.UM.9.14.r1-22200-LAHAINA.QSSI14.0"

* tag 'LA.UM.9.14.r1-22200-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel:
  msm: camera: fd: Fix compilation issue
  msm: camera: sensor: Add changes to prevent unmap buffers
  msm: camera: mem_mgr: Add refcount to track in use buffers
  msm: camera: core: validation of session/device/link handle

Change-Id: Ib788e6976d983169dbfc15ef0584cff7dc936dd9
2023-08-25 12:14:13 +03:00
Alexander Winkowski
368983dd6c
techpack: camera: Avoid OOB access to struct cam_axi_per_path_bw_vote
Change-Id: I36c6366aa77f8e747a18d30b11c9f4f10ab60a82
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
2023-08-15 17:53:46 +00:00
Michael Bestas
b5abec3dc6
Merge tag 'LA.UM.9.14.r1-21600-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel into android13-5.4-lahaina
"LA.UM.9.14.r1-21600-LAHAINA.QSSI14.0"

* tag 'LA.UM.9.14.r1-21600-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel:
  msm: camera: cdm: Making WQ to have inflight works to be one
  msm: camera: cdm: check irq status on hang detection
  msm: camera: ope: Avoid deadlock in OPE PF handling

Change-Id: I842118bc7fbdf635a9a76a4afdfbed87e6153df8
2023-06-08 11:44:58 +03:00
Michael Bestas
a3941b89a3
Merge tag 'LA.UM.9.14.r1-21300-LAHAINA.QSSI12.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel into android13-5.4-lahaina
"LA.UM.9.14.r1-21300-LAHAINA.QSSI12.0"

* tag 'LA.UM.9.14.r1-21300-LAHAINA.QSSI12.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel:
  msm: camera: smmu: Use get_file to increase ref count

Change-Id: I5d9a9b6f3fd5f47ccc75332fc1863861cb9b1c66
2023-03-24 02:55:33 +02:00
Michael Bestas
9ac32e636a
Merge tag 'LA.UM.9.14.r1-21200-LAHAINA.QSSI13.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel into android13-5.4-lahaina
"LA.UM.9.14.r1-21200-LAHAINA.QSSI13.0"

* tag 'LA.UM.9.14.r1-21200-LAHAINA.QSSI13.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel:
  msm: camera: lrme: BL command length validation

Change-Id: Ideb94c567a1f1c467e454cc9ac6a0b6ce89ee5a7
2023-03-19 17:10:26 +02:00
Michael Bestas
3d47e0d328
Merge tag 'LA.UM.9.14.r1-21000-LAHAINA.QSSI13.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel into android13-5.4-lahaina
"LA.UM.9.14.r1-21000-LAHAINA.QSSI13.0"

* tag 'LA.UM.9.14.r1-21000-LAHAINA.QSSI13.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel:
  msm: camera: isp: Handle early bufdones
  msm: camera: common: Add conditions to catch invalid packet data
  msm: camera: isp: Handle RUP in applied substate

Change-Id: I514cb62d4cd8af199ea4b828cd4c44c2f0f7a54e
2022-12-17 02:53:47 +02:00
Michael Bestas
5f1ec40398
Merge tag 'LA.UM.9.14.r1-20500.01-LAHAINA.QSSI12.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel into android12-5.4-lahaina
"LA.UM.9.14.r1-20500.01-LAHAINA.QSSI12.0"

* tag 'LA.UM.9.14.r1-20500.01-LAHAINA.QSSI12.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel:
  msm: camera: memmgr: Avoid TOCTOU buffer access on multiple use of same fd
  msm: camera: utils: modify debug function logic
  msm: camera: fd: fix compile error for kernel 5.4
  msm: camera: reqmgr: Reset the slot if it is applied

Change-Id: If3f45f7ce8b70d747a77845b43b7b8ec4aa9c9f9
2022-10-02 01:47:50 +03:00
Michael Bestas
a7cc4292fb
Merge tag 'LA.UM.9.14.r1-19600.01-LAHAINA.QSSI12.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel into android12-5.4-lahaina
"LA.UM.9.14.r1-19600.01-LAHAINA.QSSI12.0"

* tag 'LA.UM.9.14.r1-19600.01-LAHAINA.QSSI12.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel:
  msm: camera: eeprom: Add OOB read check for eeprom memory map
  msm: camera: jpeg: By default disable Camnoc MISR configuration

Change-Id: I7a43d3541489fab4e970272f70ea3468bead7a65
2022-05-24 09:15:17 +03:00
Michael Bestas
82f295420d
Merge tag 'LA.UM.9.14.r1-19500-LAHAINA.QSSI12.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel into android12-5.4-lahaina
"LA.UM.9.14.r1-19500-LAHAINA.QSSI12.0"

* tag 'LA.UM.9.14.r1-19500-LAHAINA.QSSI12.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel:
  msm: camera: ife: dump data at overlflow for rdi only use case
  msm: camera: memmgr: update correct length in bufq
  msm: camera: reqmgr: Validate the link handle
  msm: camera: cdm: Fix workqueue timing issue
  msm: camera: reqmgr: Avoid freeing subdev twice
  msm: camera: tfe: dump csid clock and path data at overflow
  msm: camera: reqmgr: reader writer locks to avoid memory faults
  msm: camera: ope: Fix for 32-bit kernel
  msm: camera: reqmgr: check if link handle is correctly passed
  msm: camera: isp: Add eof notification for rdi only context
  msm: camera: config: Enable camera drivers for qcs610
  msm: camera: ope: Update request timeout for NRT/RT context
  msm: camera: ope: Increase max bl limit and max stripe to process
  msm: camera: reqmgr: Prevent session deadlock
  msm: camera: isp: handle buf_done at apply failure from deferred list
  msm: camera: cdm: Fix deadlock issue in CDM handle error
  msm: camera: isp: Fix PPI index based on the phy selection
  msm: camera: ife: Add ife num outport bound checks
  msm: camera: cdm: handle dead lock scenario
  msm: camera: isp: Add handling for flush in flushed state
  msm: camera: core: Delete request from pending list in case of error
  msm: camera: req_mgr: Table info dump removed
  msm: camera: flash: Add support for qup i2c flash
  msm: camera: jpeg: Ensure in/out map entries are within allowed range
  msm: camera: memmgr: ref count for init and deinit

Change-Id: I023497de5674200d39cabeeba781c277c4c4dfc9
2022-05-19 00:36:59 +03:00
Michael Bestas
39f18e3259
Add 'techpack/camera/' from tag 'LA.UM.9.14.r1-18300-LAHAINA.0'
git-subtree-dir: techpack/camera
git-subtree-mainline: 8051403212
git-subtree-split: 702b632d40
Change-Id: If66513d1d1363aba05aa7b5457e54d0ac051b190
2022-05-19 00:03:00 +03:00