Graphe des révisions

586 Révisions

Auteur SHA1 Message Date
Camera Software Integration
6a1d514519 Merge "msm: camera: cdm: Add priority group support" into camera-kernel.lnx.4.0 2020-06-18 17:20:51 -07:00
Camera Software Integration
792f40e576 Merge "msm: camera: isp: Correct the bitmask for packet header" into camera-kernel.lnx.4.0 2020-06-18 17:20:22 -07:00
Camera Software Integration
3f28f49226 Merge "msm: camera: isp: validate in_port before accessing" into camera-kernel.lnx.4.0 2020-06-18 17:20:07 -07:00
Camera Software Integration
811d02c493 Merge "msm: camera: isp: Enable format measurement in CSID" into camera-kernel.lnx.4.0 2020-06-18 17:19:48 -07:00
Camera Software Integration
19763e6bff Merge "msm: camera: cpas: Add support for holi camnoc" into camera-kernel.lnx.4.0 2020-06-18 17:19:29 -07:00
Camera Software Integration
afe7750406 Merge "msm: camera: ife: Add support for csitpg 1.3" into camera-kernel.lnx.4.0 2020-06-18 17:19:19 -07:00
Camera Software Integration
5d4113257c Merge "msm: camera: smmu: Enhance debug capability for camera memmgr" into camera-kernel.lnx.4.0 2020-06-18 17:19:03 -07:00
Camera Software Integration
ed2f9c224c Merge "msm: camera: mem_mgr: Cache invalidation optimization" into camera-kernel.lnx.4.0 2020-06-18 17:17:42 -07:00
Camera Software Integration
235a9117e6 Merge "msm: camera: reqmgr: Work queue names added" into camera-kernel.lnx.4.0 2020-06-18 17:17:27 -07:00
Camera Software Integration
e5cd58fbb6 Merge "msm: camera: utils: add spacing between register values" into camera-kernel.lnx.4.0 2020-06-18 17:17:09 -07:00
Camera Software Integration
f860d9fb11 Merge "msm: camera: reqmgr: Modify SOF watchlog timer for INIT exposure" into camera-kernel.lnx.4.0 2020-06-12 13:26:24 -07:00
Camera Software Integration
74594a12c7 Merge "msm: camera: reqmgr: Add provision in UAPI for INIT exp timeout" into camera-kernel.lnx.4.0 2020-06-12 13:26:11 -07:00
Camera Software Integration
702f4ef025 Merge "msm: camera: isp: Disable clk gating in IFE top" into camera-kernel.lnx.4.0 2020-06-12 13:26:02 -07:00
Karthik Anantha Ram
0181a16f13 msm: camera: isp: Disable clk gating in IFE top
Disable auto clk gating for all core clocks, ahb & NOC.

CRs-Fixed: 2705869
Change-Id: I74ad58e1c8308edcd19ac6414a25a0f7fafce3cd
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2020-06-11 18:27:52 -07:00
Chandan Kumar Jha
24e6de881c msm: camera: reqmgr: Modify SOF watchlog timer for INIT exposure
In case of long exposure shots, watchdog timer needs
to be modified for init exposure seeting also to avoid trigger.

CRs-Fixed: 2706105
Change-Id: Ife8b3ec32103aff71d281e11b68e0d48f4ef79e1
Signed-off-by: Chandan Kumar Jha <cjha@codeaurora.org>
2020-06-11 16:54:20 -07:00
Karthik Anantha Ram
6addc5d8b5 msm: camera: isp: Unmask CSI RX IRQs
In stop immediate currently only the CSID path is reset, the
RX is still capable of listening to IRQs. Unmask this in stop
and enable them again at start.

CRs-Fixed: 2698391
Change-Id: Iacdc9d241192e976b61728314a83d445534234c6
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
Signed-off-by: Vishalsingh Hajeri <vhajeri@codeaurora.org>
2020-06-11 16:53:45 -07:00
Karthik Anantha Ram
9f37871064 msm: camera: reqmgr: Add provision in UAPI for INIT exp timeout
Add provision in CRM link control to accept any long exposure
timeout value so that CRM can modify it's internal WD timer
during link activate.

