Read version and family from device tree if presil enabled.
CRs-Fixed: 2932495
Change-Id: I6a2518c033ee42202ab7ad2beb839aad20679311
Signed-off-by: Suraj Dongre <sdongre@codeaurora.org>
Signed-off-by: ridhshah <ridhshah@codeaurora.org>
In cam_req_mgr_cb_notify_trigger add missing spin unlock
call. In case of IRQ delays the API returns without invoking
unlock.
CRs-Fixed: 2975974
Change-Id: I1dc87e457b7c6d9d099ddb54d31be8fc2476f360
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
Added declarations for apis used for memory copy to and from presil hw.
CRs-Fixed: 2932495
Change-Id: I19cd272fd4993c68278b3d8cceabe5d9b5d9a5f6
Signed-off-by: Suraj Dongre <sdongre@codeaurora.org>
Add support for data rate specific bringup register settings
for csiphy for csiphy2.1.0.
CRs-fixed: 2968227
Change-Id: Ide484fe2e94e0e44c75396de719bd2a8010c0eea
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
As part of enabling sys cache, if SFE hw layer finds that
the user has requested to disable sys cache, return that status
to hw mgr. By doing this we would avoid activating/deactivating
a cache that is not in use.
CRs-Fixed: 2841729
Change-Id: Ie7b6ca35cfe46f06ae6285e212811aad2269b5f6
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
Currently the actual and expected frame size is being
read interchangeably. The change addresses this and
prints the format measure params correctly.
CRs-Fixed: 2841729
Change-Id: Ie07745f7ec39c06ac54afdaea379749954c7672e
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
Reset core clock rate when all SFE resources are streamed off.
This will ensure that the new clock rate on the next session
will take affect.
CRs-Fixed: 2841729
Change-Id: I12f039a2abe42c7a6a1bfd6ce9d8d54b23c177dc
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
On current target in order to configure epoch to 50% we need
to do sensor total lines by 2 as opposed to by 4 being done
on previous target. The workaround by 4 is not needed since
the issue has been addressed in HW.
CRs-Fixed: 2841729
Change-Id: I81c65c41bbda7e3ba41b9dc8beb81a8853c3f8bf
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
In Dual tfe scenario, tfe csid drop first frame in the ipp pix
path to sync both master and slave, but rdi frame will go to tfe.
this will cause issues in the camif and rdi sub sampling scenarios.
in sub sampling scenarios both camif and rdi should be subsampled
on same frames. To achieve this drop the rdi first frame from csid
in dual tfe scenarios.
Change-Id: I73e98a6d3d973af93bbe6afef7585a95578f2a2b
CRs-Fixed: 2923045
Signed-off-by: Ravikishore Pampana <rpampana@codeaurora.org>
Add support of new stats out ports in vfe driver for VFE 780.
CRs-Fixed: 2948116
Change-Id: I2d0a13fe90f49b66839ea90b5d9882fd7c6528be
Signed-off-by: Chandan Kumar Jha <cjha@codeaurora.org>
With recent change in SFE acquire logic, RDI
acquire for dual case was not handled. This change ensures
RDI in case of dualSFE stream is acquired from SFE
of lower index in alignment with CSID.
CRs-Fixed: 2841729
Change-Id: Ie71c34b702a42427172792a5301e3b4ac925fcfe
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
In case of path errors, CSID debug registers are printed after sending
the error event to hw manager. In some scenarios, work queue calling the
stop hw can be called before printing the registers. This can cause
NOC errors while accessing the registers.
This commit moves the printing of registers to single location just
before sending the event to hw manager.
CRs-Fixed: 2962255
Change-Id: I929741cbe8211d4b3cb012588ea923ddd2e5a97c
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
For dynamic switch use-cases, disable SFE RMs if they are not
used. Enable them if there is a switch utilizing that RM.
This is the HW recommendation for dynamic switch use-cases.
CRs-Fixed: 2841729
Change-Id: I93732fddced02c4e375635143de3f122f37ef008
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
Add a utility API in hw_mgr to update hw map entries for kmd buffer.
The change also addresses KW issues in hw_mgr.
CRs-Fixed: 2841729
Change-Id: Ic3f1bba5fb0057f750d12ff8e29ae0268b0c13b1
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
Add support to obtain hint from userland to enable binning in
either direction. The change updates the existing binning field
in UAPI to provide provision for both vertical & horizontal
binning options.
CRs-Fixed: 2841729
Change-Id: I37958d648ed4387d9e2bff8bcff8ffd39801baa3
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
If lx7 collapse/resume fails dump status registers to help
narrow down the cause. The change also adds a write barrier
post HOST2ICP trigger.
CRs-Fixed: 2841729
Change-Id: I8201a1c84e0455044fccf88cc86a865bb89356a7
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
Increase number of cpas clients macro value and mx number
of tree nodes value to accommodate new clients on v780.
CRs-Fixed: 2948116
Change-Id: I9e3fb0b0a562eb92032405903fe0c30eeacd0dc0
Signed-off-by: Pavan Kumar Chilamkurthi <pchilamk@codeaurora.org>
Pagefault_ops is protected by the mutex_lock to avoid the
list corruption by concurrent access via flush calls.
CRs-Fixed: 2904307
Change-Id: Ia6519a382ace7b89b6bd59a2dacfeca3c31e2705
Signed-off-by: Tejas Prajapati <tpraja@codeaurora.org>