Commit graph

1,105 commits

Author SHA1 Message Date
Camera Software Integration
2f9eab3e04 Merge "msm: camera: isp: Correct halt command for Yupik camera" into camera-kernel.lnx.4.0 2021-02-01 21:37:55 -08:00
Sridhar Gujje
bf2c5a30cd Revert "msm: camera: isp: IFE and CSID probe based on fuse"
This reverts commit afb3736650.

Change-Id: I6f77e1c24a14eacff6a7a3b7e74726557343fd45
Signed-off-by: Sridhar Gujje <sgujje@codeaurora.org>
2021-02-01 12:48:04 +05:30
Camera Software Integration
96bf548345 Merge "msm: camera: isp: IFE and CSID probe based on fuse" into camera-kernel.lnx.4.0 2021-01-29 06:32:04 -08:00
Ayush Kumar
39c0ecd734 msm: camera: isp: Correct halt command for Yupik camera
This change is to correct csid halt command and correct qos setting
for Yupik camera.

CRs-Fixed: 2825675
Change-Id: I002a3f5864f6c157249465bdf71d268b547eb196
Signed-off-by: Ayush Kumar <ayushkr@codeaurora.org>
2021-01-29 15:08:30 +05:30
Camera Software Integration
bb9384903a Merge "msm: camera: isp: Correct assignment of clock rates" into camera-kernel.lnx.4.0 2021-01-27 04:11:21 -08:00
Camera Software Integration
58bd7464d1 Merge "msm: camera: csiphy: Update the csiphy programming sequence" into camera-kernel.lnx.4.0 2021-01-27 04:10:45 -08:00
Camera Software Integration
f1416aafcf Merge "msm: camera: csiphy: Trigger ISP callback on phy clock change" into camera-kernel.lnx.4.0 2021-01-27 04:10:30 -08:00
Camera Software Integration
2b445c5810 Merge "msm: camera: ope: Handle OPE smmu fault with pid info" into camera-kernel.lnx.4.0 2021-01-26 07:37:40 -08:00
Camera Software Integration
f56937ec60 Merge "msm: camera: common: Improve the CSID logging" into camera-kernel.lnx.4.0 2021-01-26 07:37:27 -08:00
Camera Software Integration
ebd6997ee8 Merge "msm: camera: cci: Add report id in report command for CCI I2C queue" into camera-kernel.lnx.4.0 2021-01-26 07:37:05 -08:00
Jigar Agrawal
f36a214704 msm: camera: csiphy: Update the csiphy programming sequence
Update the 3 phase bring up sequence for csiphy1.2.3 header
to align with version_8 updated on 01/08/2021.

CRs-Fixed: 2856350
Change-Id: I06b164fbb0a589f22f973476709008d0c7ac32ca
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-01-20 14:56:32 -08:00
Shravya Samala
e1ea9edec2 msm: camera: isp: Correct assignment of clock rates
If there is no change in CSID and TFE clock rates
then correctly assign current clock rates to local
varaibles.

CRs-Fixed: 2855742
Change-Id: Ibd71274ba7a7844c3841060eb3b3b14ba80ed4b0
Signed-off-by: Shravya Samala <shravyas@codeaurora.org>
2021-01-20 16:55:50 +05:30
Vikram Sharma
2e1910ed07 msm: camera: ope: Handle OPE smmu fault with pid info
Kernel apis provide information fault caused pid and mid data.
Handle the OPE smmu fault using pid and mid data. Based on the
mid data, dump only corresponding port info which caused the
fault. Pid and mid values are target dependent, these values
will be updated on the ope node dt entries.

CRs-Fixed: 2857868
Change-Id: I909f1787e71e67e5ed1d3464dfeb506418d151e4
Signed-off-by: Vikram Sharma <vikramsa@codeaurora.org>
2021-01-19 20:32:48 -08:00
Jigar Agrawal
1996f82b71 msm: camera: common: Improve the CSID logging
Improve CSID irq logging for better debugging.
Add support to dump the hw source clock.

