1 .\" $NetBSD: drm.4,v 1.7 2009/05/12 08:16:46 wiz Exp $
3 .\" Copyright (c) 2007 Thomas Klausner
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
15 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18 .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 .Nd Direct Rendering Manager (DRI kernel support)
34 .Tn Direct Rendering Manager
36 .Tn Direct Rendering Infrastructure
38 .Pa http://dri.freedesktop.org/ )
39 for supporting video acceleration.
43 drivers provide support for the following chipsets:
44 .Bl -column -offset indent ".Pa radeon.ko" ".Sy Kernel Option" ".Sy Chipset"
45 .It Sy Module Ta Sy "Kernel option" Ta Sy Chipset
46 .It Pa i915.ko Ta i915 Ta Intel i915, i945, i965, G3x, G4x
47 .It Pa radeon.ko Ta radeon Ta AMD/ATI Radeon
48 .It Pa amdgpu.ko Ta n/a Ta newer AMD chipsets
53 will take care of loading the appropriate modules and it is not necessary to
56 or the kernel configuration to enable
64 do a pretty good job of figuring out the right configuration on their own,
67 file at all is usually the best advice.
70 is preferred, DRI must be enabled:
78 With KMS, DRI is always enabled since the
84 devices user must be a member of the
87 Users can be added to the
93 .\"In order to use two graphics cards (an on-board and another
94 .\"AGP/PCI/PCIe card) with DRI, a
98 .\"has to be created using
103 acceleration fails to initialize with a
104 .Dq contigmalloc_map: failed size...
105 error in dmesg, the reserve of memory for DMA ran out early and should
106 be increased to a sufficiently high value by setting the
111 variable of the same name is provided for obtaining its current value.
113 Tunables can be set at the
115 prompt before booting the kernel or stored in
117 .Bl -tag -width "xxxxxx"
119 Enable internal verbose debug messages, might slow down the machine.
120 Debug categories are enabled by setting their bits:
121 .Bl -tag -width "xxxxx"
123 CORE - generic drm code
125 DRIVER - vendor specific parts of the driver
127 KMS - modesetting troubleshoot
129 PRIME (no prime support)
131 ATOMIC - atomic code used by i915
133 PID - include pid number (useful in certain scenarios)
135 FIOCTL - failed ioctls
137 IOCTL - very spammy ioctl prints
139 VBLANK - very spammy vblank prints
141 .It Va drm.edid_firmware
142 Load external EDID binary monitor data from a firmware module.
143 Useful if the monitor is not sending an appropriate EDID block, if there
144 is no video on the connected monitor or if there is a need to enforce
146 Optionally, the connector name can be specified before the firmware name
150 .Dl drm.edid_firmware="DVI-D-1:edidfw_repaired"
156 use different naming conventions for connector names.
157 This tunable only applies for KMS drivers.
158 .It Va drm.video.<connector>
159 Can be used to set framebuffer parameters for drm(4) connector.
160 Mode specifier format:
162 .Dl <xres>x<yres>[M][R][-<bpp>][@<refresh>][i][m][eDd]
163 .Bl -tag -width "<refresh>"
165 X resolution, e.g. 1920
167 Y resolution, e.g. 1080
169 calculate timings using VESA CVT instead of table lookups
171 reduced blanking on digital monitors
177 calculate timings for interlaced mode
179 margins used in calculations
183 same as e option, but force digital output on HDMI/DVI
191 variables are available:
192 .Bl -tag -width ".Va hw.dri.vblank_offdelay"
194 If set, enables debugging output.
195 .It Va hw.dri.vblank_offdelay
196 Specifies the delay (in milliseconds) until the vblank
197 interrupt is disabled again when it's no longer needed.
198 (0 = never disable, negative value = disable immediately)
199 .It Va hw.dri.%d.busid
200 Indicates the location of the device on the PCI bus.
203 .Dl [0000-ffff]:[00-ff]:[00-1f].[0-7]
204 .It Va hw.dri.%d.modesetting
205 Indicates if kernel mode setting
207 feature) is set in the device driver.
216 DRM was first available for Linux.
217 Subsequently Eric Anholt ported the DRM kernel modules to
220 Disable AIGLX if necessary
222 .Bd -literal -offset indent
223 Section "ServerFlags"
227 .\"Section "Extensions"
228 .\" Option "Composite" "Disable"
232 .Cd options DRM_DEBUG
233 can slow DRI down a lot, disable it once