From: Simon Wright <simon@symple.nz>
To: Nicolas Dufresne <nicolas@ndufresne.ca>,
Detlev Casanova <detlev.casanova@collabora.com>,
linux-media@vger.kernel.org
Cc: linux-rockchip@lists.infradead.org
Subject: Re: [BUG] rkvdec-vdpu383-h264: wrong pixels at horizontal de-blocking edges y=4 and y=12
Date: Tue, 9 Jun 2026 20:33:38 +1200 [thread overview]
Message-ID: <34662f2d-cdf9-4ce8-a618-12a0f64cd03a@symple.nz> (raw)
In-Reply-To: <25a232dca0236788c75231c43ee8a01741148c37.camel@ndufresne.ca>
Hi Nicolas,
(Replying to both your notes.)
On the cleaner implementation:
> on the first frame after resume, we'd prepend the workaround decode
> operation to the TBL [...] cleared on the workaround decode IRQ
That's nicer than what I have. For reference, the warmup here already runs as a
minimal link/CCU submit (its own descriptor + register set on the link bank,
separate from the single-shot decode path), which I currently poll. I tried just
arming the link IRQ on that standalone submit, and it never fires - the warmup
only raises the status register, no interrupt - so it does look like it needs to
ride a real link-table task, as you suggest, to be reaped by IRQ. Happy to test
any version on the RK3576 boards here.
On whether it's really a HW bug:
> we know from past mpp workaround that they don't always imply a HW bug
Fair. I did try to rule out the most likely "masking a simpler issue"
candidate - the filterd RCB (slot 6) data state, per your other note - and it's
content-independent:
- Dumping slot 6 after each decode: its content - including the meaningful
deblock-context head, not just an uninitialised tail - is non-deterministic
run to run even across byte-identical good decodes. So there's no stable
"working" RCB state to compare a bad run against; good and bad runs both span
unrelated contents with no shared signature.
- Zero-initialising slot 6 before every decode doesn't change the failure rate
(the allocator already zalloc-zeroes it); a 0xAA sentinel is overwritten by
the HW rather than read into the output.
So it points to the HW racing on its own deblock-context handling rather than
reading stale buffer data. I couldn't reduce it to a register / RCB / clock /
gating difference vs MPP either, which is what pushed me to the power-up priming.
I can't claim it isn't masking something deeper, but it isn't the RCB-data case.
Regards,
Simon
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
next prev parent reply other threads:[~2026-06-09 8:34 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-15 6:20 [BUG] rkvdec-vdpu383-h264: wrong pixels at horizontal de-blocking edges y=4 and y=12 Simon Wright
2026-05-19 16:04 ` Detlev Casanova
2026-05-20 6:45 ` Simon Wright
2026-05-20 17:18 ` Detlev Casanova
2026-05-21 6:59 ` Simon Wright
2026-06-08 5:11 ` Simon Wright
2026-06-08 20:20 ` Nicolas Dufresne
2026-06-08 20:22 ` Nicolas Dufresne
2026-06-09 8:33 ` Simon Wright [this message]
2026-06-09 12:31 ` Nicolas Dufresne
2026-06-09 10:21 ` Piotr Oniszczuk
2026-06-09 22:14 ` Simon Wright
2026-06-10 10:43 ` Piotr Oniszczuk
2026-06-11 6:15 ` Simon Wright
2026-06-11 7:40 ` Piotr Oniszczuk
2026-06-16 12:44 ` Piotr Oniszczuk
2026-06-19 11:18 ` Laszlo Fiat
[not found] <CAN9BvprvMN+PX3nsktab6UDCn=Hy0mbh4WG6FUf6VFX1cuw9aw@mail.gmail.com>
2026-10-27 22:32 ` Sebastian Reichel
[not found] <CAN9BvpqAL_Hb2cR52EkYmkdm37ej2qKxFh2bj7F6Ei_bg-Sw0A@mail.gmail.com>
2026-10-28 21:02 ` Nicolas Dufresne
2026-10-29 12:35 ` Nicolas Dufresne
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=34662f2d-cdf9-4ce8-a618-12a0f64cd03a@symple.nz \
--to=simon@symple.nz \
--cc=detlev.casanova@collabora.com \
--cc=linux-media@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=nicolas@ndufresne.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox