Grafico dei commit

1281 Commit

Autore SHA1 Messaggio Data
Savita Patted
72d6f26c7a Merge "msm: camera: common: Add common wait and poll interface" into camera-kernel.lnx.5.0 2021-03-09 01:29:50 -08:00
Haritha Chintalapati
ea8a7f5347 Merge "msm: camera: common: Program scratch buffers for sHDR" into camera-kernel.lnx.5.0 2021-03-02 18:52:32 -08:00
Haritha Chintalapati
62590f374a Merge "msm: camera: isp: Extend reg dump support for Waipio" into camera-kernel.lnx.5.0 2021-03-02 18:52:24 -08:00
Haritha Chintalapati
280c7b643c Merge "msm: camera: uapi: Add register base support for CSID/SFE" into camera-kernel.lnx.5.0 2021-03-02 18:52:09 -08:00
Gaurav Jindal
bc400e47fa msm: camera: common: Add common wait and poll interface
In current implementation, each driver call wait_for_completion_timeout
and readl_poll_timeout with own timeout values.
In case of slow environments like presil, lot of hacks are needed to
change the timeouts for each driver. It needs multiple code changes
and compilations, thus consuming time.
This commit implements a common interface to call
wait_for_completion_timeout and readl_poll_timeout.
Debug variable is also introduced to
change the timeout value. This will help to change the timeout
without compilations and changes at multiple places.

Change-Id: Iba51e0805a49ed325147a12688c2fe6619bb68e6
CRs-Fixed: 2830502
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2021-03-02 14:17:09 +05:30
Karthik Anantha Ram
66fa513e7b msm: camera: common: Program scratch buffers for sHDR
In case of sHDR to have a continuous flow of frames,
program scratch buffer even if there are no pending
requests to apply.

CRs-Fixed: 2841729
Change-Id: I8015a3a184751b2a772db55c35b02de380f04491
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-03-01 16:38:48 -08:00
Haritha Chintalapati
1e788374af Merge "msm: camera: isp: Add support to dump reserved TPGv3 VC DT" into camera-kernel.lnx.5.0 2021-03-01 15:57:04 -08:00
Haritha Chintalapati
371697220f Merge "msm: camera: isp: Change TPGv3 acquire implementation" into camera-kernel.lnx.5.0 2021-03-01 15:56:39 -08:00
Haritha Chintalapati
8740356c94 Merge "msm: camera: csiphy: Update the csiphy logging" into camera-kernel.lnx.5.0 2021-03-01 15:56:08 -08:00
Haritha Chintalapati
6d805cbaa1 Merge "msm: camera: isp: Move Bus IRQ subscribe to start" into camera-kernel.lnx.5.0 2021-03-01 15:55:49 -08:00
Haritha Chintalapati
7d89f3c290 Merge "msm: camera: sensor: Fix the return code" into camera-kernel.lnx.5.0 2021-03-01 15:55:13 -08:00
Haritha Chintalapati
8159e65fec Merge "msm: camera: csiphy: Update the csiphy programming sequence" into camera-kernel.lnx.5.0 2021-03-01 15:54:49 -08:00
Haritha Chintalapati
02f3157f7c Merge "msm: camera: common: Improve the CSID logging" into camera-kernel.lnx.5.0 2021-03-01 15:54:24 -08:00
Jigar Agrawal
39807aabc9 msm: camera: isp: Add support to dump reserved TPGv3 VC DT
Implement a debugfs for TPG version3 to dump the reserved
VC DT information.

CRs-Fixed: 2823940
Change-Id: I370308a71b6726fcd51615bb745f3556772675ee
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-02-26 18:57:42 -08:00
Jigar Agrawal
af624ce693 msm: camera: isp: Change TPGv3 acquire implementation
Fix the TPG version 3 reserve function to utilize all the 16
unique VC and DT combination support. Add functionality to be
 able to reserve TPG version 3 multiple times for future
multi camera usecase.

CRs-Fixed: 2823940
Change-Id: Ib5cadc5398c78f110a8a768932d65de3bd849309
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-02-26 18:57:37 -08:00
Karthik Anantha Ram
9c1e43f595 msm: camera: isp: Extend reg dump support for Waipio
Along with IFE extend reg dump support for CSID & SFE as well.

CRs-Fixed: 2841729
Change-Id: I6bf36bbefdcc7173b5edaf538264ee2c8ad3c18e
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-02-26 17:00:14 -08:00
Karthik Anantha Ram
c19081ce1c msm: camera: uapi: Add register base support for CSID/SFE
Add new register base types to extend reg dump infrastructure
for Waipio.

