Commit Graph

3116 Commitit

Tekijä SHA1 Viesti Päivämäärä
Abhijit Trivedi
00d121a3ad Merge "msm: camera: csiphy: Add support for SM8750" into camera-kernel.lnx.7.0 2023-08-09 15:02:47 -07:00
Camera Software Integration
9c0b4e1ae6 Merge "Snap for drop 07/28/2023 mainline 1029 LA.VENDOR.14.3.0.AU330" into camera-kernel.lnx.7.0 2023-08-02 16:40:37 -07:00
Camera Software Integration
1361bffa3d Merge "msm: camera: icp: Add support for fw pas id" into camera-kernel.lnx.7.0 2023-08-02 16:40:36 -07:00
Camera Software Integration
926e348031 Merge "msm: camera: tfe: Read last consumed address in top half" into camera-kernel.lnx.7.0 2023-08-02 16:40:35 -07:00
Camera Software Integration
07c2e923bd Merge "msm: camera: isp: removing dead code" into camera-kernel.lnx.7.0 2023-08-02 16:40:34 -07:00
Camera Software Integration
eb74ee07ee Merge "msm: camera: isp: Don't add buffer tracker ref count for input buffer" into camera-kernel.lnx.7.0 2023-08-02 16:40:33 -07:00
Camera Software Integration
b05761ede6 Merge "Snap for drop 07/27/2023 mainline 1028 LA.VENDOR.14.3.0.AU306" into camera-kernel.lnx.7.0 2023-08-02 16:40:33 -07:00
Camera Software Integration
13a574cab0 Merge "msm: camera: isp: Fix crash issue for sfe bus error case" into camera-kernel.lnx.7.0 2023-08-02 16:40:31 -07:00
Haritha Chintalapati
ac55dc9c9f Snap for drop 07/26/2023 mainline 1027 LA.VENDOR.14.3.0.AU306
camera-kernel:
7c6cd3b5 Merge 'msm: camera: isp: config hw modification for presil' into camera-kernel.lnx.dev.

Change-Id: I12ed8791f4548dc280ccaa16a1a6e534a6161311
Signed-off-by: hchintal <quic_hchintal@quicinc.com>
2023-08-01 14:53:27 -07:00
Haritha Chintalapati
e3de0d7237 Snap for drop 07/28/2023 mainline 1029 LA.VENDOR.14.3.0.AU330
camera-kernel:
11f7a941 Merge 'msm: camera: isp: removing dead code' into camera-kernel.lnx.dev
acd5b96a Merge 'msm: camera: icp: Add support for fw pas id' into camera-kernel.lnx.dev
a695f867 Merge 'msm: camera: isp: Don't add buffer tracker ref count for input buffer' into camera-kernel.lnx.dev
eb85bedc Merge 'msm: camera: tfe: Read last consumed address in top half' into camera-kernel.lnx.dev.

Change-Id: I629686e7b646af0bfb99a91eb89e4380a0b9ba6e
Signed-off-by: hchintal <quic_hchintal@quicinc.com>
2023-07-31 18:01:09 -07:00
Haochen Yang
84f44ecf86 msm: camera: icp: Add support for fw pas id
This change retrieves CAM_FW_PAS_ID from ICP node in
DTSI instead of hardcoding by macros when loading firmware.
It provides forward compatibility for 2 ICP instances
with their own fw pas id.

CRs-Fixed: 3550697
Change-Id: I0bff4d01edebcf028e48dba25d65378adbd42ad6
Signed-off-by: Haochen Yang <quic_haocyang@quicinc.com>
2023-07-31 18:01:08 -07:00
Pranav Sanwal
ef6d34e2a6 msm: camera: tfe: Read last consumed address in top half
Move the read of consumed addr to bus top half, as the tasklet
may delay and cannot readout the consumed addr in time.

CRs-Fixed: 3543220
Change-Id: I89a00ce0596747b79f3b5e0f66c72e760711829b
Signed-off-by: Pranav Sanwal <quic_psanwal@quicinc.com>
2023-07-31 18:01:06 -07:00
Atiya Kailany
44f7e67c65 msm: camera: isp: removing dead code
This change removes an unused variable and its declaration.

