Commit grafiek

2399 Commits

Auteur SHA1 Bericht Datum
Savita Patted
81b17b4ad2 Snap for drop 03/03/2022 mainline 733 LA.VENDOR.1.0.AU457
45d5b04 Merge "msm: camera: ife: use universal qtime-to-boottime offset for all cams" into camera-kernel.lnx.dev
9a1735e Merge "msm: camera: isp: Don't move substate to SOF" into camera-kernel.lnx.dev
f1057f7 Merge "msm: camera: isp: Update scratch buffer scheme for IFE/SFE" into camera-kernel.lnx.dev
6fc63b2 Merge "msm: camera: smmu: Fix misunderstanding buffer handle in smmu log" into camera-kernel.lnx.dev

Change-Id: I0cdb84efa110b3b82f95424c2af48c78afcd020a
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-03-03 17:37:43 -08:00
Li Sha Lim
d30d360635 msm: camera: ife: use universal qtime-to-boottime offset for all cams
Modify IFE timestamp calculation to use a single qtime-to-boottime offset
value for all cameras. This will allow more precise timestamp comparison
between cameras.

CRs-Fixed: 3050973
Change-Id: Ic16864f544ad88e0215ae4d05a077d874af78fe9
Signed-off-by: Li Sha Lim <quic_lishlim@quicinc.com>
2022-03-03 17:06:41 -08:00
Karthik Anantha Ram
b9aae5eaa6 msm: camera: isp: Update scratch buffer scheme for IFE/SFE
For ePCR/PCRs allow different combinations of scratch buffer
and ZSL buffer to be applied for different SFE/IFE ports.

CRs-Fixed: 3110947
Change-Id: I11677deaaa820955a2bc408bf90a848660ab831a
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2022-03-03 17:06:34 -08:00
Depeng Shao
05c1bc0f18 msm: camera: isp: Don't move substate to SOF
In RDI only usecase, if we get RUP and buf done
late, then we will enter bubble substate. In
current logic, we will move to SOF substate if
we get SOF in bubble substate, it causes the
buf done of bubble req can't be received. Since
we don't have valid interface for buf done in
SOF substate.
This changes don't move substate to SOF if we
are processing bubble.

CRs-Fixed: 3126554
Change-Id: I955173f12b5c1f5a699fa102e1ca6c82913c86e4
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
2022-03-03 17:06:25 -08:00
zhuo
8f2d538d47 msm: camera: smmu: Fix misunderstanding buffer handle in smmu log
When smmu page fault happen, buffer handle in smmu log
is always not identified due to using the index defined
in smmu. The index is smmu client index, buffer handle
should use the index defined in memory.

CRs-Fixed: 3096436
Change-Id: I69e5014c88ec507e31c6394564fb1990f5ae2d25
Signed-off-by: zhuo <quic_zhuo@quicinc.com>
2022-03-03 17:06:13 -08:00
Karthik Anantha Ram
f0d04ce780 msm: camera: isp: Fix the width calculation for WM packing
On CSID unpack and WM pack, align the sensor width to 8,
when WM packs the data when writing to DDR.

CRs-Fixed: 3140614
Change-Id: Ie994cbe45b5b87c8a50a4ae2a9929dee6a31860e
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2022-03-03 14:31:39 -08:00
Vikram Sharma
8a16e39373 msm: camera: ope: Increase max bl limit and max stripe to process
Increase “OPE_MAX_CDM_BLS” to 32 from 24 and MAX_STRIPES to
64 from 48.

CRs-Fixed: 3082993
Change-Id: I9e3631cc86c5e10e4e2020d4a9b2264ea282e437
Signed-off-by: Vikram Sharma <quic_vikramsa@quicinc.com>
2022-03-03 14:31:39 -08:00
Stark Lin
5953bec5c2 msm: camera: sensor: Add support to write sensor registers in probe
Few sensors needs to unlock register bank for reading
sensor ID from sensor register for probe. And this change
adds support to write sensor registers in probe cmd just
after power on and before reading the sensor ID.

