Bug#345758: No direct rendering with recent kernels (workaround)

2006-01-12 Thread Michel Dänzer
On Wed, 2006-01-11 at 10:42 +0100, Svante Signell wrote:
 Can you please add the workaround described below to the DRM problems
 with kernels 2.6.14+15 to next release of Xorg. Obviously the kernel
 module patch will not be included until kernel 2.6.16. 
 
 For direct rendering with MGA graphics cards use the following option in
 the Device section of xorg.conf:
 Option OldDmaInit true

Someone should fix the mga X driver to fall back to the old DMA init
method if the new one fails.


-- 
Earthling Michel Dänzer  | Debian (powerpc), X and DRI developer
Libre software enthusiast|   http://svcs.affero.net/rm.php?r=daenzer



Bug#345758: No direct rendering with recent kernels (workaround)

2006-01-12 Thread Svante Signell
On Thu, 2006-01-12 at 16:16 +0100, Michel Dänzer wrote:
 On Wed, 2006-01-11 at 10:42 +0100, Svante Signell wrote:
  Can you please add the workaround described below to the DRM problems
  with kernels 2.6.14+15 to next release of Xorg. Obviously the kernel
  module patch will not be included until kernel 2.6.16. 
  
  For direct rendering with MGA graphics cards use the following option in
  the Device section of xorg.conf:
  Option OldDmaInit true
 
 Someone should fix the mga X driver to fall back to the old DMA init
 method if the new one fails.

Why not making a patch of the kernel module for kernels 2.6.14 and 2.6.15?
The problem has obviously been solved in November last year, see
https://bugs.freedesktop.org/show_bug.cgi?id=4797

-- 
Svante Signell [EMAIL PROTECTED]



Bug#345758: No direct rendering with recent kernels (workaround)

2006-01-11 Thread Svante Signell
Can you please add the workaround described below to the DRM problems
with kernels 2.6.14+15 to next release of Xorg. Obviously the kernel
module patch will not be included until kernel 2.6.16. 

For direct rendering with MGA graphics cards use the following option in
the Device section of xorg.conf:
Option OldDmaInit true

On Thu, 2006-01-05 at 00:45 +0100, Svante Signell wrote:
 On Tue, 2006-01-03 at 11:58 +0100, Svante Signell wrote:
  Subject: xserver-xorg: No direct rendering with recent kernels
  Package: xserver-xorg
  Version: 6.9.0.dfsg.1-1
  Severity: important
  
  *** Please type your report below this line ***
  Recent kernels 2.6.14-2-686-smp and 2.6.15-rc4-686-smp does not have 
  direct rendering enabled. Kernel 2.6.11-1-686-smp works OK.
  
  Kernel 2.6.14:
  ~$ LIBGL_DEBUG=verbose glxgears
  libGL error: XF86DRIQueryDirectRenderingCapable returned false
  598 frames in 6.2 seconds = 97.027 FPS
  560 frames in 6.4 seconds = 87.010 FPS
  560 frames in 6.4 seconds = 88.052 FPS
  
  Kernel 2.6.11:
  ~$ LIBGL_DEBUG=verbose glxgears
  libGL: XF86DRIGetClientDriverName: 1.2.1 mga (screen 0)
  libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/mga_dri.so
  drmOpenByBusid: Searching for BusID pci::01:00.0
  drmOpenDevice: node name is /dev/dri/card0
  drmOpenDevice: open result is 4, (OK)
  drmOpenByBusid: drmOpenMinor returns 4
  drmOpenByBusid: drmGetBusid reports pci::01:00.0
  2440 frames in 5.0 seconds = 487.941 FPS
  2526 frames in 5.0 seconds = 505.015 FPS
  2519 frames in 5.0 seconds = 503.690 FPS
  
 
 It seems that this bug has been solved in the DRM module in CVS in
 November, see https://bugs.freedesktop.org/show_bug.cgi?id=4797
 
 The problem is that the changes are not included in kernels 2.6.14 and
 2.6.15 (released yesterday). I've asked on the DRI-devel mailinglist if
 a patch can be made available that can be included when building these
 kernels. If not, a workaround is to add the  Option OldDmaInit true
 in the Device section of xorg.conf for the card as a workaround. My
 problems were solved by this setting for the card, an MGA G400 DH AGP.
 
 
