Wykres commitów

1599 Commity

Autor SHA1 Wiadomość Data
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
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
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
Vikram Sharma
455abec717 msm: camera: cre: unit test fixes
Fixes for the issues found in Unit testing of CRE.

CRs-Fixed: 2893978
Change-Id: I7b8061cf2fd4693bde084a003bc101be1cbde1d1
Signed-off-by: Vikram Sharma <vikramsa@codeaurora.org>
2021-05-17 01:13:41 -07:00
Karthik Anantha Ram
7f6ac037d5 msm: camera: isp: Modify check for multi vc-dt
Modify check for multi vc-dt. The change also programs the
right value for dynamic switch select.

CRs-Fixed: 2841729
Change-Id: I9b7459f77d65a83f3d559967a04d81357f7c6de3
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-05-15 18:47:37 -07:00
Karthik Anantha Ram
cf25a62ef5 msm: camera: isp: Force all IFE/SFE RDIs to line based mode
Change mode of all RDI WMs to line based mode to account for
SFE ZSL RAW 80 byte stride alignment. This change is to make
it generic for all RAW outputs. If the mode needs to be made
frame based, userland will override it.

CRs-Fixed: 2841729
Change-Id: I87705c2b035df905d76fbbe80e170991c2230135
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-05-15 18:45:38 -07:00
Haritha Chintalapati
32b6adfc86 Merge "msm: camera: isp: Reset device enabled during CSID stop" into camera-kernel.lnx.5.0 2021-05-14 19:38:42 -07:00
Jigarkumar Zala
ddb022b1fa msm: camera: csiphy: Correct tag for programming lane enable
Lane enable needs to be program with header tag LANE_ENABLE. This
change adds the tag associated with the correct register offset.

CRs-Fixed: 2929063
Change-Id: Ibbb8e4e0fc2d2de8e9c9f193b3d31ba5492b22f4
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2021-05-14 16:53:51 -07:00
Jigar Agrawal
bbb5baee0a msm: camera: csiphy: Dump PHY Status Registers
Add support to dump the 3ph and 2ph specific
status registers. Following debugfs command can
be used to enable status register dump for csiphy0:
adb shell
  "echo 1>/sys/kernel/debug/camera_csiphy/csiphy0_en_status_reg_dump"

CRs-Fixed: 2942364
Change-Id: If8d57a9e54c9e509de35f6a57d7baa1895be7779
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-05-14 16:46:18 -07:00
Karthik Anantha Ram
2053cf1569 msm: camera: isp: Add SFE core idx in CSID error notify
It's possible that for a given use-case the pipeline is
CSID2->SFE0->IFE2, in the event of an overflow we need to log
the right SFE's debug registers. Unlike IFE we cannot use
CSID hw_idx to find the SFE core in the pipeline. The change
ensures we log the connected SFE core's debug registers.

CRs-Fixed: 2841729
Change-Id: I2beda7496b95a2b7c1aafc8cfcfcdde662c31898
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-05-14 13:59:05 -07:00
Haritha Chintalapati
6dc28f8c2d Merge "msm: camera: isp: Prevent false timeout in dual IFE reset" into camera-kernel.lnx.5.0 2021-05-13 12:05:45 -07:00
Haritha Chintalapati
b14f3420a7 Merge "msm: camera: isp: Set RDI only context flag for CSID resource node" into camera-kernel.lnx.5.0 2021-05-13 12:05:31 -07:00
Haritha Chintalapati
8fc496e430 Merge "msm: camera: isp: Move clock voting to common vfe top" into camera-kernel.lnx.5.0 2021-05-13 12:05:16 -07:00
Haritha Chintalapati
64d562975b Merge "msm: camera: isp: Do not handle recoverable errors as fatal" into camera-kernel.lnx.5.0 2021-05-13 12:04:45 -07:00
Haritha Chintalapati
0542af5b27 Merge "msm: camera: utils: Enable using mmrm API in camera" into camera-kernel.lnx.5.0 2021-05-13 12:04:28 -07:00
Haritha Chintalapati
2e994b2c81 Merge "msm: camera: utils: Add using mmrm in camera" into camera-kernel.lnx.5.0 2021-05-13 12:03:54 -07:00
Haritha Chintalapati
c166730fd2 Merge "msm: camera: cpas: Add qchannel register info for v680 hw" into camera-kernel.lnx.5.0 2021-05-13 12:03:33 -07:00
Haritha Chintalapati
6f47c080ff Merge "msm: camera: cpas: Move camnoc register offsets to header" into camera-kernel.lnx.5.0 2021-05-13 12:03:14 -07:00
Gaurav Jindal
4ea7741460 msm: camera: isp: Reset device enabled during CSID stop
Device enabled flag is not set during stop preventing the
buf done irq mask to be set during next start without disabling
the core.
This commit adds device_enabled flag to false during csid stop
call.

CRs-Fixed: 2943893
Change-Id: Ic9c6a86219a6e3761b50817c94c0e6b89a6fde95
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2021-05-12 11:56:59 +05:30
Jigar Agrawal
91b2c7464c msm: camera: csiphy: Update the bringup sequence
Add Support to program the output_bus_select register
at the end of programming all the lanes.

CRs-Fixed: 2942604
Change-Id: I0279aa6bc824b75e3df1c62c3f69d146ec80b356
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-05-11 15:38:27 -07:00
Jigar Agrawal
b0a2135f5f msm: camera: csiphy: Cleanup unused variables in csiphy
Clean up unused variables from the csiphy code. Also,
update the code for better readability.

