In case of a module hang apart from printing the debug status
registers print the faulting module name as well.
CRs-Fixed: 2841729
Change-Id: I43c34df1d667e77827fce50b312741449c1c4e17
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
Having a global variable and using the same for all devices
will overwrite the name of previous device. Use pdev name
to be consistent and helps in debugging logs.
CRs-Fixed: 2901925
Change-Id: I086f3dbd12e720c5e6497355eae40ca242d3d408
Signed-off-by: Pavan Kumar Chilamkurthi <pchilamk@codeaurora.org>
In case of SFE/CSID cmd buffer update, more number of hw update entries
is needed. Assign and allocate this memory dynamically based
on stream type. Also the change makes cdm cmd memory allocation
based on the stream.
CRs-Fixed: 2841729
Change-Id: Iaaa3ce7152a103ace25b24d84776f5a665603994
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
Add Main/Aon camera switch support for image sensor
and it's submodule. This change detects the AON support
from image sensor hw information from it's respective
device tree support. Also sensor needs to call csiphy
to do the cpas top level operation in order to program
the register for Main/AON mux operation, so add API
export from csiphy hw for sensor domain to perform
the operation.
CRs-Fixed: 2899541
Change-Id: Ibde3ce86c15cfd7e7f445f6461565f78a668b812
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
Apply the flash at EOF and apply the other devices
at the EPOCH of next frame, then the flash can
cover all the exposure zone of current request.
Add the inject delay for SOF and EOF separate,
then we can use inject delay for more flexible
frame skip control.
CRs-Fixed: 2820683
Change-Id: Ic6a58327a0ae44c54190884ba42ea7926ec7c90e
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
Currently, iterating through all the possible split indexes will
always hit the check for max value at the end. Remove the check
as the KW error corresponding to it is false positive.
CRs-Fixed: 2841729
Change-Id: I8b555ab3c4680e348d3af1169d95b79e0d8572a9
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
In case of streams with no ePCR, and if error happens on the
very first frame reg dump on error is not triggered since
last_dump_err_req_id and applied_req_id both are 0x0. Change
it to a flag instead to avoid this scenario and reset the flag
at stream off/release.
CRs-Fixed: 2841729
Change-Id: Ieaee68c42fb2228dfa966a0ef158802a10694dca
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
While csiphy is shutdown abnormally, we also need to
program off csiphy hw common register, to avoid the
residual of active csiphy hw cnt during monkey test.
CRs-Fixed: 2861912
Change-Id: I1767c729b205a96e5f298265e65b37150dac03b6
Signed-off-by: chengxue <chengxue@codeaurora.org>
Add qosgen values and update existing values to match the
recommendation.
CRs-Fixed: 2841729
Change-Id: Ie1f331f9a30bba91d636fcdcca7507b5b4fce237
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
In sHDR case, the trigger cnt may be different when one of the IFE
meet bubble or irq delay issue, then reset the trigger cnt when
we find the trigger cnt is different.
CRs-Fixed: 2857614
Change-Id: Ie02fd7204bebd16d32d7a277ac1f2e45f8357dd9
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
SHDR case has two ISP instances, if one of them
apply req failed sometimes, but the other one is
good and the buf done has been handled successfully,
then we don't need to apply the req again for the
successful ISP.
CRs-Fixed: 2842495
Change-Id: I3dfbb455244daa0d155858dd59f4a661fd3b87cd
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
Allocate memory for flush req array dynamically based
on the list count, in case the req count bigger than
the size of req list.
CRs-Fixed: 2835525
Change-Id: I7e48fb9dc7815cb991c84195e761a3c3f1c26b48
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
With the newly added register base types for reg dump, the
validation needs to be changed to account for the new max.
CRs-Fixed: 2841729
Change-Id: I6babe7a1e4d6def51b8e433be4431f04a0a417e8
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
Currently debug_cfg_en is listed only for IPP, update
the value for rest of the paths as well.
CRs-Fixed: 2841729
Change-Id: I19d8489d71468e49a594274f9198e9cb2841003c
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
The core config is programmed via CDM by userspace. Remove
the programming of these registers in kernel to avoid
any discrepancy.
CRs-Fixed: 2841729
Change-Id: Iea8b0843c8283dd6be2c98b4e5de9de7f8312b7e
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
Switch WMs for current 2PD and 2PD_STATS ports. Rename
2PD_STATS to PREPROCESS_2PD inline with UMD notion.
CRs-Fixed: 2841729
Change-Id: I735ef397cfd6328aa2fef73970def0b64044fe2e
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
Reset the CSID debug info on release. Without releasing the
IRQ enabled for previous session will be trigerred in next session
as well.
Change-Id: I3d4dec4446926f60ba772a9608c96513a9919a4f
CRs-Fixed: 2830502
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
For new targets, VFE/SFE overflow errors are back pressured to
CSID recovery module. Error IRQs are not available with VFE/SFE
blocks for such errors.
Above errors are to be propagated from CSID driver to downstream
module drivers to print the relevant debug data and handle
the error.
This commit implements propagation of error and
printing the debug info in VFE and SFE.
CRs-Fixed: 2830502
Change-Id: I24ecd7433b3324505e92d9d55576ca3107e66fdd
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>