Commit graph

1,074 commits

Author SHA1 Message Date
Camera Software Integration
4e272cc9e3 Merge "msm: camera: jpeg: Add more data in case of smmu pf" into camera-kernel.lnx.4.0 2021-01-03 13:38:24 -08:00
Camera Software Integration
c4a7cddc88 Merge "msm: camera: isp: increase number of hw entries" into camera-kernel.lnx.4.0 2021-01-03 13:38:12 -08:00
Camera Software Integration
b37352f969 Merge "msm: camera: reqmgr: check validity of last_applied_idx" into camera-kernel.lnx.4.0 2020-12-29 03:13:58 -08:00
Vikram Sharma
0204c76b58 msm: camera: jpeg: Add more data in case of smmu pf
When we have smmu page fault of unmapped address and
active flag is false we can cache and store unmapped
address and print in case of error.
Added check for last flushed req during config hw for
jpeg as well.

CRs-Fixed: 2834236
Change-Id: I9b9bb735587799871f9bdef94985f6269ca6a29d
Signed-off-by: Vikram Sharma <vikramsa@codeaurora.org>
2020-12-28 22:52:39 -08:00
Camera Software Integration
2f911b9c72 Merge "msm: camera: cdm: Improve cdm logging" into camera-kernel.lnx.4.0 2020-12-26 08:42:52 -08:00
Camera Software Integration
ec58f3768c Merge "msm: camera: tfe: Change debug fs directory name" into camera-kernel.lnx.4.0 2020-12-26 08:42:23 -08:00
Wyes Karny
e3d11961d1 msm: camera: isp: Reset num_deferred_acks when re-applying bubble req
When re-applying bubble request after 2 frames reset num_deferred_acks
also.

CRs-Fixed: 2824276
Change-Id: I57e7ac89da69a2d65546c6f9a7f1d3c9f2c7e58f
Signed-off-by: Wyes Karny <wkarny@codeaurora.org>
2020-12-21 17:48:53 +05:30
Shravya Samala
af9556d493 msm: camera: tfe: Change debug fs directory name
Change debug fs directory name from IFE to TFE

CRs-Fixed: 2837303
Change-Id: I1871ad37338bc2d2aa001b6c81f92e2215a010b8
Signed-off-by: Shravya Samala <shravyas@codeaurora.org>
2020-12-21 02:37:23 -08:00
Camera Software Integration
731273dd7a Merge "msm: camera: csiphy: Update the csiphy logging" into camera-kernel.lnx.4.0 2020-12-18 04:00:08 -08:00
Camera Software Integration
d9576f9f68 Merge "msm: camera: cdm: Added cdm power state check" into camera-kernel.lnx.4.0 2020-12-17 06:42:23 -08:00
Camera Software Integration
dc2f71ddb6 Merge "msm: camera: icp: Update a5 qos values post reset" into camera-kernel.lnx.4.0 2020-12-17 06:42:06 -08:00
Camera Software Integration
273ce862cd Merge "msm: camera: isp: Fix for disable UBWC case" into camera-kernel.lnx.4.0 2020-12-17 06:41:20 -08:00
Tejas Prajapati
8694f8c885 msm: camera: reqmgr: check validity of last_applied_idx
last_applied_idx is updated on every successful applied
request and the buf_done. After buf_done last_applied_idx
is set to -1. While accessing last applied req the same
index is used, if the last_applied_idx is -1 accessing
last applied request will result in slab out of bound
error, so check last_applied_idx before accessing
last applied request.

CRs-Fixed: 2840329
Change-Id: I8f49b9df097859cde20e651149167db7316976bb
Signed-off-by: Tejas Prajapati <tpraja@codeaurora.org>
2020-12-17 13:02:14 +05:30
Camera Software Integration
e85bc42150 Merge "msm: camera: icp: Increase hfi poll retry rate" into camera-kernel.lnx.4.0 2020-12-16 04:25:47 -08:00
Camera Software Integration
b0c61c9593 Merge "msm: camera: isp: Fix type mismatch arguments in indirect function calls" into camera-kernel.lnx.4.0 2020-12-16 04:25:31 -08:00
Jigar Agrawal
8d269581d0 msm: camera: cdm: Improve cdm logging
Improve the CDM logging for better debugging purpose.

CRs-Fixed: 2836601
Change-Id: I75213e17edf2fb42204a6e3d983a76892362b1d4
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2020-12-15 21:01:11 -08:00
Jigar Agrawal
7809f88ad5 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>
2020-12-15 17:18:55 -08:00
Alok Chauhan
8fcc66faf4 msm: camera: cdm: Added cdm power state check
There is chance that handle error info get scheduled
after cdm deinit. As clock and regulator gets disabled
as part of deinit so this can cause issue for cdm hw
interaction as part of handle error.

