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>
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
"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
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>
"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
"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
"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