Grafico dei commit

2422 Commit

Autore SHA1 Messaggio Data
Camera Software Integration
6a5f8af8d3 Merge "msm: camera: icp: Add mechanism to verify IRQ lines" into camera-kernel.lnx.6.0 2022-01-06 15:58:31 -08:00
Haritha Chintalapati
f1e5f33d90 Merge "msm: camera: isp: Moving req to active list first" into camera-kernel.lnx.6.0 2022-01-05 18:05:01 -08:00
Anand Ravi
4355ad8cb4 msm: camera: jpeg: Add mechanism to verify IRQ lines
IRQ line verification can now be triggerred from JPEG HW manager by
writing to a debugfs file as follows:
    echo 1 > /d/camera/jpeg/test_irq_line

IRQ line verification can also be done at probe if
CONFIG_CAM_TEST_IRQ_LINE_AT_PROBE is set to true during compilation.
Both debugfs and probe-time verifications are only active if
CONFIG_CAM_TEST_IRQ_LINE is set to true during compilation.

CRs-Fixed: 3071027
Change-Id: Ib24022a12e3aa3ac529c7bc925fd4df1f2a96310
Signed-off-by: Anand Ravi <quic_ananravi@quicinc.com>
2022-01-05 11:50:31 -08:00
Anand Ravi
af9072bcc6 msm: camera: icp: Add mechanism to verify IRQ lines
IRQ line verification can now be triggerred from ICP HW manager by
writing to a debugfs file as follows:
    echo 1 > /d/camera/icp/test_irq_line

IRQ line verification can also be done at probe if
CONFIG_CAM_TEST_IRQ_LINE_AT_PROBE is set to true during compilation.
Both debugfs and probe-time verifications are only active if
CONFIG_CAM_TEST_IRQ_LINE is set to true during compilation.

CRs-Fixed: 3071027
Change-Id: I386548d1ed817674be8322c8be792e2c57f9d166
Signed-off-by: Anand Ravi <quic_ananravi@quicinc.com>
2022-01-05 11:50:31 -08:00
Haritha Chintalapati
226acd5b9f Merge "msm: camera: cdm: Add support for testing irq line" into camera-kernel.lnx.6.0 2022-01-04 19:03:53 -08:00
Haritha Chintalapati
80985916ca Merge "msm: camera: cpas: Add support for verifying test irq" into camera-kernel.lnx.6.0 2022-01-04 19:03:23 -08:00
Haritha Chintalapati
23338dde1c Merge "msm: camera: isp: Fix resource assignment during ppp recovery" into camera-kernel.lnx.6.0 2022-01-04 19:03:12 -08:00
Haritha Chintalapati
5a3347fb3f Merge "msm: camera: isp: Add logs to print hw versions during init" into camera-kernel.lnx.6.0 2022-01-04 19:03:00 -08:00
Haritha Chintalapati
9e35b4588c Merge "msm: camera: isp: Add mechanism to verify IRQ lines" into camera-kernel.lnx.6.0 2022-01-04 19:02:42 -08:00
Haritha Chintalapati
124c3cf6ed Merge "msm: camera: common: create a common root folder for debugfs" into camera-kernel.lnx.6.0 2022-01-04 19:02:17 -08:00
Haritha Chintalapati
84b5e0f4cb Merge "msm: camera: jpeg: Add v780 header for jpeg enc and dma" into camera-kernel.lnx.6.0 2022-01-04 19:02:05 -08:00
Haritha Chintalapati
f0de92c0aa Merge "msm: camera: isp: Handle PD and RDI resource if PIX port is not present" into camera-kernel.lnx.6.0 2022-01-04 19:01:53 -08:00
Depeng Shao
30c59c7aa6 msm: camera: isp: Moving req to active list first
Sometimes, all the buf dones of bubble req have been
received, but they are deferred buf done. If we handle
the deferred buf done before moving the req to active
list, the req will be moved to pending list first during
processing the buf done of bubble req, then moved to
active req list in the processing of epoch_in_applied.
This change moves the bubble req to active list first,
then handle the deferred buffer done.

