Gráfico de commits

430 Commits

Autor SHA1 Mensaje Fecha
Venkat Chinta
8e79606ada msm: camera: isp: Add support for offline IFE
This change adds new IRQ state machine and updates the acquire
logic to enable offline IFE. This change also adds the fixes
necessary to enable bus read for various buffer formats and
append go command at the end of each packet for offline
context.

CRs-Fixed: 2513939
Change-Id: Ie068670ed11aa6713e8f0cb817e4b5d4c209e696
Signed-off-by: Venkat Chinta <vchinta@codeaurora.org>
2020-02-10 15:50:56 -08:00
Venkat Chinta
131b4115d5 msm: camera: isp: Add support for PHY TPG
This change adds support for PHY TPG version
102 hardware.

CRs-Fixed: 2608550
Change-Id: I92387b08e8a91bb0c6a77b5301ebc30c7cb6f252
Signed-off-by: Vishalsingh Hajeri <vhajeri@codeaurora.org>
Signed-off-by: Venkat Chinta <vchinta@codeaurora.org>
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2020-02-10 15:17:44 -08:00
Karthik Anantha Ram
381bb12c68 msm: camera: isp: Obtain timestamp as part of frame header
In use-cases that involve custom HW retrieve the timestamp
for shutter from frame header as opposed to csid registers.

CRs-Fixed: 2524308
Change-Id: I5de789cf939546affbfe6d537d8090982f39189d
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2020-02-10 14:56:25 -08:00
Gaurav Jindal
e3f5738e43 msm: camera: isp: LDAR Dump ISP information
When user space detects an error or does not receive
response for a request, Lets do a reset(LDAR) is triggered.
Before LDAR, user space sends flush command to the
kernel space.
In order to debug the cause for this situation and to dump
the information, user space sends a dump command to
kernel space before sending flush.
As a part of this command, it passes the culprit request id
and the buffer into which the information can be dumped.
Kernel space traverses across the drivers and find the culprit hw
and dumps the relevant information in the buffer.
This data is written to a file for offline processing.
This commit dumps the IFE, CSID registers, LUT tables and context
information, cmd buffers, timestamps information for
submit, apply, RUP, epoch and buffdones of the last 20
requests.

CRs-Fixed: 2612116
Change-Id: If83db59458c1e5ad778f3fa90cbc730122491c54
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2020-02-10 14:39:46 -08:00
Camera Software Integration
2460a8e82a Merge "msm: camera: isp: Add support to obtain frame index" into camera-kernel.lnx.4.0 2020-02-10 11:47:28 -08:00
Camera Software Integration
4c9c8a271a Merge "msm: camera: isp: Update IRQ controller names" into camera-kernel.lnx.4.0 2020-02-10 11:47:15 -08:00
Camera Software Integration
23372b610f Merge "msm: camera: common: LDAR dump NRT devices information" into camera-kernel.lnx.4.0 2020-02-10 11:46:57 -08:00
Karthik Anantha Ram
5ddf0a5cfb msm: camera: isp: Add support to obtain frame index
This change captures the frame index as part of the IFE top
register space at every epoch event. The index is then notified
to userspace as part of shutter notification.