CRs-Fixed: 3394193
Change-Id: I45561570fd501ba0314e5b43dfe4a6f138fe641f
Signed-off-by: Atiya Kailany <quic_akailany@quicinc.com>
2023-07-31 18:01:04 -07:00
Chengxue Shen
f4216475b9 msm: camera: isp: Don't add buffer tracker ref count for input buffer
While release sHDR RDI buffer, the ref count of buffer tracker still
larger than 1 lead to page fault, we needn't add buffer tracker ref
count for RDI input io config, only add buffer tracker ref count for
output buffer.

CRs-Fixed: 3561743
Change-Id: I3f1f9f7827c340b688be6aa58fba9340dd0876ad
Signed-off-by: chengxue <quic_chengxue@quicinc.com>
2023-07-31 18:01:02 -07:00
Haritha Chintalapati
523f6777bc Snap for drop 07/27/2023 mainline 1028 LA.VENDOR.14.3.0.AU306
camera-kernel:
7ab58d6c Merge 'msm: camera: isp: Fix crash issue for sfe bus error case' into camera-kernel.lnx.dev.

Change-Id: I23701e660da56232a8e25a2055c939bcadd935c8
Signed-off-by: hchintal <quic_hchintal@quicinc.com>
2023-07-28 10:48:58 -07:00
Stark Lin
b1ec7821ce msm: camera: isp: Fix crash issue for sfe bus error case
There is a fairly high probability of crashing the device when
encountering SFE BUS error, this change fixes the issue.

CRs-Fixed: 3566948
Change-Id: I0049000766de4923632447c8aecfd15b20627c16
Signed-off-by: Stark Lin <quic_starlin@quicinc.com>
2023-07-28 10:48:53 -07:00
Suraj Dongre
54407407dd msm: camera: isp: config hw modification for presil
Added code to avoid clk bw update and wait for config done for every
request when cam_presil_mode is enabled.

CRs-Fixed: 3321317
Change-Id: I64b06a081d4c80757aef4903459d58dba85bfb5f
Signed-off-by: Suraj Dongre <quic_sdongre@quicinc.com>
Signed-off-by: Mukund Madhusudan Atre <quic_matre@quicinc.com>
2023-07-28 10:48:45 -07:00
Shravya Samala
011cc16eb5 msm: camera: sync: Restructure sync device structure
Currently sync_device structure size allocated is nearly 424kb
which is leading to more than accepted page size order.
Sync table row which is array of 2048 is accounting
nearly 90% of total size of sync_device. To fix this
sync_table_row is made pointer based and allocated memory.

CRs-Fixed: 3558545
Change-Id: I0c8093c91ac7fec9f52613012b139192b827b8d9
Signed-off-by: Shravya Samala <quic_shravyas@quicinc.com>
2023-07-28 10:48:45 -07:00
hchintal
8a88a07cd0 Snap for drop 07/24/2023 mainline 1025 & 1024 LA.VENDOR.14.3.0.AU306
camera-kernel:
6db21196 Merge "msm: camera: common: Fix double-free scenario" into camera-kernel.lnx.dev
d7afb6e0 Merge "msm: camera: sync: Update synx handle state" into camera-kernel.lnx.dev
9354b5f2 Merge "msm: camera: reqmgr: Reset apply map for all pd tables on bubble" into camera-kernel.lnx.dev
24f4d690 Merge "msm: camera: tfe: Fix compilation for TFE" into camera-kernel.lnx.dev
2f552111 Merge "msm: camera: isp: Remove needless member of struct event_info" into camera-kernel.lnx.dev
b8c5808e Merge "msm: camera: cdm: Fixing memory leak in cdm driver" into camera-kernel.lnx.dev
f8ad0ac1 Merge "msm: camera: isp: Update WM config in case of dual ife" into camera-kernel.lnx.dev
14f4c091 Merge "msm: camera: isp: Update the value of macro CAM_ISP_BW_CONFIG_V3" into camera-kernel.lnx.dev.