CRs-Fixed: 3111822
Change-Id: Iee2e6bd0ba896a0a2d0c4cc23fe272ba4aae3ab2
Signed-off-by: Stark Lin <quic_starlin@quicinc.com>
2022-03-03 14:31:39 -08:00
Nirmal Abraham
d57da841d6 msm: camera: reqmgr: Avoid freeing subdev twice
The 'l_device' pointer in __cam_req_mgr_destroy_subdev is
set to NULL after freeing but this is done on a
local copy of the variable in stack. This results in
double-free when this function is called again. To avoid
this, pass 'l_device' pointer by reference and assign it
to NULL after freeing.

CRs-Fixed: 3120468
Change-Id: If2dde6f1c702bee26a3c8a68c2f45bafbf0f7cd6
Signed-off-by: Nirmal Abraham <quic_c_nabrah@quicinc.com>
2022-03-03 14:31:39 -08:00
Depeng Shao
4b560cae54 msm: camera: sensor: Don't print CCI error log during probing
Since the CCI error isn't fatal error during probing sensor,
so we can just print an info log for the CCI error.

CRs-Fixed: 3118450
Change-Id: Ie980c9eb37e410b07c434a7a304ab1c18925319b
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
2022-03-03 14:31:39 -08:00
chengxue
c733f90dd6 msm: camera: uapi: Add message type for kmd internal recovery
When KMD faces overflow errors, it will try internal recovery
first, every time KMD do internal recovery, it notifies to UMD
to do according process.

CRs-Fixed: 3131351
Change-Id: I06e7dc3c258b12fc2865d3383280a456b42c2163
Signed-off-by: chengxue <quic_chengxue@quicinc.com>
2022-03-03 14:31:39 -08:00
Suraj Dongre
9a9c865019 msm: camera: common: hfi presil api change for eva
Added client id param to presil hfi apis.

CRs-Fixed: 2932495
Change-Id: Ibd7d97a882e27782de902ee133faaa422a66e4cd
Signed-off-by: Suraj Dongre <quic_sdongre@quicinc.com>
2022-03-03 14:31:39 -08:00
Savita Patted
a260b82c1b Snap for drop 02/28/2022 mainline 730 LA.VENDOR.1.0.AU457
16eed9a Merge "msm: camera: icp: Fix HFI error logging" into camera-kernel.lnx.dev
a2fbd90 Merge "msm: camera: common: Add support to update auxiliary settings" into camera-kernel.lnx.dev
678323b Merge "msm: camera: reqmgr: Validate the link handle" into camera-kernel.lnx.dev

Change-Id: I276b2cd1cc1b04a8336a331dbf2d68368b9135e2
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-03-03 14:31:38 -08:00
Li Sha Lim
477dbfc187 msm: camera: icp: Fix HFI error logging
This fix addresses the current problem of ICP communicating through HFI
prior to HFI being set up.

CRs-Fixed: 3130279
Change-Id: I306b6dd85eb08b7c5c6f49f9f2aad05a42b394bc
Signed-off-by: Li Sha Lim <quic_lishlim@quicinc.com>
2022-03-03 14:27:11 -08:00
Jigar Agrawal
cebdc84875 msm: camera: common: Add support to update auxiliary settings
On CSID encountering a fatal rx error, notify phy to update it's
aux settings for the given data rate when it streams on the
next time. The phy device will book keep all the data
rates that need updated aux settings and on all the
occasions they are streamed on the updated aux settings will
be configured. This is supported for all data rates
from 1.2 - 2.35 GSpS. The change also adds a debugfs in phy driver
to disable aux settings update altogether.

CRs-Fixed: 3120043
Change-Id: Ia1ea3b9278c2eb918a527ee3d7b1ecfe53c4f2c2
Signed-off-by: Jigar Agrawal <quic_jigar@quicinc.com>
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2022-03-03 14:26:54 -08:00
Yash Upadhyay
6c2f7f959f msm: camera: reqmgr: Validate the link handle
Instead of correct link handle, if some other handle like
dev handle is passed then it may access some other data space.
To avoid such scenario, need to check whether link handle
passed by ioctl is same as retrieved link handle.