CRs-Fixed: 2808577
Change-Id: I06608588ef7a6e0ebc174a1ba138f6e16a9094f2
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-01-19 12:30:25 -08:00
shiwgupt
d280856962 msm: camera: cci: Add report id in report command for CCI I2C queue
-Report id is a unique 4-bit value associated with the report command.
 Interrupt is generated on each report command execution. This change
 helps to know whether interrupt is received for a corresponding report
 id. Report id can be checked in REPORT_STATUS register. This change
 adds report id in report command of CCI I2C queue as per HPG.

CRs-Fixed: 2857533
Change-Id: I0c3066962e21c7c024e67ae81ecb762ba331e329
Signed-off-by: shiwgupt <shiwgupt@codeaurora.org>
2021-01-19 11:11:10 +05:30
shiwgupt
851a04fce1 msm: camera: csiphy: Trigger ISP callback on phy clock change
Trigger callback to ISP each time when there is a change
in phy clock so that csid and tfe clock rates can be
updated accordingly. Argument passed in callback api is
the final phy clock rate that is applied.

CRs-Fixed: 2854066
Change-Id: Ia74465e4082e08b4c50338e0eb779f996afa2795
Signed-off-by: shiwgupt <shiwgupt@codeaurora.org>
2021-01-19 10:42:32 +05:30
Vikram Sharma
c3f06e4d02 msm: camera: isp: Add new packer format to support LSB alignment
Add new packer format to support LSB alignment for plain16_10
packer format.

CRs-Fixed: 2825675
Change-Id: I401241dc14dc67d3b363d3d39b37aabe716e167c
Signed-off-by: Vikram Sharma <vikramsa@codeaurora.org>
2021-01-15 10:29:13 +05:30
Camera Software Integration
168408b487 Merge "msm: camera: isp: Maintain clock rate relation between CSIHPY, CSID and TFE" into camera-kernel.lnx.4.0 2021-01-13 03:16:37 -08:00
Camera Software Integration
8aca4051fc Merge "msm: camera: cdm: corrected submit bl logic" into camera-kernel.lnx.4.0 2021-01-11 23:38:15 -08:00
Camera Software Integration
03e07e03dc Merge "msm: camera: cpas: Add mechanism to check camnoc idle status" into camera-kernel.lnx.4.0 2021-01-11 23:37:45 -08:00
Camera Software Integration
74553e55b8 Merge "msm: camera: cpas: Add version map entry for 680 titan version" into camera-kernel.lnx.4.0 2021-01-11 23:37:26 -08:00
Sridhar Gujje
1fbbac1512 Revert "msm: camera: jpeg: Add more data in case of smmu pf"
This reverts commit 0204c76b58.

Change-Id: I43ff50e01db0ac0cc2b9b56753198ef1653d942a
Signed-off-by: Sridhar Gujje <sgujje@codeaurora.org>
2021-01-12 11:16:35 +05:30
Shravya Samala
c15edd4c3d msm: camera: isp: Maintain clock rate relation between CSIHPY, CSID and TFE
Added checks to confirm CSID frequency greater than
CSIPHY frequency, TFE frequency greater than CSID
frequency. Also TFE frequency should be such that
it can accommodate PHY data rate.

CRs-Fixed: 2847155
Change-Id: I5d3dcc53a6f27129f4b82cba1254445f58f6d0cf
Signed-off-by: Shravya Samala <shravyas@codeaurora.org>
2021-01-07 04:21:26 -08:00
Ayush Kumar
afb3736650 msm: camera: isp: IFE and CSID probe based on fuse
Some ISP hardware id instances are disabled on some target skus.
Cpas driver has fuse information based on the dtsi entries.
ISP hw driver queries the cpas driver whether hw instance is
supported or not. If ISP hardware is supported on the target then
continue the isp hardware probe.

