Commit Graph

2422 Commits

Author SHA1 Message Date
Dharmender Sharma
06b7b57b28 msm: camera: jpeg: JPEG HW and Camnoc MISR
Support for Camnoc MISR for JPEG DMA and Encoder.
Also added support for seprate target files.

CRs-Fixed: 3012752
Change-Id: I5e066d5d871f58073f669c01270d5b64ce16088e
Signed-off-by: Dharmender Sharma <quic_dharshar@quicinc.com>
2021-12-16 10:56:33 +05:30
Depeng Shao
271a07b9ce msm: camera: isp: Update last applied scratch configuration for sfe
In case of sHDR dynamic switch, for a frame on which we are
configuring scratch buffer, use num of exposure from the
last applied valid request as opposed to global reference of
num of exposure held by global scratch configuration. The
global reference could have been updated by a future request,
it would be incorrect to use that when that request has not
even been applied.

CRs-Fixed: 3084946
Change-Id: I2a70d0de57e2dd780aa2eecc71a6398dc1800b6c
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
2021-12-16 11:48:47 +08:00
Camera Software Integration
8d2fe2dc4a Merge "msm: camera: isp: Add pointer check" into camera-kernel.lnx.6.0 2021-12-15 19:17:55 -08:00
Camera Software Integration
186193bb8f Merge "msm: camera: reqmgr: On bubble reset appropriate slots" into camera-kernel.lnx.6.0 2021-12-15 19:16:25 -08:00
Camera Software Integration
14e9db0bd2 Merge "msm: camera: sensor: Change return code when rejecting packet" into camera-kernel.lnx.6.0 2021-12-15 19:15:59 -08:00
Camera Software Integration
78a85091cb Merge "msm: camera: isp: Add support for bus info dump on PF" into camera-kernel.lnx.6.0 2021-12-15 19:15:44 -08:00
Camera Software Integration
db45e9dfc3 Merge "msm: camera: isp: Use UAPI resource ID for SFE bus RD" into camera-kernel.lnx.6.0 2021-12-15 19:15:23 -08:00
Camera Software Integration
d037c94f80 Merge "msm: camera: cre: compilation fixes" into camera-kernel.lnx.6.0 2021-12-15 19:15:08 -08:00
Suraj Dongre
a4899090dc msm: camera: icp: hfi adaptation for presil mode
Added pre-sil implementation of icp hfi.
Hfi functions need to modify shared queue memory shared with FW
at byte level and frequently. Hence we redirect hfi function calls
to PCHost and have queue logic running directly on PCHost.

CRs-Fixed: 2932495
Change-Id: Ib3b92f998e5836b27573a2756f94f170d2827c82
Signed-off-by: Suraj Dongre <quic_sdongre@quicinc.com>
2021-12-15 14:17:18 -08:00
Jigarkumar Zala
388718b394 msm: camera: common: Add level in priority list for shutdown
Currently sensor and csiphy has the same priority in shutdown
sequence. This is sometime calls sensor shutdown before csiphy
and with the AON usecase it is failing with CPAS related operation.
This change introducing the new enum entry for the Medium_low, which
make sure the csiphy shutdown gets call before the sensor shutdown
in order to make the operation in align with cross modules.

CRs-Fixed: 3084672
Change-Id: I40f495151392f96ac89caf8df852ed8326b79d9b
Signed-off-by: Jigarkumar Zala <quic_jzala@quicinc.com>
2021-12-15 10:56:58 -08:00
Gaurav Jindal
39a7d96dec msm: camera: isp: Add v780 configs for BW limit and packer alignment
Add configurations for BW limiter in IFE and packer alignment in
SFE headers for v780.

CRs-Fixed: 3090212
Change-Id: I24dbd540d97b721f93af82f94b43cce92fa8f0fa
Signed-off-by: Chandan Kumar Jha <quic_cjha@quicinc.com>
Signed-off-by: Gaurav Jindal <quic_gjindal@quicinc.com>
2021-12-15 21:43:04 +05:30
Tejas Prajapati
d53bfe24ff msm: camera: isp: handle buf_done at apply failure from deferred list
For RDI only context where the buf_done is handled from wait list,
if the buf_done is moved to deferred list then the bubble
recovery might fail. To make sure the bubble is processed the request
needs to be moved pending list. This change helps moving the request
from active list to pending list.