CRs-Fixed: 3120454
Change-Id: Idff2e3c25b60563788ffb426c7cabc367c3c97f8
Signed-off-by: Yash Upadhyay <quic_yupadhya@quicinc.com>
2022-03-03 14:26:33 -08:00
Savita Patted
be8df059d5 Snap for drop 02/24/2022 mainline 728 LA.VENDOR.1.0.AU457
camera-kernel:
e8caeb0 Merge "msm: camera: tpg: call soc disable resources in shutdown" into camera-kernel.lnx.dev
498d578 Merge "msm: camera: uapi: Add message type for kmd internal recovery" into camera-kernel.lnx.dev
9c9cc65 Merge "msm: camera: common: hfi presil api change for eva" into camera-kernel.lnx.dev
678a2b1 Merge "msm: camera: common: Fix the CPAS Calls" into camera-kernel.lnx.dev
4a990f8 Merge "msm: camera: common: Reinstate API to check memory types" into camera-kernel.lnx.dev
f667556 Merge "msm: camera: cpas: Enable icp clk for qchannel handshake" into camera-kernel.lnx.dev
90145d6 Merge "msm: camera: sensor: Don't print CCI error log during probing" into camera-kernel.lnx.dev

Change-Id: Ib0c9e45eaa6737ab018c854c4802eac903b5f841
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-03-03 14:25:28 -08:00
wasikhan
ba5572d0c7 msm: camera: common: Reinstate API to check memory types
Add back in check for ddr memory type to distinguish between DDR4/5
memory types.

CRs-fixed: 3136181
Change-Id: Ia152cde2786bf6e3da172d2b7046f9871d4f8e3c
Signed-off-by: Karthik Jayakumar <quic_kjayakum@quicinc.com>
Signed-off-by: Wasim Khan <quic_wasikhan@quicinc.com>
2022-02-25 14:33:38 -08:00
Jigar Agrawal
eb511bb3f5 msm: camera: common: Fix the CPAS Calls
Fix the CPAS Start and CPAS stop call sequence
for the Sensor power up. Also, only start and stop
the CPAS when we really want to write to the
AON-Main Camera Mux register.

CRs-Fixed: 3134267
Change-Id: If73ddc838d59a71f0e6cd21d390c7e603c42b2d6
Signed-off-by: Jigar Agrawal <quic_jigar@quicinc.com>
2022-02-24 22:33:13 -08:00
Pavan Kumar Chilamkurthi
83b1ffe863 msm: camera: tpg: call soc disable resources in shutdown
Without this, tpg is keeping refCount on titan top gdsc and
thus causing qchannel handshake side effects.
Sequence:
1. TPG calls cpas_start, increments refCount on gdsc with
   soc_enable_resources
2. run usecase
3. TPG missing disable_soc_resource
4. TPG calling cpas_stop : which shuts down qchannel
5. When next iteration starts, because gdsc is still on from
   previous session, cpas top is not getting reset state
   registers - thus keeping qchannel still in shut down state.
   qchannel goes to good state if gdsc is actually turned off
   and then turned on.

CRs-Fixed: 3131613
Change-Id: Iacb837f7ee3fd7d6b094d0271d0f2d9c15f0b306
Signed-off-by: Pavan Kumar Chilamkurthi <quic_pchilamk@quicinc.com>
2022-02-24 22:33:13 -08:00
Pavan Kumar Chilamkurthi
a32a315e54 msm: camera: cpas: Enable icp clk for qchannel handshake
For some chipsets, qchannel handshake needs icp clk to be
enabled. Add support to enable icp clk while qchannel
handshake by adding as optional clk in cpas node. Whether
to enable icp clk or not is controlled through workaround
list populated for each chipset.
Add mechanism to retry qchannel acceptance if the first
auto try has failed, by explicity writing 0x1 to qchannel
ctrl register. This will bring back qchannel to good state.

CRs-Fixed: 3131613
Change-Id: Ie39a9789b2eb1bf9c0f6adb26fe6d6e1823eff70
Signed-off-by: Pavan Kumar Chilamkurthi <quic_pchilamk@quicinc.com>
2022-02-24 22:33:13 -08:00
Savita Patted
c885a64448 Snap for drop 02/22/2022 mainline 726 & 725 LA.VENDOR.1.0.AU457
camera-kernel:
9adaf4c Merge "msm: camera: memmgr: avoid race condition by checking bitmap" into camera-kernel.lnx.dev
2f692c2 Merge "msm: camera: cdm: Add CDM Dump Functionality" into camera-kernel.lnx.dev

Change-Id: I0b3955b3ff23142a38478d12f044b5d8a24d0e34
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-02-22 20:06:14 -08:00
Jigar Agrawal
3e365bafda msm: camera: cdm: Add CDM Dump Functionality
Add CDM core registers dump functionality for
the scenariors where the cdm reset timesout and
the workqueue is delayed.

CRs-Fixed: 3130212
Change-Id: Ib79bb24164c77082eacfbecd14795b726bb14201
Signed-off-by: Jigar Agrawal <quic_jigar@quicinc.com>
2022-02-22 18:10:39 -08:00
Tejas Prajapati
bf3419cc94 msm: camera: memmgr: avoid race condition by checking bitmap
bufq mutex can be destroyed at unmap, if other thread
is trying to lock the bufq mutex it can result in
bad magic number. To avoid such race condition
check bitmap with protection of global mutex lock.

CRs-Fixed: 3120472
Change-Id: Id95be0faa5b0d921c4a0370ea5d2f3b23c229280
Signed-off-by: Tejas Prajapati <quic_tpraja@quicinc.com>
2022-02-22 18:06:26 -08:00
Savita Patted
67ea3bc2bb Snap for drop 02/17/2022 mainline 724 LA.VENDOR.1.0.AU457
camera-kernel:
f2af702 Merge "msm: camera: common: Report fence causes and ICP fatal errors" into camera-kernel.lnx.dev
a41746f Merge "msm: camera: common: Dynamically allocated flush request array" into camera-kernel.lnx.dev

Change-Id: I15f3a09f314d3817a703876e450c6283dfbccf02
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-02-18 13:37:23 -08:00
sokchetra eung
1a01a14003 msm: camera: common: Report fence causes and ICP fatal errors
Add support to report causes of fence errors for ICP and IFE.
The change also reports ICP critical failures like WD bark
and system error to userspace.

CRs-Fixed: 3035452
Change-Id: I699621ae71e0f8902cb7b9d42203effd2e2e40de
Signed-off-by: sokchetra eung <quic_eung@quicinc.com>
2022-02-18 13:36:36 -08:00
sokchetra eung
fb6888d8bb msm: camera: common: Dynamically allocated flush request array
Change flush request active and flush request pending arrays from
static of size 20 to dynamically allocated size based on current
pending and active request lists.

CRs-Fixed: 3046003
Change-Id: Iaa1179881d786359dbe9d37411a6ef3ae8038227
Signed-off-by: sokchetra eung <quic_eung@quicinc.com>
2022-02-18 13:36:17 -08:00
Savita Patted
6b5e01ea01 Snap for drop 02/16/2022 mainline 723 & 722 LA.VENDOR.1.0.AU457
ecf60ab Merge "msm: camera: sensor: Move main/aon selection in power operation" into camera-kernel.lnx.dev

Change-Id: I731eea1beac859c586087c473be09217544bf0fc
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-02-16 19:36:24 -08:00
Jigar Agrawal
bfbdc29297 msm: camera: sensor: Move main/aon selection in power operation
Currently main/aon control operation is getting trigger explicitly
from probe control with the reason that Probe IOCTL is exclusive to
sensor core. This operation is required for making sure to get the
control to hlos before reading slave id. Further post probe operation
main/aon control selection is managed by csiphy driver at the time of
acquire and release ioctl call. This will block the main camera
operation after probe ioctl successful and before csiphy acquire ioctl
call. There are some usecase where sensor needs to perform several
operation independently. To add this support moving the main/aon
selection call from probe only ioctl operation to power_up/down call
flow. This call is made upon when it is required to operate on sensor.
This change will help to give AON sensor more flexibility to perform
independently. Further CSIPHY also have the same selection process
in it's acquire ioctl operation which can help to make the hlos end
selection in combo mode scenario.

