Commit graph

886 commits

Author SHA1 Message Date
Camera Software Integration
4e9f4848db Merge "msm: camera: csiphy: Enable dynamic clock selection for CSIPHY 1.2.4" into camera-kernel.lnx.4.0 2020-10-09 14:08:29 -07:00
Camera Software Integration
e8ff145658 Merge "msm: camera: isp: Print context on release HW error" into camera-kernel.lnx.4.0 2020-10-09 14:08:04 -07:00
Camera Software Integration
8653e8f2f6 Merge "msm: camera: csid: Increment error count for ERROR_CRC and ERROR_ECC" into camera-kernel.lnx.4.0 2020-10-08 13:12:18 -07:00
Camera Software Integration
eff6ad9207 Merge "msm: camera: ope: Fix false hw hang detection" into camera-kernel.lnx.4.0 2020-10-08 13:12:10 -07:00
Camera Software Integration
19cbc40633 Merge "msm: camera: isp: Add Phy source for CPHY TPG" into camera-kernel.lnx.4.0 2020-10-08 13:12:01 -07:00
Camera Software Integration
a418ea16ac Merge "msm: camera: isp: Add BW voting path for SFE HW" into camera-kernel.lnx.4.0 2020-10-08 13:11:53 -07:00
Camera Software Integration
a7a6720c34 Merge "msm: camera: isp: Support for SFE IRQ handling" into camera-kernel.lnx.4.0 2020-10-08 13:11:42 -07:00
Camera Software Integration
9ef77e444a Merge "msm: camera: isp: Add support for SFE HW layer in ISP driver" into camera-kernel.lnx.4.0 2020-10-08 13:11:31 -07:00
Shravan Nevatia
84d2833140 msm: camera: csiphy: Enable dynamic clock selection for CSIPHY 1.2.4
- Make CSIPHY 1.2.4 clock selection logic dynamic in order
to utilize the LOWSVS corner.

- Fix is_divisor_32_comp values for all PHY versions.

CRs-Fixed: 2792275
Change-Id: I66a12fe6f0e01d1a649559b9ebffff5a7c9308d5
Signed-off-by: Shravan Nevatia <snevatia@codeaurora.org>
2020-10-08 13:00:16 +05:30
Camera Software Integration
50f5e56dc3 Merge "msm: camera: reqmgr: Fix for apply stuck issue for pd 1 device" into camera-kernel.lnx.4.0 2020-10-07 12:46:06 -07:00
Mukund Madhusudan Atre
9f092f1d49 msm: camera: isp: Add BW voting path for SFE HW
Add register, start, stop and bw update/control functions.

CRs-Fixed: 2783797
Change-Id: I587e6eca66ee9d7316f2602d60bfc77b9f8704cf
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2020-10-07 09:16:10 -07:00
Jigarkumar Zala
e4b180abaf msm: camera: isp: Support for SFE IRQ handling
Add irq controller support for the SFE core & bus interfaces.

CRs-Fixed: 2783797
Change-Id: I84c04a13fa26a9d040bab9e7ec7ba2d3061e1f76
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2020-10-07 09:14:57 -07:00
Shravya Samala
ef90082f0b msm: camera: ope: Fix false hw hang detection
While preparing config packet at HW layer,
we are setting Ope request timer even before
processing command buffer and IO cfg. This is
leading to false hw hand detection.
Expectation is Ope request timer has to
start after req is submitted to HW.

CRs-Fixed: 2788900
Change-Id: Idd1420b2ee1aed4bfe947cf5617bbec9b39147d3
Signed-off-by: Shravya Samala <shravyas@codeaurora.org>
2020-10-07 13:13:56 +05:30
Anand Ravi
8f5a2cd427 msm: camera: isp: Print context on release HW error
Print the context id in the error statement when release_hw is
called in top state with no hw resources acquired.

CRs-Fixed: 2709537
Change-Id: Ic153cc7f92cfc15a56e7989b0337a4e051af4c43
Signed-off-by: Anand Ravi <ananravi@codeaurora.org>
2020-10-06 22:58:01 -07:00
Karthik Anantha Ram
1232bfaa25 msm: camera: isp: Add support for SFE HW layer in ISP driver
Add support for SFE TOP, SFE BUS_WR & SFE BUS_RD in ISP
driver.

