Commit Graph

804 Commits

Author SHA1 Message Date
Ravikishore Pampana
1beadb140b msm: camera: tfe: Handle sof monotonic boot time stamp
Modify the sof monotonic boot timestamp logic. Boot time
stamp difference between two frames should not change,
it should be same as qtime csid time stamp difference.
So modified logic to give proper boot time stamp with no
difference in the successive frames, the difference of sof
time stamp taken from qtime stamp value.
Delayed IRQ handling can lead to torn read of timestamp
register (LSB from nth frame and MSB from n+1th frame).
This change tries to detect torn read cases and corrects
timestamp close to the actual value.

CRs-Fixed: 2688271
Change-Id: I1dc75629887cfcf971d51a7dae6ea28624d272f1
Signed-off-by: Ravikishore Pampana <rpampana@codeaurora.org>
2020-09-17 13:01:29 +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
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
Camera Software Integration
698123ee2c Merge "msm: camera: isp: Add uapi for IFE/SFE HW blocks" into camera-kernel.lnx.4.0 2020-09-03 15:05:09 -07:00
zhuo
334028442c msm: camera: memmgr: fix lack of condition lead to memory leak
When multi map fails, the first mapping does not unmap
due to lack of condition.

CRs-Fixed: 2768768
Change-Id: Ib61ce8f5a73e5c27b1b19bbd23d6649c62feb0da
Signed-off-by: zhuo <zhuo@codeaurora.org>
2020-09-03 16:01:24 +08:00
Karthik Anantha Ram
c14978cb20 msm: camera: icp: Increase request queue depth and frame cmd bitmap
Increase the queue depth to support EIS3 use-cases.

CRs-Fixed: 2768737
Change-Id: I02ef9da1a0d37208d2b3fd27092e9e03d38e4346
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2020-09-02 18:17:51 -07:00
Karthik Anantha Ram
f1e30d210a msm: camera: isp: Add go_cmd after rup_cmd for offline use-cases
Add go_cmd after rup_cmd in cdm packet so that bus_rd is triggered
after rup has been configured for IFE.

CRs-Fixed: 2767783
Change-Id: I8978d582825bc0e4edc9f26a1d3f8f988bc11b81
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2020-09-01 17:38:26 -07:00
Jigarkumar Zala
5bd4d81525 msm: camera: csiphy: Remove config counter
Currently config counter is being maintained at improper places
as it is increment at configuration parser and decrease at release
dev IOCTL. There are usecase where configuration can come multiple
times without release dev IOCTL being called, in this case config
counter will be out of sync with operation. Also, config counter
is not being use anywhere in any decision making. This change removes
config counter attributes to reduce the future maintenance and better
code readabiltiy. Also, acquire count is correct check to make decision
whether all device are release or not and with that reason update
correct check in release dev IOCTL.

CRs-Fixed: 2759031
Change-Id: Id0f36bc661ef1ae8070cc8d4fc148409c13e30bc
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2020-09-01 17:15:20 -07:00
Camera Software Integration
2712471048 Merge "msm: camera: common: Merge camera-kernel.3.1 changes in camera-kernel.4.0" into camera-kernel.lnx.4.0 2020-09-01 14:35:40 -07:00
Karthik Anantha Ram
f44caab866 msm: camera: isp: Add uapi for IFE/SFE HW blocks
Add support for IFE/SFE UAPI changes in ISP driver for
Waipio SoC.

CRs-Fixed: 2733230
Change-Id: I5320d2cf02afe1a2d203da65604c83d7b38cad38
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
Signed-off-by: Vishalsingh Hajeri <vhajeri@codeaurora.org>
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2020-09-01 12:51:22 -07:00
Tejas Prajapati
1406c9f45b msm: camera: ife: dump bandwidth and clock for cpas and ife
At the time of overflow dump bandwidth and axi clock
information from cpas along with the ife clock and csid clock.
In RDI only use case add a check for rdi_irq_status
mask; if it is not present skip checking which port has
resulted in overflow.