CRs-Fixed: 2524308
Change-Id: Iac510c452f9ceda86e9f7d69528f22f81e614974
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2020-02-08 00:15:28 -08:00
Camera Software Integration
0894c95dda Merge "msm: camera: isp: Get packet opcode from hw manager" into camera-kernel.lnx.4.0 2020-02-07 15:14:33 -08:00
Camera Software Integration
67f139bf4b Merge "msm: camera: fd: skip halt and reset for session start" into camera-kernel.lnx.4.0 2020-02-07 15:13:59 -08:00
Camera Software Integration
d5fa77dbdd Merge "msm: camera: isp: Register dump for first request id" into camera-kernel.lnx.4.0 2020-02-07 15:13:41 -08:00
Camera Software Integration
ba20c111ed Merge "msm: camera: common: Add component helper support in camera" into camera-kernel.lnx.4.0 2020-02-07 15:13:17 -08:00
Camera Software Integration
5a3fb45a2a Merge "msm: camera: sensor: Notify completion in error case" into camera-kernel.lnx.4.0 2020-02-07 15:13:06 -08:00
Camera Software Integration
182154ab1c Merge "msm: camera: isp: Add epd Blob support" into camera-kernel.lnx.4.0 2020-02-07 15:12:59 -08:00
Camera Software Integration
8564b8d28b Merge "msm: camera: cpas: Add support for camnoc based voting" into camera-kernel.lnx.4.0 2020-02-07 15:12:50 -08:00
Gaurav Jindal
dbc2111c4f msm: camera: common: LDAR dump NRT devices information
When user space detects an error or does not receive
response for a request, Lets do a reset(LDAR) is triggered.
Before LDAR, user space sends flush command to the
kernel space.
In order to debug the cause for this situation and to dump
the information, user space sends a dump command to the
kernel space before sending flush.
As a part of this command, it passes the culprit request id
and the buffer into which the information can be dumped.
Kernel space traverses across the drivers and find the culprit hw
and dumps the relevant information in the buffer.
This data is written to a file for offline processing.
This commit dumps the information for NRT devices; JPEG,
LRME, FD and ICP.
For LRME, FD, JPEG context information is dumped.
FOR ICP, fw image is dumped.

Change-Id: I123e9b8289521a40d88156ba9bd0003ad9602f01
CRs-Fixed: 2602180
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2020-02-06 16:02:16 -08:00
Ravikishore Pampana
4f1ba0f292 msm: camera: isp: Get packet opcode from hw manager
While processing the user space submitted isp packet,
isp context need to know the packet opcode.
Get the opcode from the hw manager than the direct accessing the
opcode from packet.
Ife umd sends different opcodes then tfe umd. Both ife and tfe kernel
packet opcodes are same. So hw manager can consume this differences.

CRs-Fixed: 2585713
Change-Id: I54813af233cd8bfa640f2688c1334510a5b85f1c
Signed-off-by: Ravikishore Pampana <rpampana@codeaurora.org>
2020-02-06 15:13:05 -08:00
Tejas Prajapati
9ea8b73194 msm: camera: fd: skip halt and reset for session start
Halt and reset can be applied only at probe time and flush
time to clean up the MSF interface.

CRs-Fixed: 2593760
Change-Id: I8a19a5a5f4a3b25ef5fe9c18a1e754529418c53c
Signed-off-by: Tejas Prajapati <tpraja@codeaurora.org>
2020-02-06 14:49:42 -08:00
Ravikishore Pampana
05378eff25 msm: camera: isp: Register dump for first request id
First request id not getting dump if early pcr is on.
If early pcr is on need to store the parsed register dump descriptor
for first request id which comes as init packet.

CRs-Fixed: 2595702
Change-Id: Icbf94d65b5c35cdf47044d770c7db7093001d506
Signed-off-by: Ravikishore Pampana <rpampana@codeaurora.org>
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2020-02-06 13:01:12 -08:00
Camera Software Integration
a04ed17b0e Merge "msm: camera: req_mgr: Update link activate/deactivate to avoid race" into camera-kernel.lnx.4.0 2020-02-06 11:35:53 -08:00
Camera Software Integration
18c0155b3f Merge "msm: camera: req_mgr: LDAR Debug framework implementation" into camera-kernel.lnx.4.0 2020-02-06 11:35:41 -08:00
Camera Software Integration
108ddaf33d Merge "msm: camera: isp: Add support for IFE2" into camera-kernel.lnx.4.0 2020-02-06 11:35:29 -08:00
Mukund Madhusudan Atre
5cb000ee7f msm: camera: common: Add component helper support in camera
Due to the asynchronous nature of platform probes, inter
dependency between drivers needs to be taken care during
kernel boot up. Component helper provides the facility of
adding matching drivers in a list ordered in the way we want
to bind those drivers. The CRM driver acts as component master
to make sure all slave drivers are bound before it returns
from its own bind call. Add support for serializing platform
probes through component framework.

