Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-67958

Failed to open gpu '/dev/dri/card1': GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: Invalid argument

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-10.0
    • mutter
    • None
    • Yes
    • Important
    • rhel-sst-display-window-management
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • x86_64
    • None

      What were you trying to do that didn't work?

      gnome desktop failed to start on passthrough nvidia rtx A2000 gpu

      What is the impact of this issue to you?

      Not able to use nvidia gpu for graphic in virtualization

      Please provide the package NVR for which the bug is seen:

      mutter-47.0-2.el10.x86_64
      gdm-47.0-3.el10.x86_64 
      kernel-6.11.0-29.el10.x86_64 
      NVIDIA-Linux-x86_64-565.57.01.run 

      How reproducible is this bug?:

      100%

      Steps to reproduce

      1. Boot a rhel 10.0 guest with virtio-vga as primary and nvidia rtx a2000 gpu as secondary
      2. Apply config files required:
      # cat /lib/udev/rules.d/61-mutter-ignore.rules 
      DRIVERS=="bochs-drm", SUBSYSTEM=="drm", TAG+="mutter-device-ignore" 
      DRIVERS=="virtio-pci", SUBSYSTEM=="drm", TAG+="mutter-device-ignore" 
      
      # cat /proc/cmdline BOOT_IMAGE=(hd0,gpt2)/vmlinuz-6.11.0-29.el10.x86_64 root=/dev/mapper/rhel_vm--211--137-root ro crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M resume=UUID=663e7fe3-71ca-4a06-a0fe-43c226191c19 rd.lvm.lv=rhel_vm-211-137/root rd.lvm.lv=rhel_vm-211-137/swap console=tty console=ttyS0,115200 modprobe.blacklist=nouveau nvidia_drm.modeset=1 selinux=0   

      Expected results

      gnome desktop can be enabled on rtx a2000 gpu

      Actual results

      gnome desktop failed to start on rtx a2000 gpu.

      gdm logs:

      Nov 18 23:47:57 gnome-shell[1927]: Running GNOME Shell (using mutter 47.0) as a Wayland display server
      Nov 18 23:47:57 gnome-shell[1927]: Thread 'KMS thread' will be using real time scheduling
      Nov 18 23:47:57 gnome-shell[1927]: Ignoring DRM device '/dev/dri/card0'
      Nov 18 23:47:57 gnome-shell[1927]: Failed to open gpu '/dev/dri/card1': GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: Invalid argument
      Nov 18 23:47:57 rtkit-daemon[1663]: Successfully made thread 1945 of process 1927 (/usr/bin/gnome-shell) owned by '42' RT at priority 20.
      Nov 18 23:47:57 org.gnome.Shell.desktop[1927]: Failed to setup: No GPUs found
      Nov 18 23:47:57 gnome-session[1915]: gnome-session-binary[1915]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
      Nov 18 23:47:57 gnome-session-binary[1915]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
      Nov 18 23:47:57 gnome-session-binary[1915]: Unrecoverable failure in required component org.gnome.Shell.desktop
      Nov 18 23:47:57 /usr/libexec/gdm-wayland-session[1914]: dbus-daemon[1914]: [session uid=42 pid=1914] Activating service name='ca.desrt.dconf' requested by ':1.2' (uid=42 pid=1915 comm="/usr/libexec/gnome-session-binary --autostart /usr")
      Nov 18 23:47:57 /usr/libexec/gdm-wayland-session[1914]: dbus-daemon[1914]: [session uid=42 pid=1914] Successfully activated service 'ca.desrt.dconf'
      Nov 18 23:47:57 gdm-launch-environment][1904]: pam_systemd(gdm-launch-environment:session): New sd-bus connection (system-bus-pam-systemd-1904) opened.
      Nov 18 23:47:57 gdm-launch-environment][1904]: pam_unix(gdm-launch-environment:session): session closed for user gdm
      Nov 18 23:47:57 gdm[1595]: Gdm: GdmDisplay: Session never registered, failing
      Nov 18 23:47:57 gdm[1595]: Gdm: GdmLocalDisplayFactory: maximum number of X display failures reached: check X server log for errors
      Nov 18 23:47:57 gdm[1595]: Gdm: Child process -1909 was already dead.
       

      On rhel 10.0 beta VM with same nvidia driver, gnome desktop can be enabled correctly, gdm logs:

      Nov 18 10:31:11 gnome-shell[1388]: Running GNOME Shell (using mutter 47.alpha) as a Wayland display server
      Nov 18 10:31:11 gnome-shell[1388]: Ignoring DRM device '/dev/dri/card0'
      Nov 18 10:31:11 systemd[1]: Starting rtkit-daemon.service - RealtimeKit Scheduling Policy Service...
      Nov 18 10:31:11 systemd[1]: Started rtkit-daemon.service - RealtimeKit Scheduling Policy Service.
      Nov 18 10:31:11 rtkit-daemon[1407]: Successfully made thread 1406 of process 1388 (/usr/bin/gnome-shell) owned by '42' RT at priority 20.
      Nov 18 10:31:11 gnome-shell[1388]: Made thread 'KMS thread' realtime scheduled
      Nov 18 10:31:11 gnome-shell[1388]: Device '/dev/dri/card1' prefers shadow buffer
      Nov 18 10:31:12 gnome-shell[1388]: Added device '/dev/dri/card1' (nvidia-drm) using atomic mode setting.
      Nov 18 10:31:12 gnome-shell[1388]: Created gbm renderer for '/dev/dri/card1'
      Nov 18 10:31:12 gnome-shell[1388]: GPU /dev/dri/card1 selected as primary
      Nov 18 10:31:12 gnome-shell[1388]: Obtained a high priority EGL context
      Nov 18 10:31:12 gnome-shell[1388]: Obtained a high priority EGL context
      Nov 18 10:31:12 /usr/libexec/gdm-wayland-session[1375]: dbus-daemon[1375]: [session uid=42 pid=1375] Activating service name='org.a11y.Bus' requested by ':1.4' (uid=42 pid=1388 comm="/usr/bin/gnome-shell" label="system_u:system_r:xdm_t:s0-s0:c0.c1023")
      Nov 18 10:31:12 /usr/libexec/gdm-wayland-session[1375]: dbus-daemon[1375]: [session uid=42 pid=1375] Successfully activated service 'org.a11y.Bus'
      Nov 18 10:31:12 gnome-shell[1388]: Using public X11 display :1024, (using :1025 for managed services)
      Nov 18 10:31:12 gnome-shell[1388]: Using Wayland display name 'wayland-0'
       

              jadahl@redhat.com Jonas Ådahl
              rhn-support-zhguo Zhiyi Guo
              Jonas Ådahl Jonas Ådahl
              Michal Odehnal Michal Odehnal
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated: