Commit graph

605 Commits

Autor SHA1 Nachricht Datum
Jigarkumar Zala
c8ac83dc3e msm: camera: cci: Correct the condition check
Submodules per master uninitialize check needs to be set to false
when all submodules are released for that master. Correct the
refcount check for the appropriate operation.

CRs-Fixed: 2686487
Change-Id: Iaea94e4d1ad83bef99d40cec4e96de3993783ec1
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2020-06-29 11:10:02 -07:00
Camera Software Integration
b4f16aace6 Merge "msm: camera: isp: Reset offline context flag" into camera-kernel.lnx.4.0 2020-06-24 20:06:58 -07:00
Camera Software Integration
fd253633e1 Merge "msm: camera: common: Update holi camera workq wrapper" into camera-kernel.lnx.4.0 2020-06-24 18:03:53 -07:00
zhuo
124ac14bf9 msm: camera: isp: Reset offline context flag
This change resets the offline context flag,
otherwise the packet may be applied to HW immediately
if this context is offline context last time.

CRs-Fixed: 2696977
Change-Id: I2fc836f7ba2889ec62273c3b12cc4050736f587b
Signed-off-by: zhuo <zhuo@codeaurora.org>
2020-06-23 12:04:49 -07:00
Suresh Vankadara
c92348064f msm: camera: common: Update holi camera workq wrapper
Update OPE and TFE drivers to use new camera workq
wrapper functions.

CRs-Fixed: 2716498
Change-Id: I05ecefb191a544c2953ac7e71a7c9a95d1f1fb10
Signed-off-by: Suresh Vankadara <svankada@codeaurora.org>
2020-06-23 10:51:59 +05:30
Camera Software Integration
8e44ef7540 Merge "msm: camera: req_mgr: Clean up debugfs entry" into camera-kernel.lnx.4.0 2020-06-22 13:30:43 -07:00
Camera Software Integration
ac03dc0e7c Merge "msm: camera: cdm: Add CDM cmd_type WAIT in dump util" into camera-kernel.lnx.4.0 2020-06-22 13:30:32 -07:00
Camera Software Integration
b1dddc76ef Merge "msm: camera: isp: Bring PPI driver in camera techpack" into camera-kernel.lnx.4.0 2020-06-22 13:30:14 -07:00
Camera Software Integration
118bf8e59f Merge "msm: camera: utils: Add logic to maintain unique buffer handle for patch" into camera-kernel.lnx.4.0 2020-06-19 17:29:40 -07:00
Camera Software Integration
9ff96e5949 Merge "msm: camera: cci: Add check for the cci master initialization" into camera-kernel.lnx.4.0 2020-06-19 17:29:26 -07:00
Camera Software Integration
d16dedda9e Merge "msm: camera: csid: Add CSID Number in CSID ISR Logs" into camera-kernel.lnx.4.0 2020-06-18 17:21:49 -07:00
Camera Software Integration
f6347f6e3a Merge "msm: camera: sensor: Dump phy registers on error" into camera-kernel.lnx.4.0 2020-06-18 17:21:06 -07:00
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
Trishansh Bhardwaj
e625f33cff msm: camera: isp: Bring PPI driver in camera techpack
This change bring PPI driver from msm-4.14 to camera-kernel.lnx.4.0.
msm: camera: isp: Added PPI driver functionality
msm: camera: ppi: Change PPI reset sequence
msm: camera: isp: Do not enable the ppi hw twice.

CRs-Fixed: 2682747
Change-Id: I7cde3aeed1dbcef95f25441c2482f5bc8c1534de
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
2020-06-19 00:37:59 +05:30
Jigarkumar Zala
5a5fb4e8f0 msm: camera: req_mgr: Clean up debugfs entry
At the time of unbind, all debugfs entry needs to be properly
clean up. This change adds debugfs directory removal alongwith
entries under debugfs root entry.

CRs-Fixed: 2675526
Change-Id: I3eba11db032dbafe5f7d444e8c5a823639ba0e74
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2020-06-17 13:54:11 -07:00
Jigarkumar Zala
becd9f4f11 msm: camera: cci: Add check for the cci master initialization
Multiple Sensor submodules can stream on same CCI master. Currently,
there is not any knowledge, whether requested master is already
initialized by other submodules. This can result in operation slave
in error, while other submodule tries to init the same master.
This change adds the boolean variable to notify cci hardware, whether
master is already initialized, and do the operations accordingly.

CRs-Fixed: 2686487
Change-Id: I8b5d01fc9fd06176e9fbd9a69d56424d4ef79a73
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2020-06-17 10:33:06 -07:00
Jigarkumar Zala
968d954b75 msm: camera: utils: Add logic to maintain unique buffer handle for patch
Currently smmu_get_iova is called for every patch, regardless of the same
source handle. This change avoids this by checking if io virtual address
is already being quried with earlier patch. This can reduce the call and
mutex operation from smmu prospective.

CRs-Fixed: 2711810
Change-Id: I681589cd1328389e0828a3318edad1a2a91d8547
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2020-06-16 13:20:13 -07:00
Jigar Agrawal
1268c5ae40 msm: camera: csid: Add CSID Number in CSID ISR Logs
Add CSID Number for RDI and UDI paths in CSID ISR
for better debugging purpose.

CRs-Fixed: 2709537
Change-Id: Ie8e70addaa282a07feb38597dba9a3abdec77707
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2020-06-15 11:17:27 -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
Vishal Verma
1435a8a68b msm: camera: sensor: Dump phy registers on error
Dump csiphy registers on following fatal errors:
1. lane overflow error
2. unbounded frame error
3. SOT ans EOT reception error
4. stream underflow error
These errors irqs are set at csid end, Currently there is no
interface to send message from one subdevice to other if the subdev is
not a real time device. This change adds an interface to notify the
no real time subdev.

CRs-Fixed: 2696744
Change-Id: I522167d1639ac298bc739a8a5a380a01356f0776
Signed-off-by: Vishal Verma <vishverm@codeaurora.org>
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2020-06-12 12:24:12 -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
Vishalsingh Hajeri
7d3f7b71b6 msm: camera: cdm: Add CDM cmd_type WAIT in dump util
CDM comp_wait is the new cmd_type used by IFE Master
to wait for trigger from slave. Add this type to
the dump command buffer routine.

CRs-Fixed: 2679783
Change-Id: I142cbd849141725cc05f3276c20ea1c0d59f7c3c
Signed-off-by: Vishalsingh Hajeri <vhajeri@codeaurora.org>
2020-06-11 18:16:17 -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