CRs-Fixed: 2706105
Change-Id: Icedeeef32dcc5c881277f28dc2c0fbb40fa1e7f1
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2020-06-10 16:13:19 -07:00
Tejas Prajapati
bb88411486 msm: camera: isp: validate in_port before accessing
in_port information we are getting from the UMD and accessing
it directly without validation which might lead to
corruption and device failure.

CRs-Fixed: 2629969
Change-Id: I0a1c57db9b94f9657427872ae6797635c6aed668
Signed-off-by: Tejas Prajapati <tpraja@codeaurora.org>
2020-06-10 12:45:02 -07:00
Camera Software Integration
1b7fd53958 Merge "msm: camera: custom: Add support for SW sync & snapshot" into camera-kernel.lnx.4.0 2020-06-10 12:24:54 -07:00
Camera Software Integration
c53970bcb2 Merge "msm: camera: config: Enable camera as dlkm for lahaina" into camera-kernel.lnx.4.0 2020-06-10 12:24:46 -07:00
Camera Software Integration
e421fea518 Merge "msm: camera: common: Fixes the exit module code flow" into camera-kernel.lnx.4.0 2020-06-10 12:24:30 -07:00
Camera Software Integration
eb02dbe318 Merge "msm: camera: custom: Add dt matching string for spectra580 csid" into camera-kernel.lnx.4.0 2020-06-10 12:24:21 -07:00
Camera Software Integration
842380c465 Merge "msm: camera: cpas: Add support for custom QoS selection" into camera-kernel.lnx.4.0 2020-06-10 12:24:12 -07:00
Camera Software Integration
c651d58e4f Merge "msm: camera: ife: Add support to provide IFE count in Query caps" into camera-kernel.lnx.4.0 2020-06-09 16:04:46 -07:00
Pavan Kumar Chilamkurthi
54f5035aa7 msm: camera: custom: Add dt matching string for spectra580 csid
Add dt matching string to probe spectra580 custom csid device.

CRs-Fixed: 2687917
Change-Id: Ibf220dd88dfad76742b71e7550f6b50ff6b2f57e
Signed-off-by: Pavan Kumar Chilamkurthi <pchilamk@codeaurora.org>
2020-06-09 14:16:01 -07:00
Pavan Kumar Chilamkurthi
5cb16c01ed msm: camera: cpas: Add support for custom QoS selection
Add cpas interface to allow clients or usecase to select
different QoS settings based on requirement. Selection
API must be called before camera hw powers up.

CRs-Fixed: 2687917
Change-Id: Ie524fcd6131d7c42288d0d734a7cdf6b9fcb92b7
Signed-off-by: Pavan Kumar Chilamkurthi <pchilamk@codeaurora.org>
2020-06-09 14:13:57 -07:00
Jigarkumar Zala
279dfebf8c msm: camera: common: Fixes the exit module code flow
Fixes exit call flow as a part of rmmod.

CRs-Fixed: 2675526
Change-Id: I47111a737cb06d9bb3d0a417a471c5c9fb545999
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2020-06-09 12:08:22 -07:00
Jigarkumar Zala
ebb82d948c msm: camera: config: Enable camera as dlkm for lahaina
Enable camera as dlkm for all flavor of compilation.

CRs-Fixed: 2701988
Change-Id: Ic1bdd64cd612636613d3b1419c7bebc136023948
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2020-06-09 00:26:34 -07:00
Suresh Vankadara
0929575916 msm: camera: cpas: Add support for holi camnoc
Holi has different version of camnoc and CPAS version
which requires separate register space and camnoc
interface changes and CPAS version change.
This change adds the same.

