Commit gráf

2248 Commit-ok

Szerző SHA1 Üzenet Dátum
Suraj Dongre
bd411e32c9 msm: camera: icp: Use blob to pass presil hangdump buffer info
Added blob for presil hangdump containing memhandle for buffer.
Added code to copy hangdump from rumi into this buffer.

CRs-Fixed: 3042621
Change-Id: I804f34fdb251c83137c2ee5b9dd8eb082bd43bf7
Signed-off-by: Suraj Dongre <quic_sdongre@quicinc.com>
2021-12-21 12:10:41 -08:00
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
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
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
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
Camera Software Integration
01d287416d Merge "msm: camera: utils: Use mmrm api to check if mmrm is supported" into camera-kernel.lnx.5.0 2021-11-24 19:55:27 -08:00
Vikram Sharma
afac5c5a18 msm: camera: isp: Fix PPI index based on the phy selection
1) There is one to one mapping for ppi index with phy index
but phy select is not always equal to phy number,for some
targets "phy_sel = phy_idx + 1", and for some targets it is
"phy_sel = phy_idx", ppi_index should be updated accordingly.
2) Updated to configure ppi cfg register as.
 for cphy, disable dphy in config register.
 for dphy, do nothing (both cphy and dphy will be selected).
 then enable all lanes.

CRs-Fixed: 3057665
Change-Id: I1d5d66034a5563b5adcb8163acf9a668d10d4a19
Signed-off-by: Vikram Sharma <vikramsa@codeaurora.org>
2021-11-23 16:00:57 +05:30
Karthik Anantha Ram
ec9c3c2d48 msm: camera: isp: Enable error recovery block for PPP
In CSID enable error recovery block for PPP. Configure error
recovery to freeze mode.

CRs-Fixed: 3077774
Change-Id: I8c107396521a7a6475c648362157acdba44bf1d4
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2021-11-18 13:37:11 -08:00
Sridhar Gujje
137172a663 Merge tag 'camera-kernel.lnx.5.0-211112' into camera-kernel.lnx.6.0
FF: Upto PC675: Merge tag 'camera-kernel.lnx.5.0-211112' into 6.0

* tag 'camera-kernel.lnx.5.0-211112':
  msm: camera: isp: Report frame timing events in correct sequence
  msm: camera: icp: Remove extra IPE/BPS core reset reg read
  msm: camera: cpas: camnoc_reg_offset_fix
  msm: camera: icp: Fix HFI init sequence
  msm: camera: isp: Reset rdi only flag
  msm: camera: sensor: Add support for CSIPHY 2.1.3
  msm: camera: isp: Recover missed SOF timestamp
  msm: camera: isp: Update internal recovery scheme
  msm: camera: flash: Add support for qup i2c flash
  msm: camera: isp: Only realtime context can pause CRM timer
  msm: camera: isp: Add handling for flush in flushed state
  msm: camera: isp: Add support for IFE scratch buffer

Change-Id: Ib88385e1287b0fc9dd5da877487d9b6982aa364d
Signed-off-by: Sridhar Gujje <sgujje@codeaurora.org>
2021-11-18 17:43:03 +05:30
Karthik Anantha Ram
40fc62f499 msm: camera: isp: Handle IRQ delays for offline streams
Update ISP offline state machine, to ensure any IRQ scheduling
issues would not lead to complete stalling of the stream.

CRs-Fixed: 3068998
Change-Id: I116019e4963f93c28bcfb1f09c5278f478961a5d
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-11-18 19:06:08 +08:00
Depeng Shao
997395bd54 msm: camera: isp: Handle deferred buf done for bubble case
Sometimes we already get all the buf done before the bubble
is detected, so we also need to handle the deferred buf done
when the bubble is detected, otherwise, the bubble request
can't be finished.

CRs-Fixed: 3066543
Change-Id: Ied46ad0a5efe3a7d8132bc9560ae3f35d69fee89
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
2021-11-16 17:01:17 +08:00
Karthik Anantha Ram
105075926c msm: camera: tfe: Update arguments to addIO util
Update scratch buf arguments in TFE HW manager for addIO util.

CRs-Fixed: 3045706
Change-Id: Iaa7f47c1c67045d0427fddda64fa1414dd55ca9b
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-11-15 12:32:28 -08:00
Savita Patted
ac3b745e47 Merge "msm: camera: icp: Remove extra IPE/BPS core reset reg read" into camera-kernel.lnx.5.0 2021-11-12 17:38:38 -08:00
Savita Patted
f94cb9c0dd Merge "msm: camera: cpas: camnoc_reg_offset_fix" into camera-kernel.lnx.5.0 2021-11-12 17:37:20 -08:00
Savita Patted
0ad4a3a10e Merge "msm: camera: isp: Report frame timing events in correct sequence" into camera-kernel.lnx.5.0 2021-11-12 17:37:00 -08:00
Jigarkumar Zala
1a2540f2f4 msm: camera: flash: Correct log location
Flash acquire logs with device handle is getting printed at wrong
place. This change move acquire logging after succesful acquire
of flash hw.

