Changed from static to dynamic allocation for hw_mgr_intf.
Updated de-init handling during driver remove.
Updated Idle irq handling to not clear request data at idle irq.
Multiple request handling at buff done.
Offset fix.
CRs-Fixed: 2982472
Change-Id: I37fb690f9f4c1460ecf322a259e2e1001574339b
Signed-off-by: Vikram Sharma <vikramsa@codeaurora.org>
This change is set the OT values for RT client of Camonc
to 8 for Yiupik camera. This is sw workaround for Yupik camera.
CRs-Fixed: 2924987
Change-Id: Icb7f30c23f5899558a41308fe313d46fd8d992a3
Signed-off-by: Ayush Kumar <ayushkr@codeaurora.org>
Fixes expanded memory allocations to only happen for ICP context banks.
Re-maps the command buffers to shared region of ICP context bank.
CRs-Fixed: 2985358
Change-Id: I3c2d5866b0041489577f6c5c0ec113c886437107
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
Use Kernel time to obtain the current time when IFE is acquired
/released and when sensor is streamed on/off. Convert the Ktime
to a timestamp format and log it in existing info prints. This
will help to co-relate timestamp between user-space and kernel
logs. The change also replaces the current usage of direct calls
to ktime_get_real_ts64 with macro across all drivers.
CRs-Fixed: 2987320
Change-Id: I87c4790164d222fc1ed6ff41ad00eeb1ed8c8867
Signed-off-by: Sokchetra Eung <eung@codeaurora.org>
Update csiphy2.1.0 reset sequence to not relese the reset
during the reset sequence. Add support to read cphy lane
status register after programming the csiphy. Program
datarate specific settings before programming the lane
registers. Add a delay of 100us before and 1ms after
releasing the csiphy reset respectively for cphy.
CRs-fixed: 2947752
Change-Id: I4befa03bab85779749efd33908ab5a02c96c0cb4
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
Correct number of apply to skip for master in case of slave bubble.
Add log to check and print time left to apply.
CRs-Fixed: 2968652
Change-Id: I7698b79a6d98637726e528f3e40dda4b68118d50
Signed-off-by: Ayush Kumar <ayushkr@codeaurora.org>
Add support to ensure epoch is programmed post second
exposure frame. Validate this, if this check fails
flag an error. The % factor of frame height to be configured
for epoch is obtained from userspace. This % factor will
depend on how the frame is spread for IFE to process.
CRs-Fixed: 2986303
Change-Id: I2d7d34ccdfde0192ebb73bbd920a4c738bbf9ca2
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
Add checks to avoid KW issues for SFE scratch buffer handling.
Also add check in SFE acquire such that no two streams can
acquire same SFE HW. Update ctx pointer in sfe top struct as
opposed to per path since SFE top will handle for all paths.
CRs-Fixed: 2841729
Change-Id: I9ebbfb54c8be38ca7d2ac223f5fb432bf3307ddd
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
In case of ePCR there is no need to append scratch buffer
in INIT request. This change programs scratch via AHB only
for non ePCR streams.
CRs-Fixed: 2841729
Change-Id: Ib9addfc6e5e7270c0ac02d769aa3602feb1f98cf
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
Add support to configure image address offset dynamically for
SFE RMs and WMs. For SFE RM use existing WM blob to get this info.
CRs-Fixed: 2841729
Change-Id: I2d9784380b43fd202037bf664e71b89cfc1aba71
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
'fd' can be closed in user mode driver, though corresponding
dmabuf is still not freed if someone still holding a refCount
on that dmabuf, say camera smmu driver holding a refCOunt and
has that in its mapping info table. Then the same 'fd' can be
allotted for a different buffer in a new allocation. In such
cases, if we use 'fd' as identifier in camera smmu driver to
check if the buffer is already mapped based on mapping info
table, we mistakenly think the new buffer is already mapped
which is not the case. DMA buf's inode num is an unique
identifier that represents a buffer. Use this along with 'fd'
in camera smmu driver to see if the given buffer is already mapped.
CRs-Fixed: 2961136
Change-Id: I5baac99e3badaca3a376ecd724a7a7aa6da112a4
Signed-off-by: Pavan Kumar Chilamkurthi <pchilamk@codeaurora.org>
Disbaling RX in CSID during flush is not inside mutex lock.
This can result in damaging the lists and variables causing
stability issues.
This commit moves this call inside mutex lock. Also, a warn log
is added to inform if the flush call times out.
CRs-Fixed: 2974631
Change-Id: I50082c03bebacc4a11f826bdb318c52dbf5400e7
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
Kernel apis provide information fault caused pid and mid data.
Handle the JPEG smmu fault using pid and mid
data. Based on the mid data, dump only corresponding port
info which caused the fault. Pid and mid values are target
dependent, these values will be updated on the jpeg node
dt entries.
CRs-Fixed: 2878371
Change-Id: I0d2d1e474d4662707d85efd022ccce87e67f0d93
Signed-off-by: Ravikishore Pampana <rpampana@codeaurora.org>
Move clock update call from prepare to config. Add delay
in clock reduction and enable src clock update only when blob
is received. Optimize bw update and combine application of
clock and bw in ife and sfe. Finish update will be common for
clock and bw update, and will be called once per acquired hw.
CRs-Fixed: 2841729
Change-Id: Ideb8e8cfe6838bb9d5c861fb6b7cbc5e499ebee5
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
This change is to reset csid_error_irq_count on flush
to prevent from recovery.
CRs-Fixed: 2926200
Change-Id: I8568fdc679317e41c31f4aeb9cf8c3ae579d8448
Signed-off-by: Ayush Kumar <ayushkr@codeaurora.org>
Enable programming safe_lut value for pdaf port and write
value as per systems recommendation.
CRs-Fixed: 2986641
Change-Id: I0405fc1f0c5548a50814bab28f7a7d4cbb924730
Signed-off-by: Pavan Kumar Chilamkurthi <pchilamk@codeaurora.org>
Add new BIT fields for IFE feature flag to indicate custom AEB
mode/shdr mode. Also add support to obtain epoch factor from
userland.
CRs-Fixed: 2986303
Change-Id: I1593b3ac3d1ace660bf58f2185f35e7f9986681c
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
Update mid values for vfe and vfe lite ports to match with spec.
Remove incorrect input frameheader config offset.
CRs-Fixed: 2841729
Change-Id: I8dc0af8ef40e645b3c38272bb4ed2f82974f48e1
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>