CRs-Fixed: 2701462
Change-Id: I9fbfab592278ba7804809872b4b4b235895477f2
Signed-off-by: Suresh Vankadara <svankada@codeaurora.org>
2020-06-09 12:12:39 +05:30
Ayush Kumar
5619922854 msm: camera: isp: Enable format measurement in CSID
Enabling format measure helps to find mismatch between
the expected sensor width and height with actual sensor width
and height. In case of metadata, width is more than 16 bit, hence
skip format measure check for it.
In case of mismatch CSID will give CSID_PATH_ERROR_PIX_COUNT
and CSID_PATH_ERROR_LINE_COUNT.

CRs-Fixed: 2634468
Change-Id: Ic57a18ee5217982d36116060371bdc99405ea759
Signed-off-by: Ayush Kumar <ayushkr@codeaurora.org>
Signed-off-by: Vishalsingh Hajeri <vhajeri@codeaurora.org>
2020-06-08 19:48:45 -07:00
Jigar Agrawal
6de4fa2ed8 msm: camera: ife: Add support to provide IFE count in Query caps
IFE Query cap currently gives only IFE Full Information. Update the
code to return IFE Full, IFE lite, full IFE-CSID and IFE-CSID lite
information in return of the IFE Query cap command.

CRs-Fixed: 2647995
Change-Id: I84cf5b766ce191aacad4a1de478c6eebafe917b3
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2020-06-08 14:15:40 -07:00
Vishalsingh Hajeri
346084f00a msm: camera: ife: Add support for csitpg 1.3
Add version_3 files to support next revision
of CPHY TPG. Extended capability for Multi-VC
mode of operation. Add support to handle IRQ.

CRs-Fixed: 2663712
Change-Id: I91864af6e9415e74104a6bce266dd78d5c021dc7
Signed-off-by: Vishalsingh Hajeri <vhajeri@codeaurora.org>
2020-06-08 13:52:35 -07:00
Gaurav Jindal
0816d56047 msm: camera: isp: Correct the bitmask for packet header
Bitmask for printing the CSI short packet and CPHY packet is
configured wrong.
Change the bitmask to print the correct values.

CRs-Fixed: 2672724
Change-Id: I716ea7f6e1dacc9669498d01550009a290374237
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2020-06-08 12:08:50 -07:00
Karthik Anantha Ram
ec23ff584a msm: camera: smmu: Enhance debug capability for camera memmgr
Improve debugging infrastructure and logging for memory related
issues. There are scenarios where the fd returned after ion_alloc
exists in camera smmu table as being mapped [stale entry].
On such scenarios, this change will return a specific error code to
userspace. The change also propagates the mapped size back to
user space.

CRs-Fixed: 2663114
Change-Id: Ia797b65d1e8ded58dec5b01df07d73262c4cfa95
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2020-06-08 10:42:33 -07:00
Karthik Jayakumar
083b98cdb3 msm: camera: ife: check for constraint violation
Add support for debugging constraint violations within
the VFE Bus.

CRs-Fixed: 2545323
Change-Id: Ib8805b6b61284ac869218cab4d6689ded23bf98a
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
2020-06-08 10:28:17 -07:00
Karthik Jayakumar
a68684d77c msm: camera: mem_mgr: Cache invalidation optimization
During unmap these internal buffers will be freed immediately
afterwards, therefore there is no need to do cache operation.

CRs-Fixed: 2627074
Change-Id: Ica4ebb93eb212604268c3450a92d075197783537
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
2020-06-08 09:41:21 -07:00
Trishansh Bhardwaj
685eb68649 msm: camera: cdm: Add priority group support
This change adds priority group support for CDM 2.1.

CRs-Fixed: 2682747
Change-Id: I4e97e12d916a72d41f2cf8e92cf71d15ede91da5
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
2020-06-08 19:40:35 +05:30
Camera Software Integration
f65f27de96 Merge "msm: camera: reqmgr: Invoke custom device at every frame" into camera-kernel.lnx.4.0 2020-06-05 19:10:14 -07:00
Camera Software Integration
57370f9f42 Merge "msm: camera: isp: Wait for cdm submit incase of custom HW" into camera-kernel.lnx.4.0 2020-06-05 19:10:02 -07:00
Camera Software Integration
d923b858c9 Merge "msm: camera: cdm: Add support for CDM 2.1" into camera-kernel.lnx.4.0 2020-06-05 19:09:49 -07:00
Camera Software Integration
9d3794440c Merge "msm: camera: isp: Check for epoch before applying" into camera-kernel.lnx.4.0 2020-06-05 19:09:40 -07:00
Wyes Karny
7eb3653915 msm: camera: reqmgr: Work queue names added
Added wrapper functions for each workq to enable workq names
in log.

CRs-Fixed: 2684378
Change-Id: If5b3671fbf20777cc891cba4b27cad6ed3a0d146
Signed-off-by: Wyes Karny <wkarny@codeaurora.org>
2020-06-05 15:33:31 -07:00
Camera Software Integration
f480c039c7 Merge "msm: camera: common: Merge camera-kernel.3.1 changes in camera-kernel.4.0" into camera-kernel.lnx.4.0 2020-06-04 15:22:48 -07:00
Trishansh Bhardwaj
159ea8087f msm: camera: cdm: Add support for CDM 2.1
This change adds CDM 2.1 support.

CRs-Fixed: 2682747
Change-Id: I9e0782a5e7d8e22706048469669772c21d883d89
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
2020-06-04 22:51:21 +05:30
Karthik Anantha Ram
02af3487fa msm: camera: custom: Add support for SW sync & snapshot
Add support to handle SW sync & ZSLSnapshot. Add substate machine
and mechanism to handle the lifecycle of requests based on irqs
accordingly.

CRs-Fixed: 2524308
Change-Id: Ie5ba97d4ae1b38f4b44c2d3935d2882df59fcac6
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2020-06-04 10:17:55 -07:00
Tejas Prajapati
24bb90e6ea msm: camera: utils: add spacing between register values
when using the cam_io_dump function to dump the register
values we are getting 4 register values without spacing
which makes is difficult to read, so adding space
between two specific register values.

CRs-Fixed: 2675959
Change-Id: I7e5db59398e406c30aa9729eb38331aa85736175
Signed-off-by: Tejas Prajapati <tpraja@codeaurora.org>
2020-06-04 03:20:32 -07:00
Karthik Anantha Ram
f81a46003b msm: camera: reqmgr: Invoke custom device at every frame
If there is a valid request CRM will apply that request to the
custom device, in scenerios during which there is no setting to
be applied to a custom device at a given epoch CRM needs to invoke
the custom device to program default settings for the next frame.

