Commit Graph

217 Commits

Author SHA1 Message Date
Vishalsingh Hajeri
b2bd543adf msm: camera: isp: Dump page fault info for pending request
If bubble report is set from usersapce we move the active
request back to pending request list while handling error.
We need to iterate through pending request list as well
when dumping page fault info for erroneous request.

Change-Id: I2458313affbae6cb161f077eef7bdd0263c43ae2
Signed-off-by: Vishalsingh Hajeri <vhajeri@codeaurora.org>
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2019-08-08 15:37:57 -07:00
Jigarkumar Zala
05b312bca9 Camera: Add support for LITO target
This change add config support for LITO target.

Change-Id: Ia4a191c862f9886bb35fbd792ae786d027d5cc7e
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-08-06 15:36:31 -07:00
Pavan Kumar Chilamkurthi
485b7d2faa Merge "msm: camera: Update uapi structure for OIS" into camera-kernel.lnx.1.0 2019-08-06 15:24:42 -07:00
Pavan Kumar Chilamkurthi
65f72aac0d Merge "Camera: uapi: Add uapi support for QCFA CSID binning" into camera-kernel.lnx.1.0 2019-08-06 15:24:31 -07:00
Pavan Kumar Chilamkurthi
994f1255bf Merge "camera: uapi: Add uapi support for semi real time device types" into camera-kernel.lnx.1.0 2019-08-06 15:24:21 -07:00
Pavan Kumar Chilamkurthi
618517421c Merge "Camera: uapi: add uapi csiphy4 and csiphy5 support" into camera-kernel.lnx.1.0 2019-08-06 15:24:10 -07:00
Pavan Kumar Chilamkurthi
82b131a732 Merge "Revert "msm: camera: icp: lock before updating clock status"" into camera-kernel.lnx.1.0 2019-08-06 15:16:54 -07:00
Pavan Kumar Chilamkurthi
0728ab4d0e Merge "msm: camera: Dynamic update of scalable clock" into camera-kernel.lnx.1.0 2019-08-06 15:16:21 -07:00
Pavan Kumar Chilamkurthi
5279c05b4e Merge "msm: camera: isp: Move req out of pending list before start" into camera-kernel.lnx.1.0 2019-08-06 15:16:02 -07:00
Pavan Kumar Chilamkurthi
cf696e038c Merge "msm: camera: Fuse base secure camera enablement" into camera-kernel.lnx.1.0 2019-08-06 15:14:39 -07:00
Pavan Kumar Chilamkurthi
80923d1302 Merge "msm: camera: isp: Add support for QCFA CSID binning" into camera-kernel.lnx.1.0 2019-08-06 15:14:21 -07:00
Pavan Kumar Chilamkurthi
0d7133d630 Merge "Camera: sensor: Power off the sensor if no gpios" into camera-kernel.lnx.1.0 2019-08-06 15:14:03 -07:00
Pavan Kumar Chilamkurthi
57bc692472 Merge "msm: camera: crm: Handle link setup based on version" into camera-kernel.lnx.1.0 2019-08-06 15:13:50 -07:00
Pavan Kumar Chilamkurthi
eb6763f590 Merge "msm: camera: crm: Increase the device handles to 128" into camera-kernel.lnx.1.0 2019-08-06 15:13:34 -07:00
Pavan Kumar Chilamkurthi
1e97ea0b88 Merge "msm: camera: Fix usage of invalid array index" into camera-kernel.lnx.1.0 2019-08-06 15:13:19 -07:00
Pavan Kumar Chilamkurthi
298bd7cde5 Merge "msm: camera: isp: Fix rdi only usecase" into camera-kernel.lnx.1.0 2019-08-06 15:13:04 -07:00
Pavan Kumar Chilamkurthi
cd39c3a705 Merge "msm: camera: smmu: Set the segment size for the context banks" into camera-kernel.lnx.1.0 2019-08-06 15:12:44 -07:00
Pavan Kumar Chilamkurthi
40df290598 Merge "msm: camera: cpas: Enable camnoc ubwc irqs for kona" into camera-kernel.lnx.1.0 2019-08-06 15:12:34 -07:00
Pavan Kumar Chilamkurthi
04580c9bd0 Merge "msm: camera: lrme : Fix for lrme_hw null dereference" into camera-kernel.lnx.1.0 2019-08-06 15:12:21 -07:00
Pavan Kumar Chilamkurthi
93a2d068ae Merge "msm: camera: icp: lock before updating clock status" into camera-kernel.lnx.1.0 2019-08-06 15:12:06 -07:00
Pavan Kumar Chilamkurthi
41fdede6bd Merge "msm: camera: isp: Move bw voting functions to common file for vfe" into camera-kernel.lnx.1.0 2019-08-06 15:11:51 -07:00
Pavan Kumar Chilamkurthi
b22ce9bb65 Merge "msm: camera: icp: Add support for semi real time device types" into camera-kernel.lnx.1.0 2019-08-06 15:11:37 -07:00
Jigarkumar Zala
ce61a07996 msm: camera: Update uapi structure for OIS
Userspace is sending slave address as 32bit, and in order to parse
the correct data kernel space needs to match this bit pattern.
This change updates the structure to accommodate it.

