Commit Graph

3252 Commits

Author SHA1 Message Date
Pranav Sanwal
df1fca554b msm: camera: cpas: Add support for Raveline Camera
Add changes for cpas for raveline camera .
Create target specific header files for raveline.

CRs-Fixed: 3318758
Change-Id: Ib1bd54975a97bc4b09293cf8a82a1c3bbbeecb31
Signed-off-by: Pranav Sanwal <quic_psanwal@quicinc.com>
(cherry picked from commit fc03d26be204900d7e19054915b52fbd3353444f)
2023-12-05 14:36:58 +05:30
Camera Software Integration
7bc34c139c Merge "msm: camera: sensor: Remove mutex sensitive call in interrupt context" into camera-kernel.lnx.7.0 2023-12-03 19:50:55 -08:00
Camera Software Integration
a6195c5d0e Merge "msm: camera: cre: Fix concurrency issue for multi-context CRE use cases" into camera-kernel.lnx.7.0 2023-12-03 19:49:22 -08:00
Camera Software Integration
ddb486586c Merge "msm: camera: isp: Fix value of min hbi in CSID path" into camera-kernel.lnx.7.0 2023-12-03 19:48:46 -08:00
Camera Software Integration
de9479755d Merge "msm: camera: isp: Correct path data type for TFE lite" into camera-kernel.lnx.7.0 2023-12-03 19:48:38 -08:00
Camera Software Integration
f84ad2b1ad Merge "msm: camera: icp: Add missing mutex unlock" into camera-kernel.lnx.7.0 2023-12-03 19:48:31 -08:00
Camera Software Integration
7d82a270a3 Merge "msm: camera: tfe: Multiple fixes for TFE Lite" into camera-kernel.lnx.7.0 2023-11-27 02:18:01 -08:00
Camera Software Integration
b2565f210d Merge "msm: camera: tfe: TFE and CSID probe based on fuse" into camera-kernel.lnx.7.0 2023-11-27 02:17:42 -08:00
Camera Software Integration
5de13d5f6d Merge "msm: camera: isp: Don't enable TFE WM at Start HW" into camera-kernel.lnx.7.0 2023-11-27 02:15:51 -08:00
Camera Software Integration
1805af21ee Merge "msm: camera: tfe: initialise the flush and error dump id to max value" into camera-kernel.lnx.7.0 2023-11-27 02:14:14 -08:00
Camera Software Integration
7b0cf83ff8 Merge "msm: camera: tfe: correct wm configuration for LCR PD port" into camera-kernel.lnx.7.0 2023-11-27 02:12:24 -08:00
Alok Chauhan
5d7887b24d msm: camera: cpas: Update QOS value for camera
Updating correct QOS values for Camera, based on HW
recommendation.

CRs-Fixed: 3509972
Change-Id: I10d8e6126fa0d82efbcff0daf927adaea1deb32b
Signed-off-by: Alok Chauhan <quic_alokc@quicinc.com>
2023-11-27 02:10:33 -08:00
Camera Software Integration
3aa1230bdc Merge "msm: camera: cpas: Add support for Crow Camera" into camera-kernel.lnx.7.0 2023-11-27 02:09:14 -08:00
Haochen Yang
786833cd4e msm: camera: icp: Add missing mutex unlock
This change adds missing mutex unlock when the command descriptor
is not valid during configuring stream settings.

CRs-Fixed: 3663869
Change-Id: I891699141f8c1c1b6cdbafb0068d5c8117dacdf8
Signed-off-by: Haochen Yang <quic_haocyang@quicinc.com>
(cherry picked from commit 3a6161b01d7c7c5540d7019b70903dc60e9a84bc)
2023-11-27 01:53:32 -08:00
Shadul Shaikh
a6fbca726b msm: camera: sensor: Remove mutex sensitive call in interrupt context
Remove the function call, is getting clock rates with mutex locked
in interrupt context.

CRs-Fixed: 3615675