CRs-Fixed: 3096361
Change-Id: I1e9b1ba5a46509b1c08ec92bbca0c2d7fbde679c
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
2021-12-30 21:20:26 -08:00
Camera Software Integration
26ed5e38ae Merge "msm: camera: icp: Trigger FW load/unload via debugfs" into camera-kernel.lnx.6.0 2021-12-23 15:56:55 -08:00
Camera Software Integration
bf5c84ec66 Merge "msm: camera: common: Add level in priority list for shutdown" into camera-kernel.lnx.6.0 2021-12-23 15:56:46 -08:00
Camera Software Integration
8caa69bd58 Merge "msm: camera: icp: Use mbn to load secure FW image" into camera-kernel.lnx.6.0 2021-12-23 15:56:36 -08:00
Camera Software Integration
7d3c727286 Merge "msm: camera: icp: Use blob to pass presil hangdump buffer info" into camera-kernel.lnx.6.0 2021-12-23 15:56:27 -08:00
Camera Software Integration
d655daf797 Merge "msm: camera: smmu: Update SMMU debug print format" into camera-kernel.lnx.6.0 2021-12-23 15:56:18 -08:00
Camera Software Integration
28e4171670 Merge "msm: camera: icp: Add err logs in failure cases" into camera-kernel.lnx.6.0 2021-12-23 15:56:07 -08:00
Camera Software Integration
c6e7d89319 Merge "msm: camera: isp: Correct the violation module ID in 780 header" into camera-kernel.lnx.6.0 2021-12-23 15:55:57 -08:00
Camera Software Integration
de4126c3a8 Merge "msm: camera: icp: hfi adaptation for presil mode" into camera-kernel.lnx.6.0 2021-12-23 15:55:47 -08:00
Camera Software Integration
706319553c Merge "msm: camera: isp: Change condition to dump SFE/IFE overflow debug info" into camera-kernel.lnx.6.0 2021-12-23 15:55:37 -08:00
Camera Software Integration
323f4060ce Merge "msm: camera: isp: Fix IRQ masks for CSID" into camera-kernel.lnx.6.0 2021-12-23 15:55:25 -08:00
Camera Software Integration
baa1de68b0 Merge "msm: camera: isp: Add util functions in acquire flow" into camera-kernel.lnx.6.0 2021-12-23 15:55:14 -08:00
Pavan Kumar Chilamkurthi
1fa1a77a37 msm: camera: cdm: Add support for testing irq line
Trigger cdm reset to test irq line on presil platforms.

Use below command to trigger after boot up.
echo 1 > /d/camera/cdm/test_irq_line

IRQ line verification can also be done at bootup if
CONFIG_CAM_TEST_IRQ_LINE_AT_PROBE is defined during
compilation.

Both above are valid if CONFIG_CAM_TEST_IRQ_LINE is
enabled during compilation.

CRs-Fixed: 3071027
Change-Id: I9e8c559cd954dfdcfc9b536366e622a03efe1672
Signed-off-by: Pavan Kumar Chilamkurthi <quic_pchilamk@quicinc.com>
2021-12-23 01:14:45 -08:00
Gaurav Jindal
73c115c318 msm: camera: isp: Handle PD and RDI resource if PIX port is not present
In some use-case, PD and RDI ports are only present and we need
separate state machine to handle this scenario as we don't
enable any interrupts on PPP path.

This commit handles such scenario with help of RDI only state
machine.

CRs-Fixed: 3090212
Change-Id: I42b708a11669ead1058e87f9eaa56a79e13b0474
Signed-off-by: Chandan Kumar Jha <quic_cjha@quicinc.com>
Signed-off-by: Gaurav Jindal <quic_gjindal@quicinc.com>
2021-12-23 07:38:34 +05:30
Anand Ravi
6237004caa msm: camera: isp: Add logs to print hw versions during init
This commit adds debug logs with the read values of hardware versions
of individual hardware components of IFE, SFE and CSID as part of
hardware initialization.

CRs-Fixed: 3071027
Change-Id: I11f4c31ffec2d3d1dc78712c22b85df09691addb
Signed-off-by: Anand Ravi <quic_ananravi@quicinc.com>
2021-12-22 16:44:52 -08:00
Anand Ravi
1ff6fd9371 msm: camera: isp: Add mechanism to verify IRQ lines
IRQ line verification can now be triggerred from IFE HW manager by
writing to a debugfs file as follows:
    echo 1 > /d/camera/ife/test_irq_line