CRs-Fixed: 2825675
Change-Id: I37f059c6591f3a6e57277029859e1b8b0e48905d
Signed-off-by: Ayush Kumar <ayushkr@codeaurora.org>
2021-01-05 23:33:04 -08:00
Linux Build Service Account
38b96be690 Merge "msm: camera: isp: Add YUV support in CAMIF" into camera-kernel.lnx.4.0 2021-01-05 08:36:30 -08:00
Ayush Kumar
cce99f8e4f msm: camera: cpas: Add version map entry for 680 titan version
This change add cpas hw version map entry for 680 titan
version. And remove cpas version check for ubwc support.

CRs-Fixed: 2825675
Change-Id: I858838a5a774c964a1a09d96114442f69058670a
Signed-off-by: Ayush Kumar <ayushkr@codeaurora.org>
2021-01-05 17:22:06 +05:30
Alok Chauhan
3f527598f0 msm: camera: cpas: Add mechanism to check camnoc idle status
Qchannel interface is used to ensure camnoc is idle. This needs
to be check before camera core power collapse and after camera core
power on sequence to make sure camera hw blocks are in proper state.

CRs-Fixed: 2847646
Change-Id: If9dbd980c2e8e983ac973f91e3d1ed132719c395
Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
2021-01-04 17:03:19 +05:30
Alok Chauhan
66d043d43a msm: camera: cdm: corrected submit bl logic
CDM driver check for available bl fifo slots before
submitting to HW. If no free slots available then
it wait for CDM HW to process all the BLs and return
available slots.

CDM driver was incorrectly calculating the available bl
slots and causing bl fifo overflow.

Corrected the sequence in wait for bl fifo logic.

CRs-Fixed: 2837583
Change-Id: I2861f8c66822e0739f0546eaf153d8e2af0caefe
Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
2021-01-04 12:28:08 +05:30
Camera Software Integration
d12abfb4fd Merge "msm: camera: csiphy: Add logic to program common register" into camera-kernel.lnx.4.0 2021-01-03 13:39:01 -08:00
Camera Software Integration
4e272cc9e3 Merge "msm: camera: jpeg: Add more data in case of smmu pf" into camera-kernel.lnx.4.0 2021-01-03 13:38:24 -08:00
Camera Software Integration
c4a7cddc88 Merge "msm: camera: isp: increase number of hw entries" into camera-kernel.lnx.4.0 2021-01-03 13:38:12 -08:00
Gaurav Jindal
472804a0fc msm: camera: isp: Add YUV support in CAMIF
Add support to configure the incoming format in the top
core Camif register. Changes in CSID file to support YUV
TPG are also integrated.

CRs-Fixed: 2846873
Change-Id: I87fa0171a60013ba356a33455170cf1ecfbb0563
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2020-12-31 09:49:53 +05:30
Camera Software Integration
b37352f969 Merge "msm: camera: reqmgr: check validity of last_applied_idx" into camera-kernel.lnx.4.0 2020-12-29 03:13:58 -08:00
Vikram Sharma
0204c76b58 msm: camera: jpeg: Add more data in case of smmu pf
When we have smmu page fault of unmapped address and
active flag is false we can cache and store unmapped
address and print in case of error.
Added check for last flushed req during config hw for
jpeg as well.

CRs-Fixed: 2834236
Change-Id: I9b9bb735587799871f9bdef94985f6269ca6a29d
Signed-off-by: Vikram Sharma <vikramsa@codeaurora.org>
2020-12-28 22:52:39 -08:00
Camera Software Integration
2f911b9c72 Merge "msm: camera: cdm: Improve cdm logging" into camera-kernel.lnx.4.0 2020-12-26 08:42:52 -08:00
Camera Software Integration
ec58f3768c Merge "msm: camera: tfe: Change debug fs directory name" into camera-kernel.lnx.4.0 2020-12-26 08:42:23 -08:00
Wyes Karny
e3d11961d1 msm: camera: isp: Reset num_deferred_acks when re-applying bubble req
When re-applying bubble request after 2 frames reset num_deferred_acks
also.

CRs-Fixed: 2824276
Change-Id: I57e7ac89da69a2d65546c6f9a7f1d3c9f2c7e58f
Signed-off-by: Wyes Karny <wkarny@codeaurora.org>
2020-12-21 17:48:53 +05:30
Shravya Samala
af9556d493 msm: camera: tfe: Change debug fs directory name
Change debug fs directory name from IFE to TFE

