Commit Graph

1345 Commits

Author SHA1 Message Date
Mukund Madhusudan Atre
32e2da9905 msm: camera: isp: Remove unnecessary bound check in bw update path
Currently, iterating through all the possible split indexes will
always hit the check for max value at the end. Remove the check
as the KW error corresponding to it is false positive.

CRs-Fixed: 2841729
Change-Id: I8b555ab3c4680e348d3af1169d95b79e0d8572a9
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2021-03-17 23:16:12 -07:00
Savita Patted
0626095cbc Merge "msm: camera: isp: Re-assign WMs for UAPI port names" into camera-kernel.lnx.5.0 2021-03-16 17:42:58 -07:00
Savita Patted
1b9a9b571f Merge "msm: camera: core: Allocate memory for flush req array dynamically" into camera-kernel.lnx.5.0 2021-03-16 17:42:38 -07:00
Savita Patted
7e3f0a107a Merge "msm: camera: common: Change the max base type for reg dump" into camera-kernel.lnx.5.0 2021-03-16 17:42:17 -07:00
Savita Patted
6ad996f234 Merge "msm: camera: isp: Update debug cfg for all paths" into camera-kernel.lnx.5.0 2021-03-16 17:41:59 -07:00
Savita Patted
ef326026ba Merge "msm: camera: isp: Remove IFE top core cfg in KMD for v4" into camera-kernel.lnx.5.0 2021-03-16 17:41:40 -07:00
Savita Patted
788539503d Merge "msm: camera: cre: Add UAPI changes for CRE driver" into camera-kernel.lnx.5.0 2021-03-16 17:41:01 -07:00
Savita Patted
0bb300ac41 Merge "msm: camera: reqmgr: Mask re-apply for SHDR usecase" into camera-kernel.lnx.5.0 2021-03-16 17:40:26 -07:00
Vikram Sharma
120169c774 msm: camera: cre: Add UAPI changes for CRE driver
This change adds UAPI interface file for CRE driver

CRs-Fixed: 2893978
Change-Id: I46b29755e1c7d9352d86250dbf6e7e31ab2ead0b
Signed-off-by: Vikram Sharma <vikramsa@codeaurora.org>
2021-03-14 16:58:00 +05:30
Depeng Shao
b4d2d77fb9 msm: camera: reqmgr: Reset the trigger cnt when trigger cnt mismatch
In sHDR case, the trigger cnt may be different when one of the IFE
meet bubble or irq delay issue, then reset the trigger cnt when
we find the trigger cnt is different.

CRs-Fixed: 2857614
Change-Id: Ie02fd7204bebd16d32d7a277ac1f2e45f8357dd9
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
2021-03-12 23:42:28 -08:00
Depeng Shao
1edfd82801 msm: camera: reqmgr: Mask re-apply for SHDR usecase
SHDR case has two ISP instances, if one of them
apply req failed sometimes, but the other one is
good and the buf done has been handled successfully,
then we don't need to apply the req again for the
successful ISP.

CRs-Fixed: 2842495
Change-Id: I3dfbb455244daa0d155858dd59f4a661fd3b87cd
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
2021-03-12 23:42:05 -08:00
Depeng Shao
d0f46318e7 msm: camera: core: Allocate memory for flush req array dynamically
Allocate memory for flush req array dynamically based
on the list count, in case the req count bigger than
the size of req list.

CRs-Fixed: 2835525
Change-Id: I7e48fb9dc7815cb991c84195e761a3c3f1c26b48
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
2021-03-12 23:40:43 -08:00
Karthik Anantha Ram
7409042572 msm: camera: common: Change the max base type for reg dump
With the newly added register base types for reg dump, the
validation needs to be changed to account for the new max.

CRs-Fixed: 2841729
Change-Id: I6babe7a1e4d6def51b8e433be4431f04a0a417e8
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-03-11 16:09:43 -08:00
Karthik Anantha Ram
c4eac8ce8d msm: camera: isp: Update debug cfg for all paths
Currently debug_cfg_en is listed only for IPP, update
the value for rest of the paths as well.

CRs-Fixed: 2841729
Change-Id: I19d8489d71468e49a594274f9198e9cb2841003c
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-03-11 16:02:33 -08:00
Karthik Anantha Ram
84a590926a msm: camera: isp: Remove IFE top core cfg in KMD for v4
The core config is programmed via CDM by userspace. Remove
the programming of these registers in kernel to avoid
any discrepancy.