CRs-Fixed: 2524308
Change-Id: I4701c602ab68b9f64266f03a9b200d15a808165e
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2020-06-03 16:44:50 -07:00
Camera Software Integration
c4d16b525c Merge "msm: camera: cci: Correct logging for better debug" into camera-kernel.lnx.4.0 2020-06-03 12:39:24 -07:00
Trishansh Bhardwaj
172d34b6f7 msm: camera: common: Merge camera-kernel.3.1 changes in camera-kernel.4.0
msm: camera: tfe: Fix variable initialization issues
msm: camera: isp: Dual tfe event check with proper hw idx
msm: camera: smmu: Add support for non-contiguous mermory region
msm: camera: smmu: Use iommu best match algo for camera
msm: camera: ope: Optimize allocation of IO configuration
msm: camera: ope: Fix for KW Issues
msm: camera: ope: Add support for stripe level height configuration
msm: camera: tfe: Enable the delay line clc
msm: camera: ope: Fix false alarm for OPE HW timeout
msm: camera: tfe: Support register dump per request
msm: camera: ope: Increase max number of stripes
msm: camera: ope: Change packer and unpacker format in case NV12
msm: camera: tfe: Add packet code get command for tfe
msm: camera: ope: Trigger recovery in case of violation on write bus
msm: camera: ope: Protect ope hw reset with mutex
msm: camera: ope: Add a check for valid request in cdm callback
msm: camera: ope: Remove the BW & clock vote in release context
msm: camera: ope: Reduce OPE BUS memory
msm: camera: ope: Fix return value for ope acquire
msm: camera: ope: Fix false alarm for OPE request timeout
msm: camera: ope: Avoid deadlock during recovery after HW hang
msm: camera: tfe: tfe debug enhancement
msm: camera: cdm: Fix irq_data value in case of inline irq
msm: camera: flash: Switch off flash on provider crash
msm: camera: ope: Initialize ope hw mutex structure
msm: camera: cdm: Flush all available FIFOs during reset
msm: camera: cpas: Add mandatory bw option for axi ports clocks
msm: camera: ope: Use vzalloc to allocate the write bus ctx structure
msm: camera: ope: Fix handling of init hw failure
msm: camera: tfe: Enable per frame register dump for rdi only context
msm: camera: cdm: Protect cdm core status bits with mutex
msm: camera: cdm: correct the error check in cmd submit irq
msm: camera: ope: Fix unclock access during HW reset
msm: camera: ope: Program frame level settings after idle event
msm: camera: ope: Delay releasing of resources for last context
msm: camera: isp: Increase default SOF freeze timeout
msm: camera: smmu: Add map and unmap monitor
msm: camera: isp: Add trace events across ISP
msm: camera: smmu: Profile time taken for map, unmap
msm: camera: ope: Start context timer on receiving new request
msm: camera: tfe: Reduce stack size during set axi bw
msm: camera: cdm: Check for HW state before dumping registers
msm: camera: ope: Reduce stack footprint during acquire
msm: camera: tfe: Disable clock if tfe2 is not supported
msm: camera: cdm: Avoid cdm pause incase of BL submit
msm: camera: tfe: Optimize CSID IRQ logging
msm: camera: ope: Move request id validity check outside of lock
msm: camera: tfe: Correct the tfe hw manager dump logic
msm: camera: ope: Synchronize flush and submit BLs
msm: camera: cdm: Protect cdm reset status
msm: camera: cdm: Handle cdm deinit sequence properly
msm: camera: tfe: Reduce reset timeout to 100ms
msm: camera: ope: Fix hang detection
msm: camera: ope: Make non-fatal logs as debug and info logs
msm: camera: tfe: set overflow pending bit to zero after HW reset
msm: camera: ope: Do not disable CDM during error handling
msm: camera: ope: Add support for OPE Replay
msm: camera: ope: Stop OPE in case of init failure
msm: camera: ope: Synchronize process cmd and flush request
msm: camera: cdm: Fix CDM IRQ handling
msm: camera: tfe: LDAR dump for TFE
msm: camera: ope: Fix the length check for debug buffer
msm: camera: cdm: Fix CDM reset logic
msm: camera: ope: Dump debug registers in case of HW hang
msm: camera: tfe: Support the RDI bus port for line based mode
msm: camera: cdm: Handle out of order reset done events
msm: camera: ope: Consider other contexts during timeout
msm: camera: ope: Put GenIRQ in last stripe BL
msm: camera: tfe: Process the rdi interrupts for rdi only resource
msm: camera: jpeg: Check the HW state before accessing register
msm: camera: csiphy: Update csiphy power-up sequence for lito v2
msm: camera: cdm: Secure freeing of request lists using locks
msm: camera: cpas: Add support for Scuba camnoc
msm: camera: csiphy: Clear secure phy flags on release
msm: camera: tfe: validate the tfe bw num paths
msm: camera: ope: Reorder the reset order in ope acquire
msm: camera: ope: Dump debug registers in case of reset failure
msm: camera: ope: Add logic to detect hang in CDM
msm: camera: isp: Increase max count of cfg to support more init packets
msm: camera: core: Fix cpas axi clk rate overflow.

CRs-Fixed: 2668666
Change-Id: I882ca4bd117bebc7d1c62bc82299d69d7b5c9388
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
2020-06-03 11:48:47 +05:30
Camera Software Integration
76586bbff2 Merge "msm: camera: isp: Fix num_entries value assigned to variable" into camera-kernel.lnx.4.0 2020-06-02 17:00:40 -07:00