CRs-Fixed: 3084672
Change-Id: Ic1c6ad41e35605a2291e7e50ff0fe94a0ab30624
Signed-off-by: Jigarkumar Zala <quic_jzala@quicinc.com>
Signed-off-by: Jigar Agrawal <quic_jigar@quicinc.com>
2022-02-16 17:06:19 -08:00
Savita Patted
39bb53295e Snap for drop 02/14/2022 mainline 721 LA.VENDOR.1.0.AU457
camera-kernel:
7d373a7 Merge "msm: camera: csiphy: Update the csiphy bring up sequence" into camera-kernel.lnx.dev
e415498 Merge "msm: camera: icp: Dump ICP fault/CSR registers on HFI init failure" into camera-kernel.lnx.dev
f6a93b2 Merge "msm: camera: smmu: add new flag to indicate Hw, CDM access" into camera-kernel.lnx.dev
971dc5d Merge "msm: camera: common: Update logging for better debugging" into camera-kernel.lnx.dev
a4adec8 Merge "msm: camera: sfe: Fix truncation of 64bit address" into camera-kernel.lnx.dev
11cb115 Merge "msm: camera: smmu: set 64bit mask to utilize 64GB space for camera CBs" into camera-kernel.lnx.dev

Change-Id: Ibc72134b5e7bfdc9e162553574e5a4a3da372750
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-02-14 21:36:13 -08:00
Karthik Anantha Ram
d2767102cc msm: camera: icp: Dump ICP fault/CSR registers on HFI init failure
If HFI init times out, log ICP status and CSR registers.

CRs-Fixed: 3110947
Change-Id: I611c29ee1b48f210f76750e57f38e260278b6812
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2022-02-14 20:07:20 -08:00
Pavan Kumar Chilamkurthi
3ea1c2ad59 msm: camera: smmu: add new flag to indicate Hw, CDM access
When set, buffers will be mapped within 32-bit region
address space and in patching, if Shared or CmdBUffer is
not set for such buffers - patch the value with right shift
by 8. kmd does as below.

Map:
  Shared or CmdBuffer : Mapped within 32bit.
  HwAndCDMOrShared    : Mapped within 32bit
  others(HwAccess)    : Mapped within 40bit
Patching:
  Shared or CmdBuffer : as is
  HwAndCDMOrShared    : iova >> 8
  others (HwAccess)   : iova >> 8

Shared/CmdBuffer takes precedence over HwAndCDMOrShared.

CRs-Fixed: 3128094
Change-Id: Ifd9f5beaf2659f77544cd0722ef7f60d6c0684a7
Signed-off-by: Pavan Kumar Chilamkurthi <quic_pchilamk@quicinc.com>
2022-02-14 20:07:09 -08:00
Pavan Kumar Chilamkurthi
cd2c6d0ab8 msm: camera: common: Update logging for better debugging
Fix incorrect logging format strings. Update log string to
better indicate about the parameters.

CRs-Fixed: 3128094
Change-Id: I265d9233769f152ae0cbdf1f13b4499b03cf1593
Signed-off-by: Pavan Kumar Chilamkurthi <quic_pchilamk@quicinc.com>
2022-02-14 20:06:56 -08:00
Jigar Agrawal
ad04683cb1 msm: camera: csiphy: Update the csiphy bring up sequence
Update the csiphy header 2.1.2 with the new bring up
sequence revision 11.

CRs-Fixed: 3127494
Change-Id: I9a3579ecd2fc2274cf9913af0ef054cc62343b0e
Signed-off-by: Jigar Agrawal <quic_jigar@quicinc.com>
2022-02-14 20:06:44 -08:00
Pavan Kumar Chilamkurthi
d4cf4cefc4 msm: camera: sfe: Fix truncation of 64bit address
While saving iova address, we were saving into uint32 which is
truncating the address. When this address is programmed to hw,
its causing page fault. Fix by saving the iova first into
dma_addr_t which is uint64 and then calculate base and offset
register values to program to hw.

