Commit gráf

1446 Commit-ok

Szerző SHA1 Üzenet Dátum
Haritha Chintalapati
29eebb1ebf Merge "msm: camera: common: NULL pointer and array fixes" into camera-kernel.lnx.5.0 2021-04-13 19:29:45 -07:00
Haritha Chintalapati
8a157daab6 Merge "msm: camera: icp: Update IPE/BPS register header" into camera-kernel.lnx.5.0 2021-04-12 19:07:40 -07:00
Haritha Chintalapati
729397c303 Merge "msm: camera: isp: Pause the CRM timer in case of hardware errors" into camera-kernel.lnx.5.0 2021-04-12 19:07:25 -07:00
Savita Patted
0e433beabb Merge "msm: camera: isp: Add path to port mapping" into camera-kernel.lnx.5.0 2021-04-09 14:59:30 -07:00
Savita Patted
d0d14c8719 Merge "msm: camera: isp: Make IFE Bus Violation logging generic" into camera-kernel.lnx.5.0 2021-04-09 14:58:55 -07:00
Karthik Anantha Ram
de87d7f176 msm: camera: icp: Update IPE/BPS register header
Update IPE/BPS register config for waipio.

CRs-Fixed: 2841729
Change-Id: I357535933a089fbc5cf7014d34cb7eef2ab7774f
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-04-09 12:12:47 -07:00
Haritha Chintalapati
1a11831377 Merge "msm: camera: isp: Fix config of vfe out ports" into camera-kernel.lnx.5.0 2021-04-07 16:29:07 -07:00
Haritha Chintalapati
c6ee65f033 Merge "msm: camera: reqmgr: Reset the status for next req if bubble" into camera-kernel.lnx.5.0 2021-04-07 16:28:47 -07:00
Haritha Chintalapati
552ccebc57 Merge "msm: camera: isp: Get the first active req during bubble" into camera-kernel.lnx.5.0 2021-04-07 16:28:27 -07:00
Haritha Chintalapati
fc581f9571 Merge "msm: camera: isp: Add missing break statement" into camera-kernel.lnx.5.0 2021-04-07 16:28:18 -07:00
Haritha Chintalapati
8a60530807 Merge "Revert "msm: camera: core: Allocate memory for flush req array dynamically"" into camera-kernel.lnx.5.0 2021-04-07 16:28:08 -07:00
Anand Ravi
59c5cc8c25 msm: camera: isp: Add path to port mapping
The VFE path for some output ports varies for every hardware version. By
querying for these exceptions from VFE top, we can make these mappings
more generic.

CRs-Fixed: 2918424
Change-Id: I597cb423251a722cbd09587eb23adb76c5613421
Signed-off-by: Anand Ravi <ananravi@codeaurora.org>
2021-04-07 11:53:51 -07:00
Mukund Madhusudan Atre
97cb963e18 msm: camera: isp: Make IFE Bus Violation logging generic
Currently, we iterate through an array of wm data with fixed
bitmasks, which might not work for other archs. We can generate
the bitmask value with the help of wm index and print appropriate
dimensions.

CRs-Fixed: 2841729
Change-Id: I18537a4a074394934e2880ca1adf8da34835d983
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2021-04-06 18:01:25 -07:00
Haritha Chintalapati
c1055ec1ff Merge "msm: camera: isp: Add isp resource name" into camera-kernel.lnx.5.0 2021-04-06 17:31:13 -07:00
Haritha Chintalapati
a001c5ff0d Merge "msm: camera: isp: Set alignment for PLAIN16 for SFE RAW" into camera-kernel.lnx.5.0 2021-04-05 23:11:40 -07:00
Ravikishore Pampana
2c30b3e2f2 Revert "msm: camera: core: Allocate memory for flush req array dynamically"
This reverts commit 018d8dae943321b3ce7138090855c94831124846.

CRs-Fixed: 2901141
Change-Id: Ida945ea1b83fdf1f60d19b072f667a133ac9b9dc
Signed-off-by: Ravikishore Pampana <rpampana@codeaurora.org>
2021-04-05 21:20:17 -07:00
Karthik Anantha Ram
ec21a5d8e5 msm: camera: isp: Add missing break statement
Add missing break statement when finding CSID RDI res type.

CRs-Fixed: 2841729
Change-Id: I2f4063da90e0bb4ea6dfe5c9b5c55b423b4a7016
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-04-05 17:59:07 -07:00
Mukund Madhusudan Atre
9d9c632144 msm: camera: isp: Fix config of vfe out ports
Add support for programming Sparse PD output port in
vfe bus. Fix config of PDAF Data port.

CRs-Fixed: 2841729
Change-Id: I30f2adc8f2f4ef94b62ec0cbfc768d5f5b88e505
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2021-04-05 11:43:22 -07:00
Chandan Kumar Jha
90cd14c1de msm: camera: isp: Pause the CRM timer in case of hardware errors
In the Case of CSID RX fetal errors, We disable rx path. Whenever
we get sof freeze after some time, we enable the path SOF
to do a health check of the sensor.
But we don’t get the SOFs and it gives the wrong impression that
the sensor is not streaming.

