Commit Graph

826 Commits

Author SHA1 Message Date
Ravikishore Pampana
02f65e4927 msm: camera: tfe: Add support last consumed address for tfe
Tfe hardware support the last consumed buf address.
Request port buf done verified with last consumed buffer
Address. Buf done irq delays can be handled through
last consumed address verification.

CRs-Fixed: 2784348
Change-Id: I4d629da44cf6f1b7755c7785eac11f72384c78c7
Signed-off-by: Ravikishore Pampana <rpampana@codeaurora.org>
2020-09-24 12:51:01 +05:30
Ravikishore Pampana
27db3b226b msm: camera: tfe: Add pid and mid support for tfe
Process tfe page faults based on the pid and mid values.
When page fault happen kernel api gives the pid and mid value,
From pid and mid values TFE hw and tfe port that caused the
Page fault can be find. Added support for this in the tfe driver.
Based on the Pid and Mid values, get the HW id and port ids,
go through all context which has this hw id and port id and log
the data. Once context id is identified, log the acquire data and
last consumed client address details. Dump the hw register data
in the given buffer. Send the smmu page fault event through
v4l2 queue to user.

CRs-Fixed: 2775154
Change-Id: Iafaa7d1283ea0b836c223ed1fe6c419b0ac50c15
Signed-off-by: Ravikishore Pampana <rpampana@codeaurora.org>
2020-09-23 14:34:44 +05:30
Camera Software Integration
a2fdf71aeb Merge "msm: camera: sync: Fix imports for types" into camera-kernel.lnx.4.0 2020-09-22 14:32:28 -07:00
Camera Software Integration
0219f6206e Merge "msm: camera: isp: Max requests per context reduction in isp driver" into camera-kernel.lnx.4.0 2020-09-22 14:32:20 -07:00
Camera Software Integration
73452f0906 Merge "msm: camera: tfe: Change csid stop sequence during flush" into camera-kernel.lnx.4.0 2020-09-22 14:32:09 -07:00
Haritha Chintalapati
09b1fe7b55 Merge changes I2680a98d,I9af73cc2 into camera-kernel.lnx.4.0
* changes:
  msm: camera: icp: Rename debugfs entries to be proc hw agnostic
  msm: camera: icp: Generalize proc references within hw manager
2020-09-21 17:36:15 -07:00
Shravya Samala
8b38e86abd msm: camera: isp: Max requests per context reduction in isp driver
Reduced maximum no of requests per context from 20 to 8
in isp driver.

CRs-Fixed: 2720238
Change-Id: If557b190fe94af72cc6fb28f36c3e1f6189218a5
Signed-off-by: Shravya Samala <shravyas@codeaurora.org>
2020-09-21 07:12:45 -07:00
Karthik Jayakumar
8f95314e74 msm: camera: sync: Fix imports for types
Fix the order of imports for to resolve cam_sync
typedef for kernel CFI.

CRs-Fixed: 2772200
Change-Id: I4e5e642e6b45412904585aaa68c0ef77fedeee2d
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
2020-09-18 16:11:21 -07:00
Camera Software Integration
64f7c57dce Merge "msm: camera: common: Handle epoch if bubble recovery is disabled" into camera-kernel.lnx.4.0 2020-09-18 13:51:27 -07:00
Camera Software Integration
70e9d7d0b4 Merge "msm: camera: reqmgr: Add protection for workqueue congestion" into camera-kernel.lnx.4.0 2020-09-18 13:51:21 -07:00
Camera Software Integration
6c1c6d8a00 Merge "msm: camera: csiphy: Remove unused flags" into camera-kernel.lnx.4.0 2020-09-18 13:51:15 -07:00
Camera Software Integration
733005152b Merge "msm: camera: icp: Support processor-specific HFI register offsets" into camera-kernel.lnx.4.0 2020-09-17 14:31:51 -07:00
Camera Software Integration
6b144e04c6 Merge "msm: camera: cci: Enable compilation for cci dump code" into camera-kernel.lnx.4.0 2020-09-17 14:31:40 -07:00
Jigar Agrawal
79b1170176 msm: camera: csiphy: Remove unused flags
Remove following unused CCI and CPHY flags.