Change-Id: I882480513ed7f1c23f10b428675bf0df5620eeda
Signed-off-by: hchintal <quic_hchintal@quicinc.com>
2023-07-26 16:01:10 -07:00
Karthik Anantha Ram
669bd35816 msm: camera: reqmgr: Reset apply map for all pd tables on bubble
Reset apply map for all devices for the bubbled request for it
to be re-applied correctly.

CRs-Fixed: 3560153
Change-Id: I48e40b6edbfaa6ea60b8d8fb4155e8a612ab3c76
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2023-07-26 15:59:45 -07:00
Karthik Anantha Ram
fadf0e5db2 msm: camera: sync: Update synx handle state
On signaling the synx handle, mark the row as signaled.

CRs-Fixed: 3565287
Change-Id: I88f0d6a8455eecf62ffb084c0a540179d41fa64c
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2023-07-26 15:59:21 -07:00
Li Sha Lim
0fc752119d msm: camera: common: Fix double-free scenario
In situations where there are multiple flush requests,
a double-free of buffer tracker occurs when the sync
callback which operates in a workqueue contexts interrupts
an ongoing flush request operation. This change provides
the fix to prevent it from happening.

CRs-Fixed: 3554278
Change-Id: I675b22b76c0f10fcf1808dc3fe0bc48ebd19a2e4
Signed-off-by: Li Sha Lim <quic_lishlim@quicinc.com>
2023-07-26 15:58:55 -07:00
Pranav Sanwal
eff9517e23 msm: camera: tfe: Fix compilation for TFE
Fix TFE related compilation failiures in lnx.dev branch.

CRs-Fixed: 3543205
Change-Id: Ie9582f52a5e0960d419d4e791c58e16ae4c7209e
Signed-off-by: Pranav Sanwal <quic_psanwal@quicinc.com>
2023-07-26 15:58:28 -07:00
Chandan Jha
4252b1f555 msm: camera: cdm: Fixing memory leak in cdm driver
Free allocated memory in case of error scenario during
cdm interrupt handling.

CRs-Fixed: 3555034
Change-Id: Id0bcdd3a0ce4b78ffb13aa1655f886f808a8b4a0
Signed-off-by: Chandan Kumar Jha <quic_cjha@quicinc.com>
2023-07-26 15:57:15 -07:00
Chandan Jha
113320bfd5 msm: camera: isp: Update WM config in case of dual ife
Update properly WM config in case of dual ife usecase.

CRs-Fixed: 3545754
Change-Id: I730fb01408ea1281898b38c3e4897b84e884e366
Signed-off-by: Chandan Kumar Jha <quic_cjha@quicinc.com>
2023-07-26 15:56:30 -07:00
Ming Pan
032cd5a542 msm: camera: isp: Update the value of macro CAM_ISP_BW_CONFIG_V3
The value of macro CAM_ISP_BW_CONFIG_V3 should be 3,
but the current value is 2, we need to update it.

CRs-Fixed: 3558398
Change-Id: Iab07cc08434e31c22890f5f1311e9010ecd460d6
Signed-off-by: mingpan <quic_mingpan@quicinc.com>
2023-07-26 15:54:57 -07:00
Stark Lin
b45055890c msm: camera: isp: Remove needless member of struct event_info
When encountering errors on vfe bus, there is no need to set
a param to mark all the error out ports, using existig member
res_id is enough to deal with cases. Thus removing the newly
added member out_port_id of struct event_info to avoid burdensome
code.

CRs-Fixed: 3506350
Change-Id: I44a10b578a867a73509f1458ae182ceb7373b4a3
Signed-off-by: Stark Lin <quic_starlin@quicinc.com>
2023-07-26 14:53:37 -07:00
Stark Lin
c0377f2bff msm: camera: isp: Isp irq injection framework
This change constructs a framework of ISP IRQ injection which
adds support for HW err IRQ simulation.