CRs-Fixed: 2764286
Change-Id: I8080d140c34f2ab64f7e56b080a0dab57488336e
Signed-off-by: Tejas Prajapati <tpraja@codeaurora.org>
2020-09-01 12:56:21 +05:30
Camera Software Integration
3f1cf31dee Merge "msm: camera: common: Fix enable/disable for dsp clock source" into camera-kernel.lnx.4.0 2020-08-31 13:23:31 -07:00
Camera Software Integration
8fb208f634 Merge "msm: camera: ife: Always send stop immediately when stopping hw" into camera-kernel.lnx.4.0 2020-08-31 13:23:16 -07:00
Camera Software Integration
39cf709931 Merge "msm: camera: csiphy: Add logic to program userspace settle count" into camera-kernel.lnx.4.0 2020-08-31 13:23:04 -07:00
Camera Software Integration
263c743a1a Merge "msm: camera: sensor: Correct delete request logic" into camera-kernel.lnx.4.0 2020-08-31 13:22:42 -07:00
Camera Software Integration
64d45ce53f Merge "msm: camera: ife: Configure epoch to exactly half of the frame" into camera-kernel.lnx.4.0 2020-08-31 13:22:35 -07:00
Camera Software Integration
5d4311899a Merge "msm: camera: sensor: Correct the datatype for request id" into camera-kernel.lnx.4.0 2020-08-31 13:22:21 -07:00
Camera Software Integration
e92da9e9d2 Merge "msm: camera: smmu: Fixes label_is_string warning in camera dtsi files" into camera-kernel.lnx.4.0 2020-08-31 13:22:02 -07:00
Trishansh Bhardwaj
7aa0932eeb msm: camera: common: Merge camera-kernel.3.1 changes in camera-kernel.4.0
msm: camera: ope: Fix OPE hang dump
msm: camera: cdm: Add a check for fifo list in cdm workqueue
msm: camera: ope: Add a check to validate dmi cmd address
msm: camera: ope: Add check for number of stripe
msm: camera: tfe: Support tfe pdaf port
msm: camera: ope: Handle reset IRQ delay
msm: camera: ope: enable pp modules hw status dump
msm: camera: ope: Fix OPE clock issue
msm: camera: ope: Add LDAR dump support
msm: camera: ope: Add context state check in process cmd
msm: camera: ope: Change parameters to find time difference
msm: camera: ope: Add debug fs for dumping frame setting logs
msm: camera: ope: Add debugfs support to dump ope hang dump
msm: camera: tfe: Handle unsupported outport format
msm: camera: ope: add page fault handlers in ope driver
msm: camera: ope: Reduce OPE BUS memory
msm: camera: ope: Change turbo clock limit.

CRs-Fixed: 2729996
Change-Id: I683ed07082b455599f89dbc18f353b6a1e48b129
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
2020-08-30 14:22:47 +05:30
Camera Software Integration
992378c626 Merge "msm: camera: reqmgr: Workqueue congestion handling" into camera-kernel.lnx.4.0 2020-08-28 13:08:39 -07:00
Camera Software Integration
682befb851 Merge "msm: camera: utils: Route camera logs to ftrace" into camera-kernel.lnx.4.0 2020-08-28 13:08:32 -07:00
Camera Software Integration
a2c86345c2 Merge "msm: camera: cpas: Add qosgen shaping config" into camera-kernel.lnx.4.0 2020-08-28 13:08:20 -07:00
Camera Software Integration
3af2f6333f Merge "msm: camera: common: Enable dlkm for holi" into camera-kernel.lnx.4.0 2020-08-28 13:07:38 -07:00
Camera Software Integration
640f077f09 Merge "msm: camera: csiphy: Update secure PHY HW version checks" into camera-kernel.lnx.4.0 2020-08-28 13:07:27 -07:00
Camera Software Integration
e475f14229 Merge "msm: camera: memmgr: reduce mutex lock duration" into camera-kernel.lnx.4.0 2020-08-28 13:07:20 -07:00