CRs-Fixed: 2841729
Change-Id: Iea8b0843c8283dd6be2c98b4e5de9de7f8312b7e
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-03-11 15:56:36 -08:00
Karthik Anantha Ram
5ce6aebaad msm: camera: isp: Re-assign WMs for UAPI port names
Switch WMs for current 2PD and 2PD_STATS ports. Rename
2PD_STATS to PREPROCESS_2PD inline with UMD notion.

CRs-Fixed: 2841729
Change-Id: I735ef397cfd6328aa2fef73970def0b64044fe2e
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-03-11 15:52:10 -08:00
Haritha Chintalapati
fdf216909b Merge "msm: camera: isp: Add VFE/SFE overflow debug info" into camera-kernel.lnx.5.0 2021-03-11 14:58:27 -08:00
Haritha Chintalapati
afaa34315b Merge "msm: camera: isp: Reset the CSID debug info on release" into camera-kernel.lnx.5.0 2021-03-11 14:58:08 -08:00
Savita Patted
7d07226d92 Merge "msm: camera: sensor: Make some of the sensor enums uapi" into camera-kernel.lnx.5.0 2021-03-10 16:10:24 -08:00
Savita Patted
90fb1ebc6c Merge "msm: camera: isp: Allocate max map entries based on the stream type" into camera-kernel.lnx.5.0 2021-03-10 16:10:01 -08:00
Savita Patted
b3a6000ae7 Merge "msm: camera: common: Support compilation for new code base" into camera-kernel.lnx.5.0 2021-03-10 16:09:33 -08:00
Gaurav Jindal
b1bb0805a9 msm: camera: isp: Reset the CSID debug info on release
Reset the CSID debug info on release. Without releasing the
IRQ enabled for previous session will be trigerred in next session
as well.

Change-Id: I3d4dec4446926f60ba772a9608c96513a9919a4f
CRs-Fixed: 2830502
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2021-03-10 15:36:28 +05:30
Gaurav Jindal
ee3a268ce0 msm: camera: isp: Add VFE/SFE overflow debug info
For new targets, VFE/SFE overflow errors are back pressured to
CSID recovery module. Error IRQs are not available with VFE/SFE
blocks for such errors.
Above errors are to be propagated from CSID driver to downstream
module drivers to print the relevant debug data and handle
the error.
This commit implements propagation of error and
printing the debug info in VFE and SFE.

CRs-Fixed: 2830502
Change-Id: I24ecd7433b3324505e92d9d55576ca3107e66fdd
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2021-03-10 15:20:46 +05:30
Savita Patted
c3ecd6ea84 Merge "msm: camera: cdm: check reset status for error" into camera-kernel.lnx.5.0 2021-03-09 20:19:26 -08:00
Savita Patted
782ae622ba Merge "msm: camera: isp: Fix for disable UBWC case" into camera-kernel.lnx.5.0 2021-03-09 20:19:04 -08:00
Savita Patted
1ee4bca76c Merge "msm: camera: ope: Handle OPE smmu fault with pid info" into camera-kernel.lnx.5.0 2021-03-09 20:18:26 -08:00
Savita Patted
b2062b243b Merge "msm: camera: isp: Add new packer format to support LSB alignment" into camera-kernel.lnx.5.0 2021-03-09 20:18:07 -08:00
Savita Patted
8c78eb99d6 Merge "msm: camera: tfe: Change debug fs directory name" into camera-kernel.lnx.5.0 2021-03-09 20:17:44 -08:00
Savita Patted
780e1ba3a7 Merge "msm: camera: isp: increase number of hw entries" into camera-kernel.lnx.5.0 2021-03-09 20:17:26 -08:00
Savita Patted
9700a809d3 Merge "msm: camera: reqmgr: check validity of last_applied_idx" into camera-kernel.lnx.5.0 2021-03-09 20:17:04 -08:00
Savita Patted
4aef1f4a18 Merge "msm: camera: icp: Update a5 qos values post reset" into camera-kernel.lnx.5.0 2021-03-09 20:16:45 -08:00
Savita Patted
1c8d0fb818 Merge "msm: camera: cpas: Add mechanism to check camnoc idle status" into camera-kernel.lnx.5.0 2021-03-09 20:16:18 -08:00
Savita Patted
32a20d55b8 Merge "msm: camera: cdm: Added cdm power state check" into camera-kernel.lnx.5.0 2021-03-09 20:15:55 -08:00
Savita Patted
cfd72a176a Merge "msm: camera: cdm: corrected submit bl logic" into camera-kernel.lnx.5.0 2021-03-09 20:15:35 -08:00
Savita Patted
369d0f775c Merge "msm: camera: isp: Fix TPG for future usecase" into camera-kernel.lnx.5.0 2021-03-09 20:15:08 -08:00
Savita Patted
af5d84791b Merge "msm: camera: cdm: Fix cdm driver for single BL FIFO" into camera-kernel.lnx.5.0 2021-03-09 20:14:30 -08:00
Jigar Agrawal
2bd4bd4aea msm: camera: sensor: Make some of the sensor enums uapi
Move sensor enums that are used by user mode
to uapi file for a synchronus operation. Currently,
user mode and kernel maintains two separate
copies of the same structure, so making a
change in these structure is error prone, since
there is no synchronization.

