Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Oct 2021 13:50:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 258947] graphics/mesa-gallium-va: va_openDriver() returns 2
Message-ID:  <bug-258947-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258947

            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) + POLAR=
IS12
(amdgpu) server, but getting errors from libva that don't make a ton of sen=
se
to me:



$ LIBVA_TRACE=3D1 LIBVA_DRIVER_NAME=3Dradeonsi vainfo
error: XDG_RUNTIME_DIR not set in the environment.
libva info: Open new log file 1.012725.thd-0x000197ad for the thread 0x0001=
97ad
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]=3D=3D=3D=3D=3D=3D=3D=3D=3D=3Dva_TraceInitial=
ize
[43517.695035][ctx       none]=3D=3D=3D=3D=3D=3D=3D=3D=3DvaInitialize ret =
=3D
VA_STATUS_ERROR_ALLOCATION_FAILED, resource allocation failed
[43517.695043][ctx       none]=3D=3D=3D=3D=3D=3D=3D=3D=3D=3Dva_TraceTermina=
te
[43517.695065][ctx       none]=3D=3D=3D=3D=3D=3D=3D=3D=3DvaTerminate ret =
=3D VA_STATUS_SUCCESS,
success (no error)



And without forcing LIBVA_DRIVER_NAME:

$ LIBVA_TRACE=3D1 vainfo
error: XDG_RUNTIME_DIR not set in the environment.
libva info: Open new log file 1.134827.thd-0x000198c2 for the thread 0x0001=
98c2
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 =3D (null)
vaInitialize failed with error code -1 (unknown libva error),exit

$ cat 1.134827.thd-0x000198c2
[22443.045759][ctx       none]=3D=3D=3D=3D=3D=3D=3D=3D=3D=3Dva_TraceInitial=
ize
[22443.045774][ctx       none]=3D=3D=3D=3D=3D=3D=3D=3D=3DvaInitialize ret =
=3D
VA_STATUS_ERROR_UNKNOWN, unknown libva error
[22443.045781][ctx       none]=3D=3D=3D=3D=3D=3D=3D=3D=3D=3Dva_TraceTermina=
te
[22443.045802][ctx       none]=3D=3D=3D=3D=3D=3D=3D=3D=3DvaTerminate ret =
=3D 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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-258947-7788>