Grafik Komit

2332 Melakukan

Penulis SHA1 Pesan Tanggal
Joshua Florez
d644749f16 msm: camera: isp: LDAR Dump ISP Extension
Extension of Lets do a reset (LDAR) to include more information
in dump with more dump output enhancements.

CRs-Fixed: 3068971
Change-Id: I6b61bcf546e32c096e45c511faf64514ff391e62
Signed-off-by: Joshua Florez <quic_jflorez@quicinc.com>
2022-01-20 21:06:58 -08:00
Depeng Shao
6e9ae02655 msm: camera: common: Fix few incorrect log
Fix few incorrect log and add ctx id for
irq handling log.

CRs-Fixed: 3101894
Change-Id: Ibd2783124ed6354a379b9804e6e6bc01f2ab6fb3
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
2022-01-20 21:06:25 -08:00
Savita Patted
d272ddcb9a Snap for drop 01/19/2022 mainline 704 LA.VENDOR.1.0.AU393
camera-kernel:
180ce1c Merge "msm: camera: uapi: Add PF msg struct" into camera-kernel.lnx.dev
ea499a7 Merge "msm: camera: sensor: Add IR/XCFA/SHDR overlapped for TPG0" into camera-kernel.lnx.dev

Change-Id: I19f85d506fe1381b10c5f2ace905b268407a0558
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-01-19 19:06:09 -08:00
sokchetra eung
a27ab6d632 msm: camera: uapi: Add PF msg struct
Add data struct for reporting v4l2 event on page
fault. Upon receiving the event, userspace is
expected to abort, and all kernel drivers are shut
down. when Titan power on the next session, CAMSS
will undergo async reset.

CRs-Fixed: 3109439
Change-Id: I518148baa2414fd072b874200a408589332f95ec
Signed-off-by: sokchetra eung <quic_eung@quicinc.com>
2022-01-19 16:06:50 -08:00
Rishab Garg
e79f7727a3 msm: camera: sensor: Add IR/XCFA/SHDR overlapped for TPG0
Kailua tpg has some extra register for ir/xcfa/shdr overlapped.
These register data support is added as part of this change.

CRs-Fixed: 3086082
Change-Id: If044b336a87de931f6d512c52895e65c85d10863
Signed-off-by: Rishab Garg <quic_rishabg@quicinc.com>
2022-01-19 16:06:29 -08:00
Savita Patted
c35584d0b7 Snap for drop 01/14/2022 mainline 702 LA.VENDOR.1.0.AU393
camera-kernel:
00bca18 Merge "msm: camera: sensor: Add 2PD support for TPG0" into camera-kernel.lnx.dev
9051b15 Merge remote-tracking branch 'origin/camera-kernel.lnx.6.0' into camera-kernel.lnx.dev

Change-Id: I29a42cf0ed36bf0abb222c2e08ee98b9667659e6
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-01-19 13:31:20 -08:00
Rishab Garg
31a3e23afc msm: camera: sensor: Add 2PD support for TPG0
Add interleaving format to support 2PD for tpg0.

CRs-Fixed: 3100297
Change-Id: Ic59c4cec0990faa3d70f45aa34baebaa33e08b2b
Signed-off-by: Rishab Garg <quic_rishabg@quicinc.com>
2022-01-19 13:31:20 -08:00
Gaurav Jindal
0bd0f23d03 msm: camera: isp: Add Support for XCFA RDI requirements
For SFE 780, Input to SFE from CSID for single xcfa use cases
is RDI0.
This commit changes the acquire logic to acquire RDI0
in case of SFE context for single ISP/SFE use cases and IPP
for dual ife cases.

CRs-Fixed: 3092119
Change-Id: I7e7ba0438435c6fe7a8b0d22f7c08b7ce4da1819
Signed-off-by: Gaurav Jindal <quic_gjindal@quicinc.com>
2022-01-19 13:31:19 -08:00
Savita Patted
910867ce20 Snap for drop 01/07/2022 kernel-dev FF to camera-kernel 6.0.
Change-Id: I493ccfb878e30c25d87feff28c5f407fd4ffe17a
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-01-19 13:30:56 -08:00
Camera Software Integration
02cd33019c Merge "msm: camera: jpeg: Add mechanism to verify IRQ lines" into camera-kernel.lnx.6.0 2022-01-06 15:58:42 -08:00
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