** Changed in: egl-wayland (Ubuntu)
       Status: In Progress => Fix Committed

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to nvidia-graphics-drivers-470 in Ubuntu.
https://bugs.launchpad.net/bugs/1935082

Title:
  [MIR] egl-wayland

Status in egl-wayland package in Ubuntu:
  Fix Committed
Status in nvidia-graphics-drivers-470 package in Ubuntu:
  In Progress
Status in nvidia-graphics-drivers-495 package in Ubuntu:
  In Progress

Bug description:
  MIR Template:

  [Availability]
  Already available in universe now for impish with the minimum required 1.1.7 
version.

  [Rationale]
  Past nvidia driver releases are in restricted.  If the 470 release follows 
the pattern and ultimately ends up in restricted it will suffer a performance 
penalty when used with Xwayland unless egl-wayland version 1.1.7 (or later) 
from outside the main+restricted repository set (universe) has also been 
installed.

  [Security]
  No search results found for CVS, oss-security.
  No Ubuntu CVE results for egl-wayland or variations thereof.
  The egl-wayland package installs a library with mode 0644 for use by the 
nvidia egl driver.
  While this does not seem to present security issues of its own, the library 
will be loaded and used by the nvidia egl driver and may therefore share any 
security concerns applicable to that driver.

  [Quality assurance]
  Once installed, use of egl-wayland by the nvidia egl driver is automatic, the 
single configuration file 
(/usr/share/egl/egl_external_platform.d/10_nvidia_wayland.json) installed by 
the egl-wayland package makes that happen.
  There is no configuration or other end user interaction.  The package itself 
does not have any UI of its own.
  The current universe version of the package comes from the upstream Debian 
package.
  There is a debian/watch file present.

  [Dependencies]
  The required dependencies (libc6, libwayland-client, libwayland-server) are 
already present in main.

  [Standards compliance]
  Appears to comply with both the FHS and Debian Policy standards.  The 
"/usr/share/egl/egl_external_platform.d/" directory is not specifically 
mentioned by those standards, but that directory location is required by the 
installed "10_nvidia_wayland.json" file in order for the nvidia egl driver to 
load the library that the egl-wayland package installs.

  [Maintenance]
  The egl-wayland package is a small package with few dependencies that is 
already being maintained upstream by Debian.
  Since it only installs a library and a config file and does not have any of 
its own UI, there are no i18n or l10n support issues.

  [Background information]

  The libnvidia-gl 470 drivers have been officially released as of
  2021-07-19 and have since become available in multiverse.

  The libnvidia-gl 470 release notes discuss performance under xwayland
  here:

  
<https://us.download.nvidia.com/XFree86/Linux-x86_64/470.57.02/README/xwayland.html>

  Quoting from those release notes:

  > The following are necessary to enable accelerated rendering on
  > Xwayland with the NVIDIA driver:
  >
  > * DRM KMS must be enabled. See Chapter 35, Direct Rendering Manager
  >   Kernel Modesetting (DRM KMS) for details.
  >
  > * The installed copy of Xwayland should be a build from the master
  >   branch of https://gitlab.freedesktop.org/xorg/xserver at least
  >   as recent as commit c468d34c. Note that if this requirement is
  >   not satisfied, the NVIDIA GPU can still be used for rendering,
  >   however it will fall back to a suboptimal path for presentation
  >   resulting in degraded performance.
  >
  > * libxcb version 1.13 or later must be present.
  >
  > * egl-wayland version 1.1.7 or later must be present (if installed
  >   separately from the the NVIDIA driver).
  >
  > * If using the GNOME desktop environment, kms-modifiers must be
  >   enabled through gsettings. This can be done with the following
  >   command:
  >     gsettings set org.gnome.mutter experimental-features [\"kms-modifiers\"]

  The first item is easily accomplished with something like this:

      /etc/modprobe.d/nvidia-drm.conf:
          options nvidia-drm modeset=1

  For the second item, commit 763f4fb278 in the freedesktop.org xserver
  repository cherry-picks commit c468d34c (and an associated, not
  mentioned, but also required commit) and is first included in the
  xwayland-21.1.1.901 release on 2021-06-30.

  For the third item it appears that libxcb version 1.13 or later has
  been widely in use for some years now.

  For the fourth item, egl-wayland version 1.1.7 was released from the
  upstream repository on 2021-05-11:

    https://github.com/NVIDIA/egl-wayland/releases/tag/1.1.7

  The fifth item, if needed, is easily accomplished via the "gsettings"
  command mentioned in those release notes.

  Which brings us to the point of this request.

  The impish repositories for the forthcoming 21.10 release at this
  point now include xwayland-21.1.1.901 and, with the kind assistance
  of Timo Aaltonen, libnvidia-egl-wayland1 1.1.7 (including the i386
  version to facilitate running the i386 version of libnvidia-gl for
  32-bit only apps on a 64-bit system).

  In other words, impish is all ready to go for full "accelerated
  rendering on Xwayland with the NVIDIA driver" using packages
  currently available.

  But, if the 470 release follows the pattern of past libnvidia-gl
  releases, it will end up in the "restricted" repository at some point.

  According to:

    https://help.ubuntu.com/community/Repositories/Ubuntu

  The "main" repository is "Canonical-supported free and open-source
  software." while the "restricted" repository is "Proprietary drivers
  for devices."

  However, it also says, "The Ubuntu Install CDs contain software
  from the "Main" and "Restricted" repositories," but makes no mention
  of any "Universe" software being included on those CDs.

  This page:

    https://help.ubuntu.com/community/Repositories#Restricted

  goes on to say about the "restricted" repository:

  > we make exceptions for a small set of tools and drivers that make
  > it possible to install Ubuntu and its free applications on everyday
  > hardware. These proprietary drivers are kept in the restricted
  > component. Please note that it may not be possible to provide
  > complete support for this software because we are unable to fix
  > the software ourselves

  In this case, the problem is that the proprietary drivers being "kept
  in the restricted component" (in particular the libnvidia-gl 470
  release likely to end up in "restricted") require a package from
  the "universe" repository (the libnvidia-egl-wayland1 package) to
  avoid suffering from crippled graphics performance when running
  Xwayland.

  Since, apparently, no "universe" software has been included on the
  Ubuntu Install CDs, once the Nvidia 470 drivers make their way to
  restricted, the performance on Nvidia graphics hardware will suffer
  when running Xwayland after installation from the CDs unless an the
  additional libnvidia-egl-wayland1 package from "universe" is
  downloaded and installed.

  Installation in security sensitive environments where access to
  external internet connections has been deliberately cut off comes
  to mind as an example where this arrangement could be a problem.

  This situation would be easily remedied by moving the
  libnvidia-egl-wayland1 package from "universe" into "main" and
  making sure it's included on the Ubuntu Install CDs.

  It's a small package (less than 30KiB for the package, less than
  70KiB installed -- double that to include both amd64 and i386 in
  order to support 32-bit running on 64-bit).

  How about it?  Can the libnvidia-egl-wayland1 package please be
  moved from the "universe" repository into "main" before the Nvidia
  470 drivers migrate to "restricted"?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/egl-wayland/+bug/1935082/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to