CRs-Fixed: 2584631
Change-Id: I345da1d2b9cccf6021ac6fc899143013b7714ec4
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2020-02-05 22:58:13 -08:00
Gaurav Jindal
1ed310412a msm: camera: cpas: Add support for camnoc based voting
For some targets, it is needed to vote for camnoc clock
as there is no CAMNOC AXI clock source in camera domain.
Voting is done with the bus drivers and it calcultates
the clock rate.
This change adds support for camnoc based voting.

CRs-Fixed: 2571273
Change-Id: I38a4fa8d40892b6dfe7e925b6368eb259132615d
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2020-02-05 14:24:01 -08:00
Prakasha Nayak
8dc1774e8b msm: camera: isp: Add epd Blob support
This change adds blob support to disable CSID EOT IRQ
in case of high data rate sensors which sends
EPD instead of EOT.

CRs-Fixed: 2566158
Change-Id: I8ac6d2281a6510d3702f3b651e2c7ca2391afe6c
Signed-off-by: Prakasha Nayak <pnayak@codeaurora.org>
2020-02-05 14:14:57 -08:00
Jigarkumar Zala
fdb9ade9a8 msm: camera: sensor: Notify completion in error case
There is no need to wait till timeout in case of NACK or
underflow error irq is raised, so notify thread for rd_done
completion. Also, correct the error mask to catch the NACK
error for Master 1.

CRs-Fixed: 2598605
Change-Id: Ib8a16ee119dd81f1384283ac7e9f82d3ac2588bb
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
2020-02-05 14:06:00 -08:00
Camera Software Integration
8d05aad1b0 Merge "msm: camera: req_mgr: Header file comment fixes" into camera-kernel.lnx.4.0 2020-02-05 13:02:36 -08:00
Shravan Nevatia
b68a69b788 msm: camera: csiphy: Add combo phy settings for csiphy v1.2.2.2
As per HPG revision L, there's a difference in the DPHY combo-mode
sequence settings between lito v1 and v2. This change adds a
separate sequence for lito v2, csiphy version 1.2.2.2.

CRs-Fixed: 2591712
Change-Id: Ic535bd2c98f47c33aa689d0e1bfe07d7dac8d9a2
Signed-off-by: Shravan Nevatia <snevatia@codeaurora.org>
2020-02-05 10:50:30 -08:00
Gaurav Jindal
d95d140d40 msm: camera: req_mgr: LDAR Debug framework implementation
When user space detects an error or does not receive
response for a request, Lets do a reset(LDAR) is triggered.
Before LDAR, user space sends flush command to the
kernel space.
To debug the cause for this situation and to dump
the information, user space sends a dump command to the
kernel space before sending flush.
As a part of this command, it passes the culprit request id
and the buffer into which the information can be dumped.
Kernel space traverses across the drivers and find the culprit hw
and dumps the relevant information in the buffer.
This data is written to a file for offline processing.
This commit implements the framework for traversal
across the RT and NRT devices.

CRs-Fixed: 2602180
Change-Id: I7e24006c20c23bfab163a2ad13b4ac6e2913bb9e
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2020-02-05 10:50:23 -08:00
Gaurav Jindal
14b75bff2d msm: camera: isp: Add support for IFE2
Add support for IFE2 hardware in ife hw manager, bus files.

CRs-Fixed: 2571273
Change-Id: I6193b70707b15282b8d819e8dda5eb2e5fc4c345
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2020-02-05 10:49:16 -08:00
Karthik Jayakumar
c1eedf8be5 msm: camera: isp: Update IRQ controller names
Fixes debug log printing of IRQ controller names from within
interrupt.

