Grafico dei commit

1466 Commit

Autore SHA1 Messaggio Data
Haritha Chintalapati
b74479763b Merge "msm: camera: csiphy: Add support for delay in IRQ confiq" into camera-kernel.lnx.5.0 2021-04-21 17:22:41 -07:00
Haritha Chintalapati
fc23ac64c4 Merge "msm: camera: isp: Clear previous dual IFE sync config on release" into camera-kernel.lnx.5.0 2021-04-21 17:22:22 -07:00
Haritha Chintalapati
03f6eb7c28 Merge "msm: camera: isp: Send correct cphy id to cphy driver" into camera-kernel.lnx.5.0 2021-04-21 17:21:59 -07:00
Jigar Agrawal
74135ec470 msm: camera: csiphy: Add support for delay in IRQ confiq
Add support to add a delay while programming the IRQ
settings. Also, correct the irq mask bring up sequence
for csiphy2.1.0.

CRs-Fixed: 2923706
Change-Id: I1ef5b078bd91e915b9e53305edc0034d62132831
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-04-15 18:29:18 -07:00
Haritha Chintalapati
f77f1673d3 Merge "msm: camera: isp: Add support for new CSID" into camera-kernel.lnx.5.0 2021-04-15 18:24:50 -07:00
Anand Ravi
d2e9a2b541 msm: camera: isp: Clear previous dual IFE sync config on release
Since IFE HW manager issues dual sync config command only after
acquiring IPP path, CSID driver must clear the dual sync config when IPP
path is released.

CRs-Fixed: 2914494
Change-Id: I5200f120d2fe8305b5692121a07f4e7af801975c
Signed-off-by: Anand Ravi <ananravi@codeaurora.org>
2021-04-15 13:36:27 -07:00
Gaurav Jindal
2e4fcd36fa msm: camera: isp: Send correct cphy id to cphy driver
Correct the phy id to be sent while notify the errors from
CSID driver to csi phy driver.

CRs-Fixed: 2924001
Change-Id: I363dbed5e6edeeafd93d42838154fba30cb711c9
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2021-04-15 11:15:44 +05:30
Haritha Chintalapati
d62972c20f Merge "msm: camera: common: Use the appropriate header for spinlock" into camera-kernel.lnx.5.0 2021-04-14 19:20:47 -07:00
Haritha Chintalapati
2c537f74d5 Merge "msm: camera: cpas: Fix camnoc bw calculation flag parsing" into camera-kernel.lnx.5.0 2021-04-13 19:30:57 -07:00
Haritha Chintalapati
e892f58b06 Merge "msm: camera: cdm: Update hang detect logic" into camera-kernel.lnx.5.0 2021-04-13 19:30:37 -07:00
Haritha Chintalapati
4c06d9bc13 Merge "msm: camera: ope: Update for new IQ modules" into camera-kernel.lnx.5.0 2021-04-13 19:30:19 -07:00
Haritha Chintalapati
cf41c1c81b Merge "msm: camera: ope: Dump stripe info at the time of hang" into camera-kernel.lnx.5.0 2021-04-13 19:30:06 -07:00
Haritha Chintalapati
75e7523d2d Merge "msm: camera: isp: Fix out of bounds access" into camera-kernel.lnx.5.0 2021-04-13 19:29:55 -07:00
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
Karthik Anantha Ram
9f4f8e114c msm: camera: common: Use the appropriate header for spinlock
With the allow list tightened, use the right header for spinlock
usage. Change replaces usage of linux/spinlock.h to
linux/spinlock_types.h.

CRs-Fixed: 2841729
Change-Id: I0247501b765436099f75c9725e9f614f0873c888
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-04-12 14:42:58 -07:00
Mukund Madhusudan Atre
fc8edb0fa1 msm: camera: cpas: Fix camnoc bw calculation flag parsing
The camnoc max needed flag is stored for each tree node and
parsed once per level. Fix parsing of camnoc max needed flag.
Improve cpas logging. Part of this change fixes issue introduced
in: commit d099238a67 ("msm: camera: cpas: Update bus node
level parsing logic").

CRs-Fixed: 2841729
Change-Id: I55ff2265ee1491535f3e39e16920129e8dffc15a
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2021-04-12 11:42:47 -07:00
Karthik Anantha Ram
49b59c54c8 msm: camera: isp: Fix out of bounds access
On Waipio the CSID buf done controller handles only
1 register. In bus_ver3 top half we need to avoid
accessing the event status array beyond 1 element.

CRs-Fixed: 2841729
Change-Id: I3588b2cb23d57e0d9a89830e33d8aed19b1f67ff
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-04-12 10:21:48 -07:00
Wyes Karny
4e535ac459 msm: camera: isp: Add support for new CSID
Add CSID640 support. The following features support are added:
  - QCFA binning and BAYER binning support
  - Format measure support
  - Multi VC DT support
  - Add core_cfg support in in_port structure

CRs-Fixed: 2887030
Change-Id: Idd7d081c985f3ef21e0fee7ce4c1b8db96ddd3c3
Signed-off-by: Wyes Karny <wkarny@codeaurora.org>
2021-04-12 01:34:13 -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
Alok Chauhan
8e6883ec80 msm: camera: cdm: Update hang detect logic
Currently cdm driver is updating work records
in case of all the interrupts received, but
decrementing only when it schedule workq for
inline irq interrupt. This causes the mismatch
in work records and return incorrect work records
count when cdm client check the cdm hang detect.

Updated hang detect logic in cdm driver.

CRs-Fixed: 2878695
Change-Id: I7039422bf573a7105c16ac2f752eb235c377bfee
Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
2021-04-07 19:42:07 +05:30
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
Alok Chauhan
12306c0a9e msm: camera: ope: Update for new IQ modules
Added changes to dump new IQ modules as well
in OPE during page fault and hang scenarios.

CRs-Fixed: 2878214
Change-Id: I97e7d4ee2ed9899ed299155c9aca8b094dff18f0
Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
2021-04-06 22:17:24 +05:30
Alok Chauhan
a78cf863fd msm: camera: ope: Dump stripe info at the time of hang
Add logic to dump stripe info and wait event status at the
time of cdm hang.

CRs-Fixed: 2878214
Change-Id: Ib9892b0273e4436988c5f1384d18d60d29529c94
Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
2021-04-06 21:48:51 +05:30
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