[igt-dev] [PATCH i-g-t 0/1] igt_chamelium: Increase timeout for CaptureVideo

Neel Desai neel.desai at intel.com
Tue Apr 16 16:13:44 UTC 2019


For some chamelium boards, we observed that the chamelium_rpc()
call with method_name as CaptureVideo timed out because the display
resolution read by the FPGA using the VideoDumper did not match the
resolution in the RX chip. The resolution read by the FPGA from the
memory was incorrect after 10 seconds and needed more time to stabilize
to the correct value.

So, instead of checking the chamelium->env.fault_occured in the
chamelium_rpc() funtion, we defer the check in the parent function
chamelium_capture(). We iterate upto 10 times if chamelium_rpc() with
method name as CaptureVideo fails thus effectively increasing the
timeout to 100 seconds instead if 10 seconds. If after 10 iterations,
chamelium->env.fault_occured is still set, we return an error.

This looks like an issue from Google's end in the FPGA code. This patch
introduces a workaround till we get the issue resolved from Google's
end.

Neel Desai (1):
  lib/igt_chamelium: Increase timeout for CaptureVideo

 lib/igt_chamelium.c | 33 +++++++++++++++++++++++++++++++--
 1 file changed, 31 insertions(+), 2 deletions(-)

--
2.17.1



More information about the igt-dev mailing list