CRs-Fixed: 2584631
Change-Id: I0df94603f31fa2fb56464938e1a28fda470e4a27
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
2020-02-04 19:01:18 -08:00
Camera Software Integration
324fe08fbf Merge "msm: camera: sync: correcting atomic read operation" into camera-kernel.lnx.4.0 2020-02-04 15:21:32 -08:00
Camera Software Integration
ed7db2a951 Merge "msm: camera: reqmgr: Add uapi for new v4l2 event type" into camera-kernel.lnx.4.0 2020-02-04 15:19:36 -08:00
Camera Software Integration
0da9c03755 Merge "msm: camera: ife: Remove reset type override" into camera-kernel.lnx.4.0 2020-02-04 15:19:15 -08:00
Camera Software Integration
3fc621826d Merge "msm: camera: isp: Add check for cid acquire" into camera-kernel.lnx.4.0 2020-02-04 15:19:06 -08:00
Camera Software Integration
bd60f847ef Merge "msm: camera: isp: Mask unused rdi interrupts" into camera-kernel.lnx.4.0 2020-02-04 15:18:31 -08:00
Camera Software Integration
e0063de3c3 Merge "msm: camera: ife: Reduce config done timeout during stop" into camera-kernel.lnx.4.0 2020-02-04 15:18:23 -08:00
Camera Software Integration
933a941f33 Merge "msm: camera: cdm: Clear IRQ before reading userdata" into camera-kernel.lnx.4.0 2020-02-04 15:18:14 -08:00
Camera Software Integration
d8b3b0fb80 Merge "msm: camera: sensor: Add Init setting retry in case cci is resetting" into camera-kernel.lnx.4.0 2020-02-04 15:18:05 -08:00
Camera Software Integration
77b739919d Merge "msm: camera: isp: Change data type for error handling" into camera-kernel.lnx.4.0 2020-02-04 15:17:06 -08:00
Camera Software Integration
5f52e784c4 Merge "msm: camera: isp: Update unlink handling to avoid race" into camera-kernel.lnx.4.0 2020-02-04 15:14:58 -08:00
Camera Software Integration
139893ac96 Merge "msm: camera: sensor: Fix an operator error" into camera-kernel.lnx.4.0 2020-02-04 15:09:59 -08:00
Camera Software Integration
7212c1deb0 Merge "msm: camera: custom: Disable overflow recovery" into camera-kernel.lnx.4.0 2020-02-04 15:09:43 -08:00
Camera Software Integration
8d141684b8 Merge "msm: camera: ife: Stop hardware in error" into camera-kernel.lnx.4.0 2020-02-04 15:09:03 -08:00
Camera Software Integration
db3bae58bc Merge "msm: camera: req_mgr: Reduce maximum attempts to apply request" into camera-kernel.lnx.4.0 2020-02-04 15:08:50 -08:00
Camera Software Integration
4690565ab4 Merge "msm: camera: req_mgr: Increase watchdog timeout" into camera-kernel.lnx.4.0 2020-02-04 15:08:32 -08:00
Camera Software Integration
c80a4ac519 Merge "msm: camera: cpas: Add cpas support for camera v170_200 platform" into camera-kernel.lnx.4.0 2020-02-04 15:08:11 -08:00
Camera Software Integration
1598b6d0e8 Merge "msm: camera: icp: Dump patching info in case of page faults" into camera-kernel.lnx.4.0 2020-02-04 15:07:59 -08:00
Camera Software Integration
d96c25f265 Merge "msm: camera: icp: Enable hang dump on failure" into camera-kernel.lnx.4.0 2020-02-04 15:07:49 -08:00
Camera Software Integration
8b7546e512 Merge "msm: camera: custom: Add support for immediate stop" into camera-kernel.lnx.4.0 2020-02-04 15:07:26 -08:00