Le lundi 09 novembre 2026 à 14:28 +0900, Jackson.lee a écrit : > From: Jackson Lee > > wave5_vpu_flush_instance() repeats FLUSH until it is accepted but never > waits between attempts, so the whole retry budget is spent in a few hundred > microseconds - far less than a large frame takes to decode. A flush issued > while a picture is in flight is refused every time and gives up: > > Flush of DECODER instance with id: 0 timed out! > > streamoff_output() then returns -ETIMEDOUT without resetting the ring > buffer and the instance never decodes again. > > Sleep 1-2 ms between attempts, and only use dec_info when the call that > filled it succeeded: otherwise index_frame_display would set a display flag > on an arbitrary frame buffer. With a flushing seek every 500 ms the decoder > stopped after 519 frames before this change and ran past 2072 with it. > > Fixes: 45d1a2b93277 ("media: chips-media: wave5: Add vpuapi layer") > Fixes: a2c75e964e51 ("media: chips-media: wave5: Fix a hang after seeking") > Cc: stable@vger.kernel.org > Tested-by: Brandon Brnich > Signed-off-by: Jackson Lee > Signed-off-by: Nas Chung Reviewed-by: Nicolas Dufresne