Added cdm power state check before dumping CDM HW
status at the time of error.

CRs-Fixed: 2833653
Change-Id: I4bf01ce3900196909cf66ffdb24607c50ab03295
Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
2020-12-15 06:38:42 -08:00
Alok Chauhan
91eddafa10 msm: camera: isp: increase number of hw entries
increase number of hw entries to allocate sufficient memory
for cdm bl commands.

CRs-Fixed: 2837487
Change-Id: Id890ab07cc66ef704a1317d545540f36dfc7f3c2
Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
2020-12-15 11:32:43 +05:30
Karthik Anantha Ram
2cfae8fecc msm: camera: icp: Update a5 qos values post reset
Update a5 R/W priorities post a5 reset.

CRs-Fixed: 2834780
Change-Id: I81736f780c70a648b81f4cd05db7caa0bdcc5195
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2020-12-14 17:51:28 -08:00
Camera Software Integration
0490cb2904 Merge "msm: camera: reqmgr: Pause the timer before sensor stream on" into camera-kernel.lnx.4.0 2020-12-14 06:32:26 -08:00
Camera Software Integration
55ff525494 Merge "msm: camera: isp: Add header file changes" into camera-kernel.lnx.4.0 2020-12-14 06:32:13 -08:00
Shravya Samala
0d76e160eb msm: camera: isp: Fix type mismatch arguments in indirect function calls
To avoid CFI failures, fix type mismatch arguments in
callback functions.

CRs-Fixed: 2836088
Change-Id: Ib1d79ca3f4489081c909aeb9ead2e66ef20aed64
Signed-off-by: Shravya Samala <shravyas@codeaurora.org>
2020-12-13 20:05:02 -08:00
Shravya Samala
93e206364c msm: camera: icp: Increase hfi poll retry rate
In certain scenarios, ICP init response
was not received on time.
Hence added retry logic to counter ICP
init failures.

CRs-Fixed: 2836166
Change-Id: Ibfab1e44e320dbcb1e1b47ba91d91c5ef2f9b3c1
Signed-off-by: Shravya Samala <shravyas@codeaurora.org>
2020-12-13 20:04:36 -08:00
Camera Software Integration
95ecd232f2 Merge "msm: camera: ope: Add support to dynamic switch pix_pattern" into camera-kernel.lnx.4.0 2020-12-12 02:54:02 -08:00
Wyes Karny
797410a43f msm: camera: isp: Fix for disable UBWC case
Sometimes multiple io cofigs comes before start_dev. Therefore even we
force disable UBWC compression at start_dev time it can be override by
those io configs. Therefore moving disable UBWC comp logic to acquire
time. Acquire time a flag is sent if we have to enable or disable ubwc
compression, based on this we set bus side ubwc_disable flag. When ever
we start the WM or update the WM UBWC config  we check this flag and
based on this flag we override the ubwc_mode_cfg register.

CRs-Fixed: 2833514
Change-Id: I8efc3f7abd53e0757f8e77ac0788e303f7c695b9
Signed-off-by: Wyes Karny <wkarny@codeaurora.org>
2020-12-11 13:05:49 +05:30
Ayush Kumar
6d2e9d6d24 msm: camera: isp: Add header file changes
This commit adds header file changes for version 165 hardware.

CRs-Fixed: 2825675
Change-Id: Ib81be5bc02fbbe9c7d5174413cfd328fdca5599b
Signed-off-by: Ayush Kumar <ayushkr@codeaurora.org>
2020-12-10 23:03:03 -08:00
Depeng Shao
fd450fbd22 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>
2020-12-11 11:24:23 +08:00
Camera Software Integration
1bdec879e6 Merge "msm: camera: cpas: Add hw version checks for Yupik camera" into camera-kernel.lnx.4.0 2020-12-10 11:02:45 -08:00
Camera Software Integration
0a3df107d1 Merge "msm: camera: smmu: Add support to force all CACHED" into camera-kernel.lnx.4.0 2020-12-10 11:02:22 -08:00
Camera Software Integration
0626661ebd Merge "msm: camera: cpas: Add support for Yupik camnoc" into camera-kernel.lnx.4.0 2020-12-10 11:02:13 -08:00
Camera Software Integration
72136a95ef Merge "msm: camera: isp: Remove WARN_ON() from error case in buf done" into camera-kernel.lnx.4.0 2020-12-10 11:01:46 -08:00
Camera Software Integration
cfad27efa7 Merge "msm: camera: icp: Fetch the firmware name from soc info" into camera-kernel.lnx.4.0 2020-12-10 11:01:34 -08:00
Camera Software Integration
3224cf35c3 Merge "msm: camera: cdm: Improve error handling during cdm hang" into camera-kernel.lnx.4.0 2020-12-10 10:59:56 -08:00
Camera Software Integration
a1aae58315 Merge "msm: camera: ope: free unused memory in ope acquire" into camera-kernel.lnx.4.0 2020-12-10 10:59:47 -08:00
Camera Software Integration
14cf978c81 Merge "msm: camera: cci: Fix logic to update cci clk freq" into camera-kernel.lnx.4.0 2020-12-10 10:58:39 -08:00
Ayush Kumar
92dbea0ccb msm: camera: cpas: Add hw version checks for Yupik camera
This change add titan hw version checks in csid, vfe and icp
camera drivers for Yupik camera.