-- 
Svante Signell [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#345758: No direct rendering with recent kernels

2006-01-03 Thread Svante Signell
Subject: xserver-xorg: No direct rendering with recent kernels
Package: xserver-xorg
Version: 6.9.0.dfsg.1-1
Severity: important

*** Please type your report below this line ***
Recent kernels 2.6.14-2-686-smp and 2.6.15-rc4-686-smp does not have 
direct rendering enabled. Kernel 2.6.11-1-686-smp works OK.

Kernel 2.6.14:
~$ LIBGL_DEBUG=verbose glxgears
libGL error: XF86DRIQueryDirectRenderingCapable returned false
598 frames in 6.2 seconds = 97.027 FPS
560 frames in 6.4 seconds = 87.010 FPS
560 frames in 6.4 seconds = 88.052 FPS

Kernel 2.6.11:
~$ LIBGL_DEBUG=verbose glxgears
libGL: XF86DRIGetClientDriverName: 1.2.1 mga (screen 0)
libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/mga_dri.so
drmOpenByBusid: Searching for BusID pci::01:00.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmOpenByBusid: drmOpenMinor returns 4
drmOpenByBusid: drmGetBusid reports pci::01:00.0
2440 frames in 5.0 seconds = 487.941 FPS
2526 frames in 5.0 seconds = 505.015 FPS
2519 frames in 5.0 seconds = 503.690 FPS

Note that the Xorg.0.log file given below is from kernel
2.6.11-1-686-smp. Below the diff is given.

~$ cat Xorg.0.log_2.6.11-2.6.14.diff
--- Xorg.0.log_2.6.11   2006-01-03 11:18:52.0 +0100
+++ Xorg.0.log_2.6.14   2006-01-03 11:08:19.0 +0100
@@ -3,16 +3,16 @@
 Release Date: 21 December 2005
 X Protocol Version 11, Revision 0, Release 6.9
 Build Operating System: Linux 2.6.14-2-686 i686 [ELF]
-Current Operating System: Linux cl-dual 2.6.11-1-686-smp #1 SMP Mon
Jun 
20 20:18:45 MDT 2005 i686
+Current Operating System: Linux cl-dual 2.6.14-2-686-smp #1 SMP Wed
Dec 
28 18:47:53 UTC 2005 i686
 Build Date: 29 December 2005
Before reporting problems, check http://wiki.X.Org
to make sure that you have the latest version.
 Module Loader present
-OS Kernel: Linux version 2.6.11-1-686-smp ([EMAIL PROTECTED]) (gcc
version 
3.3.6
(Debian 1:3.3.6-6)) #1 SMP Mon Jun 20 20:18:45 MDT 2005
+OS Kernel: Linux version 2.6.14-2-686-smp (Debian 2.6.14-7) 
([EMAIL PROTECTED]) (gcc version 4.0.3 20051201 (prerelease) (Debian 
4.0.2-5)) #1 SMP Wed Dec 28
18:47:53 UTC 2005
 Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
-(==) Log file: /var/log/Xorg.0.log, Time: Tue Jan  3 11:17:36 2006
+(==) Log file: /var/log/Xorg.0.log, Time: Tue Jan  3 11:04:30 2006
 (==) Using config file: /etc/X11/xorg.conf
 (==) ServerLayout Default Layout
 (**) |--Screen Default Screen (0)
@@ -662,20 +662,10 @@
 (II) MGA(0): [drm] loaded kernel module for mga driver
 (II) MGA(0): [drm] DRM interface version 1.2
 (II) MGA(0): [drm] created mga driver at busid pci::01:00.0
-(II) MGA(0): [drm] added 8192 byte SAREA at 0xe89ac000
-(II) MGA(0): [drm] mapped SAREA 0xe89ac000 to 0xb519e000
+(II) MGA(0): [drm] added 8192 byte SAREA at 0xe8b7d000
+(II) MGA(0): [drm] mapped SAREA 0xe8b7d000 to 0xb50d3000
 (II) MGA(0): [drm] framebuffer handle = 0xe400
 (II) MGA(0): [drm] added 1 reserved context for kernel
-(II) MGA(0): [agp] Mode 0x1f000201 [AGP 0x8086/0x7190; Card 
0x102b/0x0525]
-(II) MGA(0): [agp] 12288 kB allocated with handle 0x0001
-(II) MGA(0): [agp] WARP microcode handle = 0xe800
-(II) MGA(0): [agp] Primary DMA handle = 0xe8008000
-(II) MGA(0): [agp] DMA buffers handle = 0xe8108000
-(II) MGA(0): [drm] Added 128 65536 byte DMA buffers
-(II) MGA(0): [agp] agpTexture handle = 0xe8908000
-(II) MGA(0): [agp] agpTexture size: 2816 kb
-(II) MGA(0): [drm] Registers handle = 0xefefc000
-(II) MGA(0): [drm] Status handle = 0xe89ba000
 (II) MGA(0): [dri] visual configs initialized
 (II) MGA(0): Memory manager initialized to (0,0) (1600,2400)
 (II) MGA(0): Largest offscreen area available: 1600 x 1200
@@ -706,9 +696,10 @@
 (II) MGA(0): X context handle = 0x1
 (II) MGA(0): [drm] installed DRM signal handler
 (II) MGA(0): [DRI] installation complete
-(II) MGA(0): [drm] Mapped 128 DMA buffers
-(II) MGA(0): [drm] dma control initialized, using IRQ 193
-(II) MGA(0): Direct rendering enabled
+(EE) MGA(0): [drm] Failed to map DMA buffers list
+(II) MGA(0): [drm] removed 1 reserved context for kernel
+(II) MGA(0): [drm] unmapping 8192 bytes of SAREA 0xe8b7d000 at 
0xb50d3000
+(WW) MGA(0): Direct rendering disabled
 (==) RandR enabled
 (II) Initializing built-in extension MIT-SHM
 (II) Initializing built-in extension XInputExtension

-- Package-specific info:
Contents of /var/lib/xfree86/X.roster:
xserver-xfree86
xserver-xorg

/etc/X11/X target unchanged from checksum in /var/lib/xfree86/X.md5sum.

X server symlink status:
lrwxrwxrwx 1 root root 17 2005-07-13 11:52 /etc/X11/X
- /usr/bin/X11/Xorg
-rwxr-xr-x 1 root root 1852284 2005-12-29 08:38 /usr/bin/X11/Xorg

Contents of /var/lib/xfree86/xorg.conf.roster:
xserver-xorg

VGA-compatible devices on PCI bus:
:01:00.0 VGA compatible controller: Matrox Graphics, Inc. G400/G450
(rev 04)