Change-Id: I838fbd0b211e454de812b7631a1bb8072072ec75
Signed-off-by: Shadul Shaikh <quic_shaduls@quicinc.com>
(cherry picked from commit a42bed83fbfd0dff1940ce7b221ee3370f1e917e)
2023-11-23 14:20:26 +05:30
Ayush Kumar
5fdbdc7281 msm: camera: isp: Fix value of min hbi in CSID path
This change is to fix the value of min hbi in csid
path cfg1 register.

CRs-Fixed: 3184294
Change-Id: I2db440d8edf29844ee87067f79465089b81c205e
Signed-off-by: Ayush Kumar <quic_ayushkr@quicinc.com>
(cherry picked from commit 9784b390cdcd1c518fe1ce85af12bd02390149e7)
2023-11-22 09:46:07 -08:00
Alok Chauhan
1d421a5dc0 msm: camera: isp: Correct path data type for TFE lite
Correct path data type incase if voting from TFE lite
during cpas start.

CRs-Fixed: 3509972
Change-Id: If2a0949f09a3ca6bd5afdca1f4b6c9202adf6334
Signed-off-by: Alok Chauhan <quic_alokc@quicinc.com>
(cherry picked from commit 5df6eed6590a1355dabe8b676aca6b67c033d239)
2023-11-22 08:22:15 -08:00
Ayush Kumar
52c7ce7ef9 msm: camera: cre: Fix concurrency issue for multi-context CRE use cases
Add list to track request while configuring and processing in
multi-context environment. This will avoid looping over wrong
context and accessing invalid request list.

CRs-Fixed: 3426117
Change-Id: I987abc7685a11a596cd3d2ba14ff2b141358d618
Signed-off-by: Ayush Kumar <quic_ayushkr@quicinc.com>
(cherry picked from commit 9e3f7d8a57c6ead740bb1261f461a38ae35bd57a)
2023-11-22 08:21:55 -08:00
Camera Software Integration
e383234b62 Merge "msm: camera: icp: fix out of range for devcount" into camera-kernel.lnx.7.0 2023-11-21 23:12:34 -08:00
jinguiw
efd58b1e1b msm: camera: icp: fix out of range for devcount
Fix loop range to hw_dev_cnt-1 to deal with out of range issue.

CRs-Fixed: 3660771
Change-Id: I5d8b76e44af04207ed4b68208474620fa9cb1b86
Signed-off-by: jinguiw <quic_jinguiw@quicinc.com>
(cherry picked from commit ead659d4bf783c37ff17af1bb4bc87edb4e64938)
2023-11-21 23:11:01 -08:00
Shravan Nevatia
5e66e1bf36 msm: camera: csiphy: Add support for dummy PHY settings
Add the CSIPHY_DNP_PARAMS macro to specify dummy PHY
settings. These settings will not be applied to HW
and can be used to pad the settings arrays.

CRs-Fixed: 3642100
Change-Id: I42859598996d6190b23111e8ac655bb34e174238
Signed-off-by: Shravan Nevatia <quic_snevatia@quicinc.com>
(cherry picked from commit b78027078dd6654f96f6d0472ebab09c6e1b088b)
2023-11-21 23:10:55 -08:00
Camera Software Integration
395c2c88e4 Merge changes I841105b4,I4a971058,I4697bb54 into camera-kernel.lnx.7.0
* changes:
  msm: camera: isp: Correct sync mode of HW in Dual TFE usecase
  msm: camera: isp: Fix crash if PPI hw is not present
  cam: tfe: Correct master select and halt mode