Change-Id: Ib136bbd1656dba9da75d3b07c494caeebf03dfcb
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-08-06 12:22:32 -07:00
Tejas Prajapati
d31033b31f Camera: uapi: Add uapi support for QCFA CSID binning
Add uapi support to configure CSID binning for QCFA.

Change-Id: Ic992c11d04319b6e8329963c032501b07002b484
Signed-off-by: Tejas Prajapati <tpraja@codeaurora.org>
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-08-06 12:22:28 -07:00
Karthik Anantha Ram
47f89a6efa camera: uapi: Add uapi support for semi real time device types
Add uapi support for IPE/BPS semi real time device types.

Change-Id: I12c733f51afdd70159f22f23be5967fc852549ca
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-08-06 12:22:24 -07:00
Jigarkumar Zala
21c100461f Camera: uapi: add uapi csiphy4 and csiphy5 support
Add Uapi csiphy4 and csiphy5 support.

Change-Id: Ie5d78a389f0cbc454fa261182a3d04030d13d307
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-08-06 12:22:18 -07:00
Alok Pandey
82ee45360e Revert "msm: camera: icp: lock before updating clock status"
This reverts commit 6094f6654bd6ddc7f6df54b19cb8e6697bf3111c.
The change introduces a lock around a code that can cause sleep.
It results in abnormal operation of camera functionality. Reverting
this change will lead to original problem of stability. That need
to be addressed.

Change-Id: I3899d6992350bc466e89ee1ca1834a8a7fbd0269
Signed-off-by: Alok Pandey <akumarpa@codeaurora.org>
2019-08-06 12:22:13 -07:00
Jigarkumar Zala
306cc41267 msm: camera: Dynamic update of scalable clock
This change updates the scalable clock based on
hw src clock. Also, removed cam_soc_util_get_vote_level()
as it is duplicating the functionality with
cam_soc_util_get_clk_level() api.

Change-Id: I001264d150849770ef664ecc206a66f8a4f54412
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-08-06 12:22:09 -07:00
Venkat Chinta
a6efb05c3f msm: camera: isp: Move req out of pending list before start
This change moves init request out of pending list before
starting hardware. Currently if we receive the first SOF and
RUP IRQs before start_dev routine has completed, we miss
pushing out the init request to free list on the first RUP as
wait list will be empty.

Change-Id: Icd53e0ebe0d12e264172058d836e6ccfcb7df0c2
Signed-off-by: Venkat Chinta <vchinta@codeaurora.org>
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-08-06 12:22:04 -07:00
Trishansh Bhardwaj
45125cf020 msm: camera: Fuse base secure camera enablement
Query secure camera capability from fuse, and enable only
if supported.