CRs-Fixed: 2733230
Change-Id: I85d356d28879b5cf9144a459fcdbd9f57526fa91
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2020-10-06 21:16:33 -07:00
Camera Software Integration
fe2f879a03 Merge "msm: camera: cpas: Add fuse MP limit support" into camera-kernel.lnx.4.0 2020-10-06 12:28:40 -07:00
Camera Software Integration
36a18d2201 Merge "msm: camera: reqmgr: Reset the number of sync links" into camera-kernel.lnx.4.0 2020-10-06 12:28:31 -07:00
Camera Software Integration
19508cf8ee Merge "msm: camera: csiphy: Update the csiphy programming sequence" into camera-kernel.lnx.4.0 2020-10-06 12:28:23 -07:00
Camera Software Integration
315368fc57 Merge "msm: camera: memmgr: Add error handling get slot failure" into camera-kernel.lnx.4.0 2020-10-06 12:28:17 -07:00
Camera Software Integration
3c4241c06a Merge "msm: camera: cpas: Write qosgen registers when enabled" into camera-kernel.lnx.4.0 2020-10-06 12:28:10 -07:00
Camera Software Integration
f65a144b8c Merge "msm: camera: ope: Handle race while dumping ope req list" into camera-kernel.lnx.4.0 2020-10-06 12:28:03 -07:00
Camera Software Integration
74dece5952 Merge "msm: camera: core: Change the error logs to rate limited" into camera-kernel.lnx.4.0 2020-10-06 12:27:53 -07:00
Wyes Karny
49ea8fb393 msm: camera: reqmgr: Fix for apply stuck issue for pd 1 device
In a edge case if there are only pd 1 devices then avoid reset
slot if last buf done req if last applied req. If rd_idx is equal to
last bufdone index then reset previous slot. Based on max PD in the
link calculate max retry attempt before triggering recovery to UMD.
Also fill trigger information during notify error.

CRs-Fixed: 2776184
Change-Id: Ifabf660df7861b78e7801dc7eebe0c5e71908e74
Signed-off-by: Wyes Karny <wkarny@codeaurora.org>
2020-10-06 11:08:50 +05:30
Vikram Sharma
2c95c5a40b msm: camera: csid: Increment error count for ERROR_CRC and ERROR_ECC
This change will help recovring from multiple CRC and ECC errors.

CRs-Fixed: 2715172
Change-Id: Ie76703a100b1b90b3bf8a9c47deac1a5d5654c00
Signed-off-by: Vikram Sharma <vikramsa@codeaurora.org>
2020-10-05 02:08:15 -07:00
Wyes Karny
21feb1f651 msm: camera: isp: Add UBWC compression disable support
Adding UBWC compression disable support.

CRs-Fixed: 2789618
Change-Id: I994e6698ce945b7bed2a1207d4b52e4f10b99df1
Signed-off-by: Wyes Karny <wkarny@codeaurora.org>
2020-10-04 22:12:46 -07:00
Jigar Agrawal
d74902f0cf msm: camera: cdm: Add CDM hang detect and debug registers dump support
Add support to dump the cdm core debug registers and CDM hang detect
support for better debugging purpose in case of cdm timeout at config
ife. Add a debugfs for CDM command buffer dump for cdm hang events.
Fix the possible NULL derefernce while dumping the cdm registers.
Turn on debugfs using following command in adb shell:
echo 1 >> /sys/kernel/debug/camera_isp_ctx/enable_cdm_cmd_buffer_dump.

CRs-Fixed: 2748715, 2782720, 2770565
Change-Id: Ibb9aa1d232d742ca1b6e64c16e9718bfc0bc8624
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2020-10-01 12:41:57 -07:00
Ravikishore Pampana
f5f9d74e97 msm: camera: core: Change the error logs to rate limited
In bubble cases and if not recovered, error logs causing
excessive logging issues. Change the error and warn logs to
rate limited in error bubble and apply failure cases.