2023-11-21 23:06:52 -08:00
Camera Software Integration
669b0698c8 Merge "msm: camera: isp: Program PPP path core config from acquire data" into camera-kernel.lnx.7.0 2023-11-21 23:05:40 -08:00
Camera Software Integration
b68af30718 Merge "msm: camera: tfe: Add support RT CDM in TFE" into camera-kernel.lnx.7.0 2023-11-21 23:05:31 -08:00
Camera Software Integration
9c3ade469b Merge "msm: camera: tfe: Fixes for CSIM issues" into camera-kernel.lnx.7.0 2023-11-21 23:05:12 -08:00
Camera Software Integration
ff07076ebe Merge changes Ifd44dc75,Ieb6f1245,I16d53737,I34c5227b,I56dc1091, ... into camera-kernel.lnx.7.0
* changes:
  msm: camera: tfe: Add out of sync error handling
  msm: camera: tfe: Add PDAF support in tfe 770 header
  msm: camera: common: update msm-mmrm dependency to camera-kernel
  msm: camera: tfe: Add TFE and TFE LITE header file for 770 HW
  msm: camera: isp: Add support for PDAF HW
  msm: camera: tfe: Remove hardcoding of shift values
  msm: camera: isp: Add support for CSID 770
  msm: camera: tfe: Add support for TFE LITE HW
  msm: camera: tfe: Add MUP support for TFE HW
2023-11-21 00:28:50 -08:00
Camera Software Integration
224cae6a96 Merge "msm: camera: cpas: update the QOS setting" into camera-kernel.lnx.7.0 2023-11-21 00:26:52 -08:00
Ayush Kumar
aeef5b37db msm: camera: cpas: Add support for Crow Camera
This change adds camnoc interface changes and CPAS version
change for Crow camera.

CRs-Fixed: 3426117
Change-Id: I8735dc87ccd0ebcde98a53f6d695167fedb4cc35
Signed-off-by: Ayush Kumar <quic_ayushkr@quicinc.com>
2023-11-20 21:35:13 -08:00
Ayush Kumar
ed703b3236 msm: camera: tfe: Multiple fixes for TFE Lite
Increase count of maximum number of TFE HW supported and
corrected WM composite group number.

CRs-Fixed: 3426117
Change-Id: I4cf91bb92772c5be5a56783228c694fedf6c5ec7
Signed-off-by: Ayush Kumar <quic_ayushkr@quicinc.com>
2023-11-20 15:57:39 +05:30
Alok Chauhan
3e0200a7c2 msm: camera: tfe: TFE 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: 3509972
Change-Id: I4c57407e510c2dfcb764069b736a91a36523c3b3
Signed-off-by: Alok Chauhan <quic_alokc@quicinc.com>
2023-11-17 06:35:34 -08:00
Ayush Kumar
d010119b5d msm: camera: isp: Don't enable TFE WM at Start HW
This commit takes care of enabling Wm configurations for each
client only if io buffers are allocated.

CRs-Fixed: 3508184
Change-Id: I3af729742475a7ef5428fcda6c936e0c8799fdf9
Signed-off-by: Ayush Kumar <quic_ayushkr@quicinc.com>
2023-11-17 06:35:07 -08:00
Pranav Sanwal
b75f2bf506 msm: camera: tfe: initialise the flush and error dump id to max value
In case of error reported on req 0, regdump not triggering since
last dump err req id default value is 0.
Hence initialising with max value of uint64_t.

CRs-Fixed: 3503342
Change-Id: If370da47d824efbf881e6560cea27efa9d6a6c0d
Signed-off-by: Pranav Sanwal <quic_psanwal@quicinc.com>
2023-11-17 06:34:44 -08:00
Alok Chauhan
21fd48f502 msm: camera: tfe: correct wm configuration for LCR PD port
LCR PD port is configured wrongly to line based mode instead
of frame based mode. Correct the configuration for LCR PD port
to set right mode.

CRs-Fixed: 3478317
Change-Id: I336782ccd4aaca48fafd173e71819c159d1bf509
Signed-off-by: Alok Chauhan <quic_alokc@quicinc.com>
2023-11-17 06:34:20 -08:00
Ayush Kumar
c78e634e0c msm: camera: isp: Correct sync mode of HW in Dual TFE usecase
Sync mode is always master if any resource is acquire from
previously acquired HW. This change is to set correct value of
sync mode depend upon the usecase and acquired hw index.