CRs-Fixed: 3079621
Change-Id: Ibb271e68ca2312cbd3d71bd64e2ed7963bf60b55
Signed-off-by: Tejas Prajapati <tpraja@codeaurora.org>
2021-12-15 02:23:07 -08:00
Alok Pandey
9dd2955dc9 msm: camera: cpas: Add support for Parrot Camera
Parrot has different version of CPAS which requires
camnoc interface changes and CPAS version change.
This change adds the same.

CRs-Fixed: 3081144
Change-Id: Icf39e12d3af8518471b093c860888df05af279b7
Signed-off-by: Alok Pandey <akumarpa@codeaurora.org>
2021-12-14 08:37:50 -08:00
Wyes Karny
f9c1142df1 msm: camera: isp: Add MID for parrot
Add MID values in parrot header files. This MID values will help to know
which port got page fault in issue time.

Depends-on: 3882570
CRs-Fixed: 3081144
Change-Id: Ic59bc58b80d172128d26f8845649825a4cb53837
Signed-off-by: Wyes Karny <wkarny@codeaurora.org>
2021-12-14 08:37:26 -08:00
Wyes Karny
99805a9e51 msm: camera: isp: Add fuse support for QCFA binning
- Add fuse support for QCFA binning. If fuse bit is set then QCFA is
  enabled then we should proceed for acquire otherwise we should fail.
- Add dt-bindings entry for CAM_CPAS_IPE_VID_OUT_8BPP_LIMIT_ENABLE
  feature.

CRs-Fixed: 3081144
Change-Id: Iaf6f1c9d9fd442ff24c36d90758aa8ee146d461f
Signed-off-by: Wyes Karny <wkarny@codeaurora.org>
2021-12-14 08:35:05 -08:00
Gaurav Jindal
de28f106fb msm: camera: isp: Add util functions in acquire flow
In current implementation of acquire logic, there are few
goto statements and nested if-else conditions.
This commit moves such code into small util functions to make
the code cleaner.

CRs-Fixed: 3092119
Change-Id: I5fcdaa3caa7b5e516419c255b1d103757ac71177
Signed-off-by: Gaurav Jindal <quic_gjindal@quicinc.com>
2021-12-14 14:39:27 +05:30
Haritha Chintalapati
c4b93c74bf Merge "msm: camera: mem_mgr: Add dma_buf_vunmap to cam_compat" into camera-kernel.lnx.6.0 2021-12-13 19:50:19 -08:00
Haritha Chintalapati
260e192358 Merge "msm: camera: isp: Fix csid bottom half code" into camera-kernel.lnx.6.0 2021-12-13 19:50:01 -08:00
Camera Software Integration
d76d1db02f Merge "msm: camera: reqmgr: Add more error codes in uapi file" into camera-kernel.lnx.6.0 2021-12-13 19:49:21 -08:00
Karthik Anantha Ram
261b99ed56 msm: camera: reqmgr: On bubble reset appropriate slots
In case of bubble, reset all slots starting from bubbled
request slot to the last applied slot. On occasions of
workq delays, this might lead to having a slot in the
wrong state.

CRs-Fixed: 3079337
Change-Id: I08dc4cf4f00f487b34eddd1771c67b3c1a8319ce
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2021-12-13 13:10:09 -08:00
Karthik Jayakumar
1a889fa4c1 msm: camera: smmu: Update SMMU debug print format
Updates the CAM_DBG print format specifiers to print 64-bit integer
types.

CRs-fixed: 3065594
Change-Id: Idfa3822c586ec45ed098916d29b5b556b3942f17
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
2021-12-13 02:29:48 -08:00
Alok Pandey
40049f0b5e msm: camera: cre: compilation fixes
CRE Compilation fixes.

CRs-Fixed: 3081144
Change-Id: I59b9cd3f0e732dd806b10b10ce7b9761ed99b0ea
Signed-off-by: Alok Pandey <akumarpa@codeaurora.org>
2021-12-10 22:03:52 -08:00
zhuo
cc2c7724f5 msm: camera: mem_mgr: Add dma_buf_vunmap to cam_compat
dma_buf_vunmap function signature changed between kernel version
5.10 and 5.15.

CRs-Fixed: 3088126
Change-Id: If6ef72aa7839e358bc6d7a384e628b760ecaf265
Signed-off-by: zhuo <quic_zhuo@quicinc.com>
2021-12-09 18:40:40 +08:00
Karthik Anantha Ram
7bf952210f msm: camera: isp: Add support for bus info dump on PF
On PF based on the faulting client [IFE WR/SFE WR/SFE RD], invoke
the appropriate resource to dump it's info.

