RE: [PATCH v2 5/9] media: chips-media: wave5: finish a job only once
From: jackson.lee
Date: Fri Nov 27 2026 - 04:11:29 EST
Hi Nicolas,
Thanks for the review.
> > +static void wave5_dec_finish_job(struct vpu_instance *inst)
> > +{
> > + if (!test_and_clear_bit(WAVE5_JOB_RUNNING, &inst->job_flags))
> > + return;
> > +
> > + v4l2_m2m_job_finish(inst->v4l2_m2m_dev, inst->v4l2_fh.m2m_ctx);
> > +}
>
> To me, the complexity is a side effect of how the performance issue was
> addressed without doing a redesign. I'm fine letting this go, but it will
> get harder and harder without a proper cleanup and redesign.
Agreed, and thanks for letting it go. Once this series is settled, we
will look at reworking the decoder job flow so that each job has a
single, clear owner instead of guarding every place that finishes it.
> > + struct delayed_work unstall_work; /* releases a stale empty_queue park */
>
> This might belong to patch 6.
You are right. unstall_work is only used from patch 6; it ended up here
when the patches were split. I will move it to patch 6 in v3.
Best regards,
Jackson