Commit Graph

35 Commits

Author SHA1 Message Date
FlowerSea0208
a8b1270931 techpack: camera: ois: Update from star-r-oss
Change-Id: I9dc3eca68ab3ba31d2ab84c7a22cd7c957edebba
2024-09-02 04:15:21 +08:00
Giovanni Ricca
1ab94448bd
techpack: camera: Add wait for macro camera on K9E and M20
Change-Id: I4467cd6bf02fddfae79c37f576c5c74c167c0a3b
2024-05-20 17:39:57 +02:00
Arian
54789f8c2a
techpack: camera: Haydn is special
Change-Id: I8f75769da498aebdcd79c44ba521a3ce5927a993
2024-05-20 17:39:56 +02:00
Erfan Abdi
f1c63607d6
techpack: camera: Add wait for AF regulator hw disabling on K11
Change-Id: Ia1d68f57f040ac7f7c2e5fb82aa6794431de7802
2024-05-20 17:39:55 +02:00
Erfan Abdi
32f26284e2
techpack: camera: Add vana1 to vreg names enum
Change-Id: I2295bf92bf624474d0b07559bfbcf224e59dbbde
2024-05-20 17:39:54 +02:00
Giovanni Ricca
cecf4456e7
techpack: camera: cam_isp: Enlarge max_vfe_out_res expected size
Since 45dbb6c0cd, the camera kernel stack checks `num_ports` size from userspace.
For some reasons, the reported size is higher than what it expected [1]
This breaks some camera functionality (such as 60fps video recording) on yupik Xiaomi devices
To workaround this, let's enlarge the expected vfe size to match these cases

[1] 10-01 22:49:53.142 7430 7430 I CAM_ERR : CAM-ISP: cam_isp_update_dual_config: 129 num_ports 25 more than max_vfe_out_res 23

Change-Id: Id4ea44a07f5c50ea5a716e5910a7574d426a3515
Suggested-by: Alexander Winkowski <dereference23@outlook.com>
Signed-off-by: Giovanni Ricca <giovanniricca@proton.me>
2024-05-20 17:39:54 +02:00
Giovanni Ricca
7a8162f3b8
techpack: camera: Enlarge cfg timeout
Change-Id: Ic79f0c4459cc763620601cd251c41439ddb44f28
2024-05-20 17:39:53 +02:00
Giovanni Ricca
d9a1565419
techpack: camera: Increase watchdog timeout
Change-Id: Iaba59cf443095191939fe2cc6b20364796e9929f
2024-05-20 17:39:52 +02:00
Giovanni Ricca
7444966af8
techpack: camera: Increase mac ctx value
Change-Id: I69e7f85adaec9978d914dbf16dc0cff53e3e8960
2024-05-20 17:39:51 +02:00
Giovanni Ricca
38f7d7576b
techpack: camera: Increase flush requests
Change-Id: Ib8191afd0c9a984fb883b34cf0f26c3ee7d23580
2024-05-20 17:39:50 +02:00
Cosmin Tanislav
1faf254e9d
techpack: camera: ois: import xiaomi changes 2024-05-20 17:39:49 +02:00
Cosmin Tanislav
31bd471411
techpack: camera: core: add support for powering up external isp 2024-05-20 17:39:48 +02:00
Arian
153e92063a
techpack: camera: csiphy: Guard overriding csiphy register values
Xiaomi guarded that in a few branches, unfortunately not consistently.
This is a combination of the following branches:
venus-r-oss, mona-r-oss, haydn-r-oss, star-r-oss, odin-r-oss, lisa-r-oss, vili-r-oss

K2 uses this in venus-r-oss
K8 uses this in odin-r-oss
K11 uses this in haydn-r-oss and star-r-oss
J18 uses this in star-r-oss
K3S uses this in vili-r-oss

Change-Id: If940a64897dbc70134c14c4be1b64b390f2d8879
2024-05-20 17:39:47 +02:00
Cosmin Tanislav
b08f895848
techpack: camera: csiphy: override csiphy register values for higher than 3.5GHz 2024-05-20 17:39:46 +02:00
Cosmin Tanislav
06612551d0
techpack: camera: sensor: implement optimization disabling 2024-05-20 17:39:45 +02:00
Cosmin Tanislav
84ef47733c
techpack: camera: req_mgr: do not send timestamp for offline context 2024-05-20 17:39:44 +02:00
Arian
ffcb8b4841
techpack: camera: Increase req mgr events further
Match star-r-oss and odin-r-oss

Change-Id: I3e4f14243861dd129cc0caf3fc416b243cbda6d6
2024-05-20 17:39:43 +02:00
Cosmin Tanislav
d62777e783
techpack: camera: increase req mgr events 2024-05-20 17:39:42 +02:00
Cosmin Tanislav
8414c83871
techpack: camera: req_mgr: increase max handles to match stock camera module 2024-05-20 17:39:41 +02:00
Cosmin Tanislav
22b0bc011e
techpack: camera: lock cci core read and write operations 2024-05-20 17:39:40 +02: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