Commit Graph

363 Commits

Author SHA1 Message Date
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
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
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
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
Karthik Jayakumar
0eaa2bd152 msm: camera: req_mgr: Header file comment fixes
Update header files to reflect changes in functions that are being
documented.

CRs-Fixed: 2584631
Change-Id: I45e2c7830a685b43f25bfc1fb4db6800a2de6150
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
2020-02-03 17:35:50 -08:00
Vikram Sharma
88aeb5cd04 msm: camera: req_mgr: Update link activate/deactivate to avoid race
When cam request manager gets a request to deactivate a link, we
do pause for each of the device for that link. There is a race 
here in current scenario that workqueues can be scheduled even
after the link has been deactivated. This can lead to unexpected
behavior. This change has updated the activate and deactivate 
handling to take care of the race.

CRs-Fixed: 2601863
Change-Id: I7ff03c74c240fc3250618db518d586531d87369f
Signed-off-by: Vikram Sharma <vikramsa@codeaurora.org>
2020-02-03 16:22:50 -08:00
Camera Software Integration
d9c3665f6b Merge "msm: camera: reqmgr: Reduce delay by one frame during bubble recovery" into camera-kernel.lnx.4.0 2020-02-03 14:10:09 -08:00
Camera Software Integration
bcb623611e Merge "msm: camera: ife: Disable clock gating at top" into camera-kernel.lnx.4.0 2020-02-03 14:09:53 -08:00
Camera Software Integration
2eb43777e9 Merge "msm: camera: icp: Mapping fw error numbers with error names" into camera-kernel.lnx.4.0 2020-02-03 14:09:36 -08:00
Camera Software Integration
01c08edcd4 Merge "msm: camera: icp: Enqueue the abort cmd in workq" into camera-kernel.lnx.4.0 2020-02-03 14:09:20 -08:00
Camera Software Integration
346b97be0d Merge "msm: camera: icp: Increase the wait time for abort ACK" into camera-kernel.lnx.4.0 2020-02-03 14:09:06 -08:00
Camera Software Integration
6218118e61 Merge "msm: camera: reqmgr: reset the slot on buf_done" into camera-kernel.lnx.4.0 2020-02-03 14:08:56 -08:00
Camera Software Integration
56a3afaca6 Merge "msm: camera: csiphy: Update common sequence for csiphy v1.2" into camera-kernel.lnx.4.0 2020-02-03 14:08:33 -08:00
Camera Software Integration
4bc14156bb Merge "msm: camera: req_mgr: Link state check before process trigger workq" into camera-kernel.lnx.4.0 2020-02-03 14:07:52 -08:00
Camera Software Integration
b7d2028ac7 Merge "msm: camera: isp: prioritize RUP over EPOCH in bottom half" into camera-kernel.lnx.4.0 2020-02-03 14:04:40 -08:00
Camera Software Integration
cb3b398b2b Merge "msm: camera: cpas: Reorder sequence of cleanup in cpas probe failure" into camera-kernel.lnx.4.0 2020-02-03 14:03:50 -08:00
Camera Software Integration
6d220294b9 Merge "msm: camera: jpeg: Increase number of jpeg contexts" into camera-kernel.lnx.4.0 2020-02-03 14:03:23 -08:00
Karthik Anantha Ram
d7c20bce67 msm: camera: isp: Add check for cid acquire
This change adds a check to validate the cid being acquired,
when custom HW is in the pipeline.

CRs-Fixed: 2524308
Change-Id: I32913e74bc946a4333f77f5e10757c4bd51eab67
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2020-02-03 13:54:48 -08:00
Karthik Anantha Ram
54440e3bb1 msm: camera: reqmgr: Add uapi for new v4l2 event type
Add event type to be notify custom events from the custom
driver. Also adds a new custom message definition.

CRs-Fixed: 2569823
Change-Id: I2ff701e79949ac3a467cbfe0c704065dbf0dc759
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2020-02-03 13:52:30 -08:00
Venkat Chinta
3f5125ebb1 msm: camera: ife: Remove reset type override
This change removes the VFE reset type override that
was introduced to a hardware limitation that has since
been rectified.

CRs-Fixed: 2590331
Change-Id: I2232ab69a9c66e9e14dd849755d8b4eba63fe136
Signed-off-by: Venkat Chinta <vchinta@codeaurora.org>
2020-02-03 13:38:33 -08:00
Chandan Kumar Jha
e03b67bb2f msm: camera: cpas: Add cpas support for camera v170_200 platform
Add register information. Initial QoS settings info to program
camera static settings for chipsets having camera v170_200.
Also change the logic to get the camera and cpas versions.
Added the map table corresponding to camera and cpas versions.
For any new CPAS version support, just need to add the entries to
the map. This removes the complexity of if-else cases while
fetching the cpas hw information.

CRs-Fixed: 2571273
Change-Id: I7d54b8bc038aa90ecb39f5048e7809ac10c4476f
Signed-off-by: Gaurav Jindal <gjindal@codeeaurora.org>
Signed-off-by: Chandan Kumar Jha <cjha@codeaurora.org>
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2020-02-02 21:24:40 -08:00