CRs-Fixed: 2709537
Change-Id: I7a936733da75c71877ae52cfae9ddd358775c305
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2020-09-16 18:51:47 -07:00
Haritha Chintalapati
c0064beebc Merge "msm: camera: ope: remove the check for dev_type" into camera-kernel.lnx.4.0 2020-09-16 15:23:52 -07:00
Ayush Kumar
64910dc3d6 msm: camera: tfe: Change csid stop sequence during flush
This change takes care of a race which we see when we halt master
csid immediately and slave csid halt to follow. In some scenarios
after master csid halt, slave gives violation errors.
With this change we are first changing the mode of slave to master
then issue halt commands to both master and slave.

CRs-Fixed: 2773668
Change-Id: Iab7baa41a69b2e4e0a658c7abac29d2dcb80c289
Signed-off-by: Ayush Kumar <ayushkr@codeaurora.org>
2020-09-16 11:40:25 +05:30
Depeng Shao
8e99e13a5a msm: camera: reqmgr: Add protection for workqueue congestion
When workqueue is congested, CRM may apply same
request to device which will trigger recovery
due to apply fails. This change prevent CRM
triggering recovery if the time interval of
continuous applying req less than 5ms.

CRs-Fixed: 2775372
Change-Id: I45c2ed76334b1bbf4547bbf21f90cf0a6c169323
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
2020-09-16 10:06:16 +08:00
Fernando Pacheco
f1d47bfd71 msm: camera: icp: Rename debugfs entries to be proc hw agnostic
Drop references to A5 within the debugfs entries so that they
may be reused with other processors.

CRs-Fixed: 2722486
Change-Id: I2680a98dd3d38906e616712da3d6e2835ebb9a85
Signed-off-by: Fernando Pacheco <fpacheco@codeaurora.org>
2020-09-15 16:36:30 -07:00
Fernando Pacheco
1bd8f23dd5 msm: camera: icp: Generalize proc references within hw manager
The A5 references sprinkled throughout the hw manager will no
longer make sesne within the context of two possible processors.
We will instead prefer the more generic "icp" term to reference
the processor in use e.g. icp_dev instead of a5_dev.

Note that some references to A5 remain and will be cleaned up
when LX7 is introduced.

CRs-Fixed: 2722486
Change-Id: I9af73cc2af27a2aed2f4d7baaead89a20442e9ed
Signed-off-by: Fernando Pacheco <fpacheco@codeaurora.org>
2020-09-15 16:36:30 -07:00
Fernando Pacheco
528d44a312 msm: camera: icp: Support processor-specific HFI register offsets
The HFI interface registers will have a different base address
on the LX7 processor. We can utilize the newly added HFI ops to
abstract the calculation of the address by kicking that info out
to the device interface. The HFI register definitions have been
tweaked to support offsets based on the calculated addresses.

CRs-Fixed: 2722486
Change-Id: I93b9b2827ec0820eaac6ee2e6a611363b96a3223
Signed-off-by: Fernando Pacheco <fpacheco@codeaurora.org>
2020-09-15 15:44:19 -07:00
Karthik Anantha Ram
d9a20488d8 msm: camera: common: Handle epoch if bubble recovery is disabled
If bubble recovery is disabled, IFE driver should continue
to notify that epoch to CRM as opposed to dropping that frame
in IFE. In case of sHDR if bubble recovery is disabled and IFE
does not notify the epoch at which bubble was detected it will lead
to a trigger count mismatch in CRM.

CRs-Fixed: 2768309
Change-Id: I311ce80857a905496c633708a5f4ee2391679037
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2020-09-15 13:43:04 -07:00
shiwgupt
c5f8e70b0f msm: camera: cci: Enable compilation for cci dump code
CCI register dump is only enable when dump flag is defined. Remove
this flag and add control via debugfs entry. This change helps
debugfs entry to control cci device individually on the fly for
debugging rather than to rebuild.