CRs-Fixed: 3430944
Change-Id: I9552d0aa8b4672bfa04bfc78714d87b72140ad9a
Signed-off-by: Stark Lin <quic_starlin@quicinc.com>
2023-07-26 14:53:35 -07:00
Wang Kan
7d852cc75c msm: camera: csiphy: Add support for SM8750
This change adds bring up sequence header and
driver support for SM8750.

CRs-Fixed: 3557518
Change-Id: I6daddb5bca67032a5bfd3bc30bbd3d076f8599a4
Signed-off-by: Wang Kan <quic_wkan@quicinc.com>
2023-07-18 17:36:12 -07:00
hchintal
5346e6db3f Snap for drop 07/13/2023 mainline 1019 LA.VENDOR.14.3.0.AU306
camera-kernel:
975fc2fd Merge "msm: camera: common: Fixing memory leak issues" into camera-kernel.lnx.dev
7693043d Merge "msm: camera: csiphy: Update CSIPHY header for SM8650" into camera-kernel.lnx.dev
6f0d4678 Merge "msm: camera: csiphy: Remove duplicate register settings" into camera-kernel.lnx.dev
9efa74a6 Merge "msm: camera: sensor: support streamon/streamoff can be updated" into camera-kernel.lnx.dev
19ff1e74 Merge "msm: camera: utils: revert to Add support for cesta hw client voting through mmrm" into camera-kernel.lnx.dev.

Change-Id: I54656bf5398f680b2e37a085a0572e498ef95117
Signed-off-by: hchintal <quic_hchintal@quicinc.com>
2023-07-13 18:36:14 -07:00
Atiya Kailany
2bb45ffd4c msm: camera: common: Fixing memory leak issues
This change removes some dead code and fixes memory leak
issues and mismatched labels.

CRs-Fixed: 3394193
Change-Id: Ieb6f0d56cddc58be4caea6f0aece63a793a08c07
Signed-off-by: Atiya Kailany <quic_akailany@quicinc.com>
2023-07-13 17:36:44 -07:00
Atiya Kailany
1abd303a6f msm: camera: utils: revert to Add support for cesta hw client voting through mmrm
Currently, cesta hw client rates are being set through mmrm, camera
passes clk rate required and voting happens on mmrm side. This reverts that
funtionality and allows camera to use qcom_clk_crm api to vote directly
in util layer without passing to mmrm.

CRs-Fixed: 3385745
Change-Id: I0b9c6f6f3fc3c7d1513abd7ccf1d2d7180851c61
Signed-off-by: Atiya Kailany <quic_akailany@quicinc.com>
2023-07-13 17:36:34 -07:00
Wang Kan
e7ef91e5cc msm: camera: csiphy: Update CSIPHY header for SM8650
This change updates CSIPHY header for SM8650.
Modify some register values for short channel
from 80Msps to 1Gsps.

CRs-Fixed: 3557454
Change-Id: I0fee8747baec55c6712d4a803bfc421320b57626
Signed-off-by: Wang Kan <quic_wkan@quicinc.com>
2023-07-13 17:36:27 -07:00
Wang Kan
4ae361e5f6 msm: camera: csiphy: Remove duplicate register settings
Remove data rate settings from common register array.
This change is to avoid re-programming same registers,
with different values.

CRs-Fixed: 3554020
Change-Id: Ia397f669ba97c73a73c3a31fb80b5c233cdb5dd5
Signed-off-by: Wang Kan <quic_wkan@quicinc.com>
2023-07-13 17:36:21 -07:00
zhaocao
aefe177f6d msm: camera: sensor: support streamon/streamoff can be updated
Remove restriction that we can only configure streamon/streamoff
from cslpacket once. streamoff packets should not be rejected
when last request to flush.

