[Bug 258947] graphics/mesa-gallium-va: va_openDriver() returns 2

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 05 Oct 2021 13:50:16 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258947

            Bug ID: 258947
           Summary: graphics/mesa-gallium-va: va_openDriver() returns 2
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: x11@FreeBSD.org
          Reporter: dan.kotowski@a9development.com
          Assignee: x11@FreeBSD.org
             Flags: maintainer-feedback?(x11@FreeBSD.org)

Attempting to enable hardware transcoding for
multimedia/plexmediaserver-plexpass on a headless Xeon E5 (no iGPU) + POLARIS12
(amdgpu) server, but getting errors from libva that don't make a ton of sense
to me:



$ LIBVA_TRACE=1 LIBVA_DRIVER_NAME=radeonsi vainfo
error: XDG_RUNTIME_DIR not set in the environment.
libva info: Open new log file 1.012725.thd-0x000197ad for the thread 0x000197ad
libva info: LIBVA_TRACE is on, save log into 1.012725.thd-0x000197ad
libva info: VA-API version 1.13.0
libva info: User environment variable requested driver 'radeonsi'
libva info: Trying to open /usr/local/lib/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_13
libva error: /usr/local/lib/dri/radeonsi_drv_video.so init failed
libva info: va_openDriver() returns 2
vaInitialize failed with error code 2 (resource allocation failed),exit

$ cat 1.012725.thd-0x000197ad
[43517.695020][ctx       none]==========va_TraceInitialize
[43517.695035][ctx       none]=========vaInitialize ret =
VA_STATUS_ERROR_ALLOCATION_FAILED, resource allocation failed
[43517.695043][ctx       none]==========va_TraceTerminate
[43517.695065][ctx       none]=========vaTerminate ret = VA_STATUS_SUCCESS,
success (no error)



And without forcing LIBVA_DRIVER_NAME:

$ LIBVA_TRACE=1 vainfo
error: XDG_RUNTIME_DIR not set in the environment.
libva info: Open new log file 1.134827.thd-0x000198c2 for the thread 0x000198c2
libva info: LIBVA_TRACE is on, save log into 1.134827.thd-0x000198c2
libva info: VA-API version 1.13.0
libva error: vaGetDriverNameByIndex() failed with unknown libva error,
driver_name = (null)
vaInitialize failed with error code -1 (unknown libva error),exit

$ cat 1.134827.thd-0x000198c2
[22443.045759][ctx       none]==========va_TraceInitialize
[22443.045774][ctx       none]=========vaInitialize ret =
VA_STATUS_ERROR_UNKNOWN, unknown libva error
[22443.045781][ctx       none]==========va_TraceTerminate
[22443.045802][ctx       none]=========vaTerminate ret = VA_STATUS_SUCCESS,
success (no error)



Installed:
graphics/drm-kmod:g20190710_1
graphics/mesa-dri:21.1.5
graphics/mesa-gallium-va:21.1.5
multimedia/libva-utils:2.13.0
multimedia/plexmediaserver-plexpass:1.24.2.4973

Host: FreeBSD 13.0-STABLE #0 stable/13-n247448-a15507a1d5f

-- 
You are receiving this mail because:
You are the assignee for the bug.