CRs-Fixed: 2785070
Change-Id: Ia7268cfc7b672c24f3161cd65c53df5ee357e7ee
Signed-off-by: Ravikishore Pampana <rpampana@codeaurora.org>
2020-10-01 19:04:43 +05:30
Pavan Kumar Chilamkurthi
58588fb689 msm: camera: memmgr: Add error handling get slot failure
Not calling unmap_hw_va if get_slot() fails causes a stale
entry in smmu CB. since get_slot failed, memmgr table
returns error and memmgr, umd doesn't keep info about this
map entry though smmu CB still has this mapping - This
causes any further map calls on the same 'fd' as smmu
return MAP_EXISTS but CSL bookkeeping doesn't have it.

CRs-Fixed: 2788167
Change-Id: Ibb1450f089b9f175ccdbcfb4f5ecc245a5539bd1
Signed-off-by: Pavan Kumar Chilamkurthi <pchilamk@codeaurora.org>
2020-10-01 01:00:31 -07:00
Pavan Kumar Chilamkurthi
89fc8fcc81 msm: camera: cpas: Write qosgen registers when enabled
Call qosgen register update to write values into corresponding
registers.

CRs-Fixed: 2789495
Change-Id: I43eb6bc9d4cce42b78d55b4519931b15b7f6a383
Signed-off-by: Pavan Kumar Chilamkurthi <pchilamk@codeaurora.org>
2020-10-01 00:50:18 -07:00
Wyes Karny
c37f48cfc5 msm: camera: cpas: Add fuse MP limit support
If MP limit fuse feature is enabled in DTSI then
read the fuse register to get information about maximum
allowed resolution. According to that restrict CSID acquire.
Also if only DTSI based max_width is enabled then restrict acquire
with maximum allowed width.

CRs-Fixed: 2785460
Depends-on: 3349044
Change-Id: If861289aebe2921183276780a086dfa1b1d5f372
Signed-off-by: Wyes Karny <wkarny@codeaurora.org>
2020-09-30 23:27:34 -07:00
Jigar Agrawal
6588824f34 msm: camera: csiphy: Update the csiphy programming sequence
Update the csiphy 1.2.3 programming sequence.

CRs-Fixed: 2787142
Change-Id: Ie859440acb49528fd414df32c66680db93878ad6
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2020-09-30 20:49:36 -07:00
Camera Software Integration
6f7608c0a2 Merge "msm: camera: cci: Add CCI Global reset during CCI HW init" into camera-kernel.lnx.4.0 2020-09-30 14:04:21 -07:00
Camera Software Integration
2362ce706a Merge "msm: camera: cpas: Setting the vote level on max supported clock lvl basis" into camera-kernel.lnx.4.0 2020-09-30 14:04:13 -07:00
Camera Software Integration
13db5d3394 Merge "msm: camera: isp: Write zero to clear register after global clear command" into camera-kernel.lnx.4.0 2020-09-30 14:04:05 -07:00
Vikram Sharma
345ff8c633 msm: camera: ope: Handle race while dumping ope req list
While dumping OPE req list we were not protecting it in context mutex,
this can result into unexpected behaviors. This change take care of
protecting the dump logic using mutex.

CRs-Fixed: 2750458
Change-Id: I916822b498cde3922274c18a06b98c898bff1d65
Signed-off-by: Vikram Sharma <vikramsa@codeaurora.org>
2020-09-29 22:21:52 -07:00
Camera Software Integration
6357d070e9 Merge "msm: camera: sensor: Add pinctrl specific handling in res_mgr" into camera-kernel.lnx.4.0 2020-09-29 13:06:18 -07:00
Camera Software Integration
2a7b0a0cbf Merge "msm: camera: icp: Fix potential deadlock scenario in cam_hfi_init" into camera-kernel.lnx.4.0 2020-09-28 13:19:14 -07:00
Mukund Madhusudan Atre
afa957e59e msm: camera: isp: Write zero to clear register after global clear command
Clear registers hold the programmed values unless explicitly set to zero.
This can cause problems in cases where a global clear is issued which
encompasses the registers for which clear mask was set in a different
instance of IRQ controller. We should not wait for the next IRQ to clear
the undesired bits in clear register. This change makes sure that the
actions of a particular IRQ controller do not affect the other. Write
zeros explicitly to clear registers corresponding to status registers
after global clear is issued in IRQ handler.