CRs-Fixed: 2841729
Change-Id: I78888537721dd3e67a38b7196acf04309d1de957
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-02-26 15:53:40 -08:00
Haritha Chintalapati
025842520f Merge "msm: camera: isp: Fixing KW errors" into camera-kernel.lnx.5.0 2021-02-26 15:51:45 -08:00
Mukund Madhusudan Atre
d38f4e07d1 msm: camera: isp: Move Bus IRQ subscribe to start
Currently, bus IRQs are subscribed before start, which
will result in IRQ mask to be reset when CSID global
SWI reset is present on certain targets. Move the IRQ
subscribe/unsubscribe calls to start/stop in vfe bus to
help retain the mask value.

CRs-Fixed: 2841729
Change-Id: I7c10fda9c82bb5f1601d3fd67cabda0a5abc275b
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2021-02-26 14:18:02 -08:00
Jigar Agrawal
645fb9745f msm: camera: sensor: Fix the return code
Fix the return code in sensor power up
function for failure case.

CRs-Fixed: 2887698
Change-Id: Ib4df3230d83d02fcd239d872a5bcfa2994d519a3
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-02-26 11:42:47 -08:00
Haritha Chintalapati
3198ac75e2 Merge "msm: camera: reqmgr: Pause the timer before sensor stream on" into camera-kernel.lnx.5.0 2021-02-25 17:16:49 -08:00
Haritha Chintalapati
b5ea977913 Merge "msm: camera: ope: Add support to dynamic switch pix_pattern" into camera-kernel.lnx.5.0 2021-02-25 17:16:40 -08:00
Jigar Agrawal
3987094106 msm: camera: common: Improve the CSID logging
Improve CSID irq logging for better debugging.
Move Packet header errors to fatal error mask,
and MMAPPED as a non-fatal error.

CRs-Fixed: 2808577
Change-Id: If2caa4b891aeb4d56102e92ce084a550bc4c7b1d
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-02-25 14:51:06 -08:00
Jigarkumar Zala
3763d3856c msm: camera: csiphy: Update the csiphy programming sequence
Update the 3phase bring up sequence for csiphy2.1.0. Also
add support for the irq status dump.

CRs-Fixed: 2835738
Change-Id: Id2e59ebb902f7cdc843cdfaf23c5b717807cf78b
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2021-02-25 11:18:27 -08:00
Savita Patted
37e33fb211 Merge "msm: camera: isp: Get hint for FS mode from UMD" into camera-kernel.lnx.5.0 2021-02-24 18:57:13 -08:00
Savita Patted
9e7dad7c68 Merge "msm: camera: isp: Fix type mismatch arguments in indirect function calls" into camera-kernel.lnx.5.0 2021-02-24 18:56:50 -08:00
Jigar Agrawal
b2dcdb6fa1 msm: camera: csiphy: Update the csiphy logging
Update the csiphy logging for better debugging purpose.

CRs-Fixed: 2839060
Change-Id: I8af110ae895ee09cdf9404d0e6d6165188a6db55
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-02-24 10:58:58 -08:00
Chandan Kumar Jha
a12577028b msm: camera: isp: Fixing KW errors
Fixes KW errors for ISP.

CRs-Fixed: 2880899
Change-Id: I6926b61732991b51edd7e173bb05d2a7da96405f
Signed-off-by: Chandan Kumar Jha <cjha@codeaurora.org>
2021-02-24 19:16:16 +05:30
Haritha Chintalapati
34bc468a4f Merge "msm: camera: common: Improve the CSID logging" into camera-kernel.lnx.5.0 2021-02-23 14:58:34 -08:00
Depeng Shao
4591949a37 msm: camera: reqmgr: Pause the timer before sensor stream on
Sometimes, the cpu load is very high, then the devcies
stream on will be delayed, but the CRM watchdog is already
enabled before streaming on, then we will have a chance to
notify SOF freeze issue.
This change pauses the CRM watchdog timer before streaming
on sensor and after stopping ife, when we can detect the
stream on and stream off delay, but don't notify error,
also can detect the real SOF freeze issue.

CRs-Fixed: 2804587
Change-Id: Iccaee837930ea22290b109eff45b05300d844312
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
2021-02-23 11:01:43 -08:00
Rishabh Jain
01249ea8d9 msm: camera: ope: Add support to dynamic switch pix_pattern
Add support to dynamically switch pix_pattern of read clients
based on data received in each request.

CRs-Fixed: 2811530
Change-Id: Icb3ebd33cae59b8db87bc0011d6560492ad29c3a
Signed-off-by: Rishabh Jain <risjai@codeaurora.org>
2021-02-23 10:58:45 -08:00
Haritha Chintalapati
641fd73444 Merge "msm: camera: smmu: Update iommu_fault_handler return codes" into camera-kernel.lnx.5.0 2021-02-22 14:24:35 -08:00
Haritha Chintalapati
6a2595de76 Merge "msm: camera: isp: Fixing KW errors" into camera-kernel.lnx.5.0 2021-02-22 14:24:16 -08:00
Haritha Chintalapati
7f8d05ddb7 Merge "msm: camera: isp: Enhance SFE debug capability" into camera-kernel.lnx.5.0 2021-02-22 14:24:00 -08:00
Chandan Kumar Jha
166ccd4af8 msm: camera: isp: Fix type mismatch arguments in indirect function calls
Fix type mismatch arguments in callback functions.