Change-Id: I4ff3c5afbf7c924368c95af5517a047149124c3e
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-08-06 12:21:59 -07:00
Jigarkumar Zala
f458d1d231 msm: camera: isp: Add support for QCFA CSID binning
Add support to configure CSID binning for QCFA.

Change-Id: I9e2673d89f521a4b4fddc41ad1217ffe229d8b01
Signed-off-by: Tejas Prajapati <tpraja@codeaurora.org>
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-08-06 12:21:54 -07:00
Jigarkumar Zala
a89607a875 Camera: sensor: Power off the sensor if no gpios
Power off the sensor if no gpios at the time of power on, since
some regulator and clk need to be released.

Change-Id: Ie200459276b5327a1627e8839ec404c3c26f4205
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-08-06 12:21:51 -07:00
Mangalaram ARCHANA
aa0f96d02c msm: camera: crm: Handle link setup based on version
With the increase in the device handles, the corresponding
link info structure is changed. Handle setting up link
based on the right structure version.

Change-Id: I0d21866ba0bc4abfe78941e191688773441ce03f
Signed-off-by: Mangalaram ARCHANA <mangar@codeaurora.org>
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-08-06 12:21:46 -07:00
Jigarkumar Zala
6761503d24 msm: camera: crm: Increase the device handles to 128
Increasing the device handles to 128 to support more
pipelines.

Change-Id: Id0322cba095091e6168d8541d432628d8422a641
Signed-off-by: Mangalaram ARCHANA <mangar@codeaurora.org>
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-08-06 12:21:41 -07:00
Jigarkumar Zala
4767766efb msm: camera: Fix usage of invalid array index
Fix array index validation number of axi ports while
setup/cleanup axi related settings. Also validate the
array index for slot index for CRM and updates operation
accordingly.

Change-Id: Ic42939b7c59a5602b82a19f558030552bf3c0b72
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-08-06 12:21:37 -07:00
Jigarkumar Zala
4a8af1ed19 msm: camera: isp: Fix rdi only usecase
Initialize common_reg data for rdi.
Adds acquire handling for RDI usecase.

Change-Id: I06cc9bf86af834ceeb145e9b49586c97b6f1a461
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-08-06 12:21:33 -07:00
Jigarkumar Zala
87c82dcf6a msm: camera: smmu: Set the segment size for the context banks
Set the right segment size in the driver for dma_map_sg to
allow for partial cache maintanence.

Change-Id: I6c439f23e957eb667bf959c830b120c0390e41b1
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-08-06 12:21:29 -07:00
Jigarkumar Zala
44abb0120d msm: camera: cpas: Enable camnoc ubwc irqs for kona
A notification is needed for camnoc ubwc encoder and decoder
errors in kona which were previously disabled. Update camnoc
irq register offsets and enable camnoc irq for ubwc.

Change-Id: I74b7264c537122a7bda618e8be03c4ac97c23000
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-08-06 12:21:25 -07:00
Jigarkumar Zala
55c3fecc4b msm: camera: lrme : Fix for lrme_hw null dereference
Fixes lrme_hw pointer when lrme_hw becomes null
returns with -ENODEV.

Change-Id: Ic2c15ebad868b056be4ce4ac28196960a1889292
Signed-off-by: Mangalaram ARCHANA <mangar@codeaurora.org>
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-08-06 12:21:20 -07:00
Jigarkumar Zala
692d184a62 msm: camera: icp: lock before updating clock status
Clock status can be updated in two ways, either through
timer or through the recovery. In case the clock is not
available during the recovery then it would try to access
registers which are unclocked. To prevent this before
updating the clock status spinlock should be acquired.

Change-Id: I16aea5e7dafacfe6b520699af195194d5d171c7c
Signed-off-by: Tejas Prajapati <tpraja@codeaurora.org>
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-08-06 12:21:15 -07:00
Jigarkumar Zala
d707886ae1 msm: camera: isp: Move bw voting functions to common file for vfe
Currently, vfe top has different files for different targets. Some of
the APIs are unchanged between these files. In order to avoid duplication
of code and make sure no change is missed between different versions of
vfe top, a common file is added to vfe top for unchanged APIs. With the
common top, number of input resources are moved to architecture specific
header files to ensure special conditions need not be created for a
particular architecture in common code. Move bw voting related APIs to
this common file.

Change-Id: Ibcb9519a206c25d42c9e7f0336f8d588a8240717
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-08-06 12:21:10 -07:00
Jigarkumar Zala
b630768467 msm: camera: icp: Add support for semi real time device types
Add support for IPE/BPS semi real time device types.

Change-Id: I1d9974eb796ce1723205072651d53ecb84023e88
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
Signed-off-by: Vishalsingh Hajeri <vhajeri@codeaurora.org>
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-07-30 10:20:52 -07:00
Jigarkumar Zala
13bec8b88e Revert "msm: camera: ife: Stop tasklet after deinit"
This reverts commit ff736fcb813649b3998fca3d732145f341235cf5.
The above change was committed to prevent tasklet deinit before
ISRs have completed execution due to erratic delays in tasklet
scheduling on early builds which was not stable. As builds have
stabilized now, we need to revert to normal driver behavior for
stop sequence.

Change-Id: I57127d3fe6fbbd5579241c1cfc978362ba302aef
Signed-off-by: Venkat Chinta <vchinta@codeaurora.org>
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-07-29 12:32:04 -07:00
Jigarkumar Zala
93e8362a07 msm: camera: cpas: Enable camnoc interrupts
Enable camnoc interrupts to get notifications
for UBWC encoder and decoder errors.

Change-Id: Ie7d89dcaf4c81e9ce5af9f28e9a5e0a9cf3eeaa8
Signed-off-by: Suresh Vankadara <svankada@codeaurora.org>
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-07-29 12:31:53 -07:00
Depeng Shao
2f6c89b46f msm: camera: csid: add csiphy4 and csiphy5 support
Add csiphy4 and csiphy5 support.

Change-Id: I8523523556671ed6ffd7f880af2d18043c30d4eb
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
2019-07-09 15:40:38 -07:00
Mukund Madhusudan Atre
4f13d6fe1f msm: camera: cpas: Update SafeLut values in CAMNOC QoS settings for Kona
Update SafeLut values for ife paths in CAMNOC QoS settings according to
recommended settings in CAMNOC HPG.

Change-Id: I12fa796757f4fe000e47ab2074c7ee88165864ab
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2019-07-09 10:34:38 -07:00
Jigarkumar Zala
f1135e91b9 msm: camara: sync: Add callback registration logic for synx
Synx driver is dependent on camera driver for registering callback
functions of sync driver. This change invert the logic, and camera
driver will register the callback functions for synx driver at the
time of sync driver probe.

Change-Id: I2dbee15ba4c7a9dde336a4bb1f2a4dddcd90348b
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-07-09 10:34:33 -07:00
Alok Pandey
a0129f5975 msm: camera: icp: setting QoS for a5 firmware
It sets the bus access priority for A5 core.

Change-Id: Ic110bc10d14ea512f79dfff361e61db4e9db6fe7
Signed-off-by: Alok Pandey <akumarpa@codeaurora.org>
2019-07-09 10:34:29 -07:00
Vishalsingh Hajeri
c952930533 msm: camera: isp: Add CSID binning
Add support to configure CSID binning

Change-Id: I09b76b287c243149c89cba958a786f7476c8addb
Signed-off-by: Vishalsingh Hajeri <vhajeri@codeaurora.org>
2019-07-09 10:34:25 -07:00
Jigarkumar Zala
326d40f7f1 msm: camera: eeprom: Increase memory map count
For write operation while read memory memptr should not need to increase as
it leads to crash. This change removes that increase opertion. Also,
increasing map count to support more data reading for eeprom.

Change-Id: Ie71deb225c2513e7c18229d174a9a0e129fdd1f7
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-07-09 10:34:20 -07:00