Graf commitů

1060 Commity

Autor SHA1 Zpráva Datum
Savita Patted
869991d193 Merge "msm: camera: common: Remove return from debugfs_create_bool" into camera-kernel.lnx.5.0 2021-11-05 18:38:15 -07:00
Savita Patted
27f0bb1140 Merge "msm: camera: common: DDR type selection deprecation" into camera-kernel.lnx.5.0 2021-11-05 18:21:06 -07:00
Savita Patted
8eb28b180d Merge "msm: camera: csid: correction for printing long and short packet info" into camera-kernel.lnx.5.0 2021-11-03 18:03:29 -07:00
Savita Patted
c43ac5bd74 Merge "msm: camera: isp: Add header file VFE and CSID for Cape" into camera-kernel.lnx.5.0 2021-11-03 18:02:43 -07:00
Savita Patted
ccf76ce85e Merge "msm: camera: isp: Print additional debug info in case of csid errors" into camera-kernel.lnx.5.0 2021-11-03 17:26:21 -07:00
Savita Patted
85d33924b1 Merge "msm: camera: isp: Refactor csid get rdi format function" into camera-kernel.lnx.5.0 2021-11-03 17:26:01 -07:00
Alok Chauhan
b08058de6f msm: camera: isp: Add header file VFE and CSID for Cape
This commit adds VFE/CSID header file changes for titan
version 680, hw version 110 hardware.

CRs-Fixed: 3063982
Change-Id: I038b1e2f0156e70874ec941b7d34df6853d4ddd7
Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
2021-11-01 21:34:00 -07:00
Savita Patted
b06c540564 Merge "msm: camera: cdm: Fix incorrect condition in cdm code" into camera-kernel.lnx.5.0 2021-11-01 19:58:39 -07:00
Savita Patted
ee09580940 Merge "msm: camera: isp: Add YUV format as supported format" into camera-kernel.lnx.5.0 2021-11-01 19:20:59 -07:00
Karthik Jayakumar
9716446091 msm: camera: common: Remove return from debugfs_create_bool
Remove return checks from debugfs_create_bool, as the API changed in
kernel 5.15+.

CRs-Fixed: 3048249
Change-Id: I2351776615a5fb17db1c54d285be2bf8e55443ab
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
2021-11-01 13:15:33 -07:00
Karthik Jayakumar
ed82a7cc9c msm: camera: common: DDR type selection deprecation
Deprecates legacy api of_fdt_get_ddrtype() as new targets only have
LPDDR5 for platforms that support linux kernel 5.15 and newer.

CRs-Fixed: 3048249
Change-Id: I8e7f3274eadc597870118956b964fb87d69549ee
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
2021-11-01 13:15:33 -07:00
Pengfei Liu
b979108fc5 msm: camera: csid: correction for printing long and short packet info
Print long and short packet infor with wrong mask, and also shift
correct bits value for all values.

Change-Id: I3596a059b7266cb53faa51699f7712ff3baaec9f
CRs-Fixed: 3066821
Signed-off-by: Pengfei Liu <pengfeiliu@codeaurora.org>
2021-11-01 15:05:23 +08:00
Gaurav Jindal
98c34429e5 msm: camera: isp: Refactor csid get rdi format function
Current implementaton of cam_ife_csid_get_format_rdi has many nested
switch cases. In new targets, there is a requirement of having
unpacked data from CSID even if it supports packing. Modifications
in current function adds more if-else conditions.
To fix this problem and make the function simplified, this commit
modifies the cam_ife_csid_get_format_rdi function to compute the
incoming and outgoing programmable values separately. This commit
also adds one util function to validate the incoming and out format
combinations.

CRs-Fixed: 2948116
Change-Id: I06b93148d96bc7ec2b7b31a561297588f2786b08
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2021-10-29 13:46:23 +05:30
Chandan Kumar Jha
4bf52a5ab2 msm: camera: isp: Print additional debug info in case of csid errors
We are moving CSID error type and error handler from csid driver
to target header file.

