提交線圖

1804 次程式碼提交

作者 SHA1 備註 日期
Chandan Kumar Jha
e4525208a0 msm: camera: isp: Add new IRQ for CSID 780
Add new IRQ support in CSID driver for CSID 780.

CRs-Fixed: 2948116
Change-Id: I63f91ea1b61ec0b6c8a60a727bc01ad8a65f444d
Signed-off-by: Chandan Kumar Jha <cjha@codeaurora.org>
2021-06-07 09:43:49 -07:00
Gaurav Jindal
ce0e62c048 msm: camera: isp: Add support for CSID 780
Add support for CSID 780. Register header files are updated.

CRs-Fixed: 2948116
Change-Id: I57c264f4362c21666ce4ff106c00062b63b8fa10
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2021-06-07 21:17:02 +05:30
Depeng Shao
1d69c55f63 msm: camera: isp: Mask process_bubble for SHDR usecase
SHDR usecase doesn't report bubble to CRM, but we still
need to know whether it is processing bubble during
applying request, since we may haven't received the
reg update of the previous applied request, then
we have a chance to apply a new req to HW, this may
result in overflow issue. This change masks the
process_bubble for SHDR case during epoch in applied
sub state.

CRs-Fixed: 2948932
Change-Id: I699a2f59ea874693b78a918895db98727b95c634
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
2021-06-06 21:34:17 -07:00
Chandan Kumar Jha
f850c82c2d msm: camera: isp: Add new IRQ for VFE 780
Add new IRQ support in VFE driver for VFE 780.

CRs-Fixed: 2948116
Change-Id: Id4d3602b492b310216a477f0ed2f0325c4ffe2ad
Signed-off-by: Chandan Kumar Jha <cjha@codeaurora.org>
2021-06-06 21:46:41 +05:30
Jigarkumar Zala
3d281d2a45 msm: camera: csiphy: Add work queue to trigger the status register
Bist register status needs to be poll after sensor streaming. Start dev
ioctl is blocking call, so create a work queue which gets schedule
without blocking sensor streamon, and still can able to poll the status
register.

CRs-Fixed: 2943640
Change-Id: I1559188a86d76ed7e896429b001862e8753e492e
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2021-06-04 17:15:31 -07:00
Camera Software Integration
51efdc40d3 Merge "msm: camera: isp: Add 780 vfe header files" into camera-kernel.lnx.5.0 2021-06-04 16:22:43 -07:00
Camera Software Integration
04a8a731fc Merge "msm: camera: isp: Change SFE acquire logic" into camera-kernel.lnx.5.0 2021-06-04 16:22:19 -07:00
Camera Software Integration
5f637b3515 Merge "msm: camera: isp: Add top irq mask in header files" into camera-kernel.lnx.5.0 2021-06-04 16:22:09 -07:00
Camera Software Integration
039c52a2b2 Merge "msm: camera: isp: Fix condition for IFE fetch engine probe" into camera-kernel.lnx.5.0 2021-06-04 16:21:50 -07:00
Karthik Anantha Ram
ba469c8d5d msm: camera: isp: Remove HW restriction on SFE RDI0-2 inputs
On Waipio SFE HPG recommends usage of RDI0-2 in sync with RD0-2.
RDI3-4 to be used for meta data. But with OEMs wanting to use 3 RDIs
for meta data for sHDR we need to break this constraint. This change
allows for SFE RDIs to be acquired independent of SFE RDs.
The change also configures scratch buffers accordingly.

CRs-Fixed: 2841729
Change-Id: I4fa84bb34c51f4cff40f931df0f80b259528b4da
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-06-04 14:58:08 -07:00
Ayush Kumar
566ac7abf8 msm: camera: common: Multiple fixes for crm redesign
This change help to resolve below issues :-
1. Update frame duration calculation
   Add frame duration calculation with the use of fps. In some cases
   where horizonal blanking is more, frame duration calculation based
   on sof epoch calculation is not accurate.
2. Corner case in bubble handling
   Add support to handle master link bubble even if ISP linked with
   slave link receive few buf done irq for bubble request before master
   sends slave link to bubble state.

CRs-Fixed: 2783209
Change-Id: Ibf35f31f5263be7b6a6be6cd095447a2910a6878
Signed-off-by: Ayush Kumar <ayushkr@codeaurora.org>
2021-06-05 00:16:43 +05:30
Ayush Kumar
0259331da4 msm: camera: req_mgr: Re-design CRM to support multi links in sync mode
This change is to support multi links in sync mode. Supports dynmanic
switching to select master link in rtb and sat use case in sync mode.
Supports sync logic for rtb and sat use case in sync mode. Apply
requests for all links is triggered only on master epoch. Supports
bubble recovery and sync logic for different pd links in sync mode.

CRs-Fixed: 2783209
Change-Id: I81d1d0d37aa0d6e18c19ca87eac51ef3f160abfb
Signed-off-by: Ayush Kumar <ayushkr@codeaurora.org>
2021-06-04 20:23:00 +05:30
Camera Software Integration
5a107babe9 Merge "msm: camera: common: Remove Hw access during probe" into camera-kernel.lnx.5.0 2021-06-03 17:54:55 -07:00
Camera Software Integration
a87bd04ba8 Merge "msm: camera: common: Add common function to modify timer" into camera-kernel.lnx.5.0 2021-06-03 17:54:45 -07:00
Camera Software Integration
8ebe0b733d Merge "msm: camera: utils: debug mask for presil framework" into camera-kernel.lnx.5.0 2021-06-03 17:54:31 -07:00
Camera Software Integration
8501fd8d3d Merge "msm: camera: common: modify ipe bps reset to use common read poll" into camera-kernel.lnx.5.0 2021-06-03 17:54:19 -07:00
Camera Software Integration
97c6ec1a44 Merge "msm: camera: isp: Update constraint error debug info for vfe and sfe" into camera-kernel.lnx.5.0 2021-06-03 17:54:09 -07:00
Camera Software Integration
952e9ee520 Merge "msm: camera: uapi: Enable preamble control notification" into camera-kernel.lnx.5.0 2021-06-02 19:27:50 -07:00
Anand Ravi
db09e75c0e msm: camera: util: Fix printing of tag in trace logs
This commit fixes regression in printing trace logs caused by
'commit 27ad84d827 ("msm: camera: utils: Add support for multiline
printing to log buffers")'.

CRs-Fixed: 2960607
Change-Id: If136339286647ce21adbcb1425c905b045dac7ef
Signed-off-by: Anand Ravi <ananravi@codeaurora.org>
2021-06-02 16:17:03 -07:00
Karthik Anantha Ram
997629bcb8 msm: camera: isp: Change SFE acquire logic
There are only 2 SFE cores that can connect to 3 FULL CSIDs.
In addition to this it's possible to have concurrent QCFA & sHDR
pipelines. To accommodate such use-cases try acquiring SFE
of higher index for QCFA use-cases and start from SFE0 for fetch
engine based use-cases. In case of dualSFE assign SFE of lower
index to master CSID.

CRs-Fixed: 2841729
Change-Id: I35f23a52f81e97a974b8670da60dc9dbc6ef144f
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-06-02 13:52:39 -07:00
Ridhi Shah
ee83e6afc7 msm: camera: common: modify ipe bps reset to use common read poll
Multiplier in common read poll function helps presil to increase timeout.

CRs-Fixed: 2932495
Change-Id: I35241dd010eb123b734dabd6fe3613390823e8d6
Signed-off-by: ridhshah <ridhshah@codeaurora.org>
2021-06-02 12:13:07 -07:00
Camera Software Integration
4eb55453f1 Merge "msm: camera: reqmgr: Correct the count decrement logic" into camera-kernel.lnx.5.0 2021-06-02 12:07:26 -07:00
Pavan Kumar Chilamkurthi
2a7e58937a msm: camera: cpas: Enable icp QoS setting through camnoc for v780
ICP QoS priority can be controlled through camnoc on v780. Program
corresponding registers to set icp priority.

CRs-Fixed: 2948116
Change-Id: I50b9c570df0e3e9fd066ac20f49cfefcb3526a13
Signed-off-by: Pavan Kumar Chilamkurthi <pchilamk@codeaurora.org>
2021-06-02 11:30:27 -07:00
Pavan Kumar Chilamkurthi
8432cd49d1 msm: camera: cpas: Add cpas support for camera v780 platform
Add register and qos header for v780.

CRs-Fixed: 2948116
Change-Id: I486bac6987187cdba8851b8a81a4cc8be9b2cd64
Signed-off-by: Pavan Kumar Chilamkurthi <pchilamk@codeaurora.org>
2021-06-02 11:30:11 -07:00
Mukund Madhusudan Atre
98d31d3a7c msm: camera: common: Remove Hw access during probe
Remove HW access code during probe to avoid presil crash.

CRs-Fixed: 2932495
Change-Id: I9bcf357a6f5beb5f3c1c4a181a6db980909eddd5
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2021-06-02 11:12:27 -07:00
Mukund Madhusudan Atre
c31cb00512 msm: camera: common: Add common function to modify timer
Add common function to modify system timer, with timeout
multiplier as a debug capability.

CRs-Fixed: 2932495
Change-Id: I73282aa30b938b7efce97a2e8fd757b04096ccad
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2021-06-02 11:10:53 -07:00
Karthik Anantha Ram
0a9054daba msm: camera: isp: Fix condition for IFE fetch engine probe
Starting Waipio fetch engine is part of SFE HW block. During
IFE probe check against version to ensure it's probed only
if it exists. Update IFE HW idx in MMU prefetch log.

CRs-Fixed: 2841729
Change-Id: If6b28413fc0fe80e767e41521f244f5fbf99a334
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-06-01 15:00:10 -07:00
Mukund Madhusudan Atre
d4a022f1a6 msm: camera: isp: Update pdlib masks for v680 hw
Update pdaf sof and eof masks to match with spec.

CRs-Fixed: 2841729
Change-Id: I38451066eb909c62362b1560982a2c85054d9478
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2021-06-01 13:09:18 -07:00
Jigarkumar Zala
58819faeca msm: camera: csiphy: Add debug enhancement for the pattern test
Add support for prbs9 pattern debug and verification support for
3phase and 2phase sensor. This change prints the more information
in case of status error from any of the data lane.

CRs-Fixed: 2943640
Change-Id: I629703d066d119ad8670cbb91f92eba79ea43028
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2021-06-01 09:30:12 -07:00
Jigarkumar Zala
fc6644bcf5 msm: camera: csiphy: Add support for enable/disable CSIRX for PRBS9
CSI Rx needs to be enable/disable recieving prbs9 pattern based on
sensor mode settings. This change configure lane programming
based on the enable flag and make CSI hw in ready state to listen
PRBS9 pattern.

CRs-Fixed: 2943640
Change-Id: Idff5ed8f0bf0314932ff6dd0c91b5c8772997f05
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2021-06-01 09:29:37 -07:00
Jigarkumar Zala
2dbc434daa msm: camera: uapi: Enable preamble control notification
Enable preamble control notificaion for disable preprogrammed
CDR setting for certain resolution sensor mode.

CRs-Fixed: 2943640
Change-Id: I31705cd14239d5610c4f12c2d9e9417eead3c886
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2021-06-01 09:24:42 -07:00
Gaurav Jindal
d5b6ed06f4 msm: camera: isp: Add top irq mask in header files
This commit adds top irq mask in CSID register files. It allows
to change the bitmask as per chip revisions.
Eepoch masks are corrected. need_separate_base flag is removed
as it is no longer used.

CRs-Fixed: 2948116
Change-Id: Id93751818b7abb980d4d42456f6604d9be0ea22a
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2021-05-30 22:13:56 +05:30
Gaurav Jindal
aab4a85f58 msm: camera: isp: Add 780 vfe header files
Add vfe 780 header files.

CRs-Fixed: 2948116
Change-Id: Ibc569bad749f6b29448067330a1355f918e9eacd
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2021-05-30 19:45:32 +05:30
Mukund Madhusudan Atre
90a8140bc8 msm: camera: isp: Update constraint error debug info for vfe and sfe
Update debug status info for constraint violation in v680 hw.

CRs-Fixed: 2841729
Change-Id: I3576f1fb0d1caf56cbfe2e40c01aa407e6172299
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2021-05-28 20:43:29 -07:00
Mukund Madhusudan Atre
3ed9f1fab4 msm: camera: isp: Remove hw version checks from camif
Call cpas for dump camnoc buffer fill level info and
remove v680 cpas version check from camif as it is
not applicable.

CRs-Fixed: 2841729
Change-Id: I13ac6ffe1157ed433a7f2109597f8213cadeccc5
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2021-05-28 19:23:38 -07:00
Suraj Dongre
3266ccca59 msm: camera: utils: debug mask for presil framework
Add a new debug mask for presil framework core logic.
Update debug module to support more than 32 bit values.

CRs-Fixed: 2932495
Change-Id: Ia13a606c339d487fee7669ddccb9511c0c0567ca
Signed-off-by: Suraj Dongre <sdongre@codeaurora.org>
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2021-05-28 19:05:03 -07:00
Camera Software Integration
80f937e481 Merge "msm: camera: isp: Add support for BW limiter" into camera-kernel.lnx.5.0 2021-05-27 16:35:26 -07:00
Camera Software Integration
654340f587 Merge "msm: camera: config: Remove QSSI target check" into camera-kernel.lnx.5.0 2021-05-27 16:35:18 -07:00
Camera Software Integration
77e9b35bc7 Merge "msm: camera: reqmgr: Reset the slot if it is applied" into camera-kernel.lnx.5.0 2021-05-27 16:35:08 -07:00
Camera Software Integration
f37c5b5a11 Merge "msm: camera: cre: update image address correctly for 36bit iova" into camera-kernel.lnx.5.0 2021-05-27 16:34:59 -07:00
Camera Software Integration
07d1d19125 Merge "msm: camera: isp: Check ife out res validity" into camera-kernel.lnx.5.0 2021-05-26 15:37:47 -07:00
Karthik Anantha Ram
8dc42065be msm: camera: isp: Add support for BW limiter
Add blob to allow userland to configure BW limter for IFE/SFE
WMs. Deprecate usage of BW limiter field in UBWC blob.

CRs-Fixed: 2841729
Change-Id: Id39414e2a6f9e9f9f4ae33aa245f3ab6f3ad0f45
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-05-26 09:44:39 -07:00
Vikram Sharma
5ca9544430 msm: camera: cre: update image address correctly for 36bit iova
This change upadates the image address programming for 36bit
iova, both on read and write engine.

CRs-Fixed: 2893978
Change-Id: I37f556191b840ba794e7373d9aea5831dc90ab1b
Signed-off-by: Vikram Sharma <vikramsa@codeaurora.org>
2021-05-25 21:50:21 -07:00
Savita Patted
1d59084345 Merge "msm: camera: cre: Add batch support in CRE" into camera-kernel.lnx.5.0 2021-05-25 19:05:36 -07:00
Depeng Shao
2d0124f109 msm: camera: reqmgr: Reset the slot if it is applied
This change reset the slot when the next req is applied, it
should be caused by some exception before, we need to reset
this slot in case we applied wrong req to sub devices.

CRs-Fixed: 2949657
Change-Id: I0b5f7b1d8450ed355701090b185812fb7a6b6e06
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
2021-05-26 09:42:13 +08:00
Jigar Agrawal
1559a4b3dd msm: camera: reqmgr: Correct the count decrement logic
Correct the open requests count decrement logic.
Open request count decrements even when there is
no requests in the higher Pipeline_delay devices,
making the open request count negative.

CRs-Fixed: 2912147
Change-Id: If2d72f59a96290a2ccff59665af323da4329f9f4
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-05-25 16:04:12 -07:00
Pavan Kumar Chilamkurthi
8f6aa989d7 msm: camera: isp: Make frameheader address 256byte aligned
On some chipsets, frameheader needs to be 256 byte algined,
so add padding accordingly at the start of kmd buf.

CRs-Fixed: 2948659
Change-Id: I07994c90e307f92bdf5cba5685a1bf483fe7fbfa
Signed-off-by: Pavan Kumar Chilamkurthi <pchilamk@codeaurora.org>
2021-05-25 13:35:28 -07:00
Karthik Jayakumar
a4ba97982a msm: camera: config: Remove QSSI target check
Removes the QSSI check because TARGET_PRODUCT is deprecated in
Android S makefiles.

CRs-Fixed: 2953113
Change-Id: I85ed2b61ff5871fcb580058034ca5954138b60b8
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
2021-05-24 22:07:14 -07:00
Camera Software Integration
469372865d Merge "msm: camera: isp: Unsubscribe for discard frame trigger in bh" into camera-kernel.lnx.5.0 2021-05-24 19:52:43 -07:00
Vikram Sharma
c8d5a2827f msm: camera: isp: Check ife out res validity
This change adds validity check for ife out res. If ife out res is
NULL we can run into crash/issues.

CRs-Fixed: 2915741
Change-Id: I8722b2a4e2634bda42f0080e00bf09050bbd6b91
Signed-off-by: Vikram Sharma <vikramsa@codeaurora.org>
2021-05-24 10:56:46 -07:00