Skip to content

Cannot use VAAPI on headless amdgpu devices #134

@agrajag9

Description

@agrajag9

Describe the bug
VAAPI calls may never return if there's no display attached. This is at least true for the WX 2100.

There's an option in amdgpu_drv.c but I wasn't able to get it working.

FreeBSD version
stable/13-n248443-c89c8b894cf GENERIC amd64

PCI Info

pciconf -lv
vgapci0@pci0:3:0:0:     class=0x030000 rev=0x00 hdr=0x00 vendor=0x1002 device=0x6995 subvendor=0x1028 subdevice=0x0b0c
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Lexa XT [Radeon PRO WX 2100]'
    class      = display
    subclass   = VGA

DRM KMOD version

drm-fbsd13-kmod 5.4.144.g20211013
drm-kmod g20190710_1

To Reproduce

  1. Detach all displays from amdgpu device
  2. Run LIBVA_TRACE=1 LIBVA_DRIVER_NAME=radeonsi vainfo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions