Skip to content

Add libdrm support for auxbus devices

Alistair Popple dri-devel nova-gpu 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2xf86drm: Pass PCI path rather than maj/min when parsing sysfs filesxf86drm.c+11 -110 replies
2/2xf86drm: Expose auxiliary bus GPUs as DRM_BUS_AUXILIARYxf86drm.c xf86drm.h+121 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH libdrm 0/2] Add libdrm support for auxbus devices

The new Nova[1] NVIDIA GPU driver exposes GPUs as logical devices on an auxbus. Currently libdrm doesn't support auxbus, so it ignores Nova GPUs during enumeration. This adds support for devices on an auxbus.

Rather than follow the lead of virtio and resolve the logical auxbus device back to the physical PCI device, we add a new bus type and associated parser. This is because in the future a single physical GPU may present multiple auxbus devices, so it needs to be possible to resolve individual devices even if they share the same parent GPU.

[1] - https://rust-for-linux.com/nova-gpu-driver

Alistair Popple (2):
xf86drm: Pass PCI path rather than maj/min when parsing sysfs files
xf86drm: Expose auxiliary bus GPUs as DRM_BUS_AUXILIARY

 xf86drm.c | 135 +++++++++++++++++++++++++++++++++++++++++++++++-------
 xf86drm.h |  12 +++++
 2 files changed, 130 insertions(+), 17 deletions(-)
Signature · 1 line
2.54.0