CRs-Fixed: 2837303
Change-Id: I1871ad37338bc2d2aa001b6c81f92e2215a010b8
Signed-off-by: Shravya Samala <shravyas@codeaurora.org>
2020-12-21 02:37:23 -08:00
Camera Software Integration
731273dd7a Merge "msm: camera: csiphy: Update the csiphy logging" into camera-kernel.lnx.4.0 2020-12-18 04:00:08 -08:00
Jigarkumar Zala
d8083b5025 msm: camera: csiphy: Add logic to program common register
All csiphy hw common register need to program on first streamon
from any of csiphy hw in order to reduce the noise interferance
for other csiphy hw.

CRs-Fixed: 2839793
Change-Id: I256307b8b909da4a940be25a3aab60e8a301b6f8
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2020-12-17 22:37:47 -08:00
Camera Software Integration
d9576f9f68 Merge "msm: camera: cdm: Added cdm power state check" into camera-kernel.lnx.4.0 2020-12-17 06:42:23 -08:00
Camera Software Integration
dc2f71ddb6 Merge "msm: camera: icp: Update a5 qos values post reset" into camera-kernel.lnx.4.0 2020-12-17 06:42:06 -08:00
Camera Software Integration
273ce862cd Merge "msm: camera: isp: Fix for disable UBWC case" into camera-kernel.lnx.4.0 2020-12-17 06:41:20 -08:00
Tejas Prajapati
8694f8c885 msm: camera: reqmgr: check validity of last_applied_idx
last_applied_idx is updated on every successful applied
request and the buf_done. After buf_done last_applied_idx
is set to -1. While accessing last applied req the same
index is used, if the last_applied_idx is -1 accessing
last applied request will result in slab out of bound
error, so check last_applied_idx before accessing
last applied request.

CRs-Fixed: 2840329
Change-Id: I8f49b9df097859cde20e651149167db7316976bb
Signed-off-by: Tejas Prajapati <tpraja@codeaurora.org>
2020-12-17 13:02:14 +05:30
Camera Software Integration
e85bc42150 Merge "msm: camera: icp: Increase hfi poll retry rate" into camera-kernel.lnx.4.0 2020-12-16 04:25:47 -08:00
Camera Software Integration
b0c61c9593 Merge "msm: camera: isp: Fix type mismatch arguments in indirect function calls" into camera-kernel.lnx.4.0 2020-12-16 04:25:31 -08:00
Jigar Agrawal
8d269581d0 msm: camera: cdm: Improve cdm logging
Improve the CDM logging for better debugging purpose.

CRs-Fixed: 2836601
Change-Id: I75213e17edf2fb42204a6e3d983a76892362b1d4
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2020-12-15 21:01:11 -08:00
Jigar Agrawal
7809f88ad5 msm: camera: csiphy: Update the csiphy logging
Update the csiphy logging for better debugging purpose.

CRs-Fixed: 2839060
Change-Id: I8af110ae895ee09cdf9404d0e6d6165188a6db55
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2020-12-15 17:18:55 -08:00
Alok Chauhan
8fcc66faf4 msm: camera: cdm: Added cdm power state check
There is chance that handle error info get scheduled
after cdm deinit. As clock and regulator gets disabled
as part of deinit so this can cause issue for cdm hw
interaction as part of handle error.

Added cdm power state check before dumping CDM HW
status at the time of error.

CRs-Fixed: 2833653
Change-Id: I4bf01ce3900196909cf66ffdb24607c50ab03295
Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
2020-12-15 06:38:42 -08:00
Alok Chauhan
91eddafa10 msm: camera: isp: increase number of hw entries
increase number of hw entries to allocate sufficient memory
for cdm bl commands.

CRs-Fixed: 2837487
Change-Id: Id890ab07cc66ef704a1317d545540f36dfc7f3c2
Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
2020-12-15 11:32:43 +05:30