IRQ line verification can also be done at probe if
CONFIG_CAM_TEST_IRQ_LINE_AT_PROBE is set to true during compilation.
Both debugfs and probe-time verifications are only active if
CONFIG_CAM_TEST_IRQ_LINE is set to true during compilation.

CRs-Fixed: 3071027
Change-Id: I0f756ae76d366c254b4af64adf60fe6be7a1a2ef
Signed-off-by: Anand Ravi <quic_ananravi@quicinc.com>
2021-12-22 16:44:26 -08:00
Anand Ravi
cbe499e9eb msm: camera: common: create a common root folder for debugfs
Create common root folder under debugfs root named camera at probe. Add
utility functions to create subdirectories under the common camera root.

CRs-Fixed: 3093049
Change-Id: Ia4cefb5d2263ecabf1b9d70deefa1ee624b04f07
Signed-off-by: Anand Ravi <quic_ananravi@quicinc.com>
2021-12-22 16:43:42 -08:00
Ridhi Shah
69e88523fe msm: camera: jpeg: Add v780 header for jpeg enc and dma
Add compatible string and header to support MISR
for JPEG DMA and encoder for v780.

CRs-Fixed: 3012752
Change-Id: I3f50506c20620dc46b6c5b3615887bbbc6027e36
Signed-off-by: Ridhi Shah <quic_ridhshah@quicinc.com>
2021-12-22 16:04:03 -08:00
Camera Software Integration
d123d73bc2 Merge "msm: camera: sensor: enable the compilation for flash" into camera-kernel.lnx.6.0 2021-12-22 14:42:33 -08:00
Mukund Madhusudan Atre
e71be67fe9 msm: camera: isp: Fix resource assignment during ppp recovery
Currently, the resource node is re-assigned incorrectly in ppp
bottom half code, which results in crash during ppp recovery.
Remove the re-assignment to take care of this issue.

CRs-Fixed: 3091342
Change-Id: I200c49409f9e6ad58dbd00a08bc16d15930de438
Signed-off-by: Mukund Madhusudan Atre <quic_matre@quicinc.com>
2021-12-22 12:58:21 -08:00
Suraj Dongre
bd411e32c9 msm: camera: icp: Use blob to pass presil hangdump buffer info
Added blob for presil hangdump containing memhandle for buffer.
Added code to copy hangdump from rumi into this buffer.

CRs-Fixed: 3042621
Change-Id: I804f34fdb251c83137c2ee5b9dd8eb082bd43bf7
Signed-off-by: Suraj Dongre <quic_sdongre@quicinc.com>
2021-12-21 12:10:41 -08:00
Karthik Anantha Ram
d7c79a8c98 msm: camera: icp: Use mbn to load secure FW image
Use .mbn as opposed to .mdt to load ICP FW image. mbn is
all the mdt segments put together which improves load time
as a whole.

CRs-Fixed: 3097673
Change-Id: I9d83fb223b1a17e6c041697d4a8fe5cf5932d5ee
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2021-12-21 09:56:53 -08:00
Haritha Chintalapati
74fb569f3c Merge "msm: camera: csiphy: Add Hardware register support for Kailua" into camera-kernel.lnx.6.0 2021-12-20 19:16:00 -08:00
Haritha Chintalapati
a97ccf4ee0 Merge "msm: camera: isp: handle buf_done at apply failure from deferred list" into camera-kernel.lnx.6.0 2021-12-20 19:15:27 -08:00
Karthik Anantha Ram
03ec3b418c msm: camera: icp: Trigger FW load/unload via debugfs
Based on compilation flag CONFIG_CAM_TEST_ICP_FW_DOWNLOAD, ICP
FW load/unload sequence can be verified. This change initializes
memory manager for load and de-initializes memmgr during unload.

To trigger FW download-
adb shell "echo "load" > /sys/kernel/debug/camera_icp/icp_fw_load_unload"

FW unload -
adb shell "echo "unload" > /sys/kernel/debug/camera_icp/icp_fw_load_unload"

CONFIG_CAM_TEST_FW_DOWNLOAD needs to be set only for testing
FW loading when camera server is not enabled.

The change also adds protection for repeated memmgr init/deinit calls.

