diff options
| author | 2026-09-22 22:32:33 -0700 | |
|---|---|---|
| committer | 2026-09-29 18:23:46 +0800 | |
| commit | 093da48782df3d50953c520626b345ca70af8cbd (patch) | |
| tree | bcdc4c0f746be20de4ba1d7f1ad3f160d2885a0e /scripts/Makefile.thinlto | |
| parent | fpga: altera-cvp: Add helper to disable CvP mode (diff) | |
fpga: altera-cvp: Retry teardown and reset CVP state on failure
The driver polls CFG_RDY for 0 as notification that the endpoint has
finished teardown and a new session can start safely. After a bad
bitstream that poll can time out: CFG_RDY may stay stuck when
HIP_CLK_SEL=0 if the device has already left usermode before the poll.
Retrying teardown alone is not enough. Exit CvP mode and switch the HIP
clock that feeds CFG_RDY so CVP_STATUS becomes responsive again, then
try the teardown once more.
Introduce altera_cvp_recovery() to wrap this cleanup and single retry.
Signed-off-by: Nazim Amirul <muhammad.nazim.amirul.nazle.asmade@altera.com>
Reviewed-by: Xu Yilun <yilun.xu@intel.com>
Link: https://lore.kernel.org/r/20260923053233.10890-3-muhammad.nazim.amirul.nazle.asmade@altera.com
Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
