Blame man/drm-memory.xml

Packit 631bab
 
Packit 631bab
Packit 631bab
          "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
Packit 631bab
Packit 631bab
Packit 631bab
  Written 2012 by David Herrmann <dh.herrmann@googlemail.com>
Packit 631bab
  Dedicated to the Public Domain
Packit 631bab
-->
Packit 631bab
Packit 631bab
<refentry id="drm-memory">
Packit 631bab
  <refentryinfo>
Packit 631bab
    <title>Direct Rendering Manager</title>
Packit 631bab
    <productname>libdrm</productname>
Packit 631bab
    <date>September 2012</date>
Packit 631bab
    <authorgroup>
Packit 631bab
      <author>
Packit 631bab
        <contrib>Developer</contrib>
Packit 631bab
        <firstname>David</firstname>
Packit 631bab
        <surname>Herrmann</surname>
Packit 631bab
        <email>dh.herrmann@googlemail.com</email>
Packit 631bab
      </author>
Packit 631bab
    </authorgroup>
Packit 631bab
  </refentryinfo>
Packit 631bab
Packit 631bab
  <refmeta>
Packit 631bab
    <refentrytitle>drm-memory</refentrytitle>
Packit 631bab
    <manvolnum>7</manvolnum>
Packit 631bab
  </refmeta>
Packit 631bab
Packit 631bab
  <refnamediv>
Packit 631bab
    <refname>drm-memory</refname>
Packit 631bab
    <refname>drm-mm</refname>
Packit 631bab
    <refname>drm-gem</refname>
Packit 631bab
    <refname>drm-ttm</refname>
Packit 631bab
    <refpurpose>DRM Memory Management</refpurpose>
Packit 631bab
  </refnamediv>
Packit 631bab
Packit 631bab
  <refsynopsisdiv>
Packit 631bab
    <funcsynopsis>
Packit 631bab
      <funcsynopsisinfo>#include <xf86drm.h></funcsynopsisinfo>
Packit 631bab
    </funcsynopsis>
Packit 631bab
  </refsynopsisdiv>
Packit 631bab
Packit 631bab
  <refsect1>
Packit 631bab
    <title>Description</title>
Packit 631bab
      <para>Many modern high-end GPUs come with their own memory managers. They
Packit 631bab
            even include several different caches that need to be synchronized
Packit 631bab
            during access. Textures, framebuffers, command buffers and more need
Packit 631bab
            to be stored in memory that can be accessed quickly by the GPU.
Packit 631bab
            Therefore, memory management on GPUs is highly driver- and
Packit 631bab
            hardware-dependent.</para>
Packit 631bab
Packit 631bab
      <para>However, there are several frameworks in the kernel that are used by
Packit 631bab
            more than one driver. These can be used for trivial mode-setting
Packit 631bab
            without requiring driver-dependent code. But for
Packit 631bab
            hardware-accelerated rendering you need to read the manual pages for
Packit 631bab
            the driver you want to work with.</para>
Packit 631bab
Packit 631bab
    <refsect2>
Packit 631bab
      <title>Dumb-Buffers</title>
Packit 631bab
      <para>Almost all in-kernel DRM hardware drivers support an API called
Packit 631bab
            <emphasis>Dumb-Buffers</emphasis>. This API allows to create buffers
Packit 631bab
            of arbitrary size that can be used for scanout. These buffers can be
Packit 631bab
            memory mapped via
Packit 631bab
            <citerefentry><refentrytitle>mmap</refentrytitle><manvolnum>2</manvolnum></citerefentry>
Packit 631bab
            so you can render into them on the CPU. However, GPU access to these
Packit 631bab
            buffers is often not possible. Therefore, they are fine for simple
Packit 631bab
            tasks but not suitable for complex compositions and
Packit 631bab
            renderings.</para>
Packit 631bab
Packit 631bab
      <para>The <constant>DRM_IOCTL_MODE_CREATE_DUMB</constant> ioctl can be
Packit 631bab
            used to create a dumb buffer. The kernel will return a 32bit handle
Packit 631bab
            that can be used to manage the buffer with the DRM API. You can
Packit 631bab
            create framebuffers with
Packit 631bab
            <citerefentry><refentrytitle>drmModeAddFB</refentrytitle><manvolnum>3</manvolnum></citerefentry>
Packit 631bab
            and use it for mode-setting and scanout. To access the buffer, you
Packit 631bab
            first need to retrieve the offset of the buffer. The
Packit 631bab
            <constant>DRM_IOCTL_MODE_MAP_DUMB</constant> ioctl requests the DRM
Packit 631bab
            subsystem to prepare the buffer for memory-mapping and returns a
Packit 631bab
            fake-offset that can be used with
Packit 631bab
            <citerefentry><refentrytitle>mmap</refentrytitle><manvolnum>2</manvolnum></citerefentry>.</para>
Packit 631bab
Packit 631bab
      <para>The <constant>DRM_IOCTL_MODE_CREATE_DUMB</constant> ioctl takes as
Packit 631bab
            argument a structure of type
Packit 631bab
            <structname>struct drm_mode_create_dumb</structname>:
Packit 631bab
Packit 631bab
<programlisting>
Packit 631bab
struct drm_mode_create_dumb {
Packit 631bab
	__u32 height;
Packit 631bab
	__u32 width;
Packit 631bab
	__u32 bpp;
Packit 631bab
	__u32 flags;
Packit 631bab
Packit 631bab
	__u32 handle;
Packit 631bab
	__u32 pitch;
Packit 631bab
	__u64 size;
Packit 631bab
};
Packit 631bab
</programlisting>
Packit 631bab
Packit 631bab
            The fields <structfield>height</structfield>,
Packit 631bab
            <structfield>width</structfield>, <structfield>bpp</structfield> and
Packit 631bab
            <structfield>flags</structfield> have to be provided by the caller.
Packit 631bab
            The other fields are filled by the kernel with the return values.
Packit 631bab
            <structfield>height</structfield> and
Packit 631bab
            <structfield>width</structfield> are the dimensions of the
Packit 631bab
            rectangular buffer that is created. <structfield>bpp</structfield>
Packit 631bab
            is the number of bits-per-pixel and must be a multiple of
Packit 631bab
            <literal>8</literal>. You most commonly want to pass
Packit 631bab
            <literal>32</literal> here. The <structfield>flags</structfield>
Packit 631bab
            field is currently unused and must be zeroed. Different flags to
Packit 631bab
            modify the behavior may be added in the future. After calling the
Packit 631bab
            ioctl, the <structfield>handle</structfield>,
Packit 631bab
            <structfield>pitch</structfield> and <structfield>size</structfield>
Packit 631bab
            fields are filled by the kernel. <structfield>handle</structfield>
Packit 631bab
            is a 32bit gem handle that identifies the buffer. This is used by
Packit 631bab
            several other calls that take a gem-handle or memory-buffer as
Packit 631bab
            argument. The <structfield>pitch</structfield> field is the
Packit 631bab
            pitch (or stride) of the new buffer. Most drivers use 32bit or 64bit
Packit 631bab
            aligned stride-values. The <structfield>size</structfield> field
Packit 631bab
            contains the absolute size in bytes of the buffer. This can normally
Packit 631bab
            also be computed with
Packit 631bab
            <emphasis>(height * pitch + width) * bpp / 4</emphasis>.</para>
Packit 631bab
Packit 631bab
      <para>To prepare the buffer for
Packit 631bab
            <citerefentry><refentrytitle>mmap</refentrytitle><manvolnum>2</manvolnum></citerefentry>
Packit 631bab
            you need to use the <constant>DRM_IOCTL_MODE_MAP_DUMB</constant>
Packit 631bab
            ioctl. It takes as argument a structure of type
Packit 631bab
            <structname>struct drm_mode_map_dumb</structname>:
Packit 631bab
Packit 631bab
<programlisting>
Packit 631bab
struct drm_mode_map_dumb {
Packit 631bab
	__u32 handle;
Packit 631bab
	__u32 pad;
Packit 631bab
Packit 631bab
	__u64 offset;
Packit 631bab
};
Packit 631bab
</programlisting>
Packit 631bab
Packit 631bab
            You need to put the gem-handle that was previously retrieved via
Packit 631bab
            <constant>DRM_IOCTL_MODE_CREATE_DUMB</constant> into the
Packit 631bab
            <structfield>handle</structfield> field. The
Packit 631bab
            <structfield>pad</structfield> field is unused padding and must be
Packit 631bab
            zeroed. After completion, the <structfield>offset</structfield>
Packit 631bab
            field will contain an offset that can be used with
Packit 631bab
            <citerefentry><refentrytitle>mmap</refentrytitle><manvolnum>2</manvolnum></citerefentry>
Packit 631bab
            on the DRM file-descriptor.</para>
Packit 631bab
Packit 631bab
      <para>If you don't need your dumb-buffer, anymore, you have to destroy it
Packit 631bab
            with <constant>DRM_IOCTL_MODE_DESTROY_DUMB</constant>. If you close
Packit 631bab
            the DRM file-descriptor, all open dumb-buffers are automatically
Packit 631bab
            destroyed. This ioctl takes as argument a structure of type
Packit 631bab
            <structname>struct drm_mode_destroy_dumb</structname>:
Packit 631bab
Packit 631bab
<programlisting>
Packit 631bab
struct drm_mode_destroy_dumb {
Packit 631bab
	__u32 handle;
Packit 631bab
};
Packit 631bab
</programlisting>
Packit 631bab
Packit 631bab
            You only need to put your handle into the
Packit 631bab
            <structfield>handle</structfield> field. After this call, the handle
Packit 631bab
            is invalid and may be reused for new buffers by the dumb-API.</para>
Packit 631bab
Packit 631bab
    </refsect2>
Packit 631bab
Packit 631bab
    <refsect2>
Packit 631bab
      <title>TTM</title>
Packit 631bab
      <para><emphasis>TTM</emphasis> stands for
Packit 631bab
            <emphasis>Translation Table Manager</emphasis> and is a generic
Packit 631bab
            memory-manager provided by the kernel. It does not provide a common
Packit 631bab
            user-space API so you need to look at each driver interface if you
Packit 631bab
            want to use it. See for instance the radeon manpages for more
Packit 631bab
            information on memory-management with radeon and TTM.</para>
Packit 631bab
    </refsect2>
Packit 631bab
Packit 631bab
    <refsect2>
Packit 631bab
      <title>GEM</title>
Packit 631bab
      <para><emphasis>GEM</emphasis> stands for
Packit 631bab
            <emphasis>Graphics Execution Manager</emphasis> and is a generic DRM
Packit 631bab
            memory-management framework in the kernel, that is used by many
Packit 631bab
            different drivers. Gem is designed to manage graphics memory,
Packit 631bab
            control access to the graphics device execution context and handle
Packit 631bab
            essentially NUMA environment unique to modern graphics hardware. Gem
Packit 631bab
            allows multiple applications to share graphics device resources
Packit 631bab
            without the need to constantly reload the entire graphics card. Data
Packit 631bab
            may be shared between multiple applications with gem ensuring that
Packit 631bab
            the correct memory synchronization occurs.</para>
Packit 631bab
Packit 631bab
      <para>Gem provides simple mechanisms to manage graphics data and control
Packit 631bab
            execution flow within the linux DRM subsystem. However, gem is not a
Packit 631bab
            complete framework that is fully driver independent. Instead, if
Packit 631bab
            provides many functions that are shared between many drivers, but
Packit 631bab
            each driver has to implement most of memory-management with
Packit 631bab
            driver-dependent ioctls. This manpage tries to describe the
Packit 631bab
            semantics (and if it applies, the syntax) that is shared between all
Packit 631bab
            drivers that use gem.</para>
Packit 631bab
Packit 631bab
      <para>All GEM APIs are defined as
Packit 631bab
            <citerefentry><refentrytitle>ioctl</refentrytitle><manvolnum>2</manvolnum></citerefentry>
Packit 631bab
            on the DRM file descriptor. An application must be authorized via
Packit 631bab
            <citerefentry><refentrytitle>drmAuthMagic</refentrytitle><manvolnum>3</manvolnum></citerefentry>
Packit 631bab
            to the current DRM-Master to access the GEM subsystem. A driver that
Packit 631bab
            does not support gem will return <constant>ENODEV</constant> for all
Packit 631bab
            these ioctls. Invalid object handles return
Packit 631bab
            <constant>EINVAL</constant> and invalid object names return
Packit 631bab
            <constant>ENOENT</constant>.</para>
Packit 631bab
Packit 631bab
      <para>Gem provides explicit memory management primitives. System pages are
Packit 631bab
            allocated when the object is created, either as the fundamental
Packit 631bab
            storage for hardware where system memory is used by the graphics
Packit 631bab
            processor directly, or as backing store for graphics-processor
Packit 631bab
            resident memory.</para>
Packit 631bab
Packit 631bab
      <para>Objects are referenced from user-space using handles. These are, for
Packit 631bab
            all intents and purposes, equivalent to file descriptors but avoid
Packit 631bab
            the overhead. Newer kernel drivers also support the