CRs-Fixed: 3128094
Change-Id: Ie8dc8cbd9848267b7b50db5ef987bd06518cc357
Signed-off-by: Pavan Kumar Chilamkurthi <quic_pchilamk@quicinc.com>
2022-02-14 20:06:32 -08:00
Pavan Kumar Chilamkurthi
fdce68821f msm: camera: smmu: set 64bit mask to utilize 64GB space for camera CBs
To utilize more than 32-bit address space, clients need to call
dma_set_mask_and_coherent API. When called with particular value,
the max address range thats mapped on this context bank is
min of this mask value and value_from_iommu-dma_addr_pool.

CRs-Fixed: 3128094
Change-Id: Ib48dc0b00f8e915ca7faa367bec7473aed9931b4
Signed-off-by: Pavan Kumar Chilamkurthi <quic_pchilamk@quicinc.com>
2022-02-14 20:06:13 -08:00
Savita Patted
2e63437021 Snap for drop 02/11/2022 mainline 720 LA.VENDOR.1.0.AU425
camera-kernel:
4a5263e Merge "msm: camera: isp: Improve IFE/SFE/CSID debug infra" into camera-kernel.lnx.dev
7f94f9b Merge "msm: camera: icp: Improve ICP debug infrastructure" into camera-kernel.lnx.dev

Change-Id: I3c33a70eb82254985f211afa43e986aadd1d44f6
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-02-11 18:36:10 -08:00
Karthik Anantha Ram
1df78bed63 msm: camera: icp: Improve ICP debug infrastructure
On FW timeouts, dump ICP status registers and HFI queue indices.

CRs-Fixed: 3110947
Change-Id: I74561ce943c027e51b6f8b61e7ebb68d2a89982d
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2022-02-11 17:06:24 -08:00
Karthik Anantha Ram
d557934178 msm: camera: isp: Improve IFE/SFE/CSID debug infra
Add support to enable SFE/IFE perf counters by allowing
user to configure the counters. By default the counter
values are dumped at EOF.

To configure the counter-
adb shell cat /sys/kernel/debug/camera/ife/isp_perf_counters
adb shell "echo "ife_1_2162693" >
 /sys/kernel/debug/camera/ife/isp_perf_counters"

A read on the debugfs file will list the available counters
on the target for the different HW blocks.

The change also adds support to configure CSID test bus.
adb shell "echo <reg_val> >
 /sys/kernel/debug/camera/ife/ife_csid_testbus".

CRs-Fixed: 3110947
Change-Id: Idc3952e64c943acd1d1893ed24eea88cf9908100
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2022-02-11 17:06:12 -08:00
Savita Patted
f41a89fc6a CAMX: Snap for drop 02/10/2022 mainline 719 LA.VENDOR.1.0.AU425
camera-kernel:
c86f09a Merge "msm: camera: isp: Correct offsets in CSID v780 header" into camera-kernel.lnx.dev

Change-Id: Ibd2c84cfd2678242eb274159e7f2ce49f1922039
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-02-10 19:36:10 -08:00
Karthik Anantha Ram
dfaccd6b4f msm: camera: isp: Correct offsets in CSID v780 header
Correct frame drop pattern/period offsets in CSID 780 header.

CRs-Fixed: 3123590
Change-Id: I0f94c1e6301ae7b90ab9e4ae5fdd0dcf8c283da1
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
2022-02-10 15:36:15 -08:00
Savita Patted
d503e9996c Snap for drop 02/03/2022 mainline 714 LA.VENDOR.1.0.AU425
Change-Id: Iadd09b9e97bdb65334b0bb46db4c226110909b1e
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-02-03 23:36:07 -08:00
Savita Patted
1a8bdb607d CAMX: Snap for drop 02/02/2022 mainline 713 LA.VENDOR.1.0.AU425
a5bbb41 Merge "msm: camera: icp: LDAR Dump ICP Extension" into camera-kernel.lnx.dev
8e42625 Merge "msm: camera: icp: protect timer stop with hw mutex" into camera-kernel.lnx.dev
e07d9ca Merge "msm: camera: isp: Keep LSB aligned for Plain16_10/12/14 RDI buffers" into camera-kernel.lnx.dev
dec525e Merge "msm: camera: isp: Minor fixes in logging errors in IFE top and bus" into camera-kernel.lnx.dev
31df154 Merge "msm: camera: ife: Fix debug statements for expanded memory" into camera-kernel.lnx.dev
bcbe113 Merge "msm: camera: core: Control expanded memory patching per caller" into camera-kernel.lnx.dev
bbf0924 Merge "msm: camera: jpeg: Fix jpeg output in kailua presil" into camera-kernel.lnx.dev
c771194 Merge "msm: camera: csiphy: Remove lane specific configuration" into camera-kernel.lnx.dev