CRs-Fixed: 2894834
Change-Id: I3f413d03d7981ed3c886e684b11421cae7a39fca
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-03-09 11:03:08 -08:00
Savita Patted
31f9a65293 Merge "msm: camera: common: Add appropriate camera initialization log" into camera-kernel.lnx.5.0 2021-03-09 01:32:24 -08:00
Savita Patted
99644ac3dd Merge "msm: camera: isp: IFE Lite top debug registers print functionality" into camera-kernel.lnx.5.0 2021-03-09 01:32:10 -08:00
Savita Patted
d85b43959c Merge "msm: camera: isp: Fix type mismatch arguments in indirect function calls" into camera-kernel.lnx.5.0 2021-03-09 01:31:56 -08:00
Savita Patted
24206e090b Merge "msm: camera: reqmgr: Add support to increase the crm handles" into camera-kernel.lnx.5.0 2021-03-09 01:30:51 -08:00
Savita Patted
7074fb8996 Merge "msm: camera: isp: Reset num_deferred_acks when re-applying bubble req" into camera-kernel.lnx.5.0 2021-03-09 01:30:36 -08:00
Savita Patted
505f88c7a3 Merge "msm: camera: uapi: Add support for new OPE ports" into camera-kernel.lnx.5.0 2021-03-09 01:30:22 -08:00
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
Tejas Prajapati
2918136eb0 msm: camera: cdm: check reset status for error
If there are any reset errors for the CDM, CDM should
send error to UMD upon reset failure. Updated the
error status with relevant error code.

CRs-Fixed: 2882732
Change-Id: I12e746f71b1a294aa4e7ef540f39aec91fb44648
Signed-off-by: Tejas Prajapati <tpraja@codeaurora.org>
2021-03-08 10:08:57 -08:00
Wyes Karny
616fd64c12 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>
2021-03-08 21:28:23 +05:30
Jigar Agrawal
d68785ea9d msm: camera: isp: Fix TPG for future usecase
Fix the TPG ver3 reserve function for future concurrent camera
use case.

CRs-Fixed: 2823940
Change-Id: I2e8be13d10dbdd475aff2edf343d487ff7ccf802
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-03-05 18:29:35 -08:00
Karthik Anantha Ram
b15d7e1415 msm: camera: isp: Allocate max map entries based on the stream type
Allocate context map entries based on the chipset and also
the underlying HW acquired for the given context.

CRs-Fixed: 2841729
Change-Id: Ieeb442c74bd3b6c9c32fbe47b59f40a8485963b3
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-03-05 16:12:07 -08:00
Jigar Agrawal
dce790a1e7 msm: camera: cdm: Fix cdm driver for single BL FIFO
Avoid iterating for masked BL fifos for single BL
fifo usecase. Also, Fix an if condition in cdm
workque function to check for fifo index correctly
for single BL FIFO usecase.

CRs-Fixed: 2893426
Change-Id: Id3c740a9d311863c0f08c331f9e5de992a721e30
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-03-05 12:20:03 -08:00
Mukund Madhusudan Atre
fa19532b36 msm: camera: common: Add appropriate camera initialization log
Currently, the camera initialization log only points to the
camera initcalls execution. The camera driver is initailized when
all components are bound succussfully in CRM master bind. Add
appropriate log to convey correct info.

CRs-Fixed: 2841729
Change-Id: I5a52ad9fdf84d79d66763d47c92d2a63bb8d0e21
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2021-03-05 10:35:04 -08:00