public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* i.MX8MP Hantro G2 HEVC decoding problems
@ 2025-11-03 13:52 Krzysztof Hałasa
  2025-11-03 16:26 ` Nicolas Dufresne
  0 siblings, 1 reply; 5+ messages in thread
From: Krzysztof Hałasa @ 2025-11-03 13:52 UTC (permalink / raw)
  To: linux-media

Hi,

I'm trying to decode H.265 full HD RTP stream on an i.MX8MP CPU. Should
I expect it to work, or is there something missing?

Small streams (640x360 etc.) are decoded. With 1080p, the board panics
or does something similar.

Generally Hantro G2 doesn't finish decoding some frame. I have a test
video - it can probably choke on random frames, including P-frames
(this is I/P-frame only stream, produced by the H2 counterpart).

The details are foggy at this point, but I'm receiving interrupts:

# dmesg | grep irq
...
[   75.002276] hantro_g2_irq: 0x1100 masked 0x1000 <<< status registers,
                                                shows decoding complete

[   75.143611] hantro_g2_irq: 0x2101 masked 0x0 <<< this is the problem

What could that mean? DEC_E is probably "ERROR", lack of bit 12 is "not
ready", but why do I get this and what does bit 13 possibly mean?

#define G2_REG_INTERRUPT                G2_SWREG(1)
#define G2_REG_INTERRUPT_DEC_RDY_INT    BIT(12)
#define G2_REG_INTERRUPT_DEC_ABORT_E    BIT(5)
#define G2_REG_INTERRUPT_DEC_IRQ_DIS    BIT(4)
#define G2_REG_INTERRUPT_DEC_E          BIT(0)

... then the condition doesn't seem to improve:
[   95.198362] hantro_watchdog:126: frame processing timed out!
[   95.323410] imx-pgc imx-pgc-domain.8: failed to power down ADB400

and it can randomly panic, show an SError, or do nothing of the sort.

How do I even start debugging such stuff?

H.264 doesn't have this problem.
-- 
Krzysztof "Chris" Hałasa

Sieć Badawcza Łukasiewicz
Przemysłowy Instytut Automatyki i Pomiarów PIAP
Al. Jerozolimskie 202, 02-486 Warszawa

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-11-05  5:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-03 13:52 i.MX8MP Hantro G2 HEVC decoding problems Krzysztof Hałasa
2025-11-03 16:26 ` Nicolas Dufresne
2025-11-04  8:12   ` Krzysztof Hałasa
2025-11-04 16:22     ` Nicolas Dufresne
2025-11-05  5:25       ` Krzysztof Hałasa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox