| @@ -1,56 +1,57 @@ | | | @@ -1,56 +1,57 @@ |
1 | .\" $NetBSD: drm.4,v 1.7 2009/05/12 08:16:46 wiz Exp $ | | 1 | .\" $NetBSD: drm.4,v 1.8 2009/06/20 18:20:51 mrg Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 2007 Thomas Klausner | | 3 | .\" Copyright (c) 2007 Thomas Klausner |
4 | .\" All rights reserved. | | 4 | .\" All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" Redistribution and use in source and binary forms, with or without | | 6 | .\" Redistribution and use in source and binary forms, with or without |
7 | .\" modification, are permitted provided that the following conditions | | 7 | .\" modification, are permitted provided that the following conditions |
8 | .\" are met: | | 8 | .\" are met: |
9 | .\" 1. Redistributions of source code must retain the above copyright | | 9 | .\" 1. Redistributions of source code must retain the above copyright |
10 | .\" notice, this list of conditions and the following disclaimer. | | 10 | .\" notice, this list of conditions and the following disclaimer. |
11 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 11 | .\" 2. Redistributions in binary form must reproduce the above copyright |
12 | .\" notice, this list of conditions and the following disclaimer in the | | 12 | .\" notice, this list of conditions and the following disclaimer in the |
13 | .\" documentation and/or other materials provided with the distribution. | | 13 | .\" documentation and/or other materials provided with the distribution. |
14 | .\" | | 14 | .\" |
15 | .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | | 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 | | 16 | .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
17 | .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | | 17 | .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
18 | .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | | 18 | .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, |
19 | .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | | 19 | .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
20 | .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | | 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 | | 21 | .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
22 | .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | | 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 | | 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. | | 24 | .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 | .\" | | 25 | .\" |
26 | .Dd May 12, 2009 | | 26 | .Dd June 19, 2009 |
27 | .Dt DRM 4 | | 27 | .Dt DRM 4 |
28 | .Os | | 28 | .Os |
29 | .Sh NAME | | 29 | .Sh NAME |
30 | .Nm drm | | 30 | .Nm drm |
31 | .Nd Direct Rendering Manager (DRI kernel support) | | 31 | .Nd Direct Rendering Manager (DRI kernel support) |
32 | .Sh SYNOPSIS | | 32 | .Sh SYNOPSIS |
33 | .Cd i915drm* at vga? | | 33 | .Cd i915drm* at vga? |
34 | .Cd mach64drm* at vga? | | 34 | .Cd mach64drm* at vga? |
35 | .Cd mgadrm* at vga? | | 35 | .Cd mgadrm* at vga? |
36 | .Cd r128drm* at vga? | | 36 | .Cd r128drm* at vga? |
37 | .Cd radeondrm* at vga? | | 37 | .Cd radeondrm* at vga? |
38 | .Cd savagedrm* at vga? | | 38 | .Cd savagedrm* at vga? |
39 | .Cd sisdrm* at vga? | | 39 | .Cd sisdrm* at vga? |
40 | .Cd tdfxdrm* at vga? | | 40 | .Cd tdfxdrm* at vga? |
41 | .Cd viadrm* at vga? | | 41 | .Cd viadrm* at vga? |
42 | .Pp | | 42 | .Pp |
43 | .Cd options DRM_DEBUG | | 43 | .Cd options DRM_DEBUG |
| | | 44 | .Cd options DRM_EXTERNAL |
44 | .Cd options DRM_NO_AGP | | 45 | .Cd options DRM_NO_AGP |
45 | .Sh DESCRIPTION | | 46 | .Sh DESCRIPTION |
46 | The | | 47 | The |
47 | .Tn Direct Rendering Manager | | 48 | .Tn Direct Rendering Manager |
48 | is part of the | | 49 | is part of the |
49 | .Tn Direct Rendering Infrastructure | | 50 | .Tn Direct Rendering Infrastructure |
50 | (see | | 51 | (see |
51 | .Pa http://dri.freedesktop.org/ ) | | 52 | .Pa http://dri.freedesktop.org/ ) |
52 | for supporting video acceleration (3d acceleration, mostly). | | 53 | for supporting video acceleration (3d acceleration, mostly). |
53 | .Pp | | 54 | .Pp |
54 | The | | 55 | The |
55 | .Nm | | 56 | .Nm |
56 | drivers provide support for the following chipsets: | | 57 | drivers provide support for the following chipsets: |
| @@ -76,135 +77,135 @@ VIA | | | @@ -76,135 +77,135 @@ VIA |
76 | .El | | 77 | .El |
77 | .Pp | | 78 | .Pp |
78 | To make use of the driver, the kernel must include | | 79 | To make use of the driver, the kernel must include |
79 | .Xr agp 4 | | 80 | .Xr agp 4 |
80 | (for some drivers, using | | 81 | (for some drivers, using |
81 | .Cd options DRM_NO_AGP | | 82 | .Cd options DRM_NO_AGP |
82 | instead may be sufficient), | | 83 | instead may be sufficient), |
83 | .Xr X 7 | | 84 | .Xr X 7 |
84 | must be compiled with DRI support, Mesa DRI drivers must be installed, | | 85 | must be compiled with DRI support, Mesa DRI drivers must be installed, |
85 | the appropriate | | 86 | the appropriate |
86 | .Pa /dev/dri/card* | | 87 | .Pa /dev/dri/card* |
87 | device must exist, and DRI must be enabled in the X configuration | | 88 | device must exist, and DRI must be enabled in the X configuration |
88 | file. | | 89 | file. |
| | | 90 | .Xr X 7 |
| | | 91 | provided with NetBSD and compiled from |
| | | 92 | .Xr pkgsrc 7 |
| | | 93 | do so automatically where supported. |
89 | .Pp | | 94 | .Pp |
90 | Details for these steps: | | 95 | .Xr X 7 |
91 | .Bl -enum -offset indent | | 96 | will attempt to create the device node automatically. |
92 | .It | | 97 | To create the device node manually: |
93 | X must be compiled with DRI support. | | | |
94 | On i386, this is usually the default. | | | |
95 | .It | | | |
96 | Mesa (see | | | |
97 | .Pa http://www.mesa3d.org/ ) | | | |
98 | should be compiled for the netbsd-dri target, patch available at | | | |
99 | .Pa http://issc.uj.ac.za/~yorick/drm/mesa.patch | | | |
100 | .It | | | |
101 | The device node must exist: | | | |
102 | .Bd -literal -offset indent | | 98 | .Bd -literal -offset indent |
103 | mkdir -p /dev/dri | | 99 | mkdir -p /dev/dri |
104 | mknod /dev/dri/card0 c 180 0 | | 100 | mknod /dev/dri/card0 c 180 0 |
105 | chgrp wheel /dev/dri/card0 | | 101 | chgrp wheel /dev/dri/card0 |
106 | chmod 0660 /dev/dri/card0 | | 102 | chmod 0660 /dev/dri/card0 |
107 | .Ed | | 103 | .Ed |
108 | .It | | 104 | .Pp |
109 | Enable DRI in the X configuration (either | | 105 | To enable DRI in the X configuration add the following to either |
110 | .Pa xorg.conf | | 106 | .Pa xorg.conf |
| | | 107 | for |
| | | 108 | .Xr Xorg 1 |
111 | or | | 109 | or |
112 | .Pa XF86Config ) : | | 110 | .Pa XF86Config |
113 | .Bd -literal | | 111 | for |
| | | 112 | .Xr XFree86 1 |
| | | 113 | : |
| | | 114 | .Bd -literal -offset indent |
114 | Section "Module" | | 115 | Section "Module" |
115 | ... | | 116 | ... |
116 | Load "dri" | | 117 | Load "dri" |
117 | Load "GLcore" | | 118 | Load "dri2" |
118 | Load "glx" | | 119 | Load "glx" |
119 | EndSection | | 120 | EndSection |
120 | \&... | | 121 | \&... |
121 | Section "DRI" | | 122 | Section "DRI" |
122 | Group "wheel" | | 123 | Group "wheel" |
123 | Mode 0660 | | 124 | Mode 0660 |
124 | EndSection | | 125 | EndSection |
125 | .Ed | | 126 | .Ed |
126 | .El | | | |
127 | .Pp | | 127 | .Pp |
128 | Debugging output can be enabled and disabled by setting the | | 128 | Debugging output can be enabled and disabled by setting the |
129 | .Xr sysctl 8 | | 129 | .Xr sysctl 8 |
130 | node | | 130 | node |
131 | .Ar hw.dri.debug . | | 131 | .Ar hw.dri.debug . |
132 | Additional information can be obtained from the | | 132 | Additional information can be obtained from the |
133 | .Xr sysctl 8 | | 133 | .Xr sysctl 8 |
134 | nodes | | 134 | nodes |
135 | .Ar hw.dri , | | 135 | .Ar hw.dri , |
136 | .Ar hw.dri.card0 , | | 136 | .Ar hw.dri.card0 , |
137 | .Ar hw.dri.card1 , | | 137 | .Ar hw.dri.card1 , |
138 | etc. | | 138 | etc. |
139 | .Sh SEE ALSO | | 139 | .Sh SEE ALSO |
140 | .Xr agp 4 , | | 140 | .Xr agp 4 , |
141 | .Xr X 7 | | 141 | .Xr X 7 , |
| | | 142 | .Xr XFree86 1 , |
| | | 143 | .Xr Xorg 1 , |
| | | 144 | .Xr xorg.conf 5 , |
| | | 145 | .Xr XF86Config 5 , |
| | | 146 | .Xr /usr/X11R[67]/lib/X11/doc/README.DRI |
142 | .Sh HISTORY | | 147 | .Sh HISTORY |
143 | DRM was first available for Linux. | | 148 | DRM was first available for Linux. |
144 | Subsequently Eric Anholt ported the DRM kernel modules to | | 149 | Subsequently Eric Anholt ported the DRM kernel modules to |
145 | .Fx . | | 150 | .Fx . |
146 | Erik Reid adapted the | | 151 | Erik Reid adapted the |
147 | .Fx | | 152 | .Fx |
148 | DRM kernel modules to | | 153 | DRM kernel modules to |
149 | .Nx . | | 154 | .Nx . |
150 | As DRM continued to develop the | | 155 | As DRM continued to develop the |
151 | .Nx | | 156 | .Nx |
152 | support was neglected. | | 157 | support was neglected. |
153 | Tonnerre Lombard got the DRM modules working again, but DRM | | 158 | Tonnerre Lombard got the DRM modules working again, but DRM |
154 | development once again left the | | 159 | development once again left the |
155 | .Nx | | 160 | .Nx |
156 | support behind. | | 161 | support behind. |
157 | Finally Yorick Hardy took the | | 162 | Finally Yorick Hardy took the |
158 | .Fx | | 163 | .Fx |
159 | DRM source and managed to get it compiling and working again on | | 164 | DRM source and managed to get it compiling and working again on |
160 | .Nx , | | 165 | .Nx , |
161 | thanks largely to the efforts of all those mentioned above. | | 166 | thanks largely to the efforts of all those mentioned above. |
162 | Subsequently Matthias Drochner improved the DRM file hierarchy for | | 167 | Subsequently Matthias Drochner improved the DRM file hierarchy for |
163 | .Nx | | 168 | .Nx |
164 | and committed the DRM kernel drivers. | | 169 | and committed the DRM kernel drivers. |
| | | 170 | Matthew Green cleaned up this port and merged a set of newer |
| | | 171 | drivers, with Arto Huusko and FUKAUMI Naoki helping to get |
| | | 172 | the latest Mesa port upto date. |
165 | .Pp | | 173 | .Pp |
166 | The | | 174 | The |
167 | .Nm | | 175 | .Nm |
168 | drivers appeared in | | 176 | drivers appeared in |
169 | .Nx 5.0 . | | 177 | .Nx 5.0 . |
170 | .Sh AUTHORS | | 178 | .Sh AUTHORS |
171 | .An -nosplit | | 179 | .An -nosplit |
172 | .An Eric Anholt , | | 180 | .An Eric Anholt , |
173 | .An Terry Barnaby , | | 181 | .An Terry Barnaby , |
174 | .An Erdi Chen , | | 182 | .An Erdi Chen , |
175 | .An Michel Daenzer , | | 183 | .An Michel Daenzer , |
176 | .An Leif Delgass , | | 184 | .An Leif Delgass , |
177 | .An Frank C. Earl , | | 185 | .An Frank C. Earl , |
178 | .An Rickard E. Faith , | | 186 | .An Rickard E. Faith , |
179 | .An Jose Fonseca , | | 187 | .An Jose Fonseca , |
180 | .An Nicolai Haehnle , | | 188 | .An Nicolai Haehnle , |
181 | .An Jeff Hartmann , | | 189 | .An Jeff Hartmann , |
182 | .An Thomas Hellstrom , | | 190 | .An Thomas Hellstrom , |
183 | .An Gareth Hughes , | | 191 | .An Gareth Hughes , |
184 | .An Felix Kuehling , | | 192 | .An Felix Kuehling , |
185 | .An Sung-Ching Lin , | | 193 | .An Sung-Ching Lin , |
186 | .An Kevin E. Martin , | | 194 | .An Kevin E. Martin , |
187 | .An Jared D. McNeill , | | 195 | .An Jared D. McNeill , |
188 | .An Daryll Strauss , | | 196 | .An Daryll Strauss , |
189 | .An Keith Whitwell | | 197 | .An Keith Whitwell |
190 | .Sh CAVEATS | | 198 | .Sh CAVEATS |
191 | Disable AIGLX if necessary | | | |
192 | .Pq Pa xorg.conf : | | | |
193 | .Bd -literal -offset indent | | | |
194 | Section "ServerFlags" | | | |
195 | Option "AIGLX" "off" | | | |
196 | EndSection | | | |
197 | | | | |
198 | Section "Extensions" | | | |
199 | Option "Composite" "Disable" | | | |
200 | EndSection | | | |
201 | .Ed | | | |
202 | .Pp | | 199 | .Pp |
203 | In case of errors, | | 200 | In case of errors, |
204 | .Pa /dev/dri/card0 | | 201 | .Pa /dev/dri/card0 |
205 | may be changed, make sure to recreate it in that case. | | 202 | may be changed, make sure to recreate it in that case. |
206 | .Pp | | 203 | .Pp |
207 | .Cd options DRM_DEBUG | | 204 | .Cd options DRM_DEBUG |
208 | can slow DRI down a lot, disable it once | | 205 | can slow DRI down a lot, disable it once |
209 | .Nm | | 206 | .Nm |
210 | works. | | 207 | works. |
| | | 208 | .Pp |
| | | 209 | To use the latest drivers, |
| | | 210 | .Cd options DRM_EXTERNAL |
| | | 211 | must be added to the kernel configuration file. |