[Bug 2100483] [NEW] amdgpu.ids path is fixed

Launchpad Bug Tracker 2100483 at bugs.launchpad.net
Thu Feb 27 11:55:36 UTC 2025


You have been subscribed to a public bug:

The AMD driver expects the file `amdgpu.ids` in a fixed place (/usr/share/libdrm); this means that, when building a Snap application, the amdgpu.ids file isn't directly available there, but inside a mounted folder. This forces either each application, or each extension snap (gnome-extension, mesa-2404...) to link/bind the file from the current place (usually at $SNAP/gnome-platform/usr/share/libdrm/amdgpu.ids)
into the original path. The problem is that, currently, it fails, and the file isn't being binded, no matter the correct statement is specified in the snap.

There is a patch for libdrm that allows to set an environment variable,
called AMDGPU_ASIC_ID_TABLE_PATH, where the file will be searched for
instead of the default, meson-configured, path. Unfortunately, it still
hasn't been merged. But applying it into the .deb packages would allow
to fix this problem, and with the extra advantage or reducing the number
of binded files/folders in the snaps (each bind consumes resources, and
in fact, snapd limits the number of binds that a snap can do, so being
able to use an environment variable for this would allow to save one).

The patch: https://gitlab.freedesktop.org/mesa/drm/-/merge_requests/273

** Affects: libdrm (Ubuntu)
     Importance: Undecided
         Status: New

-- 
amdgpu.ids path is fixed
https://bugs.launchpad.net/bugs/2100483
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to libdrm in Ubuntu.



More information about the foundations-bugs mailing list