Packit 631bab
            <citerefentry><refentrytitle>drm-prime</refentrytitle><manvolnum>7</manvolnum></citerefentry>
Packit 631bab
            infrastructure which can return real file-descriptor for gem-handles
Packit 631bab
            using the linux dma-buf API. Objects may be published with a name so
Packit 631bab
            that other applications and processes can access them. The name
Packit 631bab
            remains valid as long as the object exists. Gem-objects are
Packit 631bab
            reference counted in the kernel. The object is only destroyed when
Packit 631bab
            all handles from user-space were closed.</para>
Packit 631bab
Packit 631bab
      <para>Gem-buffers cannot be created with a generic API. Each driver
Packit 631bab
            provides its own API to create gem-buffers. See for example
Packit 631bab
            <constant>DRM_I915_GEM_CREATE</constant>,
Packit 631bab
            <constant>DRM_NOUVEAU_GEM_NEW</constant> or
Packit 631bab
            <constant>DRM_RADEON_GEM_CREATE</constant>. Each of these ioctls
Packit 631bab
            returns a gem-handle that can be passed to different generic ioctls.
Packit 631bab
            The <emphasis>libgbm</emphasis> library from the
Packit 631bab
            <emphasis>mesa3D</emphasis> distribution tries to provide a
Packit 631bab
            driver-independent API to create gbm buffers and retrieve a
Packit 631bab
            gbm-handle to them. It allows to create buffers for different
Packit 631bab
            use-cases including scanout, rendering, cursors and CPU-access. See
Packit 631bab
            the libgbm library for more information or look at the
Packit 631bab
            driver-dependent man-pages (for example
Packit 631bab
            <citerefentry><refentrytitle>drm-intel</refentrytitle><manvolnum>7</manvolnum></citerefentry>
Packit 631bab
            or
Packit 631bab
            <citerefentry><refentrytitle>drm-radeon</refentrytitle><manvolnum>7</manvolnum></citerefentry>).</para>
Packit 631bab
Packit 631bab
      <para>Gem-buffers can be closed with the
Packit 631bab
            <constant>DRM_IOCTL_GEM_CLOSE</constant> ioctl. It takes as argument
Packit 631bab
            a structure of type <structname>struct drm_gem_close</structname>:
Packit 631bab
Packit 631bab
<programlisting>
Packit 631bab
struct drm_gem_close {
Packit 631bab
	__u32 handle;
Packit 631bab
	__u32 pad;
Packit 631bab
};
Packit 631bab
</programlisting>
Packit 631bab
Packit 631bab
            The <structfield>handle</structfield> field is the gem-handle to be
Packit 631bab
            closed. The <structfield>pad</structfield> field is unused padding.
Packit 631bab
            It must be zeroed. After this call the gem handle cannot be used by
Packit 631bab
            this process anymore and may be reused for new gem objects by the
Packit 631bab
            gem API.</para>
Packit 631bab
Packit 631bab
      <para>If you want to share gem-objects between different processes, you
Packit 631bab
            can create a name for them and pass this name to other processes
Packit 631bab
            which can then open this gem-object. Names are currently 32bit
Packit 631bab
            integer IDs and have no special protection. That is, if you put a
Packit 631bab
            name on your gem-object, every other client that has access to the
Packit 631bab
            DRM device and is authenticated via
Packit 631bab
            <citerefentry><refentrytitle>drmAuthMagic</refentrytitle><manvolnum>3</manvolnum></citerefentry>
Packit 631bab
            to the current DRM-Master, can <emphasis>guess</emphasis> the name
Packit 631bab
            and open or access the gem-object. If you want more fine-grained
Packit 631bab
            access control, you can use the new
Packit 631bab
            <citerefentry><refentrytitle>drm-prime</refentrytitle><manvolnum>7</manvolnum></citerefentry>
Packit 631bab
            API to retrieve file-descriptors for gem-handles. To create a name
Packit 631bab
            for a gem-handle, you use the
Packit 631bab
            <constant>DRM_IOCTL_GEM_FLINK</constant> ioctl. It takes as argument
Packit 631bab
            a structure of type <structname>struct drm_gem_flink</structname>:
Packit 631bab
Packit 631bab
<programlisting>
Packit 631bab
struct drm_gem_flink {
Packit 631bab
	__u32 handle;
Packit 631bab
	__u32 name;
Packit 631bab
};
Packit 631bab
</programlisting>
Packit 631bab
Packit 631bab
            You have to put your handle into the
Packit 631bab
            <structfield>handle</structfield> field. After completion, the
Packit 631bab
            kernel has put the new unique name into the
Packit 631bab
            <structfield>name</structfield> field. You can now pass this name to
Packit 631bab
            other processes which can then import the name with the
Packit 631bab
            <constant>DRM_IOCTL_GEM_OPEN</constant> ioctl. It takes as argument
Packit 631bab
            a structure of type <structname>struct drm_gem_open</structname>:
Packit 631bab
Packit 631bab
<programlisting>
Packit 631bab
struct drm_gem_open {
Packit 631bab
	__u32 name;
Packit 631bab
Packit 631bab
	__u32 handle;
Packit 631bab
	__u32 size;
Packit 631bab
};
Packit 631bab
</programlisting>
Packit 631bab
Packit 631bab
            You have to fill in the <structfield>name</structfield> field with
Packit 631bab
            the name of the gem-object that you want to open. The kernel will
Packit 631bab
            fill in the <structfield>handle</structfield> and
Packit 631bab
            <structfield>size</structfield> fields with the new handle and size
Packit 631bab
            of the gem-object. You can now access the gem-object via the handle
Packit 631bab
            as if you created it with the gem API.</para>
Packit 631bab
Packit 631bab
      <para>Besides generic buffer management, the GEM API does not provide any
Packit 631bab
            generic access. Each driver implements its own functionality on top
Packit 631bab
            of this API. This includes execution-buffers, GTT management,
Packit 631bab
            context creation, CPU access, GPU I/O and more. The next
Packit 631bab
            higher-level API is <emphasis>OpenGL</emphasis>. So if you want to
Packit 631bab
            use more GPU features, you should use the
Packit 631bab
            <emphasis>mesa3D</emphasis> library to create OpenGL contexts on DRM
Packit 631bab
            devices. This does <emphasis>not</emphasis> require any
Packit 631bab
            windowing-system like X11, but can also be done on raw DRM devices.
Packit 631bab
            However, this is beyond the scope of this man-page. You may have a
Packit 631bab
            look at other mesa3D manpages, including libgbm and libEGL. 2D
Packit 631bab
            software-rendering (rendering with the CPU) can be achieved with the
Packit 631bab
            dumb-buffer-API in a driver-independent fashion, however, for
Packit 631bab
            hardware-accelerated 2D or 3D rendering you must use OpenGL. Any
Packit 631bab
            other API that tries to abstract the driver-internals to access
Packit 631bab
            GEM-execution-buffers and other GPU internals, would simply reinvent
Packit 631bab
            OpenGL so it is not provided. But if you need more detailed
Packit 631bab
            information for a specific driver, you may have a look into the
Packit 631bab
            driver-manpages, including
Packit 631bab
            <citerefentry><refentrytitle>drm-intel</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
Packit 631bab
            <citerefentry><refentrytitle>drm-radeon</refentrytitle><manvolnum>7</manvolnum></citerefentry>
Packit 631bab
            and
Packit 631bab
            <citerefentry><refentrytitle>drm-nouveau</refentrytitle><manvolnum>7</manvolnum></citerefentry>.
Packit 631bab
            However, the
Packit 631bab
            <citerefentry><refentrytitle>drm-prime</refentrytitle><manvolnum>7</manvolnum></citerefentry>
Packit 631bab
            infrastructure and the generic gem API as described here allow
Packit 631bab
            display-managers to handle graphics-buffers and render-clients
Packit 631bab
            without any deeper knowledge of the GPU that is used. Moreover, it
Packit 631bab
            allows to move objects between GPUs and implement complex
Packit 631bab
            display-servers that don't do any rendering on their own. See its
Packit 631bab
            man-page for more information.</para>
Packit 631bab
    </refsect2>
Packit 631bab
  </refsect1>
Packit 631bab
Packit 631bab
  <refsect1>
Packit 631bab
    <title>Examples</title>
Packit 631bab
      <para>This section includes examples for basic memory-management
Packit 631bab
            tasks.</para>
Packit 631bab
Packit 631bab
    <refsect2>
Packit 631bab
      <title>Dumb-Buffers</title>
Packit 631bab
        <para>This examples shows how to create a dumb-buffer via the generic
Packit 631bab
              DRM API. This is driver-independent (as long as the driver
Packit 631bab
              supports dumb-buffers) and provides memory-mapped buffers that can
Packit 631bab
              be used for scanout. This example creates a full-HD 1920x1080
Packit 631bab
              buffer with 32 bits-per-pixel and a color-depth of 24 bits. The
Packit 631bab
              buffer is then bound to a framebuffer which can be used for
Packit 631bab
              scanout with the KMS API (see
Packit 631bab
              <citerefentry><refentrytitle>drm-kms</refentrytitle><manvolnum>7</manvolnum></citerefentry>).</para>
Packit 631bab
Packit 631bab
<programlisting>
Packit 631bab
struct drm_mode_create_dumb creq;
Packit 631bab
struct drm_mode_destroy_dumb dreq;
Packit 631bab
struct drm_mode_map_dumb mreq;
Packit 631bab
uint32_t fb;
Packit 631bab
int ret;
Packit 631bab
void *map;
Packit 631bab
Packit 631bab
/* create dumb buffer */
Packit 631bab
memset(&creq, 0, sizeof(creq));
Packit 631bab
creq.width = 1920;
Packit 631bab
creq.height = 1080;
Packit 631bab
creq.bpp = 32;
Packit 631bab
ret = drmIoctl(fd, DRM_IOCTL_MODE_CREATE_DUMB, &creq);
Packit 631bab
if (ret < 0) {
Packit 631bab
	/* buffer creation failed; see "errno" for more error codes */
Packit 631bab
	...
Packit 631bab
}
Packit 631bab
/* creq.pitch, creq.handle and creq.size are filled by this ioctl with
Packit 631bab
 * the requested values and can be used now. */
Packit 631bab
Packit 631bab
/* create framebuffer object for the dumb-buffer */
Packit 631bab
ret = drmModeAddFB(fd, 1920, 1080, 24, 32, creq.pitch, creq.handle, &fb);
Packit 631bab
if (ret) {
Packit 631bab
	/* frame buffer creation failed; see "errno" */
Packit 631bab
	...
Packit 631bab
}
Packit 631bab
/* the framebuffer "fb" can now used for scanout with KMS */
Packit 631bab
Packit 631bab
/* prepare buffer for memory mapping */
Packit 631bab
memset(&mreq, 0, sizeof(mreq));
Packit 631bab
mreq.handle = creq.handle;
Packit 631bab
ret = drmIoctl(fd, DRM_IOCTL_MODE_MAP_DUMB, &mreq);
Packit 631bab
if (ret) {
Packit 631bab
	/* DRM buffer preparation failed; see "errno" */
Packit 631bab
	...
Packit 631bab
}
Packit 631bab
/* mreq.offset now contains the new offset that can be used with mmap() */
Packit 631bab
Packit 631bab
/* perform actual memory mapping */
Packit 631bab
map = mmap(0, creq.size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, mreq.offset);
Packit 631bab
if (map == MAP_FAILED) {
Packit 631bab
	/* memory-mapping failed; see "errno" */
Packit 631bab
	...
Packit 631bab
}
Packit 631bab
Packit 631bab
/* clear the framebuffer to 0 */
Packit 631bab
memset(map, 0, creq.size);
Packit 631bab
</programlisting>
Packit 631bab
Packit 631bab
    </refsect2>
Packit 631bab
Packit 631bab
  </refsect1>
Packit 631bab
Packit 631bab
  <refsect1>
Packit 631bab
    <title>Reporting Bugs</title>
Packit 631bab
    <para>Bugs in this manual should be reported to
Packit 631bab
      https://bugs.freedesktop.org/enter_bug.cgi?product=DRI&component=libdrm
Packit 631bab
      under the "DRI" product, component "libdrm"</para>
Packit 631bab
  </refsect1>
Packit 631bab
Packit 631bab
  <refsect1>
Packit 631bab
    <title>See Also</title>
Packit 631bab
    <para>
Packit 631bab
      <citerefentry><refentrytitle>drm</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
Packit 631bab
      <citerefentry><refentrytitle>drm-kms</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
Packit 631bab
      <citerefentry><refentrytitle>drm-prime</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
Packit 631bab
      <citerefentry><refentrytitle>drmAvailable</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
Packit 631bab
      <citerefentry><refentrytitle>drmOpen</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
Packit 631bab
      <citerefentry><refentrytitle>drm-intel</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
Packit 631bab
      <citerefentry><refentrytitle>drm-radeon</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
Packit 631bab
      <citerefentry><refentrytitle>drm-nouveau</refentrytitle><manvolnum>7</manvolnum></citerefentry>
Packit 631bab
    </para>
Packit 631bab
  </refsect1>
Packit 631bab
</refentry>