CRs-Fixed: 2775499
Change-Id: Ic57302e5862d9453a94c4e8f470215dacb8978ec
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2020-09-28 12:02:07 -07:00
Anil Kumar Kanakanti
9943af257a msm: camera: cci: Add CCI Global reset during CCI HW init
During first CCI HW initialization, CCI HW global reset has to be called.

CRs-Fixed: 2782553
Change-Id: Ifc02f512859932636c79b0bfed1f60e7c0626cee
Signed-off-by: Anil Kumar Kanakanti <akanakan@codeaurora.org>
2020-09-28 09:57:48 -07:00
Depeng Shao
6cd4af283f msm: camera: reqmgr: Reset the number of sync links
This change resets the number of sync links in
case unsync link fails due to any reason, which
will result in device crash, since the number of
sync links can be increased to an invalid value,
then we will get an invalid link.

CRs-Fixed: 2786144
Change-Id: I61bbac9849ce80c319de40ffae411f61c8deeaa9
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
2020-09-28 16:23:31 +08:00
Camera Software Integration
6f7f5948e9 Merge "msm: camera: ife: Remove epd reset operation from csid global reset" into camera-kernel.lnx.4.0 2020-09-25 16:53:12 -07:00
Camera Software Integration
e27a2769e6 Merge "msm: camera: tfe: Add support last consumed address for tfe" into camera-kernel.lnx.4.0 2020-09-25 16:53:01 -07:00
Camera Software Integration
10729c8cf2 Merge "msm: camera: tfe: Handle sof monotonic boot time stamp" into camera-kernel.lnx.4.0 2020-09-25 16:52:51 -07:00
Camera Software Integration
b0c2af8c24 Merge "msm: camera: tfe: Add pid and mid support for tfe" into camera-kernel.lnx.4.0 2020-09-25 16:52:41 -07:00
Camera Software Integration
8931b80e26 Merge "Revert "msm: camera: cci: Add CCI Global reset during CCI HW init"" into camera-kernel.lnx.4.0 2020-09-24 15:32:04 -07:00
Camera Software Integration
b3256e70dd Merge "msm: camera: isp: Fix some stability issues" into camera-kernel.lnx.4.0 2020-09-24 15:30:49 -07:00
Camera Software Integration
f2740208af Merge "msm: camera: csid: Add support for unmapped vc dt detection in csid" into camera-kernel.lnx.4.0 2020-09-24 15:30:38 -07:00
Anil Kumar Kanakanti
58dd362057 Revert "msm: camera: cci: Add CCI Global reset during CCI HW init"
This reverts commit 9703cf925e.

CRs-Fixed: 2784358
Change-Id: I1f192623104683e3f82c004f6d96a84d155e2455
Signed-off-by: Anil Kumar Kanakanti <akanakan@codeaurora.org>
2020-09-25 00:50:59 +05:30
Jigarkumar Zala
1f5f70bfab msm: camera: ife: Remove epd reset operation from csid global reset
EPD support is configured as a part of config blob. Currently global
reset is invoked after CSID is configured and as a part of that
epd support attributre gets reset. This cause CPHY_EOT_RECEPTION
error from CSID. This change removes reset part of epd supported
attribute to continue with the expected opertion set during
configuration of CSID. Also, set this attribute to zero by default
at probe time to make sure epd is not supported.

CRs-Fixed: 2775508
Change-Id: I0f49f952d2156d92eb0fb1813951a325b63e60b0
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2020-09-24 10:57:38 -07:00
Chandan Kumar Jha
c2ef7b6bfb msm: camera: isp: Add Phy source for CPHY TPG
Add Phy selection logic if PHY TPG is enabled. Add phy resource 
in case of external TPG.

CRs-Fixed: 2787956
Change-Id: Ib9d827dc411965d8dd849de53932c62c9b4a4a02
Signed-off-by: Chandan Kumar Jha <cjha@codeaurora.org>
2020-09-24 19:37:52 +05:30