During configuring paths in CSID, RX capture control is also getting
configured. This is done as a part of Rx configurations.
This removes the capture control from start path functions.
CRs-Fixed: 2933774
Change-Id: Idebb4e03634d91583fdab58b9e5d0313530a7f1d
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
Update the csiphy1.2.3 programming sequence for the update
on 01/08/2021.
CRs-Fixed: 2856350
Change-Id: I06b164fbb0a589f22f973476709008d0c7ac32ca
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
Move AON camera select control to the csiphy header.
CRs-Fixed: 2915332
Change-Id: I246d5ee93e9f494b36856fad33fc23e81fa37af2
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
Since the SOF timestamp is only updated at SOF,
so we can't do self-correction at EOF. When the
frames already in sync, but the req is a EOF
triggered req, then the req can't be applied at
SOF, but it will fail to pass self-correction
checking at EOF. Then we will loop this progress,
the req can't be applied anymore.
CRs-Fixed: 2930497
Change-Id: I079cbd3cb9ac9541f049c5369baeee831f7444a2
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
Sensor IO framework decides based on slave write request to perform
desire opertion at CCI hw. Currently this framework uses wrong
condition to pass on the correct information to CCI hw. This change
fixes this condition to pass on the correct operation to perform
at CCI hw. Also update hard code value to appropriate enums to align
the opertion with slaves.
CRs-Fixed: 2913072
Change-Id: I3067314e6bccb513f343e3bcbc3f1b72355f2291
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
Introduce new macros to print into log buffers that prefix the
appropriate tags. This allows the usual search filters to pick up all
the lines of the log.
CRs-Fixed: 2928828
Change-Id: I3d27490b324e884eb9cce2bfd184e82418099484
Signed-off-by: Anand Ravi <ananravi@codeaurora.org>
Do not enable the IPP irq mask for the slave CSID.
Change the private data sent to irq controller to be passed
as callback parameter to csid top half handler. Change the
CSID top half logging to be more informative.
Restructuring of CSID path data structures to avoid few
function calls in top halves. Add error time stamp
to be printed at the time of overflow.
CRs-Fixed: 2830502
Change-Id: I660245c3ac534a763dc119ddbe498bec2de9e104
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
Remove logs while udpating the clock rate in CSID received as
a part of blob. Print the applied clock and received clock
during enabling CSID core.
Remove Gating log from VFE.
Change-Id: I4e7590d6853259fed76ef53ec1f198c71e04adae
CRs-Fixed: 2928763
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
This change gets the flash on wait time from userspace to
control the precise flash.
CRs-Fixed: 2929276
Change-Id: Ieac18f6e049b446c5a7b20dcfdff013aa9838575
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
CSID will no longer write to crop registers for all paths. UMD will
configure those registers in init packet. Crop enable logic is retained.
CRs-Fixed: 2929029
Change-Id: If6888d9094a6af3306c603d737b10c32918ab787
Signed-off-by: Anand Ravi <ananravi@codeaurora.org>
When a bubble is detected ISP notifies CRM either for recovery or
provides a trigger to apply next req. Due to scheduling issues,
it's possible that CRM triggers an apply prior to ISP substate update
leading to apply failures. This could prove fatal in case of
FS/sHDR use-cases. This change updates the substate prior to
notifying CRM.
CRs-Fixed: 2841729
Change-Id: I5ccc2b91f347ec29a5dcf6aafe71c063572a7ff7
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
Add a check for reg-val count=0 in reg_random command. Count=0 in
reg_random cdm command will throw an invalid command HW error.
CRs-Fixed: 2916477
Change-Id: Idb8654c3752963cf5a52147d350e291208b917d0
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
Validate per path BW index to ensure it's not negative.
During IDLE time for a given IPE/BPS stream the BW structure is
memset to 0x0 forcing the index and vote to 0. On the next instance
when BW is to removed for the given stream from consolidated
BW value the computed index turns out to be less than zero leading
to an invalid array access. This change validates the index
prior to access.
CRs-Fixed: 2841729
Change-Id: I944f07015538323578b9728053a590686ee20d1a
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
Propagate error code to user in order to let the
user know more about the failure.
CRs-Fixed: 2860306
Change-Id: Icf030aa9df32eac97371059c2d282cfb53257401
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
Move constraint error bitmasks to header for vfe and sfe.
Add WM name to sfe header.
CRs-Fixed: 2841729
Change-Id: Ia5d18f1a348fabe9679acc3c50983392d8864613
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
Set the debugfs root entry pointer to null after
recursive remove at unbinding to prevent null pointer
dereference by kernel followed by kernel panic. Also,
add checks to avoid null pointer dereference.
CRs-Fixed: 2920490
Change-Id: I5a4f44f3d8f533f3a51e108472d5ccf93c261a98
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>