Graf commitů

1629 Commity

Autor SHA1 Zpráva Datum
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
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
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
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
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
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
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
Camera Software Integration
ee9ba1b583 Merge "msm: camera: isp: Update the reported_req_id correctly" into camera-kernel.lnx.5.0 2021-05-21 18:44:44 -07:00
Camera Software Integration
dc93f615f8 Merge "msm: camera: isp: Change module tag in IFE bus log" into camera-kernel.lnx.5.0 2021-05-21 18:44:27 -07:00
Karthik Anantha Ram
2bd790e7d7 msm: camera: isp: Unsubscribe for discard frame trigger in bh
Avoid unsubscribing for discard trigger irq in th, which leads
to freeing evt_handler structure resulting in usage of a
dangling pointer thereafter in top half.

CRs-Fixed: 2841729
Change-Id: I93e600ba32524c2df563c03b18819cb636b48826
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-05-21 14:41:39 -07:00
Depeng Shao
abf580c09c msm: camera: isp: Update the reported_req_id correctly
The request id is updated to 0 when the substate is
BUBBLE, then the original request id can't be notified
to UMD, since the reported_req_id is already updated to
the original request id. This change updateds the
reported_req_id only when the final request id is
valid.

CRs-Fixed: 2932602
Change-Id: Ib30f849782283c647f784cfb0deb49bee3d04287
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
2021-05-19 22:27:37 -07:00
Vikram Sharma
ecf0d0de02 msm: camera: cre: Add batch support in CRE
This change adds the batch mode support in CRE

CRs-Fixed: 2893978
Change-Id: I9a8f9f1f2f555bc875b3d48485b4458a825dbdbd
Signed-off-by: Vikram Sharma <vikramsa@codeaurora.org>
2021-05-19 21:20:37 -07:00
Haritha Chintalapati
3b517e500a Merge "msm: camera: isp: Configure RX before issuing start command" into camera-kernel.lnx.5.0 2021-05-19 18:19:02 -07:00
Haritha Chintalapati
d0b9221ad8 Merge "msm: camera: isp: Do not reset Rx register during disable decoder" into camera-kernel.lnx.5.0 2021-05-19 18:18:46 -07:00
Haritha Chintalapati
3d252948c1 Merge "msm: camera: csiphy: Correct tag for programming lane enable" into camera-kernel.lnx.5.0 2021-05-19 18:18:35 -07:00
Haritha Chintalapati
1617f08acf Merge "msm: camera: csiphy: Dump PHY Status Registers" into camera-kernel.lnx.5.0 2021-05-19 18:18:25 -07:00
Haritha Chintalapati
14beba2b6a Merge "msm: camera: csiphy: Update the bringup sequence" into camera-kernel.lnx.5.0 2021-05-19 18:18:13 -07:00
Haritha Chintalapati
dfa3a31d87 Merge "msm: camera: csiphy: Cleanup unused variables in csiphy" into camera-kernel.lnx.5.0 2021-05-19 18:17:59 -07:00
Haritha Chintalapati
de04aae87b Merge "msm: camera: sensor: Initialize list head" into camera-kernel.lnx.5.0 2021-05-19 18:17:47 -07:00
Haritha Chintalapati
f4d36c1591 Merge "msm: camera: isp: Add SFE core idx in CSID error notify" into camera-kernel.lnx.5.0 2021-05-19 18:17:34 -07:00
Karthik Anantha Ram
bb3922ce93 msm: camera: isp: Change module tag in IFE bus log
Change module tag from SFE to ISP in IFE bus file.
Also update error code to success for bus debug config.

CRs-Fixed: 2841729
Change-Id: I0c648aeef2864cd55a0940c73235087c7de9d910
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-05-19 12:59:10 -07:00
Haritha Chintalapati
9403d67af9 Merge "msm: camera: isp: Modify check for multi vc-dt" into camera-kernel.lnx.5.0 2021-05-18 19:31:11 -07:00
Haritha Chintalapati
0cb5b301c9 Merge "msm: camera: isp: Force all IFE/SFE RDIs to line based mode" into camera-kernel.lnx.5.0 2021-05-18 19:30:59 -07:00
Haritha Chintalapati
305939800d Merge "msm: camera: cre: unit test fixes" into camera-kernel.lnx.5.0 2021-05-18 19:30:39 -07:00
Anand Ravi
fcc85e1bb2 msm: camera: isp: Configure RX before issuing start command
Prevent potential errors on starting path after flush by issuing start
command after configuring RX.

CRs-Fixed: 2846451
Change-Id: Ib72fc9f0b8397f360f5bed73379ec65310cdc609
Signed-off-by: Anand Ravi <ananravi@codeaurora.org>
2021-05-18 14:44:42 -07:00
Gaurav Jindal
3f42dc6055 msm: camera: isp: Do not reset Rx register during disable decoder
During disabling the CSI2, do not reset the rx registers to 0.
This can result in random behaviors if the phy is streaming.
Just disable the IRQs and let the stream off call handle the
reset part.

CRs-Fixed: 2946879
Change-Id: I936ea4026c72033a665958281d7f07751b4ae708
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2021-05-18 15:55:27 +05:30
Haritha Chintalapati
0b6491cf0e Merge "msm: camera: isp: Add state check in CSID driver" into camera-kernel.lnx.5.0 2021-05-17 21:08:35 -07:00
Haritha Chintalapati
aa1afed6a0 Merge "msm: camera: cpas: fix for Shima-CAMNOC RDI latency buffer corruption" into camera-kernel.lnx.5.0 2021-05-17 21:08:30 -07:00
Haritha Chintalapati
0b2fea9e18 Merge "msm: camera: isp: Add 128 bit width support for RDI WM" into camera-kernel.lnx.5.0 2021-05-17 21:08:25 -07:00