CRs-Fixed: 3097781
Change-Id: Iceb5089793313b086b9d4fc3770a87860237e741
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2021-12-20 16:20:48 -08:00
Depeng Shao
425e0a8142 msm: camera: sensor: enable the compilation for flash
This change enables the compilation for flash even
though there is no pmic flash support, since the i2c
flash still needs the flash framework.

CRs-Fixed: 3095773
Change-Id: I220a38dce1cbc829e446a65c61b7b7eb6b3a1c5b
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
2021-12-20 04:49:10 -08:00
Pavan Kumar Chilamkurthi
429b96509d msm: camera: cpas: Add support for verifying test irq
When special compilation enabled, enable test irq at bootup
to verify camnoc irq line.

CRs-Fixed: 3071027
Change-Id: I3a79405a57ae7d0aa859a4f77c6252bbc60d80c4
Signed-off-by: Pavan Kumar Chilamkurthi <quic_pchilamk@quicinc.com>
2021-12-18 14:53:02 -08:00
Haritha Chintalapati
927b715d57 Merge "msm: camera: isp: Update last applied scratch configuration for sfe" into camera-kernel.lnx.6.0 2021-12-17 17:34:14 -08:00
Haritha Chintalapati
b37e07e68a Merge "msm: camera: jpeg: JPEG HW and Camnoc MISR" into camera-kernel.lnx.6.0 2021-12-17 17:32:16 -08:00
Haritha Chintalapati
6bb75238ec Merge "msm: camera: isp: Add v780 configs for BW limit and packer alignment" into camera-kernel.lnx.6.0 2021-12-17 17:32:01 -08:00
Haritha Chintalapati
f8e6f84dc1 Merge "msm: camera: cpas: Add support for Parrot Camera" into camera-kernel.lnx.6.0 2021-12-17 17:31:47 -08:00
Anand Ravi
f3e6b4172b msm: camera: isp: Fix IRQ masks for CSID
Add top IRQ status mask for IPP and change it to correct value for PPP.
Add epoch shift values for IPP. Fix private variable pointer passed for
PPP IRQ subscribe.

CRs-Fixed: 3090212
Change-Id: I3544d468f8ea69de6b814698b464503ce8fc9adf
Signed-off-by: Anand Ravi <quic_ananravi@quicinc.com>
2021-12-17 10:59:11 -08:00
Gaurav Jindal
bd160429ea msm: camera: isp: Change condition to dump SFE/IFE overflow debug info
-Corrects the condition to dump the cpas log votes
in case of bus overflows.
-Corrects the condition to dump the SFE violation modules.
-Moves RATE_LIMIT to normal logs in case of erros to avoid missing
any debug information.

CRs-Fixed: 3089589
Change-Id: I1aae0ef3c3882868c1a1b8e00d9c0c45ded576fb
Signed-off-by: Gaurav Jindal <quic_gjindal@quicinc.com>
2021-12-17 18:43:50 +05:30
Gaurav Jindal
4bc8794bf2 msm: camera: isp: Correct the violation module ID in 780 header
This commit corrects the violation module ID in vfe 780 header file.

CRs-Fixed: 3092119
Change-Id: I97c6a1c4b331d8bf4f37efd05660b1f3694f1a59
Signed-off-by: Gaurav Jindal <quic_gjindal@quicinc.com>
2021-12-17 10:05:07 +05:30
Camera Software Integration
e211e831e4 Merge "msm: camera: isp: Improve CSID debug infrastructure" into camera-kernel.lnx.6.0 2021-12-16 15:12:36 -08:00
Camera Software Integration
6aac2e2b64 Merge "msm: camera: isp: Add fuse support for QCFA binning" into camera-kernel.lnx.6.0 2021-12-16 15:12:21 -08:00
Camera Software Integration
cc53cdbd4a Merge "msm: camera: isp: Add MID for parrot" into camera-kernel.lnx.6.0 2021-12-16 15:11:43 -08:00
Jigarkumar Zala
6a520c5dfa msm: camera: csiphy: Add Hardware register support for Kailua
Add new header version 2_1_2 to support CSIPHY hardware register
programming for Kailua align with version 6.0.

CRs-Fixed: 3048249
Change-Id: I59215d07247a2476ebb39f889fb90ecce4e17be0
Signed-off-by: Jigarkumar Zala <quic_jzala@quicinc.com>
2021-12-16 09:56:50 -08:00