CRs-Fixed: 3079337
Change-Id: I0160fa9b29fca3991952370eb1fb37b667136bc4
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2021-12-08 19:32:23 -08:00
Karthik Anantha Ram
2b7a0094b9 msm: camera: isp: Use UAPI resource ID for SFE bus RD
As opposed to using internally defined enums for SFE fetch engines,
use UAPI defined ids for consistency with WM resources.

CRs-Fixed: 3079337
Change-Id: I569bae8b512e38de20112d0713b1c21cf4613a86
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2021-12-08 19:31:39 -08:00
Karthik Anantha Ram
935c458f46 msm: camera: isp: Add pointer check
Update pointer check to ensure there is no invalid access.

CRs-Fixed: 3079337
Change-Id: Ia569c5ccb077e0fb6385217a92b380e51b04d6f1
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2021-12-08 19:20:00 -08:00
Karthik Anantha Ram
7685a64f5a msm: camera: isp: Improve CSID debug infrastructure
Add provision to allow user to set vc-dt for rx pkt capture.
Allow user to decide if pkt strobes need to be reset to allow
for next packet capture. Change rx top half processing to only allow
set bits to be processed. Change rate limit log to info, if
user has enabled specific CSID IRQs, allow them to be logged
per frame.

[0:3]   = rst strobes
[4:11]  = vc for capture
[12:19] = dt for capture

echo <debug_val> > /sys/kernel/debug/camera_ife/ife_csid_rx_capture_debug.

CRs-Fixed: 3068993
Change-Id: I45d1db4fceba736fb03201786a8ae1e4af5b691f
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-12-08 15:25:12 -08:00
Jigar Agrawal
4abc4bf7f1 msm: camera: isp: Fix csid bottom half code
Fix the ipp, ppp and rdi bottom half handlers to safely
release the event payload when possible and add sanity
checks to prevent possible out of bound array index
access.

CRs-Fixed: 3067387
Change-Id: I93f73ae7239901eee19e2e5694a2c656390abc53
Signed-off-by: Jigar Agrawal <quic_jigar@quicinc.com>
2021-12-08 12:45:05 -08:00
Karthik Anantha Ram
d4b9fa4158 msm: camera: sensor: Change return code when rejecting packet
When rejecting request that is flushed, return invalid error
desc as opposed to invalid argument.

CRs-Fixed: 3079337
Change-Id: I25ba7c3a9ae62958687a3c2fa69f530397596d0b
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2021-12-08 10:10:27 -08:00
Pavan Kumar Chilamkurthi
3c9ec4886b msm: camera: icp: Add err logs in failure cases
Add ERR logs if something failed in hw_open flow.

CRs-Fixed: 3048249
Change-Id: I932ff0683e5775117b82aa704c3b740f930f7016
Signed-off-by: Pavan Kumar Chilamkurthi <quic_pchilamk@quicinc.com>
2021-12-07 15:36:49 -08:00
Savita Patted
fdd4d2fbb1 FF: Merge tag camera-kernel.lnx.5.0-211203.1 into camera-kernel.lnx.6.0
* origin/camera-kernel.lnx.5.0:
  msm: camera: csiphy: update phy hw reg vers 2.1.3
  msm: camera: cdm: Fix deadlock issue in CDM handle error
  msm: camera: sensor: Add component support for i2c driver
  msm: camera: isp: Fix PPI index based on the phy selection
  msm: camera: isp: Enable error recovery block for PPP
  msm: camera: isp: Handle IRQ delays for offline streams
  msm: camera: isp: Handle deferred buf done for bubble case
  msm: camera: tfe: Update arguments to addIO util
  msm: camera: flash: Correct log location
  msm: camera: sensor: Add support for CSIPHY fuse
  msm: camera: utils: Use mmrm api to check if mmrm is supported
  msm: camera: isp: Add more deferred buf done support
  msm: camera: csiphy: Enhance csiphy logs
  msm: camera: isp: Update 780 LITE header

Change-Id: I705b7b8293d5c40d9bc59771ce68a02bccde82b2
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2021-12-03 14:37:53 -08:00
Jigar Agrawal
31ccd86693 msm: camera: reqmgr: Add more error codes in uapi file
Add support for Missing EOT and long packet corruption
error codes.