Change-Id: I35e16fd457e82b56a152b28a25c882b646a31014
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
2022-02-03 23:06:21 -08:00
Karthik Jayakumar
28239ed1e6 msm: camera: core: Control expanded memory patching per caller
Force callers to say if they are using 36 bit address patching or not.

CRs-fixed: 3121782
Change-Id: I4dee25e3f73104a1be043fe18a295cd4f8447821
Signed-off-by: Karthik Jayakumar <quic_kjayakum@quicinc.com>
2022-02-03 23:06:09 -08:00
Anand Ravi
b0d73dc7ac msm: camera: isp: Minor fixes in logging errors in IFE top and bus
Print out WM information on CCIF violation.

CRs-Fixed: 3121755
Change-Id: I0fffd8cf4bc7af660f120ba1df8917cd95af64b4
Signed-off-by: Anand Ravi <quic_ananravi@quicinc.com>
2022-02-02 22:37:23 -08:00
Karthik Jayakumar
7f9260a75a msm: camera: ife: Fix debug statements for expanded memory
Corrects the variable debug print statements for expanded memory case
in IFE.

CRs-Fixed: 3120109
Change-Id: I08e2849db21459ebaecec68a7340d8d103562743
Signed-off-by: Karthik Jayakumar <quic_kjayakum@quicinc.com>
2022-02-02 22:37:12 -08:00
Suraj Dongre
56b320495d msm: camera: jpeg: Fix jpeg output in kailua presil
Changed code to fix wrong resource type causing blank output.

CRs-Fixed: 2932495
Change-Id: I7512b9784a6699d466e88e6f68dfc7144673bab1
Signed-off-by: Suraj Dongre <quic_sdongre@quicinc.com>
2022-02-02 22:37:00 -08:00
Pavan Kumar Chilamkurthi
5561a5d0ef msm: camera: isp: Keep LSB aligned for Plain16_10/12/14 RDI buffers
Due to hw limitation, if the required RDI buffer output is
Plain16_10/12/14, BUS cannot conver CSID unpacked MSB data
into LSB aligned while writing the buffers. So keep CSID out
as unpacked LSB data if the final RDI output buffer format
is Plain16_10/12/14. This will have limitation in using RDI
data going into LCR/PDAF.

CRs-Fixed: 3118104
Change-Id: I9193530ec549b4658a058ae71eed4f31653bd88e
Signed-off-by: Pavan Kumar Chilamkurthi <quic_pchilamk@quicinc.com>
2022-02-02 22:36:50 -08:00
Jigar Agrawal
97380c4614 msm: camera: csiphy: Remove lane specific configuration
Currently lane specific general register programming is structured
with lane index basis. This is not required as general register
needs to program without any condition. This change updates structure
of this programming register. Also, array size calculation is replace
with more intutive way rather to manually enter the size everytime.

CRs-Fixed: 3117726
Change-Id: I5e57f37bf2025b37f23c10b835fd31ddfe986cee
Signed-off-by: Jigarkumar Zala <quic_jzala@quicinc.com>
Signed-off-by: Jigar Agrawal <quic_jigar@quicinc.com>
2022-02-02 22:36:40 -08:00
Tejas Prajapati
6f8e74a1b9 msm: camera: icp: protect timer stop with hw mutex
To avoid concurrent access to the device timers while
stopping them, keep the stop call protected with hw
mutex.

CRs-Fixed: 3080397
Change-Id: If0a5226536e3a3c14738811965511225d1a96f08
Signed-off-by: Tejas Prajapati <quic_tpraja@quicinc.com>
2022-02-02 22:36:28 -08:00