Re: [PATCH v2 3/9] media: chips-media: wave5: wait before retrying a refused flush
From: Nicolas Dufresne
Date: Thu Nov 26 2026 - 19:40:17 EST
Le lundi 09 novembre 2026 à 14:28 +0900, Jackson.lee a écrit :
> From: Jackson Lee <jackson.lee@xxxxxxxxxxxxxxx>
>
> 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@xxxxxxxxxxxxxxx
> Tested-by: Brandon Brnich <b-brnich@xxxxxx>
> Signed-off-by: Jackson Lee <jackson.lee@xxxxxxxxxxxxxxx>
> Signed-off-by: Nas Chung <nas.chung@xxxxxxxxxxxxxxx>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@xxxxxxxxxxxxx>
Attachment:
signature.asc
Description: This is a digitally signed message part