Change-Id: I0691540f01181fa9f2d6a216537d5f55256d8815
CRs-Fixed: 3524017
Signed-off-by: zhaocao <quic_zhaocao@quicinc.com>
2023-07-13 17:36:13 -07:00
hchintal
8c1fe158ac Snap for drop 07/12/2023 mainline 1018 LA.VENDOR.14.3.0.AU306
camera-kernel:
38821970 Merge "msm: camera: reqmgr: Enhance the injecting delay" into camera-kernel.lnx.dev
ea7d9da7 Merge "msm: camera: ife: Remove NULL pointer dereference logic in IFE hw manager" into camera-kernel.lnx.dev.

Change-Id: I6b1543417a80154a91f43b0b1688dabd941489bb
Signed-off-by: hchintal <quic_hchintal@quicinc.com>
2023-07-12 18:36:27 -07:00
Depeng Shao
bd7f01665c msm: camera: reqmgr: Enhance the injecting delay
This change updates the injecting delay logic to
support different delay value, e.g. 0,1,2. It also
support multi EOF applied devices in case multi
devices need to be applied at EOF.

CRs-Fixed: 3521003
Change-Id: I929d4211674a1376125dd5f8e55950da9ab3ed6b
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
2023-07-12 18:36:20 -07:00
Abhilash Kumar
947a93de53 msm: camera: ife: Remove NULL pointer dereference logic in IFE hw manager
While dumping information about already acquired IFE hw manager contexts,
we are iterating over IFE out resource list and SFE out resource list. Use
of 'max_ife_out_res' and 'max_sfe_out_res' has scope of reaching out of
bound and access unallocated memory.
This change makes use of number of IFE and SFE out resources stored in the
IFE hw manager context to iterate and dump the information properly and
thus solving the out of bounds access.

CRs-Fixed: 3550510
Change-Id: Ifeb7702209958f067a601ca591bb273820e98e1c
Signed-off-by: Abhilash Kumar <quic_krabhi@quicinc.com>
2023-07-12 18:36:14 -07:00
hchintal
937ca2ac97 Snap for drop 07/10/2023 mainline 1016 LA.VENDOR.14.3.0.AU306
camera-kernel:
99f7bad6 Merge "msm: camera: core: Avoid active list reinit" into camera-kernel.lnx.dev.

Change-Id: Ic9f23d125d5ee309d7f8e9ae8dc0722430326bac
Signed-off-by: hchintal <quic_hchintal@quicinc.com>
2023-07-10 15:36:19 -07:00
Karthik Anantha Ram
a1d72156a6 msm: camera: core: Avoid active list reinit
Reinitialize active list only after the flush call to the
respective driver's HW layer.

CRs-Fixed: 3546603
Change-Id: Ib0a5cb208147d2c81717188e89acb5eba474b454
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2023-07-10 15:36:12 -07:00
hchintal
08c1f336bf Snap for drop 07/07/2023 mainline 1015 LA.VENDOR.14.3.0.AU306
camera-kernel:
1f51485c Merge "msm: camera: isp: csid test bus change" into camera-kernel.lnx.dev
9df50da9 Merge "msm: camera: utils: Add support for LowSVS_D1" into camera-kernel.lnx.dev
d3a99aba Merge "msm: camera: smmu: Do not remap a buffer to the same device" into camera-kernel.lnx.dev
5e3aed7f Merge "msm: camera: isp: Change error print into rate limit logs" into camera-kernel.lnx.dev
6d86a147 Merge "msm: camera: isp: Remove redundant CSID global SW reset" into camera-kernel.lnx.dev
5f8210ea Merge "msm: camera: csiphy: Refine MINK API usage for secure camera" into camera-kernel.lnx.dev.

Change-Id: I87ba80a2810c02aa8b31b84bb99a01a7e00432a5
Signed-off-by: hchintal <quic_hchintal@quicinc.com>
2023-07-07 16:36:10 -07:00
Soumen Ghosh
282a1e7866 msm: camera: isp: csid test bus change
setting value to reset controller, which issues the sync reset to all,
CSID registers and also sends reset to bus.