This commit prints additional debug information in case of MUP
mismatch and line buffer conflict CSID errors.

CRs-Fixed: 2948116
Change-Id: I46e7e8cb49a94c649862c35f7da009c86df60cc6
Signed-off-by: Chandan Kumar Jha <cjha@codeaurora.org>
2021-10-28 21:51:51 -07:00
Savita Patted
3634a75a4e Merge "msm: camera: isp: Additional fixes for KMD internal recovery" into camera-kernel.lnx.5.0 2021-10-28 18:13:25 -07:00
Savita Patted
9e3ac2d345 Merge "msm: camera: isp: Force all IFE lite RDIs to line based" into camera-kernel.lnx.5.0 2021-10-28 18:12:59 -07:00
Jigar Agrawal
6c9d86d45f msm: camera: cdm: Fix incorrect condition in cdm code
Fix the incorrect condition in the cdm code and also
remove cdm debug register dump from ife_hw_mgr_config
function to avoid the duplication of the dump with the
one being printed from cdm workqueue.

CRs-fixed: 3064926
Change-Id: Idd5938030d4f9737e5ab3301d08dd221b25a54ea
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-10-27 23:51:24 -07:00
Depeng Shao
7c70771d09 msm: camera: isp: Add YUV format as supported format
Add YUV format as supported format.

CRs-Fixed: 3064195
Change-Id: I2474cfc21b35b971b2051c2f9dc53d94d453fe70
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
2021-10-27 03:48:18 -07:00
Savita Patted
2136c63c8c Merge "msm: camera: isp: Add new CDM BL Type" into camera-kernel.lnx.5.0 2021-10-26 20:46:02 -07:00
Savita Patted
7db7eaf7a5 Merge "msm: camera: common: Update the ctx memory request logic" into camera-kernel.lnx.5.0 2021-10-26 20:45:40 -07:00
Savita Patted
37f280a2aa Merge "msm: camera: isp: Rearrange the rt-wrapper-base property" into camera-kernel.lnx.5.0 2021-10-26 20:44:59 -07:00
Savita Patted
0e9693d40b Merge "msm: camera: isp: Add SOF Retiming Disable Support" into camera-kernel.lnx.5.0 2021-10-26 20:44:38 -07:00
Savita Patted
f3ddf750bc Merge "msm: camera: isp: Handle error event notification to HW manager" into camera-kernel.lnx.5.0 2021-10-26 20:44:20 -07:00
Karthik Anantha Ram
b8d7acab13 msm: camera: isp: Force all IFE lite RDIs to line based
Change mode of all LITE RDI WMs to line based mode to account for
SFE ZSL RAW 80 byte stride alignment. This change is to make
it generic for all RAW outputs. If the mode needs to be made
frame based, userland will override it. The change also
updates mipi pack property in CSID LITE header.

CRs-Fixed: 3032597
Change-Id: Id3bc7686adae33506d1ffced73fef16776f4e28c
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-10-25 23:08:25 -07:00
Karthik Anantha Ram
fa319fa819 msm: camera: isp: Additional fixes for KMD internal recovery
Avoid programming RUP/AUP at CSID start for internal recovery.
The request being recovered will configure this appropriately via CDM.
Also avoid resetting epoch factor for IFE PIX resource at stream off
that is triggered internally, the UMD configured epoch factor is
needed to stream on again post recovery.

CRs-Fixed: 3045706
Change-Id: I865ad0c2c08330a29eacfea63b4e15892a84bd69
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-10-25 23:04:34 -07:00
Camera Software Integration
7776878e06 Merge "msm: camera: isp: Update right out resource for PDAF parsed outport" into camera-kernel.lnx.5.0 2021-10-25 18:58:12 -07:00
Camera Software Integration
ef22f52003 Merge "msm: camera: csid: Fix excessive logging in CSID" into camera-kernel.lnx.5.0 2021-10-25 18:58:02 -07:00
Jigar Agrawal
132e366145 msm: camera: isp: Rearrange the rt-wrapper-base property
Rearrange the rt-wrapper property in order to
not request for the ioremap for the rt-wrapper region
unnecessarily and also to make the code more general
for upcoming targets.

