Commit Graph

1678 Commits

Author SHA1 Message Date
Karthik Jayakumar
9e5bc7a1f4 msm: camera: common: Fix dma_attr_t types
Fixes typecasts from dma_attr_t types to uint32_t types for memory
management.

CRs-Fixed: 2948659
Change-Id: Ie3898176195ac508f1a922a5e499e6e33ac8e490
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
2021-06-23 10:09:24 -07:00
Savita Patted
b215805307 Merge "msm: camera: req_mgr: Fix deadlock in ICP driver in close" into camera-kernel.lnx.5.0 2021-06-21 18:39:25 -07:00
Savita Patted
68de607556 Merge "msm: camera: req_mgr: Enhance camera v4l2 subdev shutdown sequence" into camera-kernel.lnx.5.0 2021-06-21 18:38:47 -07:00
Savita Patted
af4bcd716a Merge "msm: camera: isp: Fix the assignment of bubble_detected" into camera-kernel.lnx.5.0 2021-06-17 15:26:18 -07:00
Savita Patted
451ab299cb Merge "msm: camera: isp: Make frameheader address 256byte aligned" into camera-kernel.lnx.5.0 2021-06-17 15:25:55 -07:00
Savita Patted
12876b5ea7 Merge "msm: camera: isp: Remove hw version checks from camif" into camera-kernel.lnx.5.0 2021-06-17 15:25:33 -07:00
Savita Patted
960ab09d83 Merge "msm: camera: isp: Avoid possible NOC crash in case of overflow" into camera-kernel.lnx.5.0 2021-06-17 15:24:53 -07:00
Depeng Shao
2e7c5fcf1b msm: camera: isp: Fix the assignment of bubble_detected
Fix the assignment of bubble_detected.

CRs-Fixed: 2948932
Change-Id: Ie9a289f732d12a0238e643e81c8a5bbdcaca059a
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
2021-06-16 01:53:04 -07:00
Gaurav Jindal
042e596c30 msm: camera: isp: Avoid possible NOC crash in case of overflow
In case of path errors, CSID debug registers are printed after sending
the error event to hw manager. In some scenarios, work queue calling the
stop hw can be called before printing the registers. This can cause
NOC errors while accessing the registers.
This commit moves the printing of registers to single location just
before sending the event to hw manager.

CRs-Fixed: 2962255
Change-Id: I929741cbe8211d4b3cb012588ea923ddd2e5a97c
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2021-06-16 10:15:01 +05:30
Karthik Anantha Ram
a5fbb956da msm: camera: isp: Disable/Enable SFE read masters dynamically
For dynamic switch use-cases, disable SFE RMs if they are not
used. Enable them if there is a switch utilizing that RM.
This is the HW recommendation for dynamic switch use-cases.

CRs-Fixed: 2841729
Change-Id: I93732fddced02c4e375635143de3f122f37ef008
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-06-15 09:38:48 -07:00
Karthik Anantha Ram
311380c961 msm: camera: isp: Utility API to update hw map entries
Add a utility API in hw_mgr to update hw map entries for kmd buffer.
The change also addresses KW issues in hw_mgr.

CRs-Fixed: 2841729
Change-Id: Ic3f1bba5fb0057f750d12ff8e29ae0268b0c13b1
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-06-15 00:41:55 -07:00
Camera Software Integration
19d782fd36 Merge "msm: camera: isp: Add support for vertical binning in CSID" into camera-kernel.lnx.5.0 2021-06-10 17:32:46 -07:00
Camera Software Integration
90c43b56e8 Merge "msm: camera: isp: Remove HW restriction on SFE RDI0-2 inputs" into camera-kernel.lnx.5.0 2021-06-10 17:32:27 -07:00
Camera Software Integration
90afbb3e94 Merge "msm: camera: icp: Print lx7 status registers" into camera-kernel.lnx.5.0 2021-06-09 19:16:14 -07:00
Camera Software Integration
b02e40ded7 Merge "msm: camera: isp: Mask process_bubble for SHDR usecase" into camera-kernel.lnx.5.0 2021-06-09 19:15:25 -07:00
Camera Software Integration
69b929466b Merge "msm: camera: common: Multiple fixes for crm redesign" into camera-kernel.lnx.5.0 2021-06-09 19:15:15 -07:00
Camera Software Integration
bc895d1ad5 Merge "msm: camera: req_mgr: Re-design CRM to support multi links in sync mode" into camera-kernel.lnx.5.0 2021-06-09 19:15:05 -07:00
Karthik Anantha Ram
1b89b74b0a msm: camera: isp: Add support for vertical binning in CSID
Add support to obtain hint from userland to enable binning in
either direction. The change updates the existing binning field
in UAPI to provide provision for both vertical & horizontal
binning options.

CRs-Fixed: 2841729
Change-Id: I37958d648ed4387d9e2bff8bcff8ffd39801baa3
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-06-09 10:58:08 -07:00
Savita Patted
b06f482946 Merge "msm: camera: isp: Add new IRQ for CSID 780" into camera-kernel.lnx.5.0 2021-06-08 19:56:38 -07:00
Savita Patted
8c98bdf674 Merge "msm: camera: isp: Add support for CSID 780" into camera-kernel.lnx.5.0 2021-06-08 19:56:15 -07:00
Savita Patted
9f978d74a9 Merge "msm: camera: isp: Add new IRQ for VFE 780" into camera-kernel.lnx.5.0 2021-06-08 19:55:36 -07:00
Karthik Anantha Ram
c357648fcd msm: camera: icp: Print lx7 status registers
If lx7 collapse/resume fails dump status registers to help
narrow down the cause. The change also adds a write barrier
post HOST2ICP trigger.

CRs-Fixed: 2841729
Change-Id: I8201a1c84e0455044fccf88cc86a865bb89356a7
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-06-08 11:31:48 -07:00
Savita Patted
97a5608106 Merge "msm: camera: csiphy: Add work queue to trigger the status register" into camera-kernel.lnx.5.0 2021-06-07 18:55:36 -07:00
Savita Patted
afd6884a53 Merge "msm: camera: csiphy: Add debug enhancement for the pattern test" into camera-kernel.lnx.5.0 2021-06-07 18:52:33 -07:00
Savita Patted
be40177131 Merge "msm: camera: csiphy: Add support for enable/disable CSIRX for PRBS9" into camera-kernel.lnx.5.0 2021-06-07 18:52:00 -07:00
Savita Patted
5212a5ea23 Merge "msm: camera: isp: Update pdlib masks for v680 hw" into camera-kernel.lnx.5.0 2021-06-07 18:51:21 -07:00
Savita Patted
23f6977ce5 Merge "msm: camera: util: Fix printing of tag in trace logs" into camera-kernel.lnx.5.0 2021-06-07 18:50:34 -07:00
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
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