Skip to content

drm/nouveau: fix GK107 VDPAU regressions

Risto Pajula dri-devel lkml nouveau 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/nouveau/fifo/gk104: fix legacy video engine context mappingsdrivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c+14 -00 replies
2/2drm/nouveau/fifo: use global nonstall event on legacy FIFOdrivers/gpu/drm/nouveau/nvkm/engine/fifo/uchan.c+2 -10 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchKush ChandakYoussef Mahmoud
SeriesT-b T-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] drm/nouveau: fix GK107 VDPAU regressions

Hi,

This series fixes two independent Nouveau regressions affecting VDPAU hardware video decoding on NVIDIA GK107 (Kepler).

Patch 1 fixes engine context mappings for the legacy MSVLD, MSPDEC and MSPPP video engines. Since commit 8ab849d6dd4c ("drm/nouveau/fifo: add new engine context handling"), privileged engine context mappings cause FIFO PRIV_VIOLATION faults and kill the channel during VDPAU decoding on GK107.

Patch 2 fixes a fence/progress hang introduced by commit 55e1a5996085 ("drm/nouveau/fifo/ga100-: add per-runlist nonstall intr handling"). Legacy FIFO implementations use a single global nonstall event at index 0, while channel event registration was changed to use runl->id unconditionally. This can leave fence completion waiting for an event that is never signalled.

Tested on NVIDIA GK107 with a Linux 7.3-rc2 based drm-misc tree, Mesa 25.0.7 and mpv using VDPAU_DRIVER=nouveau and vdpau-copy.

With both patches applied:

H.264 1920x1080: PASS
MPEG-2 1920x1080: PASS
VC-1 Advanced Profile: PASS

All three tests completed using VDPAU hardware decoding. No Nouveau faults were reported in dmesg.

Thanks,
Risto

Risto Pajula (2):
drm/nouveau/fifo/gk104: fix legacy video engine context mappings drm/nouveau/fifo: use global nonstall event on legacy FIFO

 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c | 14 ++++++++++++++
 drivers/gpu/drm/nouveau/nvkm/engine/fifo/uchan.c |  3 ++-
 2 files changed, 16 insertions(+), 1 deletion(-)
Signature · 1 line
2.47.3