On Arm FVP platforms the virtio backend sometimes returns more bytes than requested. The virtio spec does not forbid returning extra bytes. U-Boot’s existing virtio-rng test treats such cases as errors and the test checks if an error is returned, leading to test failures on FVPs.
To prevent the test failing in such cases, U-Boot should properly handle such cases. Patch 1 adjusts the test, while patch 2 relaxes the error check in the rng code. Kavin Gunasekara (2): test: dm: virtio_rng: Update virtio-rng test virtio: rng: Handle oversized return buffers drivers/virtio/virtio_rng.c | 2 +- test/dm/virtio_rng.c | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) -- 2.34.1

