SFE resource count isn't fixed, it is less than the max
supported resource, we need to use actual resource count
to release the resource.
CRs-Fixed: 3234791
Change-Id: I7cb16f3d8120451cac1bfc226f6849268f3b5c46
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
If we set burst write method to write sensor word data type
register data, some 32 bits data queue cannot be filled full,
and invalid data will be injected into data queue, then cci
burst write will fail.
CRs-Fixed: 3221426
Change-Id: I20ff1e7f508e4bbc79826db7faa13fcc80eaaf96
Signed-off-by: chengxue <quic_chengxue@quicinc.com>
5d46ed4 Merge "msm: camera: common: Add logs in wait for completion wrapper" into camera-kernel.lnx.dev
10e9403 Merge "msm: camera: icp: Compute and log FW avg response time per ctx" into camera-kernel.lnx.dev
947caff Merge "msm: camera: memmgr: suppress set mapped dmabuf name failed log" into camera-kernel.lnx.dev.
Change-Id: I08a21963557700bf859ffffc0629d510f751b560
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
Compute and log average firmware response time per context to
measure firmware latency.
CRs-Fixed: 3223208
Change-Id: Iaf27a43259fc2a558fdd59165f8afdd4f8e5f6e7
Signed-off-by: Sokchetra Eung <quic_eung@quicinc.com>
Create a Macro to wrap around wait_for_completion_timeout to
log start and done wait time, and caller's customary error log
if timeout happens.
Modify all wait_for_completion_timeout in ICP hw mgr to use
this wrapper.
CRs-Fixed: 3227018
Change-Id: Ief2c52e69954c653d9cbced8acd823b436bab086
Signed-off-by: Sokchetra Eung <quic_eung@quicinc.com>
we can't set dma buffer name when it has been attached to hardware.
As usually UMD allocate one buffer then map it at KMD side. So most of time,
set mapped dma buffer name failed. But it's not a fault error. So
we move log to debug level.
CRs-Fixed: 3219506
Change-Id: If635f9fbeb26b96f45c83b1d03cbba97576c92b2
Signed-off-by: Fengjie Chen <quic_fengjiec@quicinc.com>
The change handles tasklet scheduling delays in buf done handling.
If there is a scenario where in we have a request N in active list,
and N+1 is applied on the output frame for N. It's possible
that after applying N+1, the buf done tasklet for N is not scheduled
in time, and if it so happens that the tasklet is scheduled
out beyond the next frame, HW would have consumed N+1, and we
end up reading the last consumed addr for N+1 in the buf done bh for N.
The read last consumed address from N+1, will never match with N
ultimately stalling N. We could read the last consumed
addr registers in top half, but that would lead to increased
register reads in ISR, delaying top half processing therefore the change
handle such delays within the ISP state machine.
The underlying understanding here is if HW has generated buf
done for client X on request N+1, it's bound to have processed the
buffer for client X on request N.
CRs-Fixed: 3223063
Change-Id: I1e96f5b51b6fc388f3c189f882f8ae543a6ccb06
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
To achieve sync state, platform probe needs to happen for i3c-i2c
nodes since platform devices are created for them due to topology.
Return success in component bind for i3c-i2c based sensor nodes.
CRs-Fixed: 3227008
Change-Id: I6604fac1ef605f7d3cef69954238ac62bee77dae
Signed-off-by: Mukund Madhusudan Atre <quic_matre@quicinc.com>
Do not call register with owner when device id table is empty.
CRs-Fixed: 3227008
Change-Id: Ibb86154c4c4f0b0e3d81867eb1ed049eefbc1a85
Signed-off-by: ridhshah <quic_ridhshah@quicinc.com>
Fix the argument order for SFE bus deinit calls.
CRs-Fixed: 3218412
Change-Id: I7ecda25aae455e0d9302b7f379ec019053a34e92
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
The drv and bw voting blobs are handled by isp generic blob
handler, so need to skip for sfe blob handler.
CRs-Fixed: 3065551
Change-Id: I467d16818d2807194e3c7b62bd6b2b1eb06b4759
Signed-off-by: Mukund Madhusudan Atre <quic_matre@quicinc.com>
Currently during csiphy component bind, we are allocating memory for
csiphy register info structure, which is not required, since the
structure in statically defined in headers. This causes panic during
unbind calls, since we are supplying address to statically allocated
memory that we previously pointed to, during bind. Remove dynamic
memory alloc and free to fix this issue.
CRs-Fixed: 3223335
Change-Id: If5d029dae4660b4a57b007c895956baceac9e4b5
Signed-off-by: Mukund Madhusudan Atre <quic_matre@quicinc.com>
Get the shift mask from the corresponding chipset header.
CRs-Fixed: 3226910
Change-Id: I45f439e7b7ec23096ecb31f2b94cf76189669e7f
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
Move CSI_3PHASE_CTRL registers from common to data rate
specific config.
CRs-Fixed: 3226880
Change-Id: Id39c2f4fe436cdbed99cfc407c79ae3cd7fccdbe
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
Fixes LDAR dump for ISP active requests by passing in the correct
address to dump helper function.
CRs-Fixed: 3215380
Change-Id: I1b4ad1c041cc3c965e7f95f9ef8129e26dce5344
Signed-off-by: Joshua Florez <quic_jflorez@quicinc.com>
camera-kernel:
3f04ee0 Merge "msm: camera: isp: Reorder the stream on sequence in LCR use case" into camera-kernel.lnx.dev
f7b2922 Merge "msm: camera: common: Use CAMERA DLK override for compilation" into camera-kernel.lnx.dev
5dbda18 Merge "msm: camera: req_mgr: Handle bubble case in tasklet context" into camera-kernel.lnx.dev.
Change-Id: If94d294a291108fb14e0d2e49824a8e85df8e51c
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
To be able to disable camera compilation on newer targets,
use DLKM_CAMERA_OVERRIDE in camera makefiles to control
compilation.
CRs-Fixed: 3219745
Change-Id: Iaf9518457a690554aca21fc1c6ebb3324d0dac46
Signed-off-by: Pavan Kumar Chilamkurthi <quic_pchilamk@quicinc.com>
Due to timing protocol constraints between LCR and PD resources and
sof retiminig disabled, PPP resource should be enabled after RDI0
whenever LCR is enabled.
This commit changes the order during the CSID start to enable PPP
after RDI0.
CRs-Fixed: 3222469
Change-Id: I11371ea4602ff4bd72e690453103bd6a18ba836a
Signed-off-by: Gaurav Jindal <quic_gjindal@quicinc.com>
Mark bubble flagged slot as applied state in tasklet
context.
Due to scheduling delay, CRM bubble process error
work-queue is taking more than 60ms for scheduling.
We had received back-to-back epochs due to tasklet
scheduling delay which invoked process requests for
applying further requests.
We reset the Nth-3rd slot during the process request.
We had done slot reset for bubble requests during
process request call as process error work-queue yet
to schedule which had to mark the slot as the
applied state.
CRs-Fixed: 3191903
Change-Id: If8154b7de8b3981fc9de64be2cd400c7b432c571
Signed-off-by: Chandan Kumar Jha <quic_cjha@quicinc.com>
This change involves the parsing of domain-id mapping
from DT and storage of this information in struct
cam_cpas_private_soc. This information will be relayed
to userspace in an ioctl call, and also exposed to the
IFE driver within the kernel.
CRs-Fixed: 3215167
Change-Id: I68d914fd4b84bc029edccd5cd1d2e2733fa32fcd
Signed-off-by: Li Sha Lim <quic_lishlim@quicinc.com>
Other than stat WMs, all other clients can run in secure mode.
CRs-Fixed: 3208187
Change-Id: I17956a4815a56eacbaa14e08db98fde681a6d9d6
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
Add memmgr interface and support to allocate buffers from
ubwcp heap.
CRs-Fixed: 3197463
Change-Id: Ic3368e5ff81710dba795c9625f9a461833f915e3
Signed-off-by: Pavan Kumar Chilamkurthi <quic_pchilamk@quicinc.com>
Add ioctl interfaces to support dma begin and end cpu access
operations for camera buffers.
CRs-Fixed: 3197463
Change-Id: Ibeb31e8f425489abfdd47df6f92271ac40ace407
Signed-off-by: Pavan Kumar Chilamkurthi <quic_pchilamk@quicinc.com>
Add support for 32 bits wide sensor ID for CCI hw during sensor
match ID operation.
CRs-Fixed: 3210196
Change-Id: Idef7f5cd3d7199198d0c6aa06ce54415a409d147
Signed-off-by: Jigar Agrawal <quic_jigar@quicinc.com>
Some unhandled buf dones belong to next req, we need
to add them to deferred buf done list and process it
in future.
CRs-Fixed: 3197114
Change-Id: I5489cb6faacf2b6c9018b3b660a1df2ee6ac9564
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
* changes:
Snap for drop 06/09/2022 mainline 783 LA.VENDOR.13.2.0.AU237
msm: camera: common: Enable config for rpmh calls
msm: camera: common: Add debug infrastructure for camera drv
msm: camera: common: Add support for DRV config
msm: camera: common: Add support for bw update blob v3
msm: camera: isp: Read back and update top debug cfg register
msm: camera: icp: Log all active requests on enomem from FW
msm: camera: csiphy: Add support for RF channel based csiphy settings
msm: camera: common: Add I3C Driver support
msm: camera: isp: Remove IFE HW mgr reference from ISP ctx
Update sync headers to remove third party update for year 2021.
CRs-Fixed: 3207212
Change-Id: I30d029d5755d4fb129c256f9771b20c115970388
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
camera-kernel:
104d40e Merge "msm: camera: isp: Read back and update top debug cfg register" into camera-kernel.lnx.dev
061a006 Merge changes I632469bc,I53326589 into camera-kernel.lnx.dev
a617493 Merge "msm: camera: icp: Log all active requests on enomem from FW" into camera-kernel.lnx.dev
76de8ff Merge "msm: camera: common: Add I3C Driver support" into camera-kernel.lnx.dev
6c88212 Merge "msm: camera: csiphy: Add support for RF channel based csiphy settings" into camera-kernel.lnx.dev
5e07d97 Merge "msm: camera: isp: Remove IFE HW mgr reference from ISP ctx" into camera-kernel.lnx.dev
82f9e1c Merge "msm: camera: common: Add support for DRV config" into camera-kernel.lnx.dev
d010e1e Merge "msm: camera: common: Add support for bw update blob v3" into camera-kernel.lnx.dev
d05f4a4 Merge "dt-bindings: camera: Add camera DRV definitions" into camera-kernel.lnx.dev
Change-Id: I1b568b90293d287f23fde7531d2865f0a66799f1
Signed-off-by: Savita Patted <quic_spatted@quicinc.com>
Enable config for rpmh calls, which is needed to control
state of rsc devices for drv.
CRs-Fixed: 3065551
Change-Id: I632469bc2c91a00345b53c3b3c51e6bd1c8d325a
Signed-off-by: Mukund Madhusudan Atre <quic_matre@quicinc.com>
Add error handling and information logging for drv error and
info irqs for drv. Also, add debugfs for vote up and down irqs.
Add ddr and mnoc register value logging in vote up and down
irq bottom half.
CRs-Fixed: 3065551
Change-Id: I5332658924762a528625e628c3fa5d5dec07da62
Signed-off-by: Mukund Madhusudan Atre <quic_matre@quicinc.com>
Add support for bw update version 3. Add provision to
maintain cpas per path bw info internally in drivers.
CRs-Fixed: 3065551
Change-Id: I65e97c6e41f933818f1211bbc27651842e93c028
Signed-off-by: Mukund Madhusudan Atre <quic_matre@quicinc.com>
Top debug cfg register is getting reset while starting RDI resources.
This commit adds the register data to RDI resources and reads back
the register before updating the register.
CRs-Fixed: 3207575
Change-Id: I4e149fc81cbfc60adb6d3bb842a1057e8202903f
Signed-off-by: Gaurav Jindal <quic_gjindal@quicinc.com>
Upon Enomem error received from FW, log all active request ids
from all active streams to understand the request traffic pattern
to FW.
CRs-Fixed: 3204850
Change-Id: I450049ab7faa0871880b6511e65ffaf15c570e4e
Signed-off-by: Sokchetra Eung <quic_eung@quicinc.com>
Add support for RF channel based the csiphy 3 phase datarate settings.
CRs-Fixed: 3201451
Change-Id: Ic06531a577c6513d40ccf6cae163a482f2e9c9ae
Signed-off-by: Jigar Agrawal <quic_jigar@quicinc.com>
Removes IFE HW manager reference from ISP context and moves some
LDAR dump functionality for stream info to IFE HW manager.
CRs-Fixed: 3210247
Change-Id: I311c7cd8d8684a68ba0bfbe279ef9ba55cfbbe82
Signed-off-by: Joshua Florez <quic_jflorez@quicinc.com>
Add camera DRV feature enable mask definition. Add
definitions to communicate the DRV voting index from
device tree, which can be used to get the applicable
mnoc index for a client in cpas driver. The mnoc index
would eventually be used to vote the DRV bandwidth at
correct bus ID.
CRs-Fixed: 3065551
Change-Id: Ic429a3a7d40f9004818ea5f3e65469b40a92b438
Signed-off-by: Mukund Madhusudan Atre <quic_matre@quicinc.com>