CRs-Fixed: 2942364
Change-Id: I601e06fd8a61607a69390c10124a70f2c7e60dd8
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-05-11 10:58:48 -07:00
Wyes Karny
b5416e8ab1 msm: camera: isp: Add 128 bit width support for RDI WM
Add 128 bit width support for RDI WM.
Add rdi_width in the HW based register header file.
Based on this rdi_width set RDI width for RDI WM.

CRs-Fixed: 2944087
Change-Id: I941229141822e499fce0ef6ef30012345d463529
Signed-off-by: Wyes Karny <wkarny@codeaurora.org>
2021-05-11 22:16:20 +05:30
Gaurav Jindal
3c5d098303 msm: camera: isp: Add state check in CSID driver
In stability test cases, it is possible that some CSID hw registers
is accessed after being power down.
This adds state checks before accessing the CSID hw registers.

Change-Id: I1b5d7873f58f2e21043338037b82c233fa773de9
CRs-Fixed: 2934815
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2021-05-11 15:51:54 +05:30
Anand Ravi
6a35b87cdd msm: camera: isp: Prevent false timeout in dual IFE reset
In dual IFE case, HW reset times out because completion struct gets
reinited after reset IRQ is received and before going into wait. During
SW reset, 3 IRQs are observed, 2 during master reset and 1 during slave.
This can cause the done count in the completion struct to be increment
by 1 for the slave CSID during SW reset and result in incorrect
reporting of IRQs during the next reset call.

To solve this problem, there are two reinit_completion calls:
	1. Pre-reset command: Only for SW reset. This is to clear the
	completion struct in the cases of HW reset timeout followed by
	reset IRQ or slave reset IRQ triggerred by master.
	2. Post-reset command: For both HW and SW reset. This is to
	clear the completion struct after successful reset command to
	use it again during next reset.

CRs-Fixed: 2846451
Change-Id: I6d416a63e6d7e3828e55d1deece56b38a349f99f
Signed-off-by: Anand Ravi <ananravi@codeaurora.org>
2021-05-07 19:53:05 -07:00
Haritha Chintalapati
59495e3681 Merge "msm: camera: isp: Change acquire logic for SFE streams" into camera-kernel.lnx.5.0 2021-05-07 19:35:21 -07:00
Haritha Chintalapati
047807a4ca Merge "msm: camera: isp: Enable separate base for CSID lite" into camera-kernel.lnx.5.0 2021-05-07 19:24:27 -07:00
Gaurav Jindal
9b395a90b5 msm: camera: isp: Do not handle recoverable errors as fatal
Flag fatal_err_detected is getting set for recoverable errors
as well. This causes  false propagation of errors.
This commit removes the handling of recoverable errors as fatal.

CRs-Fixed: 2940802
Change-Id: I25710287efe918d8f97618ca24eea57378abed3c
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2021-05-07 13:29:54 +05:30
Alok Pandey
ae8c86426c msm: camera: cpas: fix for Shima-CAMNOC RDI latency buffer corruption
This is a fix to handle line corruption on RDI stream by giving more
priority to IFE traffic. This is specific to SHIMA CAMNOC design.

- Set Priority for IFE (RT) stream to P6.
- OT = 55 for IPE RD.
- IPE clk to be capped to SVS.

CRs-Fixed: 2887253
Change-Id: Ica574742052f018e94072240a0fd1d08be223727
Signed-off-by: Alok Pandey <akumarpa@codeaurora.org>
2021-05-07 12:14:50 +05:30
Mukund Madhusudan Atre
3fe8a6bac8 msm: camera: cpas: Add qchannel register info for v680 hw
Before powering down Top HM, qchannel handshake needs to be
done to ensure camnoc is idle. Add qchannel register info
to enable handshake on v680 hardware.

CRs-Fixed: 2841729
Change-Id: I55c240dc0f780fb5f8339dbd0a2d9aa4ef280be4
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2021-05-06 23:28:53 -07:00
Mukund Madhusudan Atre
98b269d0b0 msm: camera: isp: Move clock voting to common vfe top
Currently, clock update function is same between different
vfe top versions. Move clock voting functions to common
top to avoid duplication.

CRs-Fixed: 2841729
Change-Id: I2504632a260ea18f8b5e38e65395db95375588bb
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2021-05-06 23:25:18 -07:00
Mukund Madhusudan Atre
a9c89d1f41 msm: camera: cpas: Move camnoc register offsets to header
Currently, camnoc buffer fill level register offsets are part
of cpas monitoring. Register offsets keep changing between
targets which would bring more conditionals. Make cpas monitoring
generic by moving register offsets to header. Also, the reg values
will be read in a buffer, and it can be controlled what offset
needs to be read, by changing status in header to be enable/disable.
Also, move camnoc fill level printing to CPAS for when we need only
buffer fill info.

CRs-Fixed: 2841729
Change-Id: I05425b4466d33dbef80eb8a0a1b5e974a6965600
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2021-05-06 23:18:41 -07:00
Haritha Chintalapati
756edf7cf2 Merge "msm: camera: isp: Fix HW index to IFE HW mapping logic" into camera-kernel.lnx.5.0 2021-05-06 20:32:10 -07:00
Haritha Chintalapati
3d62e633cc Merge "msm: camera: isp: Enable sys cache usage" into camera-kernel.lnx.5.0 2021-05-06 20:32:06 -07:00