CRs-Fixed: 3060818
Change-Id: I45da335c1e1c372229388350612f659720326066
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-10-22 18:08:29 -07:00
Karthik Anantha Ram
fe24fd782e msm: camera: isp: Handle error event notification to HW manager
In certain files error type is not propagated correctly, change
updates error type when notifying error to IFE hw mgr.

CRs-Fixed: 3045706
Change-Id: Id0dd2f43335bad0c237982b810c9e37bb8d0c8af
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-10-22 13:04:45 -07:00
Chandan Kumar Jha
8725481527 msm: camera: isp: Update right out resource for PDAF parsed outport
This change Updates right out resource for PDAF parsed outport.

CRs-Fixed: 2948116
Change-Id: I20b90a8b39bccb6cfe32edf81fa577ef4c762a2d
Signed-off-by: Chandan Kumar Jha <cjha@codeaurora.org>
2021-10-22 11:15:12 +05:30
Gaurav Jindal
bca20811dd msm: camera: isp: Add SOF Retiming Disable Support
For Spectra 780, SOF Retiming disable can be used for master slave
cases.
This needs to be disabled for below cases:
- RDIs which are part of SHDR data.
- In case of LCR , RDI0 needs to be disabled, also disable for PPP if
there is PD data on PPP.
This commit adds support to disable SOF Retiming.

Change-Id: I253490ba1dee2006d6d7c9d1e9085e6bdb45ba65
CRs-Fixed: 2948116
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2021-10-21 08:26:49 -07:00
Chandan Kumar Jha
ca0de16b62 msm: camera: isp: Enable line smoothing in RDI path for CSID 780
For spectra 780, PIX store support is added for RDI resource.
RDI PIX store is used to minimize the peak data rate in the sfe.

This change adds support of the PIX store in the RDI path.
This feature should enable for all use-cases on the RDI0
channel in CSID to lower the ife Clock frequency.

CRs-Fixed: 2948116
Change-Id: I3f82d13ad60e3b8dec7c59229ec89eecf9d84682
Signed-off-by: Chandan Kumar Jha <cjha@codeaurora.org>
2021-10-21 20:45:31 +05:30
Gaurav Jindal
f2cad8ef24 msm: camera: isp: Add support for RDI LCR
For spectra 780, one of the RDI inputs can serve
as an input to LCR in PDAF block inside IFE using
mux.
It  needs programming of top wrapper registers in CSID
and mux related registers in IFE.
At bus side, mipi packing needs to be used as the
output from CSID will be Plain16.
This commit adds support for the above requirements.

CRs-Fixed: 2948116
Change-Id: I425e4aa5ed58dd4214a1f11865359b3fc06d1b0d
Signed-off-by: Gaurav Jindal<gjindal@codeaurora.org>
2021-10-21 13:41:33 +05:30
Karthik Anantha Ram
361f1cf006 msm: camera: isp: Add new CDM BL Type
Add new common CDM BL type to update rup, change base and
go cmd hw update entries.

CRs-Fixed: 3045706
Change-Id: Ie008e8ac4b79a3a66323a2fed9fcea657f6368b6
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-10-20 22:40:38 -07:00
Jigar Agrawal
91d3a548f9 msm: camera: csid: Fix excessive logging in CSID
Fix excessive logging issue during the tasklet
scheduling delays in the CSID bottom half handler.

CRs-fixed: 3049255
Change-Id: Ib21eab2989acd69174b6102e6ab518b84821efb7
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-10-19 22:43:52 -07:00
Jigar Agrawal
840b32b393 msm: camera: common: Update the ctx memory request logic
Make the context memory request for hw update entries,
in_map entries and the out_map entries per request, instead
of requesting the memory for all the requests at once in a
large blob. This will prevent the memory requests getting
denied in the situations like memory fragmentation.