CRs-Fixed: 3550726
Change-Id: I897d3db876149337864c9889fb99d89d9df3ac43
Signed-off-by: Soumen Ghosh <quic_soumeng@quicinc.com>
2023-07-07 16:06:46 -07:00
Karthik Anantha Ram
34582e7146 msm: camera: isp: Remove redundant CSID global SW reset
When the camera subsystem is powered on (titan_top), async reset
is issued thereby ensuring clean state for all CSIDs. At the
start of the use-case, issuing a sync global SW reset is
redundant, and can be avoided. At the end of the use-case, issue
a SW sync global reset thereby ensuring all SWI registers are
wiped out for the CSID and all connected cores. The sync global
reset also ensures the rx decoder is also reset.

CRs-Fixed: 3545161
Change-Id: I0f5e25bad8508f72b2a0395df4dafc368f71243c
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2023-07-07 16:06:41 -07:00
Atiya Kailany
57f43538c7 msm: camera: utils: Add support for LowSVS_D1
Currently, lowest clk voting level supported is LowSVS, this
change will add support to a lower voting level, LowSVS_D1.

CRs-Fixed: 3480799
Change-Id: Ibdfe9d1d05aa45439a537cebe828cceea83f39d4
Signed-off-by: Atiya Kailany <quic_akailany@quicinc.com>
2023-07-07 16:06:34 -07:00
Chandan Kumar Jha
06420c01fc msm: camera: isp: Change error print into rate limit logs
Changing error logs into rate limit logs to avoid
excessive logging.

CRs-Fixed: 3522504
Change-Id: I773fbdc1ae0cc38dd7b6793381c266a47f9bc93d
Signed-off-by: Chandan Kumar Jha <quic_cjha@quicinc.com>
2023-07-07 16:06:27 -07:00
Vijay Kumar Tumati
77c1ce29af msm: camera: smmu: Do not remap a buffer to the same device
If a buffer is already mapped to a device or a context bank,
do not try to map it again. This causes inconsistency between
the number of times it is attached and detached.

CRs-Fixed: 3510467
Change-Id: I1cfa5bc68edae1147562c3bbf3609c278d837bcd
Signed-off-by: Vijay Kumar Tumati <quic_vtumati@quicinc.com>
2023-07-07 16:06:18 -07:00
Vijay Kumar Tumati
db988fcff4 msm: camera: csiphy: Refine MINK API usage for secure camera
Use MINK API for all the targets that support domain ID and
use legacy API for all other targets. In addition, use a
target based macro to not compile the MINK API for the
older targets where those APIs are not defined.

Change-Id: I0d8f05df6ca8126db1e3ad8456fe78aa77a33ebf
CRs-Fixed: 3529425
Signed-off-by: Vijay Kumar Tumati <quic_vtumati@quicinc.com>
2023-07-07 16:06:10 -07:00
hchintal
a795d64c87 Snap for drop 07/06/2023 mainline 1014 LA.VENDOR.14.3.0.AU306
camera-kernel:
b102eba8  Merge "msm: camera: icp: Remove icp dev type info" into camera-kernel.lnx.dev.

Change-Id: I63556915c5e85aea7d3ae48ce17fa7de9f12ecda
Signed-off-by: hchintal <quic_hchintal@quicinc.com>
2023-07-06 20:06:14 -07:00
Wang Kan
d8d21bbe93 msm: camera: icp: Remove icp dev type info
This change removes icp dev type info when
logs have icp ctx string. Because icp string
includes dev type info.

CRs-Fixed: 3542004
Change-Id: Ib7464b3937aaddf0efc27d731865a1631e8cf9cc
Signed-off-by: Wang Kan <quic_wkan@quicinc.com>
2023-07-06 18:06:13 -07:00
hchintal
9abd2a9dc4 Snap for drop 06/30/2023 mainline 1011 LA.VENDOR.14.3.0.AU299
camera-kernel:
4d453843 Merge "msm: camera: csiphy: Change csiphy datarate default channel from std to short" into camera-kernel.lnx.dev.

Change-Id: Ia7052d76da68341080cfaf35dd31ad036e772156
Signed-off-by: hchintal <quic_hchintal@quicinc.com>
2023-07-05 17:51:37 -07:00