CRs-Fixed: 3426117
Change-Id: I841105b4c14af6b8da589a7d74a5532ce6244e81
Signed-off-by: Ayush Kumar <quic_ayushkr@quicinc.com>
2023-11-17 06:33:57 -08:00
Alok Chauhan
3c3897ff1a msm: camera: isp: Fix crash if PPI hw is not present
Fix crash during CSID init/deinit sequence due to accessing
invalid ppi hw interface pointer incase if PPI hw is not
present in device.

CRs-Fixed: 3478317
Change-Id: I4a97105800d07407ecddd6611c10f4e481c133d7
Signed-off-by: Alok Chauhan <quic_alokc@quicinc.com>
2023-11-17 06:33:30 -08:00
Alok Chauhan
6edf576314 cam: tfe: Correct master select and halt mode
Correct master select and halt mode for single TFE in
IPP and PPP path.

CRs-Fixed: 3478317
Change-Id: I4697bb54b106b2459049d884303234315fd48fa7
Signed-off-by: Alok Chauhan <quic_alokc@quicinc.com>
2023-11-17 20:02:42 +05:30
Ayush Kumar
4690de76a8 msm: camera: isp: Program PPP path core config from acquire data
Program the PPP path based on core config value which is coming
from user space at acquire Hw.

CRs-Fixed: 3426117
Change-Id: I606dae35acb12a00fc835b00713a2610eb10ff01
Signed-off-by: Ayush Kumar <quic_ayushkr@quicinc.com>
2023-11-15 02:20:42 -08:00
Ayush Kumar
a0f8bde336 msm: camera: tfe: Add support RT CDM in TFE
This change adds support for RT CDM in TFE driver. For RT CDM,
mem base should be with respect to the base address of the TFE
wrapper. The first address the RT CDM can access is the base
address of TFE wrapper.

CRs-Fixed: 3426117
Change-Id: Ic5ca099e737b23fb2061678af5e7a85b65836763
Signed-off-by: Ayush Kumar <quic_ayushkr@quicinc.com>
2023-11-15 02:20:21 -08:00
Ayush Kumar
12099a7e27 msm: camera: tfe: Fixes for CSIM issues
This change adds fixes for all tfe issues faced during CSIM
validation. Adds required shift values in TFE header files.
Correct format for pdaf ports.

CRs-Fixed: 3426117
Change-Id: I3bf9c44e1ce108aa6247fea867d2b5161705b6bb
Signed-off-by: Ayush Kumar <quic_ayushkr@quicinc.com>
2023-11-15 02:19:44 -08:00
Pranav Sanwal
c2ad5cd913 msm: camera: tfe: Add out of sync error handling
problem:
Need to handle continuous out_of_sync_frame error that
may come due to mup/VC mismatch.

solution:
Handle the scenario by counting error occurences for a fixed
threshold since HW dosent generate SOF when this error comes
and triggering recovery.
Reset the count after the subsequent SOF is received.

CRs-Fixed: 3419224
Change-Id: Ifd44dc753385ae8cb8ce4b4cb283cd07aa8b2a44
Signed-off-by: Pranav Sanwal <quic_psanwal@quicinc.com>
2023-11-14 19:54:36 +05:30
Alok Chauhan
37ff9bad4d msm: camera: tfe: Add PDAF support in tfe 770 header
Add pdaf support in tfe header file for 770 target.

CRs-Fixed: 3387396
Change-Id: Ieb6f1245bd9ec7037fc6399bd3a8c081c96375a9
Signed-off-by: Alok Chauhan <quic_alokc@quicinc.com>
2023-11-14 19:51:55 +05:30
Alok Chauhan
c269eb35cf msm: camera: common: update msm-mmrm dependency to camera-kernel
Updates board list of supported msm-mmrm boards to include crow.

