Commit Graph

1525 Commits

Author SHA1 Message Date
Haritha Chintalapati
020e9a7d77 Merge "msm: camera: utils: Add support for multiline printing to log buffers" into camera-kernel.lnx.5.0 2021-04-30 19:17:36 -07:00
Haritha Chintalapati
be8a9b9af0 Merge "msm: camera: isp: Remove capture control register configurations" into camera-kernel.lnx.5.0 2021-04-30 19:17:24 -07:00
Haritha Chintalapati
9d1cb39b8f Merge "msm: camera: csiphy: Move AON Camera select control" into camera-kernel.lnx.5.0 2021-04-30 19:17:20 -07:00
Haritha Chintalapati
53f079a679 Merge "msm: camera: csiphy: Update the csiphy programming sequence" into camera-kernel.lnx.5.0 2021-04-30 19:17:16 -07:00
Haritha Chintalapati
c796ffd58f Merge "msm: camera: sensor: Extend I2C read/write size" into camera-kernel.lnx.5.0 2021-04-30 17:32:02 -07:00
Haritha Chintalapati
77b450ba67 Merge "msm: camera: isp: Optimize logging in CSID and VFE" into camera-kernel.lnx.5.0 2021-04-30 17:31:46 -07:00
Haritha Chintalapati
f55270528c Merge "msm: camera: sensor: Change regulator get,put to devres entry" into camera-kernel.lnx.5.0 2021-04-30 17:31:27 -07:00
Haritha Chintalapati
47e8ab4258 Merge "msm: camera: sensor: Correct condition check for BURST/SEQ write" into camera-kernel.lnx.5.0 2021-04-30 17:31:14 -07:00
Haritha Chintalapati
facbe0251d Merge "msm: camera: reqmgr: Only do self-correction at SOF" into camera-kernel.lnx.5.0 2021-04-30 17:31:05 -07:00
Camera Software Integration
01c57a9a06 Merge "msm: camera: isp: Add support for MMU prefetch for IFE/SFE WMs" into camera-kernel.lnx.5.0 2021-04-28 21:23:50 -07:00
Camera Software Integration
6c5c19ff95 Merge "msm: camera: uapi: Add interface for obtaining exposure order" into camera-kernel.lnx.5.0 2021-04-28 21:23:43 -07:00
Camera Software Integration
d94ee28414 Merge "msm: camera: isp: Add debugfs support for SFE driver" into camera-kernel.lnx.5.0 2021-04-28 21:23:17 -07:00
Camera Software Integration
1ef8803d10 Merge "msm: camera: flash: Get the flash on wait time from userspace" into camera-kernel.lnx.5.0 2021-04-28 21:23:12 -07:00
Camera Software Integration
39f3be5830 Merge "msm: camera: isp: Optimize CSID IRQ handling" into camera-kernel.lnx.5.0 2021-04-28 21:23:08 -07:00
Camera Software Integration
7ac644bba3 Merge "msm: camera: isp: Update substate prior to notifying CRM" into camera-kernel.lnx.5.0 2021-04-28 21:23:04 -07:00
Camera Software Integration
92c871914e Merge "msm: camera: isp: Move constraint error info to header" into camera-kernel.lnx.5.0 2021-04-28 21:22:59 -07:00
Camera Software Integration
5341e5810f Merge "msm: camera: utils: Modify pointer check for clk debugfs" into camera-kernel.lnx.5.0 2021-04-28 21:22:55 -07:00
Camera Software Integration
18e3dd6a8e Merge "msm: camera: reqmgr: Propagate hw failures to user" into camera-kernel.lnx.5.0 2021-04-28 21:22:50 -07:00
Camera Software Integration
639f9c82b4 Merge "msm: camera: reqmgr: Remove debug flags when creating timer slab" into camera-kernel.lnx.5.0 2021-04-28 21:22:46 -07:00
Camera Software Integration
625981cd2e Merge "msm: camera: common: Fix NULL pointer dereference" into camera-kernel.lnx.5.0 2021-04-28 21:20:01 -07:00
Camera Software Integration
1ef64946ef Merge "msm: camera: isp: Remove CPAS version check from IFE HW manager" into camera-kernel.lnx.5.0 2021-04-28 21:19:56 -07:00
Camera Software Integration
5cf3a57890 Merge "msm: camera: reqmgr: add trace log for separating multi camera" into camera-kernel.lnx.5.0 2021-04-28 21:19:52 -07:00
Camera Software Integration
f857a1140c Merge "msm: camera: isp: Reapply bubble request in RDI path" into camera-kernel.lnx.5.0 2021-04-28 21:19:47 -07:00
Camera Software Integration
6d42813b77 Merge "msm: camera: isp: Add format and alignment for type 3 PD" into camera-kernel.lnx.5.0 2021-04-28 19:35:21 -07:00
Gaurav Jindal
89ab268804 msm: camera: isp: Remove capture control register configurations
During configuring paths in CSID, RX capture control is also getting
configured. This is done as a part of Rx configurations.
This removes the capture control from start path functions.