CRs-Fixed: 3026930
Change-Id: I10088e0aff95782d8fa9ceff0e73ecf08b6a02dd
Signed-off-by: Jigar Agrawal <quic_jigar@quicinc.com>
2021-12-03 12:25:36 -08:00
Camera Software Integration
cee27952bd Merge "msm: camera: csiphy: update phy hw reg vers 2.1.3" into camera-kernel.lnx.5.0 2021-12-03 03:28:44 -08:00
Camera Software Integration
2cf8f68b8f Merge "msm: camera: isp: Handle IRQ delays for offline streams" into camera-kernel.lnx.5.0 2021-12-03 03:28:34 -08:00
Camera Software Integration
6096eb1146 Merge "msm: camera: isp: Enable error recovery block for PPP" into camera-kernel.lnx.5.0 2021-12-03 03:26:29 -08:00
Camera Software Integration
17d74d0e1b Merge "msm: camera: cdm: Fix deadlock issue in CDM handle error" into camera-kernel.lnx.5.0 2021-12-03 03:26:12 -08:00
Camera Software Integration
903a8b596d Merge "msm: camera: sensor: Add component support for i2c driver" into camera-kernel.lnx.5.0 2021-12-03 03:25:50 -08:00
Pavan Kumar Chilamkurthi
023cd45ecd Revert "msm: camera: cpas: add log"
This reverts commit 5e263d52ce.

CRs-Fixed: 3086172
Change-Id: I4d3bd876aca2e39c7e17cf03b829174731ce4acf
Signed-off-by: Pavan Kumar Chilamkurthi <pchilamk@codeaurora.org>
2021-12-02 09:59:54 -08:00
Pavan Kumar Chilamkurthi
5e263d52ce msm: camera: cpas: add log
add log.

CRs-Fixed: 3086172
Change-Id: Iad5b1f504ab9ec02b7f2e5f19e95eba7ba618a10
Signed-off-by: Pavan Kumar Chilamkurthi <pchilamk@codeaurora.org>
2021-12-01 16:07:21 -08:00
Camera Software Integration
cf209cad87 Merge "msm: camera: isp: Fix PPI index based on the phy selection" into camera-kernel.lnx.5.0 2021-11-30 21:58:17 -08:00
Camera Software Integration
617d12548f Merge "msm: camera: isp: Update 780 LITE header" into camera-kernel.lnx.5.0 2021-11-30 21:57:51 -08:00
Camera Software Integration
4109d556c1 Merge "msm: camera: flash: Correct log location" into camera-kernel.lnx.5.0 2021-11-30 21:57:26 -08:00
Camera Software Integration
aaa386c25a Merge "msm: camera: csiphy: Enhance csiphy logs" into camera-kernel.lnx.5.0 2021-11-30 21:57:09 -08:00
Camera Software Integration
d504633de3 Merge "msm: camera: isp: Handle deferred buf done for bubble case" into camera-kernel.lnx.5.0 2021-11-30 21:56:45 -08:00
Camera Software Integration
2be5d43313 Merge "msm: camera: isp: Add more deferred buf done support" into camera-kernel.lnx.5.0 2021-11-30 21:56:27 -08:00
Rajat Goel
fe414f6367 msm: camera: csiphy: update phy hw reg vers 2.1.3
update phy hw reg 2.1.3 as per latest HPG rev 3.0.

CRs-Fixed: 3084120
Change-Id: I4dd8216c3136b1caddfdbea836d376869d0274b5
Signed-off-by: Rajat Goel <quic_rajgoe@quicinc.com>
2021-11-30 15:58:31 +05:30
Wyes Karny
948464490a msm: camera: cdm: Fix deadlock issue in CDM handle error
Fix deadlock issue in CDM handle error.

CRs-Fixed: 3073203
Change-Id: Ia63e1841fc00e74e4c03a1d6b28e94814748aa8f
Signed-off-by: Wyes Karny <wkarny@codeaurora.org>
2021-11-28 22:47:13 -08:00
Depeng Shao
d8d3eaa882 msm: camera: sensor: Add component support for i2c driver
Sometimes, i2c driver will be probed earlier than CRM
driver ready, then we can't register the subdev for
this i2c driver. This change adds the component support
for i2c driver.

CRs-Fixed: 3073284
Change-Id: I5ee176497a667729d964758ac0909f6902877094
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
2021-11-27 07:22:51 -08:00
Camera Software Integration
9d22ec64fc Merge "msm: camera: tfe: Update arguments to addIO util" into camera-kernel.lnx.5.0 2021-11-24 19:56:24 -08:00
Camera Software Integration
c385cf2ecc Merge "msm: camera: sensor: Add support for CSIPHY fuse" into camera-kernel.lnx.5.0 2021-11-24 19:56:13 -08:00