This change fixes the typo error which was there while copying the blob
args. Also fix typo in cam_cre_validate_acquire_res_info for plain128.
CRs-Fixed: 3027075
Change-Id: Ibd163e0719e93a3159ae5cbbd84ce835e85bb8cc
Signed-off-by: Vikram Sharma <vikramsa@codeaurora.org>
Signed-off-by: Wyes Karny <wkarny@codeaurora.org>
Based on the chipset update the latency buffer alloc config for
SFE RD. This value can obtained from CAMNOC HPG for a given target.
CRs-Fixed: 2841729
Change-Id: I86acf62e62edc473231f6fe75d9d4780a7f099ae
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
Avoid programming aup/rup at stream on after scratch buffer
programming on occasions where there is no ePCR. At stream on,
INIT packet adds rup/aup.
CRs-Fixed: 2841729
Change-Id: Ic045c4917c7a1cebacb0a331a7c3ade16726e267
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
As opposed to failing the cache config call for resources that
do not have a RM, skip the config and continue. Also make the
scratch config flag per resource as opposed to one for all 3 RDIs.
CRs-Fixed: 3007750
Change-Id: I64efd5af0dd292a8687ad22cea7672e1d423339b
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
Add more datarate specific setting ranges to cover the
finer gsps ranges. Dump all the common status registers
on the error rather than just the irq status registers.
CRs-Fixed: 3022770
Change-Id: I6dc5e8d695a40c1633c054e5420084f1ec771485
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
Move the flag which decides whether to program the common
registers for csiphy for all the phy devices to dtsi file.
Common registers sequence should not be programmed for all
the Csiphys during stream on for SM8450 v2 device.
CRs-Fixed: 3020245
Change-Id: I91e6bb786868c1aae165c97751663593e46b8c5b
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
Disable camera module during BU that is not ready for
compiling on new targets for QMAA.
CRs-Fixed: 3027651
Change-Id: I26fb7f51caddb342fc9a50f2c482362e36dae015
Signed-off-by: Mulugeta Engdaw <mengdaw@codeaurora.org>
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
Protect taskpool memory free operation with workqueue lock to prevent
use after free issues.
CRs-Fixed: 3019429
Change-Id: I0282e01e093f80578c5058a41823036370f5a88a
Signed-off-by: Anand Ravi <ananravi@codeaurora.org>
This change help to aply request for lower pd device in sync mode
even if next open request is not avaiable at CRM.
CRs-Fixed: 3017979
Change-Id: Idfae0438d53e61f49c30f205357d5826dd943daa
Signed-off-by: Ayush Kumar <ayushkr@codeaurora.org>
Releasing session lock before unlink and acquiring
it immediately after to allow workq to be done. Check
link state after acquiring session lock in process_
req to return if link is IDLE.
CRs-Fixed: 3003287
Change-Id: Ie7a8ffc4edcb123db290d6da047d748b3e99d68b
Signed-off-by: sokchetra eung <eung@codeaurora.org>
Send clock rate as 0 for src clocks to MMRM, when disabling
the clock. This will help MMRM in peak overshoot computation.
CRs-Fixed: 2841729
Change-Id: I048b530fb620f0e47e1596f31e2ca12ff43bb471
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
Issue:
strlcpy calls strlen on src ptr. If src is not NULL terminated then OOB
access will occur in below stack.
strlen
strlcpy
cam_sync_init_row
cam_sync_handle_create
cam_sync_dev_ioctl
Fix:
Pad user-space supplied name with NULL.
CRs-Fixed: 3010262
Change-Id: Ib5c2fbfe395025ec05e0bb2980f86111e95ff54c
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
This commit fixes mismatch between number of format specifier
and number of arguments while printing the HBI and VBI values.
Also, it swaps the actual and expected frames while printing
format measure values.
CRs-Fixed: 3026328
Change-Id: Idf8b5ec75c1fb2058d046a193282bd3c66057b72
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
Currently, bw vote is sent directly to top layer for each base index.
In cases where no bus reador write port is acquired, the bw vote will
be all zeros for that core, and can be interpreted as error. check
acquire of bus ports before sending bw vote to hw.
CRs-Fixed: 3020236
Change-Id: I1e9c1ae1fde0435f4defbd2f065a53190fd2c32a
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
When CSID stop commmand is issued before sensor is streamed off,
hardware might raise spurious errors that should be ignored.
CRs-Fixed: 2846451
Change-Id: Icece55fcba606697851a335d5a7a29256236017a
Signed-off-by: Anand Ravi <ananravi@codeaurora.org>
This commit changes the termination condition while printing the
violation in IFE. Current condition results in infinite loop.
Change-Id: Id1d1d0dbffa3e3a8065745aebe7aa35f5d2ce52e
CRs-Fixed: 3020683
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
In scheduling delays or race conditions, it has been observed that
cookie value and the request id in userdata returned from CDM
do not match. This can happen due to CDM worker threads getting
delayed. Userdata attached with the CDM is the pointer in the
request. By the time, the cdm callback is received there is a
possibility that the request data has been reset and that request
node being re-used for another request. This can cause issues
particularly in race conditions.
To handle the condition, this commit associates the userdata and
with the context. Also, while submitting the request, the request
id is saved with context, which can be compared during the cdm
callback.
Change-Id: If09bc823602621e7a5e48e8eeb843c4abbeca016
CRs-Fixed: 3015161
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
CCI logging improvement to print the runnning
master and queue.
CRs-Fixed: 3014893
Change-Id: I65a0e2797956a66fe50660290a4f2ccb74c60cbe
Signed-off-by: Wang Kan <wkan@codeaurora.org>
Based on targets, in case of device crash, in place
of complete memory dump, mini dump can be extracted.
This commit adds changes in context utils for NRT devices
and in ICP, JPEG drivers.
CRs-Fixed: 2993116
Change-Id: I7c4af2cdf44713f741d3d772316080124e8a9a7f
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
Based on targets, in case of device crash, in place
of complete memory dump, mini dump can be extracted.
This commit adds changes for basic framework
to interact with base kernel for mini dump.
This commit also adds changes for ISP, CRM, SMMU and
Memory Manager.
CRs-Fixed: 2993116
Change-Id: I02620bd79ee2f84847381509a5eb030ffb1ca9d4
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
Handle apply failure in workqueue. Add recovery mechanism
to recovery in req_mgr to handle frame out of sync issue.
CRs-Fixed: 2997164
Change-Id: I0e04571b3a31d7a879a7aa579c1f0be51c233277
Signed-off-by: Ayush Kumar <ayushkr@codeaurora.org>
Remove dump_tbl_info function and all of its
invocations in CRM to prevent dumping all the
handle info when holding the spin lock.
CRs-Fixed: 3014074, 3014073
Change-Id: Ie98bafb489fc0d1f2d75cf0f3f08efb48d9b4062
Signed-off-by: sokchetra eung <eung@codeaurora.org>
Fix the incorrect implementation which keeps the failed
thumbnail requests in the active request list and do not
free up.
CRs-Fixed: 2999106
Change-Id: I8f34d8b24aa1e0e3afb1452cffbf5a4113e0dc0e
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>