CRs-Fixed: 2933774
Change-Id: Idebb4e03634d91583fdab58b9e5d0313530a7f1d
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2021-04-28 09:17:45 +05:30
Jigar Agrawal
ef4c673686 msm: camera: csiphy: Update the csiphy programming sequence
Update the csiphy1.2.3 programming sequence for the update
on 01/08/2021.

CRs-Fixed: 2856350
Change-Id: I06b164fbb0a589f22f973476709008d0c7ac32ca
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-04-27 18:19:36 -07:00
Jigar Agrawal
81c9a0473f msm: camera: csiphy: Move AON Camera select control
Move AON camera select control to the csiphy header.

CRs-Fixed: 2915332
Change-Id: I246d5ee93e9f494b36856fad33fc23e81fa37af2
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-04-27 18:14:18 -07:00
Sureshnaidu Laveti
938d8aa41d msm: camera: sensor: Extend I2C read/write size
Extend I2C read/write capability to 20kb.

CRs-Fixed: 2927189
Change-Id: Ia5465342fd1d434f90e472c3dd5a5275c3fab8cd
Signed-off-by: Sureshnaidu Laveti <lsuresh@codeaurora.org>
2021-04-27 17:59:09 -07:00
Depeng Shao
924246efa3 msm: camera: reqmgr: Only do self-correction at SOF
Since the SOF timestamp is only updated at SOF,
so we can't do self-correction at EOF. When the
frames already in sync, but the req is a EOF
triggered req, then the req can't be applied at
SOF, but it will fail to pass self-correction
checking at EOF. Then we will loop this progress,
the req can't be applied anymore.

CRs-Fixed: 2930497
Change-Id: I079cbd3cb9ac9541f049c5369baeee831f7444a2
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
2021-04-26 18:27:25 -07:00
Jigarkumar Zala
7263fb5529 msm: camera: sensor: Correct condition check for BURST/SEQ write
Sensor IO framework decides based on slave write request to perform
desire opertion at CCI hw. Currently this framework uses wrong
condition to pass on the correct information to CCI hw. This change
fixes this condition to pass on the correct operation to perform
at CCI hw. Also update hard code value to appropriate enums to align
the opertion with slaves.

CRs-Fixed: 2913072
Change-Id: I3067314e6bccb513f343e3bcbc3f1b72355f2291
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2021-04-26 15:11:56 -07:00
Anand Ravi
27ad84d827 msm: camera: utils: Add support for multiline printing to log buffers
Introduce new macros to print into log buffers that prefix the
appropriate tags. This allows the usual search filters to pick up all
the lines of the log.

CRs-Fixed: 2928828
Change-Id: I3d27490b324e884eb9cce2bfd184e82418099484
Signed-off-by: Anand Ravi <ananravi@codeaurora.org>
2021-04-23 15:20:31 -07:00
Gaurav Jindal
f491203cc2 msm: camera: isp: Optimize CSID IRQ handling
Do not enable the IPP irq mask for the slave CSID.
Change the private data sent to irq controller to be passed
as callback parameter to csid top half handler. Change the
CSID top half logging to be more informative.
Restructuring of CSID path data structures to avoid few
function calls in top halves. Add error time stamp
to be printed at the time of overflow.

CRs-Fixed: 2830502
Change-Id: I660245c3ac534a763dc119ddbe498bec2de9e104
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2021-04-23 04:23:23 -07:00
Gaurav Jindal
079ac53c61 msm: camera: isp: Optimize logging in CSID and VFE
Remove logs while udpating the clock rate in CSID received as
a part of blob. Print the applied clock and received clock
during enabling CSID core.
Remove Gating log from VFE.

Change-Id: I4e7590d6853259fed76ef53ec1f198c71e04adae
CRs-Fixed: 2928763
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2021-04-23 04:15:45 -07:00
Depeng Shao
0118523efd msm: camera: flash: Get the flash on wait time from userspace
This change gets the flash on wait time from userspace to
control the precise flash.

CRs-Fixed: 2929276
Change-Id: Ieac18f6e049b446c5a7b20dcfdff013aa9838575
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
2021-04-23 13:00:39 +08:00
Mukund Madhusudan Atre
a5bc29d875 msm: camera: isp: Add format and alignment for type 3 PD
Add applicable format and alignment properties for Sparse PD client.

CRs-Fixed: 2841729
Change-Id: I5f3c5c195793ce4758b1393653b14fb49ac039c6
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2021-04-22 12:51:54 -07:00
Anand Ravi
bd2bdb729a msm: camera: isp: Remove crop values configuration from CSID
CSID will no longer write to crop registers for all paths. UMD will
configure those registers in init packet. Crop enable logic is retained.

CRs-Fixed: 2929029
Change-Id: If6888d9094a6af3306c603d737b10c32918ab787
Signed-off-by: Anand Ravi <ananravi@codeaurora.org>
2021-04-21 22:05:32 -07:00
Karthik Anantha Ram
671fbda8c2 msm: camera: isp: Update substate prior to notifying CRM
When a bubble is detected ISP notifies CRM either for recovery or
provides a trigger to apply next req. Due to scheduling issues,
it's possible that CRM triggers an apply prior to ISP substate update
leading to apply failures. This could prove fatal in case of
FS/sHDR use-cases. This change updates the substate prior to
notifying CRM.

CRs-Fixed: 2841729
Change-Id: I5ccc2b91f347ec29a5dcf6aafe71c063572a7ff7
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-04-21 18:29:37 -07:00
Haritha Chintalapati
8b6740991b Merge "msm: camera: icp: Check for negative BW path index" into camera-kernel.lnx.5.0 2021-04-21 17:24:13 -07:00
Haritha Chintalapati
5d691aee7f Merge "msm: camera: common: Add a check for 0 reg-val pairs in cdm command" into camera-kernel.lnx.5.0 2021-04-21 17:24:01 -07:00
Haritha Chintalapati
770082c50d Merge "msm: camera: isp: Modify state of WM node only on successful acquire" into camera-kernel.lnx.5.0 2021-04-21 17:23:33 -07:00
Haritha Chintalapati
4a2fa25c90 Merge "msm: camera: sensor: Improve Logging" into camera-kernel.lnx.5.0 2021-04-21 17:23:14 -07:00
Haritha Chintalapati
b3e5929a41 Merge "msm: camera: isp: Remove redundant code" into camera-kernel.lnx.5.0 2021-04-21 17:22:58 -07:00
Haritha Chintalapati
b74479763b Merge "msm: camera: csiphy: Add support for delay in IRQ confiq" into camera-kernel.lnx.5.0 2021-04-21 17:22:41 -07:00
Haritha Chintalapati
fc23ac64c4 Merge "msm: camera: isp: Clear previous dual IFE sync config on release" into camera-kernel.lnx.5.0 2021-04-21 17:22:22 -07:00
Haritha Chintalapati
03f6eb7c28 Merge "msm: camera: isp: Send correct cphy id to cphy driver" into camera-kernel.lnx.5.0 2021-04-21 17:21:59 -07:00
Jigar Agrawal
b5c4f91b83 msm: camera: common: Add a check for 0 reg-val pairs in cdm command
Add a check for reg-val count=0 in reg_random command. Count=0 in
reg_random cdm command will throw an invalid command HW error.

CRs-Fixed: 2916477
Change-Id: Idb8654c3752963cf5a52147d350e291208b917d0
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-04-20 12:17:50 -07:00
Karthik Anantha Ram
df415f79ad msm: camera: icp: Check for negative BW path index
Validate per path BW index to ensure it's not negative.
During IDLE time for a given IPE/BPS stream the BW structure is
memset to 0x0 forcing the index and vote to 0. On the next instance
when BW is to removed for the given stream from consolidated
BW value the computed index turns out to be less than zero leading
to an invalid array access. This change validates the index
prior to access.

CRs-Fixed: 2841729
Change-Id: I944f07015538323578b9728053a590686ee20d1a
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-04-20 08:57:17 -07:00
Jigar Agrawal
76857940be msm: camera: reqmgr: Propagate hw failures to user
Propagate error code to user in order to let the
user know more about the failure.

CRs-Fixed: 2860306
Change-Id: Icf030aa9df32eac97371059c2d282cfb53257401
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-04-19 19:07:15 -07:00
Mukund Madhusudan Atre
30d8880fda msm: camera: isp: Move constraint error info to header
Move constraint error bitmasks to header for vfe and sfe.
Add WM name to sfe header.

CRs-Fixed: 2841729
Change-Id: Ia5d18f1a348fabe9679acc3c50983392d8864613
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2021-04-19 11:46:05 -07:00
Jigar Agrawal
5992dd4885 msm: camera: common: Fix NULL pointer dereference
Set the debugfs root entry pointer to null after
recursive remove at unbinding to prevent null pointer
dereference by kernel followed by kernel panic. Also,
add checks to avoid null pointer dereference.

CRs-Fixed: 2920490
Change-Id: I5a4f44f3d8f533f3a51e108472d5ccf93c261a98
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-04-19 11:25:07 -07:00