Currently, the camera initialization log only points to the
camera initcalls execution. The camera driver is initailized when
all components are bound succussfully in CRM master bind. Add
appropriate log to convey correct info.
CRs-Fixed: 2841729
Change-Id: I5a52ad9fdf84d79d66763d47c92d2a63bb8d0e21
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
This change extends the VFE top debug print functionality including
printing the module descriptions upon violation for IFE lite.
CRs-Fixed: 2846451
Change-Id: I6ba390892abd398ed48ac71a0910e227a787e09b
Signed-off-by: Anand Ravi <ananravi@codeaurora.org>
Add support to increase the number of available handles
in CRM to 256.
CRs-Fixed: 2811740
Change-Id: I16d05e85302f273ccb2b22ec882c07f9b515694d
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
Add support for new ports for OPE in ICP.
New ports: FD, STATS_IHIST for IPE.
CRs-Fixed: 2887030
Change-Id: I41669f27f08a352088b0ed4ed29f2ed443fd02a4
Signed-off-by: Wyes Karny <wkarny@codeaurora.org>
Support compilation for new code base.
Add new mk file.
CRs-Fixed: 2887030
Change-Id: I4ac920f44aa6913c09045e0ae84ed3558a2b4832
Signed-off-by: Wyes Karny <wkarny@codeaurora.org>
In current implementation, each driver call wait_for_completion_timeout
and readl_poll_timeout with own timeout values.
In case of slow environments like presil, lot of hacks are needed to
change the timeouts for each driver. It needs multiple code changes
and compilations, thus consuming time.
This commit implements a common interface to call
wait_for_completion_timeout and readl_poll_timeout.
Debug variable is also introduced to
change the timeout value. This will help to change the timeout
without compilations and changes at multiple places.
Change-Id: Iba51e0805a49ed325147a12688c2fe6619bb68e6
CRs-Fixed: 2830502
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
In case of sHDR to have a continuous flow of frames,
program scratch buffer even if there are no pending
requests to apply.
CRs-Fixed: 2841729
Change-Id: I8015a3a184751b2a772db55c35b02de380f04491
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
Fix the TPG version 3 reserve function to utilize all the 16
unique VC and DT combination support. Add functionality to be
able to reserve TPG version 3 multiple times for future
multi camera usecase.
CRs-Fixed: 2823940
Change-Id: Ib5cadc5398c78f110a8a768932d65de3bd849309
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
Along with IFE extend reg dump support for CSID & SFE as well.
CRs-Fixed: 2841729
Change-Id: I6bf36bbefdcc7173b5edaf538264ee2c8ad3c18e
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
Currently, bus IRQs are subscribed before start, which
will result in IRQ mask to be reset when CSID global
SWI reset is present on certain targets. Move the IRQ
subscribe/unsubscribe calls to start/stop in vfe bus to
help retain the mask value.
CRs-Fixed: 2841729
Change-Id: I7c10fda9c82bb5f1601d3fd67cabda0a5abc275b
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
Fix the return code in sensor power up
function for failure case.
CRs-Fixed: 2887698
Change-Id: Ib4df3230d83d02fcd239d872a5bcfa2994d519a3
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
Update the 3phase bring up sequence for csiphy2.1.0. Also
add support for the irq status dump.
CRs-Fixed: 2835738
Change-Id: Id2e59ebb902f7cdc843cdfaf23c5b717807cf78b
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
Kernel apis provide information fault caused pid and mid data.
Handle the OPE 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 ope node dt entries.
CRs-Fixed: 2857868
Change-Id: I909f1787e71e67e5ed1d3464dfeb506418d151e4
Signed-off-by: Vikram Sharma <vikramsa@codeaurora.org>
Add new packer format to support LSB alignment for plain16_10
packer format.
CRs-Fixed: 2825675
Change-Id: I401241dc14dc67d3b363d3d39b37aabe716e167c
Signed-off-by: Vikram Sharma <vikramsa@codeaurora.org>
CDM driver check for available bl fifo slots before
submitting to HW. If no free slots available then
it wait for CDM HW to process all the BLs and return
available slots.
CDM driver was incorrectly calculating the available bl
slots and causing bl fifo overflow.
Corrected the sequence in wait for bl fifo logic.
CRs-Fixed: 2837583
Change-Id: I2861f8c66822e0739f0546eaf153d8e2af0caefe
Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
Qchannel interface is used to ensure camnoc is idle. This needs
to be check before camera core power collapse and after camera core
power on sequence to make sure camera hw blocks are in proper state.
CRs-Fixed: 2847646
Change-Id: If9dbd980c2e8e983ac973f91e3d1ed132719c395
Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
last_applied_idx is updated on every successful applied
request and the buf_done. After buf_done last_applied_idx
is set to -1. While accessing last applied req the same
index is used, if the last_applied_idx is -1 accessing
last applied request will result in slab out of bound
error, so check last_applied_idx before accessing
last applied request.
CRs-Fixed: 2840329
Change-Id: I8f49b9df097859cde20e651149167db7316976bb
Signed-off-by: Tejas Prajapati <tpraja@codeaurora.org>
There is chance that handle error info get scheduled
after cdm deinit. As clock and regulator gets disabled
as part of deinit so this can cause issue for cdm hw
interaction as part of handle error.
Added cdm power state check before dumping CDM HW
status at the time of error.
CRs-Fixed: 2833653
Change-Id: I4bf01ce3900196909cf66ffdb24607c50ab03295
Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
Sometimes, the cpu load is very high, then the devcies
stream on will be delayed, but the CRM watchdog is already
enabled before streaming on, then we will have a chance to
notify SOF freeze issue.
This change pauses the CRM watchdog timer before streaming
on sensor and after stopping ife, when we can detect the
stream on and stream off delay, but don't notify error,
also can detect the real SOF freeze issue.
CRs-Fixed: 2804587
Change-Id: Iccaee837930ea22290b109eff45b05300d844312
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
Add support to dynamically switch pix_pattern of read clients
based on data received in each request.
CRs-Fixed: 2811530
Change-Id: Icb3ebd33cae59b8db87bc0011d6560492ad29c3a
Signed-off-by: Rishabh Jain <risjai@codeaurora.org>