CRs-Fixed: 3059124
Change-Id: I829407a6053ddddfe4bc9a07d3ae5724a57eb602
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-10-19 17:08:53 -07:00
Camera Software Integration
272bbd9200 Merge "msm: camera: common: Fix kernel code and add checks" into camera-kernel.lnx.5.0 2021-10-18 16:43:42 -07:00
Savita Patted
b03c35a297 Merge "msm: camera: isp: Add recovery support for custom AEB use-case" into camera-kernel.lnx.5.0 2021-10-15 23:35:41 -07:00
Savita Patted
9ba991c21a Merge "msm: camera: isp: Update reapply field in config args" into camera-kernel.lnx.5.0 2021-10-15 23:35:24 -07:00
Savita Patted
88de9bde7d Merge "msm: camera: isp: Add common utility functions" into camera-kernel.lnx.5.0 2021-10-15 23:35:09 -07:00
Savita Patted
ad95974a84 Merge "msm: camera: isp: Split event handler based on HW type" into camera-kernel.lnx.5.0 2021-10-15 23:34:50 -07:00
Savita Patted
a89651c3b0 Merge "msm: camera: isp: Apply scratch only on SOF trigger" into camera-kernel.lnx.5.0 2021-10-15 23:34:34 -07:00
Camera Software Integration
6432cff2d8 Merge "msm: camera: ife: Program image addr for once in RDI batch mode" into camera-kernel.lnx.5.0 2021-10-14 16:55:48 -07:00
Camera Software Integration
c469b0db2d Merge "msm: camera: common: Make msg_cb for cam_subdev generic" into camera-kernel.lnx.5.0 2021-10-14 16:55:23 -07:00
Jigar Agrawal
890c319fc8 msm: camera: common: Fix kernel code and add checks
Fix Kernel code and add security checks to avoid
possible out of bound array access variables.

CRs-fixed: 3038735
Change-Id: Idaf0889026dbf138d0cb94a0f88e5b6941ff21e2
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-10-14 11:11:42 -07:00
Karthik Anantha Ram
1da4fb571f msm: camera: isp: Add recovery support for custom AEB use-case
Add support to detect error scenarios, propagate the error
appropriately, halt IFE and recover on such error scenarios.
The change is to only handle such cases for custom AEB
use-case.

CRs-Fixed: 3045706
Change-Id: Iba4744e524523d131555e4a44f6ce7acc97633b5
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-10-14 09:23:54 -07:00
Karthik Anantha Ram
66b3f46f58 msm: camera: isp: Update reapply field in config args
Currently reapply field in config args signifies applying
only IO buffers. Update that field as an enum providing
the provision to reapply IQ or IO accordingly.

CRs-Fixed: 3045706
Change-Id: Id10ee846a6de093e5a79858689802e421628ce56
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-10-13 11:42:21 -07:00
Karthik Anantha Ram
b48f4da577 msm: camera: isp: Add common utility functions
Add common utility functions to be used across isp
context. Util functions added to notify trigger points,
notify errors, pause CRM SOF timer and trigger register dumps.
The change also modifies certain pointer validations to
accomplish this.

CRs-Fixed: 3045706
Change-Id: I3cb19e9a24ffb82ff25e7c278b31a8bf0e854eed
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-10-13 11:42:08 -07:00
Karthik Anantha Ram
69919eb973 msm: camera: isp: Split event handler based on HW type
Based on whether the event posted to HW mgr is from CSID/IFE/SFE,
handle them accordingly. This change avoids breaking off new
functions in existing calls for different events, instead
have an independent handler for each HW type.

CRs-Fixed: 3045706
Change-Id: I139514d9028c6d613f1bc7403014474dc336df34
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-10-13 11:41:38 -07:00
Karthik Anantha Ram
498012e556 msm: camera: isp: Apply scratch only on SOF trigger
It's possible that CRM triggers frame skip call at SOF
and EOF. For IFE ignore the call on EOF. Only use
SOF trigger to apply default settings [scratch buffers],
for fetch engine use-cases.

CRs-Fixed: 3055035
Change-Id: Ic0b59e5beb6dff70bb1b515117f0b641d8e09308
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-10-13 11:40:17 -07:00