CRs-Fixed: 2692379
Change-Id: Ic13dc903e861e7c49bf3b375a66b96bfbe5d9c70
Signed-off-by: shiwgupt <shiwgupt@codeaurora.org>
2020-09-15 12:45:10 +05:30
Camera Software Integration
526970e73b Merge "msm: camera: cdm: Support CDM2.1 for new Chipset" into camera-kernel.lnx.4.0 2020-09-14 12:45:06 -07:00
Camera Software Integration
6272ed41ba Merge "msm: camera: icp: Adapt HFI to processor specific irq management" into camera-kernel.lnx.4.0 2020-09-14 12:44:50 -07:00
Camera Software Integration
2638d4f39a Merge "msm: camera: sensor: Add error logs in case of wrong ioctl" into camera-kernel.lnx.4.0 2020-09-14 12:44:39 -07:00
Camera Software Integration
6e0357ec3c Merge "msm: camera: memmgr: increase max slot count into 2048" into camera-kernel.lnx.4.0 2020-09-14 12:44:31 -07:00
Tejas Prajapati
8e746194c9 msm: camera: ope: remove the check for dev_type
Calculate the total clk of all the ctx
irrespective of the use case for the ctx. Remove
dev_type check to add all the ctx clk while
calculating total clk.

CRs-Fixed: 2754351
Change-Id: I5c1681ac1a88cfec752ff58fd8b1f6ac5d05b28a
Signed-off-by: Tejas Prajapati <tpraja@codeaurora.org>
2020-09-12 08:36:35 -07:00
Camera Software Integration
08f2a20265 Merge "msm: camera: isp: Program min hbi in IPP path" into camera-kernel.lnx.4.0 2020-09-10 13:36:23 -07:00
Camera Software Integration
8f21ab0d13 Merge "msm: camera: isp: Add check to dump supported fifo level registers in shima" into camera-kernel.lnx.4.0 2020-09-10 13:29:09 -07:00
Camera Software Integration
f82cd27be1 Merge "msm: camera: isp: Add support for TPG cfg blob" into camera-kernel.lnx.4.0 2020-09-10 13:28:56 -07:00
Camera Software Integration
59c745ae8c Merge "msm: camera: isp: Add code for SFE HW" into camera-kernel.lnx.4.0 2020-09-10 13:28:42 -07:00
Jigar Agrawal
5298a2471e msm: camera: cdm: Support CDM2.1 for new Chipset
Add support single-context CDM for CDM2.1.

CRs-fixed: 2770438
Change-Id: I894ebc9fc770fe25c7cd1c18099d3c06af319245
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2020-09-10 10:01:01 -07:00
Karthik Anantha Ram
746527f238 msm: camera: isp: Program min hbi in IPP path
Userspace sends the hbi count as part of acquire. Use that
value to compute min hbi and progam the same in IPP path cfg.

CRs-Fixed: 2772278
Change-Id: Ia41c435b0fb010a3b841fa11bfcdffc4c4a11006
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2020-09-09 14:46:26 -07:00
Camera Software Integration
876c0a9b3a Merge "msm: camera: csiphy: Remove config counter" into camera-kernel.lnx.4.0 2020-09-09 14:12:23 -07:00
Camera Software Integration
a5126d412b Merge "msm: camera: cdm: Fix parsing of supported cdm clients" into camera-kernel.lnx.4.0 2020-09-09 14:12:11 -07:00
bohahuan
9d1e44a94f msm: camera: memmgr: increase max slot count into 2048
In case large memory slot usage scene like MFHDR, MFSR.
increase kernel slot count to avoid out of memory issue.

CRs-Fixed: 2718732
Change-Id: I49dd2d9bdda548d5f95fa49c290364ecb6d40f6e
Signed-off-by: bohahuan <bohahuan@codeaurora.org>
2020-09-08 19:56:32 -07:00
Jigarkumar Zala
a5485a8560 msm: camera: sensor: Add error logs in case of wrong ioctl
Add wrong IOCTL command logs across sensor submodules.

