2013-06-04 11:47:54 +04:00
|
|
|
.\" $NetBSD: drm.4,v 1.15 2013/06/04 07:47:54 wiz Exp $
|
2007-03-25 13:11:55 +04:00
|
|
|
.\"
|
2013-06-04 11:47:54 +04:00
|
|
|
.\" Copyright (c) 2007, 2013 Thomas Klausner
|
2007-03-25 13:11:55 +04:00
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
|
|
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
|
|
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
2013-06-04 11:47:54 +04:00
|
|
|
.Dd June 4, 2013
|
2007-03-25 13:11:55 +04:00
|
|
|
.Dt DRM 4
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm drm
|
|
|
|
.Nd Direct Rendering Manager (DRI kernel support)
|
|
|
|
.Sh SYNOPSIS
|
2013-06-04 11:47:54 +04:00
|
|
|
.Cd i915drm* at drm?
|
|
|
|
.Cd mach64drm* at drm?
|
|
|
|
.Cd mgadrm* at drm?
|
|
|
|
.Cd r128drm* at drm?
|
|
|
|
.Cd radeondrm* at drm?
|
|
|
|
.Cd savagedrm* at drm?
|
|
|
|
.Cd sisdrm* at drm?
|
|
|
|
.Cd tdfxdrm* at drm?
|
|
|
|
.Cd viadrm* at drm?
|
2007-03-25 13:11:55 +04:00
|
|
|
.Pp
|
|
|
|
.Cd options DRM_DEBUG
|
2009-05-12 12:16:46 +04:00
|
|
|
.Cd options DRM_NO_AGP
|
2007-03-25 13:11:55 +04:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Tn Direct Rendering Manager
|
|
|
|
is part of the
|
|
|
|
.Tn Direct Rendering Infrastructure
|
|
|
|
for supporting video acceleration (3d acceleration, mostly).
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
drivers provide support for the following chipsets:
|
|
|
|
.Bl -tag -width XsavagedrmXXX -offset indent -compact
|
|
|
|
.It i915drm
|
|
|
|
Intel i915, i945
|
|
|
|
.It mach64drm
|
|
|
|
Mach64 (3D Rage Pro, Rage)
|
|
|
|
.It mgadrm
|
|
|
|
Matrox G[24]00, G[45]50
|
|
|
|
.It r128drm
|
|
|
|
ATI Rage 128
|
|
|
|
.It radeondrm
|
|
|
|
ATI Radeon
|
|
|
|
.It savagedrm
|
|
|
|
S3 Savage
|
|
|
|
.It sisdrm
|
|
|
|
SiS
|
|
|
|
.It tdfxdrm
|
|
|
|
3dfx (Voodoo)
|
|
|
|
.It viadrm
|
|
|
|
VIA
|
|
|
|
.El
|
|
|
|
.Pp
|
2009-05-09 18:45:29 +04:00
|
|
|
To make use of the driver, the kernel must include
|
2009-05-12 12:16:46 +04:00
|
|
|
.Xr agp 4
|
|
|
|
(for some drivers, using
|
|
|
|
.Cd options DRM_NO_AGP
|
|
|
|
instead may be sufficient),
|
2007-03-25 13:11:55 +04:00
|
|
|
.Xr X 7
|
|
|
|
must be compiled with DRI support, Mesa DRI drivers must be installed,
|
|
|
|
the appropriate
|
|
|
|
.Pa /dev/dri/card*
|
|
|
|
device must exist, and DRI must be enabled in the X configuration
|
|
|
|
file.
|
2009-06-20 22:20:51 +04:00
|
|
|
.Xr X 7
|
2009-06-21 02:55:20 +04:00
|
|
|
provided with
|
|
|
|
.Nx
|
|
|
|
and compiled from
|
2009-06-20 22:20:51 +04:00
|
|
|
.Xr pkgsrc 7
|
|
|
|
do so automatically where supported.
|
2007-03-25 13:11:55 +04:00
|
|
|
.Pp
|
2009-06-20 22:20:51 +04:00
|
|
|
.Xr X 7
|
|
|
|
will attempt to create the device node automatically.
|
|
|
|
To create the device node manually:
|
2007-03-25 13:11:55 +04:00
|
|
|
.Bd -literal -offset indent
|
|
|
|
mkdir -p /dev/dri
|
2007-03-26 03:19:24 +04:00
|
|
|
mknod /dev/dri/card0 c 180 0
|
2007-03-25 13:11:55 +04:00
|
|
|
chgrp wheel /dev/dri/card0
|
|
|
|
chmod 0660 /dev/dri/card0
|
|
|
|
.Ed
|
2009-06-20 22:20:51 +04:00
|
|
|
.Pp
|
|
|
|
To enable DRI in the X configuration add the following to either
|
2007-03-25 13:11:55 +04:00
|
|
|
.Pa xorg.conf
|
2009-06-20 22:20:51 +04:00
|
|
|
for
|
|
|
|
.Xr Xorg 1
|
2007-03-25 13:11:55 +04:00
|
|
|
or
|
2009-06-20 22:20:51 +04:00
|
|
|
.Pa XF86Config
|
|
|
|
for
|
|
|
|
.Xr XFree86 1
|
|
|
|
:
|
|
|
|
.Bd -literal -offset indent
|
2007-03-25 13:11:55 +04:00
|
|
|
Section "Module"
|
|
|
|
...
|
|
|
|
Load "dri"
|
2009-06-20 22:20:51 +04:00
|
|
|
Load "dri2"
|
2007-03-25 13:11:55 +04:00
|
|
|
Load "glx"
|
|
|
|
EndSection
|
2009-03-26 20:32:24 +03:00
|
|
|
\&...
|
2007-03-25 13:11:55 +04:00
|
|
|
Section "DRI"
|
|
|
|
Group "wheel"
|
|
|
|
Mode 0660
|
|
|
|
EndSection
|
|
|
|
.Ed
|
2007-03-28 03:27:54 +04:00
|
|
|
.Pp
|
|
|
|
Debugging output can be enabled and disabled by setting the
|
|
|
|
.Xr sysctl 8
|
|
|
|
node
|
|
|
|
.Ar hw.dri.debug .
|
|
|
|
Additional information can be obtained from the
|
|
|
|
.Xr sysctl 8
|
|
|
|
nodes
|
|
|
|
.Ar hw.dri ,
|
|
|
|
.Ar hw.dri.card0 ,
|
|
|
|
.Ar hw.dri.card1 ,
|
|
|
|
etc.
|
2007-03-25 13:11:55 +04:00
|
|
|
.Sh SEE ALSO
|
2009-06-20 22:20:51 +04:00
|
|
|
.Xr XFree86 1 ,
|
|
|
|
.Xr Xorg 1 ,
|
2009-06-21 02:55:20 +04:00
|
|
|
.Xr agp 4 ,
|
2009-06-20 22:20:51 +04:00
|
|
|
.Xr XF86Config 5 ,
|
2009-06-21 02:55:20 +04:00
|
|
|
.Xr xorg.conf 5 ,
|
|
|
|
.Xr X 7 ,
|
|
|
|
.Pa /usr/X11R[67]/lib/X11/doc/README.DRI
|
2012-03-13 23:25:39 +04:00
|
|
|
.Pp
|
|
|
|
.Lk http://dri.freedesktop.org/ "Direct Rendering Infrastructure"
|
2007-03-28 03:27:54 +04:00
|
|
|
.Sh HISTORY
|
|
|
|
DRM was first available for Linux.
|
|
|
|
Subsequently Eric Anholt ported the DRM kernel modules to
|
|
|
|
.Fx .
|
|
|
|
Erik Reid adapted the
|
|
|
|
.Fx
|
|
|
|
DRM kernel modules to
|
|
|
|
.Nx .
|
|
|
|
As DRM continued to develop the
|
|
|
|
.Nx
|
|
|
|
support was neglected.
|
|
|
|
Tonnerre Lombard got the DRM modules working again, but DRM
|
|
|
|
development once again left the
|
|
|
|
.Nx
|
|
|
|
support behind.
|
|
|
|
Finally Yorick Hardy took the
|
|
|
|
.Fx
|
|
|
|
DRM source and managed to get it compiling and working again on
|
|
|
|
.Nx ,
|
|
|
|
thanks largely to the efforts of all those mentioned above.
|
|
|
|
Subsequently Matthias Drochner improved the DRM file hierarchy for
|
|
|
|
.Nx
|
|
|
|
and committed the DRM kernel drivers.
|
2009-06-20 22:20:51 +04:00
|
|
|
Matthew Green cleaned up this port and merged a set of newer
|
|
|
|
drivers, with Arto Huusko and FUKAUMI Naoki helping to get
|
2010-05-11 22:27:04 +04:00
|
|
|
the latest Mesa port up to date.
|
2007-03-28 03:27:54 +04:00
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Nm
|
2007-03-29 22:35:08 +04:00
|
|
|
drivers appeared in
|
2007-03-28 03:27:54 +04:00
|
|
|
.Nx 5.0 .
|
|
|
|
.Sh AUTHORS
|
|
|
|
.An -nosplit
|
|
|
|
.An Eric Anholt ,
|
|
|
|
.An Terry Barnaby ,
|
|
|
|
.An Erdi Chen ,
|
|
|
|
.An Michel Daenzer ,
|
|
|
|
.An Leif Delgass ,
|
|
|
|
.An Frank C. Earl ,
|
|
|
|
.An Rickard E. Faith ,
|
|
|
|
.An Jose Fonseca ,
|
|
|
|
.An Nicolai Haehnle ,
|
|
|
|
.An Jeff Hartmann ,
|
|
|
|
.An Thomas Hellstrom ,
|
|
|
|
.An Gareth Hughes ,
|
|
|
|
.An Felix Kuehling ,
|
|
|
|
.An Sung-Ching Lin ,
|
|
|
|
.An Kevin E. Martin ,
|
|
|
|
.An Daryll Strauss ,
|
|
|
|
.An Keith Whitwell
|
2007-03-25 13:11:55 +04:00
|
|
|
.Sh CAVEATS
|
|
|
|
.Pp
|
|
|
|
In case of errors,
|
|
|
|
.Pa /dev/dri/card0
|
|
|
|
may be changed, make sure to recreate it in that case.
|
|
|
|
.Pp
|
|
|
|
.Cd options DRM_DEBUG
|
2011-05-07 11:16:08 +04:00
|
|
|
can slow DRI down a lot; disable it once
|
2007-03-25 13:11:55 +04:00
|
|
|
.Nm
|
|
|
|
works.
|