CRs-Fixed: 2825675
Change-Id: Ibb704efa5eae327fc7c376328ceafc45a8217f44
Signed-off-by: Ayush Kumar <ayushkr@codeaurora.org>
2020-12-09 04:57:36 -08:00
Ayush Kumar
315ec1178d msm: camera: cpas: Add support for Yupik camnoc
Add register information. Initial QoS settings info to program
camera static settings for chipsets having camera V165_100.

CRs-Fixed: 2825675
Change-Id: I433cfbe50705f09b961770371a3d3f29ff5f348c
Signed-off-by: Ayush Kumar <ayushkr@codeaurora.org>
2020-12-09 13:27:52 +05:30
Rishabh Jain
18f1c81470 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>
2020-12-08 00:33:04 -08:00
Chandan Kumar Jha
ebe8cb5e87 msm: camera: isp: Remove WARN_ON() from error case in buf done
This change prevents excessive logging. WARN_ON() prints
call stack which cause excessive logging in tasklet.
Removes WARN_ON() in error case where buf done irq for
a request exceeds actual number of out port.

CRs-Fixed: 2828453
Change-Id: I020cc74b73841e9599c4d1570829c6b086e768ec
Signed-off-by: Chandan Kumar Jha <cjha@codeaurora.org>
2020-12-08 11:34:48 +05:30
Vikram Sharma
da8fdb3095 msm: camera: icp: Fetch the firmware name from soc info
Use the a5 firmware name from soc info instead of hard coding.

CRs-Fixed: 2825675
Change-Id: Ifb089857777ae4d48c1c7ab6f12259a711c46152
Signed-off-by: Vikram Sharma <vikramsa@codeaurora.org>
2020-12-07 19:48:57 -08:00
Camera Software Integration
9d4e62ea34 Merge "msm: camera: ife: Handle vfe out array properly" into camera-kernel.lnx.4.0 2020-12-07 16:50:30 -08:00
Haritha Chintalapati
9d99a4fc95 Merge "msm: camera: ope: Avoid submitting NULL request to CDM" into camera-kernel.lnx.4.0 2020-12-02 19:10:56 -08:00
Haritha Chintalapati
99dff46326 Merge "msm: camera: isp: reduce bufdone error logs" into camera-kernel.lnx.4.0 2020-12-02 19:10:41 -08:00
Haritha Chintalapati
20e88f8b07 Merge "msm: camera: isp: Transition to HALT state prior to HW stop" into camera-kernel.lnx.4.0 2020-12-02 19:10:29 -08:00
Haritha Chintalapati
4a9c7c3e61 Merge "msm: camera: isp: Add null check for vfe out res data" into camera-kernel.lnx.4.0 2020-12-02 19:10:14 -08:00
Haritha Chintalapati
f0d94805f1 Merge "msm: camera: ope: Check array size of input sync obj" into camera-kernel.lnx.4.0 2020-12-02 19:10:00 -08:00
Haritha Chintalapati
974ca5d6f1 Merge "msm: camera: isp: Choose appropriate WM for frame header" into camera-kernel.lnx.4.0 2020-12-02 19:09:49 -08:00
Haritha Chintalapati
c1d9e46023 Merge "msm: camera: isp: Print the expected height & width" into camera-kernel.lnx.4.0 2020-12-02 19:09:36 -08:00
Haritha Chintalapati
d7cdc013ea Merge "msm: camera: isp: Update err type when notifying to HW MGR" into camera-kernel.lnx.4.0 2020-12-02 19:09:22 -08:00