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>
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>
Changes return codes to iommu_fault_handler to enable access to new
debug features.
-ENOSYS: Print debug information about the iommu_fault.
0: Print no additonal debug information.
-EBUSY: GPU specific crashdump usecase.
CRs-Fixed: 2835738
Change-Id: Icc2b580dc7b67a00e27ac445b43ab8ffc27fa636
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
Fix the implementation where global clear command is
getting applied redundantly for more than once in a
for loop.
CRs-Fixed: 2880438
Change-Id: I0ff4b120eb7458bfc9978d5c6916d21d8db35e16
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
Update the 2Phase bring up sequence to accomodate different
platforms.
CRs-Fixed: 2835738
Change-Id: I3a58876590f8f6e0ea3d8b651723498494bdf50d
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
Add support in SFE bus to print violating client info.
Also add support to dump violating module in SFE top.
CRs-Fixed: 2841729
Change-Id: Ic859c89a57004139ab442eb28ccb9ab45e5ceb54
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
Replace request_firmware API so that no warning messages
are generated when the file is not found. sysfs callback
mechanism is enabled if direct filesystem lookup fails.
CRs-Fixed: 2841729
Change-Id: I6dd892690ca9d38a90a6e0623d87421e889dbeca
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
Add sensor name in the sensor drivers for better debugging.
CRs-Fixed: 2856300
Change-Id: I97995e2b731dcf05b5cf85d7b023be77d8a21327
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
Interrupt context is printing info logs by default which needs
to be print as dbg log. Correcting logging level to achieve this.
CRs-Fixed: 2835738
Change-Id: Ia21a7a4f62c973b173274b363c9a971370d20c36
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>