Bug 5883

Summary: "Unable to reserve mem region" on $modprobe r128 (Open GL apps crash)
Product: DRI Reporter: jfr <jfrkl>
Component: DRM/otherAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED INVALID QA Contact:
Severity: critical    
Priority: high    
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description jfr 2006-02-14 09:34:45 UTC
Overview:
dmesg reports "Unable to reserve mem region" for ATI Rage 128 Pro. OpenGL Apps 
crash or freeze.

To Reproduce:
1) modprobe r128
2) startx
3) Start one of various OpenGL apps

Actual Results (all reproducible everytime):
1) Module loads, but dmesg reports error - see below.
2) Works.
3) App crashes (example a) or freezes (b) or works (c)
   a) game gltron: exits on selection of new game, output: Rage 128 timed out...
   b) game Privateer Gemini Gold: Whole system freezes
   c) glxgears: runs with ~1000fps

Expected Results:
3a,b) should run, as it does without DRI.

My Software:
Linux Mandriva 2006
kernel 2.6.11
xorg 6.9.0
DRI snapshot 06-Feb-2006

My Hardware:
PC, ATI Rage 128 Pro AGP 4x

Diagnostical output:
dmesg:
[drm] Initialized drm 1.0.1 20051102
PCI: Unable to reserve mem region #1:4000000@d8000000 for device 0000:01:00.0
[drm] Initialized r128 2.5.0 20030725 on minor 0:
[drm] Used old pci detect: framebuffer loaded
agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
agpgart: Putting AGP V2 device at 0000:00:00.0 into 1x mode
agpgart: Putting AGP V2 device at 0000:01:00.0 into 1x mode
Comment 1 Conn 2006-05-05 21:44:27 UTC
I can also confirm this bug on a Dell Inspiron 8000 with an ATI Mobility M4 8mb
card. The relevent dmesg output:

[4294713.820000] [drm] Initialized drm 1.0.1 20051102
[4294713.842000] PCI: Unable to reserve mem region #1:4000000@e8000000 for
device 0000:01:00.0
[4294713.842000] **** SET: Misaligned resource pointer: ca3111e2 Type 07 Len 0
[4294713.844000] ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11
[4294713.844000] PCI: setting IRQ 11 as level-triggered
[4294713.844000] ACPI: PCI Interrupt 0000:01:00.0[A] -> Link [LNKA] -> GSI 11
(level, low) -> IRQ 11
[4294713.846000] [drm] Initialized r128 2.5.0 20030725 on minor 0:
[4294713.846000] [drm] Used old pci detect: framebuffer loaded
[4294713.848000] agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
[4294713.849000] agpgart: Putting AGP V2 device at 0000:00:00.0 into 1x mode
[4294713.849000] agpgart: Putting AGP V2 device at 0000:01:00.0 into 1x mode

There are several problems with the r128 driver on my laptop. I suspect that
some of these freezes are related to a CCE idle timeout bug, see
https://bugs.freedesktop.org/show_bug.cgi?id=1889 - I have recently added a
patch I found that may hopefully alleviate some system freezes.
Comment 2 Dave Airlie 2006-05-06 14:50:03 UTC
Is there a framebuffer driver loaded on the system? vesafb or atyfb?

Does it work with the kernel DRM? don't install the modules from the DRI snapshot..
Comment 3 jfr 2006-05-06 18:49:27 UTC
> Is there a framebuffer driver loaded on the system? vesafb or atyfb?

No.
 
> Does it work with the kernel DRM? don't install the modules from the DRI 
snapshot..

I'll get on that as soon as I have access to the system again.
Comment 4 Matt Turner 2010-12-02 19:59:55 UTC
Closing due to inactivity. Reopen if this is still a bug.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.