[PATCH v2 2/7] media: rkvdec: vdpu383: complete refused HEVC requests
From: Daniel Golle
Date: Fri Nov 20 2026 - 18:42:04 EST
When the RPS controls are missing, the VDPU383 HEVC back end fails the
job after the request was applied, but without completing the request's
controls. The request then never completes: userspace waits for it
forever and MEDIA_REQUEST_IOC_REINIT fails with -EBUSY.
Complete the controls before returning the error, as the VP9 code does.
Fixes: e3b5b77e3689 ("media: rkvdec: Add HEVC support for the VDPU383 variant")
Cc: stable@xxxxxxxxxxxxxxx
Signed-off-by: Daniel Golle <daniel@xxxxxxxxxxxxxx>
---
Changes since v1:
- Rewrite the commit message
- No code change
drivers/media/platform/rockchip/rkvdec/rkvdec-vdpu383-hevc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/media/platform/rockchip/rkvdec/rkvdec-vdpu383-hevc.c b/drivers/media/platform/rockchip/rkvdec/rkvdec-vdpu383-hevc.c
index 3462d995d4cf0..e9d8b590f0d58 100644
--- a/drivers/media/platform/rockchip/rkvdec/rkvdec-vdpu383-hevc.c
+++ b/drivers/media/platform/rockchip/rkvdec/rkvdec-vdpu383-hevc.c
@@ -553,6 +553,7 @@ static int rkvdec_hevc_run(struct rkvdec_ctx *ctx)
if ((!ctx->has_sps_lt_rps && run.sps->num_long_term_ref_pics_sps) ||
(!ctx->has_sps_st_rps && run.sps->num_short_term_ref_pic_sets)) {
dev_err_ratelimited(rkvdec->dev, "Long and short term RPS not set\n");
+ rkvdec_run_postamble(ctx, &run.base);
return -EINVAL;
}
--
2.56.1