CRs-Fixed: 3048249
Change-Id: Ibe5071c963faad87585e7ead74e4e41de0d2ddd4
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2021-11-12 15:18:32 -08:00
Camera Software Integration
23448296de Merge "msm: camera: common: Remove QMAA flag check from camera-kernel" into camera-kernel.lnx.6.0 2021-11-12 00:21:16 -08:00
Savita Patted
1b13715a6e Merge "msm: camera: icp: Fix HFI init sequence" into camera-kernel.lnx.5.0 2021-11-11 18:37:18 -08:00
Savita Patted
b502e34473 Merge "msm: camera: sensor: Add support for CSIPHY 2.1.3" into camera-kernel.lnx.5.0 2021-11-11 18:37:08 -08:00
Savita Patted
4eb6436d98 Merge "msm: camera: isp: Recover missed SOF timestamp" into camera-kernel.lnx.5.0 2021-11-11 18:22:48 -08:00
Savita Patted
f2f3189463 Merge "msm: camera: isp: Update internal recovery scheme" into camera-kernel.lnx.5.0 2021-11-11 18:22:38 -08:00
Savita Patted
e8253ce8cd Merge "msm: camera: isp: Add support for IFE scratch buffer" into camera-kernel.lnx.5.0 2021-11-11 18:22:26 -08:00
Savita Patted
37b92699e1 Merge "msm: camera: isp: Only realtime context can pause CRM timer" into camera-kernel.lnx.5.0 2021-11-11 18:22:12 -08:00
Savita Patted
ba6a884318 Merge "msm: camera: isp: Reset rdi only flag" into camera-kernel.lnx.5.0 2021-11-11 18:22:01 -08:00
Savita Patted
fed17f2312 Merge "msm: camera: isp: Add handling for flush in flushed state" into camera-kernel.lnx.5.0 2021-11-11 18:21:50 -08:00
Sridhar Gujje
f8fb89e544 Merge tag 'camera-kernel.lnx.5.0-211105' into camera-kernel.lnx.6.0
FF: Upto PC669: Merge tag 'camera-kernel.lnx.5.0-211101.1' into 6.0

* tag 'camera-kernel.lnx.5.0-211105':
  msm: camera: isp: Enable line done config for SFE RDI0-2
  msm: camera: smmu: Add support for 36 bit address space
  msm: camera: cpas: Disable ICP QoS registers for kalama
  msm: camera: isp: Update RM stride correctly at stream on
  msm: camera: sensor: Add support for CSIPHY TPG 1.2
  msm: camera: isp: Add header file VFE and CSID for Cape
  msm: camera: cpas: Add support for Cape Camera
  msm: camera: sensor: Add support for CSIPHY 2.1.1
  msm: camera: common: Add path for ubwc and linear
  msm: camera: common: Add Kalama make configuration
  msm: camera: smmu: Moves custom smmu API's to cam_compat
  msm: camera: common: Remove return from debugfs_create_bool
  msm: camera: mem_mgr: Add dma_buf_vmap to cam_compat
  msm: camera: custom: Move include to cam_compat
  msm: camera: req_mgr: Update list_head to const
  msm: camera: common: DDR type selection deprecation
  msm: camera: csid: correction for printing long and short packet info
  msm: camera: isp: Refactor csid get rdi format function
  msm: camera: isp: Print additional debug info in case of csid errors

Change-Id: I46f3c1c34c2db76436ad02a30268e4c6f9a845b3
Signed-off-by: Sridhar Gujje <sgujje@codeaurora.org>
2021-11-11 17:05:31 +05:30
Anand Ravi
a3632ffe16 msm: camera: isp: Report frame timing events in correct sequence
Due to interrupt delays, when VFE top processes the interrupt registers
it might see EPOCH and EOF of frame n along with SOF of frame n+1. The
current logic is based on IRQ controller priority and hence will report
SOF of frame n+1 before EPOCH of frame n. This can result in ISP context
reporting SOF timestamp of frame n+1 for both frame n and frame n+1.

In order to report the events in the order that they occurred, we
maintain a state machine in VFE top to keep track of the last seen
event. This helps detect any missing IRQs and also warn when such
interrupt delays are observed.

The state machine logic is only able to handle delays less than 1 frame.
For example, EPOCH of frame n+1 occurs before VFE top has read EPOCH of
frame n, there is no way to tell that this is the case from the
interrupt registers.

CRs-Fixed: 3067696
Change-Id: I061732c20ff23ca9394ae9844d50729476ad07b5
Signed-off-by: Anand Ravi <ananravi@codeaurora.org>
2021-11-10 17:24:13 -08:00
sokchetra eung
26855c8a9a msm: camera: icp: Remove extra IPE/BPS core reset reg read
Remove regs reread of cdm_irq_status and top_irq_status
after finishing read poll of the regs to avoid false
errors in core reset of IPE and BPS.

CRs-Fixed: 3071147
Change-Id: Ie4d65a7b527b025b623d365c77361e3db9ae89be
Signed-off-by: sokchetra eung <eung@codeaurora.org>
2021-11-10 10:57:11 -08:00
Shravan Nevatia
d841951985 msm: camera: sensor: Add support for CSIPHY fuse
Add support to disable the 5th CSIPHY based on
the CSIPHY SW fuse register bit.

Change-Id: Iae9dd7df0c0277eb48a258c91502390d042c9c43
CRs-Fixed: 3071805
Signed-off-by: Shravan Nevatia <quic_snevatia@quicinc.com>
2021-11-10 02:50:39 -08:00