Notify crm driver to pause the timer in case of fatal hardware error
to not missled sof freez issue.

CRs-Fixed: 2890861
Change-Id: I73e750cad0193ea5537a25c8440a9863343c4ef7
Signed-off-by: Chandan Kumar Jha <cjha@codeaurora.org>
2021-04-05 14:48:52 +05:30
Depeng Shao
3042ddc21c msm: camera: isp: Get the first active req during bubble
Sometimes, UMD reports nonincrementing shutter request id
issue during monkey test on sHDR usecase, isp reports last
one req in active req list during bubble, so if the active
req count is 2, we will meet this issue.
This change gets the first active req during bubble in case
the active req count is 2.

CRs-Fixed: 2885087
Change-Id: I67d1ecfe9c88123e6d0887383961bfc676455a0d
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
2021-04-05 13:13:53 +08:00
Depeng Shao
5e48beb98b msm: camera: reqmgr: Reset the status for next req if bubble
If req#N in slot idx, and this req meets bubble issue,
then the req#(N+1) in slot (idx+1) may also be applied,
and its status is APPLIED. If req#(N+1) applies failed
after finishing bubble recovery due to some reasons,
but we still can move to next slot since the status of
slot (idx+1) is already APPLIED. This change resets
the status of slot (idx+1) to ADDED if it is APPLIED
during processing error.

CRs-Fixed: 2902809
Change-Id: I32f318569ad8f24fdf0f324603f4ea0036867e98
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
2021-04-05 12:26:09 +08:00
Savita Patted
68551f6ee1 Merge "msm: camera: isp: Modify acquire sequence for SFE use-cases" into camera-kernel.lnx.5.0 2021-04-02 18:04:35 -07:00
Savita Patted
639dcb3c36 Merge "msm: camera: isp: Change CSID programming sequence" into camera-kernel.lnx.5.0 2021-04-02 18:04:13 -07:00
Savita Patted
3ee126894b Merge "msm: camera: smmu: Update header include for SMMU API's" into camera-kernel.lnx.5.0 2021-04-02 18:03:48 -07:00
Gaurav Jindal
558d953113 msm: camera: isp: Add isp resource name
For ISP resources, res_id is printed, which does not give clear
indication of resource. At some places translation code is
used which is an overhead.
This commit adds name to isp resource node structure.
This will be helpful while printing the resource logs and
avoids the translation overhead.

CRs-Fixed: 2830502
Change-Id: I436810e971a521fe2e845a2e3ca544b4c2921727
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2021-04-02 17:48:42 +05:30
Haritha Chintalapati
b92699ea3a Merge "msm: camera: isp: Reinit completion before issuing path reset" into camera-kernel.lnx.5.0 2021-04-01 21:08:34 -07:00
Haritha Chintalapati
53e46fdafa Merge "msm: camera: cre: Add CRE driver changes" into camera-kernel.lnx.5.0 2021-04-01 21:08:21 -07:00
Karthik Anantha Ram
ce2e521668 msm: camera: isp: Set alignment for PLAIN16 for SFE RAW
Set alignment to LSB aligned for SFE RAW for PLAIN16 format.

CRs-Fixed: 2841729
Change-Id: Ifd7baa36309bb5d5ec34b7690f5811ebf11ef461
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-04-01 14:48:23 -07:00
Karthik Jayakumar
67707a7305 msm: camera: common: NULL pointer and array fixes
Fix NULL pointer checks in cam_mem dma_buf functions.
Fix local array bounds check for cam_vfe_top_set_axi_bw_vote.

CRs-Fixed: 2906570
Change-Id: Ib41223ad56cbb5618d73e8aa6907907dd6f8f4fb
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
2021-03-31 20:49:27 -07:00
Haritha Chintalapati
68934ef08c Merge "msm: camera: isp: Add per frame register support" into camera-kernel.lnx.5.0 2021-03-31 18:32:14 -07:00
Haritha Chintalapati
c2e541cf89 Merge "msm: camera: isp: Address minor issues in SFE driver" into camera-kernel.lnx.5.0 2021-03-31 18:32:04 -07:00
Haritha Chintalapati
a5ea020be6 Merge "msm: camera: utils: Fix crash due to IRQ unsubscribe in top half" into camera-kernel.lnx.5.0 2021-03-31 18:31:54 -07:00
Karthik Anantha Ram
90b23db3e3 msm: camera: isp: Modify acquire sequence for SFE use-cases
Try CSID acquire from lower_idx for fetch engine use-cases.
For IPP, we can try for a CSID of higher hw idx for SFE
single/dual use-cases. In case of dual the core with the lower
index will be the master or left core.

CRs-Fixed: 2841729
Change-Id: Ifc352fed1af8bda12581ffdc4d431618d2058c0b
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-03-31 17:17:58 -07:00
Gaurav Jindal
0a26ed8228 msm: camera: isp: Reinit completion before issuing path reset
Reinitializing complete variable after reset command can cause
the variable to set to 0 before going for wait for completion.
This causes the wait to fail even after the IRQ is received.
This commit moves the reinit before issuing the reset command.

CRs-Fixed: 2911638
Change-Id: I771ae546b18a4b86e40cf7815668bdeee4fc9d47
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2021-03-31 17:41:30 +05:30
Vikram Sharma
23762a67ed msm: camera: cre: Add CRE driver changes
Add new camera driver Camera Reformat Engine (CRE).

CRs-Fixed: 2893978
Change-Id: Ia39b222493393bf7bb72525c86f0060ca0dc77c2
Signed-off-by: Vikram Sharma <vikramsa@codeaurora.org>
2021-03-31 02:49:52 -07:00
Savita Patted
4aa9286fd7 Merge "msm: camera: csiphy: Update the csiphy programming sequence" into camera-kernel.lnx.5.0 2021-03-30 21:23:30 -07:00
Karthik Jayakumar
4d74da7de3 msm: camera: smmu: Update header include for SMMU API's
Due to restructuring of memory API's new header files contain old
DMA_ATTR macro's.

CRs-Fixed: 2835738
Change-Id: If2b13866c41dcf7b19b47e40fc2d3801c2161816
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
2021-03-30 16:05:37 -07:00
Anand Ravi
441200a543 msm: camera: utils: Fix crash due to IRQ unsubscribe in top half
Iterate through the list of top half events safely to allow for
unsubscribing (list deletion and freeing the pointer) during top half
processing.

CRs-Fixed: 2910416
Change-Id: I5f079f47645c7222546610d8a5de39d86695b39d
Signed-off-by: Anand Ravi <ananravi@codeaurora.org>
2021-03-30 08:54:10 -07:00
Gaurav Jindal
2dc1421375 msm: camera: isp: Change CSID programming sequence
In case of errors, CSID path is stopped but RX is still running.
This can result in random issues on rx side.
We enable RX before starting the path as a separate call and
disable RX after stop path as a separate call.
In case of Rx errors, disable the IRQ from top half.

CRs-Fixed: 2910598
Change-Id: I60af8b47461e45cded75e6d1b3785ef2424b39bd
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2021-03-30 15:04:10 +05:30
Savita Patted
7abc280ea9 Merge "msm: camera: isp: Add MID values" into camera-kernel.lnx.5.0 2021-03-29 19:21:13 -07:00
Savita Patted
49f6c24ee9 Merge "msm: camera: isp: Add new ports for TFE" into camera-kernel.lnx.5.0 2021-03-29 18:42:59 -07:00
Savita Patted
69c1bef608 Merge "msm: camera: isp: Fix for wrong CPAS version selection in WM start" into camera-kernel.lnx.5.0 2021-03-29 18:42:38 -07:00
Savita Patted
82881589b0 Merge "msm: camera: cpas: Do not program flag out set0" into camera-kernel.lnx.5.0 2021-03-29 18:42:18 -07:00
Savita Patted
aeef497955 Merge "msm: camera: isp: Change warn logs to rate limited" into camera-kernel.lnx.5.0 2021-03-29 18:41:51 -07:00
Savita Patted
91b3458f97 Merge "msm: camera: isp: Enhancements to HW manager" into camera-kernel.lnx.5.0 2021-03-29 18:41:26 -07:00
Savita Patted
5e47b695d8 Merge "msm: camera: memmgr: Add support for secure allocations" into camera-kernel.lnx.5.0 2021-03-29 18:41:03 -07:00
Savita Patted
0e1f0790e3 Merge "msm: camera: isp: VFE top remove unused values" into camera-kernel.lnx.5.0 2021-03-29 18:35:08 -07:00
Savita Patted
d09bc74fb6 Merge "msm: camera: csiphy: Dump CSIPHY Status Reg at SOF freeze" into camera-kernel.lnx.5.0 2021-03-29 18:34:17 -07:00
Karthik Anantha Ram
ba07f3db4d msm: camera: isp: Address minor issues in SFE driver
Update index of debug status register when dumping hung module info.
Also update a log in sfe bus wr.

CRs-Fixed: 2841729
Change-Id: Ide5c6f2a8c564f785749c1045ca2fa27bb30422c
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-03-29 15:42:23 -07:00
Jigar Agrawal
742e1a78fa msm: camera: csiphy: Update the csiphy programming sequence
Update the bring up sequence for csiphy2.1.0 with the
revision U.

CRs-Fixed: 2895820
Change-Id: I59b52d0bb52b82b23d83fd138e93302792dc6203
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-03-26 13:18:12 -07:00