CRs-Fixed: 2878736
Change-Id: I5f88d870d1927db71dae2b1773ba185ea4c6838c
Signed-off-by: Chandan Kumar Jha <cjha@codeaurora.org>
2021-02-22 15:50:17 +05:30
Jigar Agrawal
713f481a57 msm: camera: common: Improve the CSID logging
Improve CSID irq logging for better debugging.

CRs-Fixed: 2808577, 2875656
Change-Id: I20a1d6262108d05a690f0e2b4ebac7c3fe773e0f
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-02-20 09:48:19 -08:00
Haritha Chintalapati
15025a5cd0 Merge "msm: camera: csiphy: Update 2phase sequence." into camera-kernel.lnx.5.0 2021-02-19 14:05:18 -08:00
Haritha Chintalapati
98da4da464 Merge "msm: camera: isp: Implement the global clear only once" into camera-kernel.lnx.5.0 2021-02-19 14:05:07 -08:00
Karthik Jayakumar
a020673eae msm: camera: smmu: Update iommu_fault_handler return codes
Changes return codes to iommu_fault_handler to enable access to new
debug features.
-ENOSYS: Print debug information about the iommu_fault.
0: Print no additonal debug information.
-EBUSY: GPU specific crashdump usecase.

CRs-Fixed: 2835738
Change-Id: Icc2b580dc7b67a00e27ac445b43ab8ffc27fa636
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
2021-02-19 10:52:25 -08:00
Chandan Kumar Jha
c2b18a4591 msm: camera: isp: Fixing KW errors
Fixes KW errors for ISP.

CRs-Fixed: 2880899
Change-Id: Ide94d7ff91e154440abbfecc3c6a249400ed0a62
Signed-off-by: Chandan Kumar Jha <cjha@codeaurora.org>
2021-02-19 16:52:55 +05:30
Haritha Chintalapati
a494005f93 Merge "msm: camera: icp: Suppress warning messages when requesting FW" into camera-kernel.lnx.5.0 2021-02-18 13:31:27 -08:00
Haritha Chintalapati
a0cf064b96 Merge "msm: camera: cci: Correct logging level" into camera-kernel.lnx.5.0 2021-02-18 13:31:16 -08:00
Jigar Agrawal
aff6258694 msm: camera: isp: Implement the global clear only once
Fix the implementation where global clear command is
getting applied redundantly for more than once in a
for loop.

CRs-Fixed: 2880438
Change-Id: I0ff4b120eb7458bfc9978d5c6916d21d8db35e16
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-02-17 20:23:27 -08:00
Jigarkumar Zala
2d5b15b75c msm: camera: csiphy: Update 2phase sequence.
Update the 2Phase bring up sequence to accomodate different
platforms.

CRs-Fixed: 2835738
Change-Id: I3a58876590f8f6e0ea3d8b651723498494bdf50d
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2021-02-17 19:03:19 -08:00
Karthik Anantha Ram
a29daee15b msm: camera: isp: Enhance SFE debug capability
Add support in SFE bus to print violating client info.
Also add support to dump violating module in SFE top.

CRs-Fixed: 2841729
Change-Id: Ic859c89a57004139ab442eb28ccb9ab45e5ceb54
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-02-17 15:02:24 -08:00
Karthik Anantha Ram
225eb81a60 msm: camera: icp: Suppress warning messages when requesting FW
Replace request_firmware API so that no warning messages
are generated when the file is not found. sysfs callback
mechanism is enabled if direct filesystem lookup fails.

CRs-Fixed: 2841729
Change-Id: I6dd892690ca9d38a90a6e0623d87421e889dbeca
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-02-16 23:09:19 -08:00
Jigar Agrawal
223fee3ea6 msm: camera: sensor: Add sensor name for better debugging
Add sensor name in the sensor drivers for better debugging.

CRs-Fixed: 2856300
Change-Id: I97995e2b731dcf05b5cf85d7b023be77d8a21327
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-02-16 20:54:59 -08:00
Haritha Chintalapati
f5a37db0df Merge "msm: camera: sensor: Increase slot ids in sensor" into camera-kernel.lnx.5.0 2021-02-16 14:36:28 -08:00
Jigarkumar Zala
b1bad9ec9e msm: camera: cci: Correct logging level
Interrupt context is printing info logs by default which needs
to be print as dbg log. Correcting logging level to achieve this.

CRs-Fixed: 2835738
Change-Id: Ia21a7a4f62c973b173274b363c9a971370d20c36
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2021-02-16 11:20:51 -08:00
Haritha Chintalapati
54a4c4ec11 Merge "msm: camera: isp: Add missing IFE core config fields" into camera-kernel.lnx.5.0 2021-02-12 14:10:56 -08:00