CRs-Fixed: 3387396
Change-Id: I16d53737b8bf981d86dddd13deadde01987c44d5
Signed-off-by: Alok Chauhan <quic_alokc@quicinc.com>
2023-11-14 19:50:04 +05:30
Ayush Kumar
ff740eb678 msm: camera: tfe: Add TFE and TFE LITE header file for 770 HW
This commit adds TFE and TFE LITE header file for titan
version 770 hardware.

CRs-Fixed: 3374385
Change-Id: I34c5227bc51e7911f584e219f5608af3dfcab9f8
Signed-off-by: Ayush Kumar <quic_ayushkr@quicinc.com>
2023-11-14 19:47:49 +05:30
Alok Chauhan
b5d8386049 msm: camera: isp: Add support for PDAF HW
This change add support for:
 - PDAF HW support handling in CSID and TFE driver
 - CSID PPP halt mode handling
 - Add support for new TFE PD ports (LCR, PD_PREPROCESSED
   PD_PARSED).

CRs-Fixed: 3387396
Change-Id: I56dc109138607fe7b342760a5c977e4126fe1676
Signed-off-by: Alok Chauhan <quic_alokc@quicinc.com>
2023-11-14 19:45:24 +05:30
Stuti Saxena
28aee302b2 msm: camera: tfe: Remove hardcoding of shift values
Problem Description:
Hardcoded shift values may vary with targets.

Solution:
Add support for reading shift values from target specific
header file to avoid hardcoding in tfe_bus and tfe_core files .

CRs-Fixed: 3390902
Change-Id: I7960e72f6b15c13c07cacc28a83fc27e7f452d8d
Signed-off-by: Stuti Saxena <quic_stutsaxe@quicinc.com>
2023-11-14 19:43:54 +05:30
Alok Chauhan
877008e9d6 msm: camera: isp: Add support for CSID 770
This change add support for
 - new CSID 770 HW
 - PDAF resource structure addition in header file.

CRs-Fixed: 3387396
Change-Id: I85ce8a05039657bb7da251e9141e94c9d5d6843f
Signed-off-by: Alok Chauhan <quic_alokc@quicinc.com>
2023-11-14 19:41:56 +05:30
Ayush Kumar
1d652f18cd msm: camera: tfe: Add support for TFE LITE HW
This commit adds support for TFE LITE HW.

CRs-Fixed: 3374385
Change-Id: I4a7eb792243fba07467060cb242f98638658d0ad
Signed-off-by: Ayush Kumar <quic_ayushkr@quicinc.com>
2023-11-14 19:37:21 +05:30
Ayush Kumar
7a9cd0d210 msm: camera: tfe: Add MUP support for TFE HW
This change add support for MUP in TFE HW. Also enable
interrupt if case of mup mismatch and add error bit in
header file to remove hardcoded values.

CRs-Fixed: 3350436
Change-Id: I5556fa3f8ab47fea16fe92007303eb68a5b80943
Signed-off-by: Ayush Kumar <quic_ayushkr@quicinc.com>
2023-11-14 19:33:17 +05:30
Dharmender Sharma
cbdb663a03 msm: camera: cpas: update the QOS setting
NRT2, NRT6 and NRT7 do not support urgency value 0x1003. So updating
urgency QOS setting to 0x1030 based on the SPT recommendation.

CRs-Fixed: 3660302
Change-Id: I245884672e26fe439eaf289d717bc1bfe845c7d0
Signed-off-by: Dharmender Sharma <quic_dharshar@quicinc.com>
2023-11-08 21:55:34 -08:00
Depeng Shao
56bb12e64b msm: camera: isp: Read last consumed addr again if no matching res
Bus layer just read the consumed address from one port per group,
sometimes, this port isn't requested by userland, so it can't
match with any requested resources. This change reads consumed
address from other port which in same composite group if the buf
done event can't match any requested resources.

CRs-Fixed: 3590441
Change-Id: I1590e9a53ef7eff1df65682ae4ca77b011d1af39
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
(cherry picked from commit 3ec040334581d347916871429de9374555656e4d)
2023-11-07 23:56:23 +05:30