Граф коммитов

2109 Коммитов

Автор SHA1 Сообщение Дата
Camera Software Integration
4c38664b95 Merge "msm: camera: isp: Reduce traffic for shutter notification" into camera-kernel.lnx.5.0 2021-10-04 17:32:47 -07:00
sokchetra eung
56e4765c6a msm: camera: uapi: Add new event causes
Add new sync event causes for ICP, ISP, JPEG.
Add new ICP V4L2 error events.

CRs-Fixed: 3035452
Change-Id: Ie3a12281e7e6eeadc8361ba050ff51bdf80c4e65
Signed-off-by: sokchetra eung <eung@codeaurora.org>
2021-10-04 10:25:36 -07:00
Mukund Madhusudan Atre
2f9b9f590b msm: camera: isp: Add bw info dump on clk/bw update error
Add blob info dump on finish clock/bw update error to provide
insight into what userspace has sent in packet. Also, print the
history of bw votes to check values coming from HW manager.

CRs-Fixed: 3039737
Change-Id: Ifc4df6bb7d4a3cf03715300e9edd1d3987df4a4c
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2021-10-04 10:24:21 -07:00
Shardul Bankar
dc53926c40 msm: camera: common: Make msg_cb for cam_subdev generic
The current implementation allows to pass uint_32 as
argument in the message callback. Changing it to (void *)
type so that any type of data can be passed in the future
implementations.

CRs-Fixed: 2847155
Change-Id: Ic52a5ccfe13efdba37bbcfdb7154ed789b1943fd
Signed-off-by: Shardul Bankar <sharbank@codeaurora.org>
2021-10-04 15:05:10 +05:30
Jigarkumar Zala
33cf758851 msm: camera: req_mgr: Rearrange state change sequence
Component bind is responsible for platform bus. QUP i2c bus slaves
can come at probe anytime. This operation is corrupting the slave
list for CRM. This change makes sure that CRM is available after
subdev list is initiate first and then only allows the subdev to be
add in the list.

CRs-Fixed: 3034933
Change-Id: Ia08702a8b38f2f2f590021b997c729131e919d2d
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2021-10-03 22:26:05 -07:00
Ayush Kumar
31d8b11c65 msm: camera: isp: Add header file VFE and CSID for Diwali
This commit adds VFE/CSID header file changes for titan
version 570 hardware.

CRs-Fixed: 3043114
Change-Id: Ibddb9b69a17d6a7bed8b8ea802a3fce0199966e9
Signed-off-by: Ayush Kumar <ayushkr@codeaurora.org>
2021-10-03 21:19:11 -07:00
Camera Software Integration
13d3e00200 Merge "msm: camera: reqmgr: Handle fatal error notification" into camera-kernel.lnx.5.0 2021-10-01 19:50:18 -07:00
Camera Software Integration
81e99709c3 Merge "msm: camera: isp: Add support of PDAF parsed outport" into camera-kernel.lnx.5.0 2021-10-01 19:50:07 -07:00
Jigarkumar Zala
1c29fe16b5 msm: camera: csiphy: Extend CSIPHY hw block support
Increase CSIPHY hw block support 8 for v780 and future
platforms.

CRs-Fixed: 3042539
Change-Id: Ib8c3c2bdde583ff5dc5ddb0a7b818dc8723b270f
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2021-10-01 14:34:03 -07:00
Camera Software Integration
87d033316b Merge "msm: camera: isp: Don't clear lists when disabling all events" into camera-kernel.lnx.5.0 2021-09-30 17:54:16 -07:00
Camera Software Integration
ad1e732da4 Merge "msm: camera: jpeg: Ensure in/out map entries are within allowed range" into camera-kernel.lnx.5.0 2021-09-30 17:54:02 -07:00
Camera Software Integration
9cbace3d87 Merge "msm: camera: isp: Correct the wrong res id" into camera-kernel.lnx.5.0 2021-09-30 17:53:36 -07:00
Jigar Agrawal
4c0e3a89ac msm: camera: csiphy: Update AFE settings for cphy sensors
Update 4Gsps data specific AFE tuning paramenters for CPHY
sensors. Also remove the CPHY specific only common parameter
from common configuration.

CRs-Fixed: 3042875
Change-Id: Icf8c0d49fdbb7da247dadb5c95cff6c984ce6850
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-09-30 14:29:02 -07:00
Jigarkumar Zala
1d400147b7 msm: camera: cci: Increase HW block support for CCI
Increase hw block support for CCI to 3 for v780 and
onwards.

CRs-Fixed: 3042539
Change-Id: I4a6b594a22373047e243bfefa22d304eab969e71
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2021-09-30 12:39:02 -07:00
Pranav Sanwal
0ddfe2d482 msm: camera: isp: Reduce traffic for shutter notification
To reduce traffic for shutter notification, sof and boot
sof timestamps are sent in a unified v4l2 event.
Thereby, reducing the event notification traffic by 50%.

CRs-Fixed: 3040374
Change-Id: Ib4580e0a4df7c3d1cb892fdf3254272d3134d4cb
Signed-off-by: Pranav Sanwal <psanwal@codeaurora.org>
2021-09-30 18:05:29 +05:30
chengxue
10b575f21e msm: camera: isp: shdr enable pdaf occur overflow
If we config stream in order like IMAGE/IMAGE_SHORT/
PDAF, while PDAF stream reserve, it will override
sfe_inline_shdr flag to false on csid_hw, and we
can not configure the master/slave register correctly,
so we move the common sfe_inline_shdr flag to path cfg.

CRs-Fixed: 3047943
Change-Id: Ie4a863e9aa24a142c5c4b3c90553e4a2bd92d7f3
Signed-off-by: chengxue <chengxue@codeaurora.org>
2021-09-30 10:49:17 +08:00
Camera Software Integration
a6d54a3219 Merge "msm: camera: req_mgr: Allow request cancellation if not applied to IFE" into camera-kernel.lnx.5.0 2021-09-29 15:57:59 -07:00
Camera Software Integration
cc960c0388 Merge "msm: camera: smmu: Unmap secure buffers in secure camera use case" into camera-kernel.lnx.5.0 2021-09-29 15:57:48 -07:00
Camera Software Integration
ae8ace5996 Merge "msm: camera: isp: Increase max dependents of IRQ controller" into camera-kernel.lnx.5.0 2021-09-29 15:57:38 -07:00
Jigar Agrawal
42d92dea61 msm: camera: cdm: Correct the CDM iommu handle
Correct the CDM iommu handler by changing the
false pid and mid values written in the cdm
header file. Also, adding a support to read the
pid and mid from the dtsi file, since there is
already support for the PID values available in the
dtsi.

CRs-fixed: 2982542
Change-Id: I319a32fdcba44a6a96b79e4e67b0a2cc0e01bc4c
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-09-29 12:55:45 -07:00
Karthik Anantha Ram
54f158a4fe msm: camera: isp: Update last applied MUP for scratch
In case of sHDR dynamic switch, for a frame on which we are
configuring scratch buffer, use MUP from the last applied
valid request as opposed to global reference of MUP held
by the CSID driver. The global reference could have been
updated by a future request, it would be incorrect to use
that when that request has not even been applied.

CRs-Fixed: 3038703
Change-Id: I9369dba80fa258925ab4ae573b33931352318334
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-09-28 20:21:04 -07:00
Depeng Shao
83001935a7 msm: camera: reqmgr: Only do self correction after initial sync
Only do self correction after initial sync.

CRs-Fixed: 3047181
Change-Id: I29d5a633984322d2383d48ba0956fc4e2e57f87f
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
2021-09-29 10:36:00 +08:00
Camera Software Integration
02f11b69c4 Merge "msm: camera: common: Update bytes written variable" into camera-kernel.lnx.5.0 2021-09-28 16:43:55 -07:00
Camera Software Integration
5e9afd31bf Merge "msm: camera: isp: Add PID MID support for SFE" into camera-kernel.lnx.5.0 2021-09-28 16:43:32 -07:00
Depeng Shao
5cb86d5101 msm: camera: isp: Correct the wrong res id
This change corrects the wrong res id during checking
whether ife lite can be used in current usecase.

CRs-Fixed: 3046530
Change-Id: Ic24848fcd4aa85172e334a9de81c69dcdc9838cf
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
2021-09-28 16:13:52 +08:00
Camera Software Integration
627ca795c4 Merge "msm: camera: common: Add condition for presil read poll" into camera-kernel.lnx.5.0 2021-09-27 17:10:54 -07:00
Camera Software Integration
740459b9f8 Merge "msm: camera: isp: Fix comp mask calculation during buf done" into camera-kernel.lnx.5.0 2021-09-27 17:10:31 -07:00
Camera Software Integration
474b417a55 Merge "msm: camera: reqmgr: Delay to do slot reset for finished req" into camera-kernel.lnx.5.0 2021-09-27 17:10:20 -07:00
Camera Software Integration
06a85e7f9b Merge "msm: camera: jpeg: Add null check for ctx_data in IRQ handler" into camera-kernel.lnx.5.0 2021-09-27 17:10:07 -07:00
Camera Software Integration
dec6040daa Merge "msm: camera: reqmgr: Add more error codes in uapi file" into camera-kernel.lnx.5.0 2021-09-27 17:09:57 -07:00
Camera Software Integration
84a665ef5c Merge "msm: camera: common: Fix kernel code and add checks" into camera-kernel.lnx.5.0 2021-09-27 15:37:10 -07:00
Camera Software Integration
9d778cd0cc Merge "msm: camera: csiphy: Add version check for secure mask" into camera-kernel.lnx.5.0 2021-09-27 15:36:52 -07:00
Camera Software Integration
fbced33fa6 Merge "msm: camera: isp: Add fixes for buf done in presil" into camera-kernel.lnx.5.0 2021-09-27 15:36:42 -07:00
Camera Software Integration
a41dc966a3 Merge "msm: camera: common: Add context flush state check" into camera-kernel.lnx.5.0 2021-09-27 15:36:33 -07:00
Camera Software Integration
094aa60747 Merge "msm: camera: cdm: Enhance CSID logs for debug purpose" into camera-kernel.lnx.5.0 2021-09-27 15:36:23 -07:00
Anand Ravi
0417e88967 msm: camera: req_mgr: Allow request cancellation if not applied to IFE
Since we don't wait for requests to be ready on lower pd devices before
applying request on higher pd devices, add provision to cancel request
if it has not been applied on IFE.

CRs-Fixed: 3014942
Change-Id: I8850b0dfe3f88e04b86f7bb6b597657ad7e0a4f9
Signed-off-by: Anand Ravi <ananravi@codeaurora.org>
2021-09-27 14:41:03 -07:00
Shravya Samala
b281d0d19c msm: camera: jpeg: Ensure in/out map entries are within allowed range
Added checks to make sure in_map /out_map entries of
packet io configs are within expected maximum value.

CRs-Fixed: 3007258
Change-Id: I7e5a652cd8f9ae104a10a2af551fe49930849b2d
Signed-off-by: Shravya Samala <shravyas@codeaurora.org>
2021-09-28 00:11:48 +05:30
Karthik Anantha Ram
26f225b85b msm: camera: reqmgr: Handle fatal error notification
Handle fatal error notification by any device on the link.
On receiving the error propagate it to all connected devices.

CRs-Fixed: 3045706
Change-Id: Ia36a3262a48ea35afc8b98df21056461c5c523ef
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-09-27 11:18:56 -07:00
Karthik Jayakumar
8e40886be9 msm: camera: common: Add presil compilation and probe support
Adds new presil files to Kbuild compilation and camera_main
probe support.

CRs-Fixed: 2932495
Change-Id: Iccde6ce68f6db2dee94e2d73d3094fa6314ad372
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
2021-09-27 10:41:36 -07:00
Tejas Prajapati
4c6b819ea7 msm: camera: ife: Program image addr for once in RDI batch mode
For RDI only batch mode use case currently image address
is programmed as many times as the batch count this is
causing a page fault with unmapped VA.
In RDI only use case the image address needs to
be programmed only once the consecutive image address is
taken from the frame increment address and image address
programmed with first frame of the batch.

CRs-Fixed: 3031033
Change-Id: I2c463125bf3b5731bcbd92bb15b364724fba45db
Signed-off-by: Tejas Prajapati <tpraja@codeaurora.org>
2021-09-27 12:28:50 +05:30
Anand Ravi
c213491c20 msm: camera: isp: Don't clear lists when disabling all events
On overflow, cam_irq_controller_disable_all function is called from top
half handler, which itself is in a loop of all entries of top half list.
Manipulating the list to remove all elements can leave it in an unstable
state and cause the loop to never terminate. Since events are removed
from all lists when unsubscribing from the IRQs, do not clear the top
half list when disabling all events.

CRs-Fixed: 3043489
Change-Id: Idee0a017cdea1dac73e9a7a00f07463afe324983
Signed-off-by: Anand Ravi <ananravi@codeaurora.org>
2021-09-26 10:27:22 -07:00
Ridhi Shah
3546f0fd5d msm: camera: icp: add mechanism to send/receive buffer for presil
Add mechanism for send and retrieve buffer using packet
in icp driver for the presil framework.

CRs-Fixed: 2932495
Change-Id: I9d44a4cff71ec6def248e3fac1053edb8513e813
Signed-off-by: ridhshah <ridhshah@codeaurora.org>
2021-09-24 14:11:42 -07:00
Anand Ravi
b5a3c6c3bc msm: camera: isp: Increase max dependents of IRQ controller
SFE has two dependent controllers - bus write and bus read. Currently,
it max dependents is set to one so increase maximum dependents to fix
dependency registration failure.

CRs-Fixed: 3044375
Change-Id: Ib02490ef0016943d979506288d6192558b380534
Signed-off-by: Anand Ravi <ananravi@codeaurora.org>
2021-09-24 13:03:02 -07:00
Jigar Agrawal
efff3f9490 msm: camera: csiphy: Update csiphy settings
Update the csiphy2.1.0 AFE settings.

CRs-Fixed: 3044363
Change-Id: I80ea12dcfe554e58599ce39348851a4279c4c53a
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-09-24 11:51:31 -07:00
Gaurav Jindal
03dedba588 msm: camera: common: Update bytes written variable
While dumping minidump information, bytes updated are wrongly
updated. This commit corrects that condition.

CRs-Fixed: 3044173
Change-Id: I5a6ac915118424b6ec3a2e64726786ed0e47c9c7
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2021-09-24 21:54:41 +05:30
Chandan Kumar Jha
738df632cc msm: camera: isp: Add support of PDAF parsed outport
Add support of new PDAF Parsed data outport for VFE 780.

CRs-Fixed: 2948116
Change-Id: Icd88e3947f6c1461c49ef6912985836931a1c62b
Signed-off-by: Chandan Kumar Jha <cjha@codeaurora.org>
2021-09-24 15:52:49 +05:30
Gaurav Jindal
8b1c004eac msm: camera: isp: Add PID MID support for SFE
This commit adds support for printing PID and MID in case
of page faults on SFE.

CRs-Fixed: 3040816
Change-Id: I99f8c6de6049802f7c67a72daf6c3fb24c3defb1
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2021-09-23 18:51:09 +05:30
chengxue
ad1a1dcfb2 msm: camera: reqmgr: Delay to do slot reset for finished req
For boken mode with hw sync enable, a link and its synclink
streaming with sync. if a bubble condition happens on a link,
and can not wait all buf done to clear the isp ctx
process_bubble flag in time, there may apply fails on isp
during the bubble recovery flow. current crm reset in_q slot
after req's report has finished. this may lead to a synclink
slot not found while do ready check.

So delay to do slot reset by referring the link delay.

CRs-Fixed: 2996710
Change-Id: Ice8c340a9f478a69d97e3a7c77e0d0a263be66fa
Signed-off-by: chengxue <chengxue@codeaurora.org>
2021-09-22 23:36:09 -07:00
Anand Ravi
d7eb296004 msm: camera: isp: Reset fence after signalling success
If fence is signalled successfully, reset it to -1 to prevent it from
getting signalled again incorrectly.

CRs-Fixed: 3042511
Change-Id: I87f465508e9e626ad700f592478f253f179e9fe9
Signed-off-by: Anand Ravi <ananravi@codeaurora.org>
2021-09-22 15:05:54 -07:00
Suraj Dongre
d7b6770119 msm: camera: common: Add condition for presil read poll
Add presil read poll call in common poll timeout function
when presil mode is enabled.

CRs-Fixed: 2932495
Change-Id: Ib3cdf0e3963bd50fe6e0bd6e32cff7ff350f6125
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
Signed-off-by: Suraj Dongre <sdongre@codeaurora.org>
2021-09-21 13:39:51 -07:00