CRs-Fixed: 2759031
Change-Id: Idf63749855e60b2a5bd9db9b5d78e129629431af
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
Signed-off-by: Fernando Pacheco <fpacheco@codeaurora.org>
2020-09-08 14:33:18 -07:00
Karthik Anantha Ram
d2461de353 msm: camera: isp: Add support for TPG cfg blob
TPG core cfg data is sent by userspace as a blob. Add
support to configure the same at stream on.

CRs-Fixed: 2772256
Change-Id: I94b9e3fd8aaf02e9ea6d1e7fa10de9cbbc43e39d
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2020-09-08 14:27:28 -07:00
Camera Software Integration
79edec1a06 Merge "msm: camera: ope: Updated logic to calculate num bw path" into camera-kernel.lnx.4.0 2020-09-08 14:12:25 -07:00
Camera Software Integration
4ac0fd424d Merge "msm: camera: isp: Enable PIX & LINE count irqs by default" into camera-kernel.lnx.4.0 2020-09-08 14:12:06 -07:00
Jigarkumar Zala
0934fe0103 msm: camera: isp: Add code for SFE HW
Add initial code drop for SFE HW.

CRs-Fixed: 2733230
Change-Id: I44437bbe05d8c60d219c31cb626a4c9845a469e0
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2020-09-08 13:39:08 -07:00
Chandan Kumar Jha
e262fee611 msm: camera: isp: Add check to dump supported fifo level registers in shima
Add check to dump supported debug register for shima target.
This change prevent unexpected behaviour during reading
unsupported fifo level register.

CRs-Fixed: 2770220
Change-Id: I33608e1ef92ca45acdc04667f61bb2d1536cbb8b
Signed-off-by: Chandan Kumar Jha <cjha@codeaurora.org>
2020-09-08 19:22:38 +05:30
Jigar Agrawal
eadc13255c msm: camera: cdm: Fix parsing of supported cdm clients
cdm client check for loading number of clients is
not correct. It does not take error codes into account.
The variable that holds the value is of incorrect
data type.

CRs-fixed: 2768636
Change-Id: Ie5b752aa6bc7a70fe777c16a70a5bdb2e5a663a4
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2020-09-04 15:26:28 -07:00
Camera Software Integration
558d74cbad Merge "msm: camera: icp: Increase request queue depth and frame cmd bitmap" into camera-kernel.lnx.4.0 2020-09-04 13:30:16 -07:00
Camera Software Integration
028446bc80 Merge "msm: camera: memmgr: fix lack of condition lead to memory leak" into camera-kernel.lnx.4.0 2020-09-04 13:29:53 -07:00
Camera Software Integration
19198d5ba8 Merge "msm: camera: isp: Add go_cmd after rup_cmd for offline use-cases" into camera-kernel.lnx.4.0 2020-09-04 13:29:29 -07:00
Camera Software Integration
162dad6beb Merge "msm: camera: ife: dump bandwidth and clock for cpas and ife" into camera-kernel.lnx.4.0 2020-09-04 13:29:02 -07:00
Alok Chauhan
19dbfda860 msm: camera: ope: Updated logic to calculate num bw path
Ope driver was incorrectly calculating the number
of bw path. This is causing bw to be skip for some
of the ports.

Updated logic to correctly calculate number of path
based on valid path type.

CRs-Fixed: 2715586
Change-Id: I95b6dcfae454713a7b5db6d629310244bb304b19
Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
2020-09-04 00:13:31 -07:00
Karthik Anantha Ram
8b0144bd3a msm: camera: isp: Enable PIX & LINE count irqs by default
Enable these format measure error IRQs by default in CSID.

CRs-Fixed: 2767775
Change-Id: Ie23d343cf2ac80d2b22096db3cbfc044a4e64fc9
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2020-09-03 16:19:47 -07:00
Fernando Pacheco
f42f7b1e9a msm: camera: icp: Adapt HFI to processor specific irq management
The steps to enable and send interrupts will differ between processors.
Pull this logic out of the HFI and out to the devices, so that we can
adapt to the specific irq management of any processor.

CRs-Fixed: 2722486
Change-Id: I2a889b91ec13295aa14bb2b16252332482a1225a
Signed-off-by: Fernando Pacheco <fpacheco@codeaurora.org>
2020-09-03 15:44:15 -07:00