Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 97093

Summary: ati-drivers (fglrx) kernel module compiles with warnings with gentoo-sources-2.6.12-r1, it have no 3D accel and the computer crashes after X restart
Product: Gentoo Linux Reporter: fkosa <fkosa>
Component: [OLD] Core systemAssignee: X11 External Driver Maintainers <x11-drivers>
Status: RESOLVED DUPLICATE    
Severity: critical CC: arpad.borsos, farcepest, fordfrog, infested, jakub, julien.enche, levertond, maze, outrage, rajiv, Stephan, stian
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Ebuild which includes patch for kernel 2.6.12 AGP interface changes
Patch for kernel 2.6.12 AGP interface changes
Ebuild which includes patch for kernel 2.6.12 AGP interface changes

Description fkosa 2005-06-26 00:36:32 UTC
I have just upgraded my kernel from gentoo-sources-2.6.11-r11 to gentoo-sources-
2.6.12-r1 
I did not change the kernel .config , only recompiled it, reboot, and then I did 
a 

emerge -a ati-drivers 

again. 

It compiled with the following warnings: 
emerge -a ati-drivers 
... 
 * Building the DRM module... 
make: Entering directory `/usr/src/linux-2.6.12-gentoo-r1' 
  CC [M]  /var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/
build_mod/agp3.o 
  CC [M]  /var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/
build_mod/nvidia-agp.o 
  CC [M]  /var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/
build_mod/agpgart_be.o 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
agpgart_be.c: In function `__fgl_agp_init': 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
agpgart_be.c:7629: warning: `pm_register' is deprecated (declared at include/
linux/pm.h:106) 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
agpgart_be.c: In function `__fgl_agp_cleanup': 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
agpgart_be.c:7639: warning: `pm_unregister_all' is deprecated (declared at 
include/linux/pm.h:116) 
  CC [M]  /var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/
build_mod/i7505-agp.o 
  CC [M]  /var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/
build_mod/firegl_public.o 
In file included from /var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/
fglrx/build_mod/firegl_public.c:128: 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.h:56:48: warning: backslash and newline separated by space 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.h:57:6: warning: backslash and newline separated by space 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.h:58:41: warning: backslash and newline separated by space 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.c: In function `firegl_stub_putminor': 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.c:511: warning: `inter_module_put' is deprecated (declared at 
include/linux/module.h:568) 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.c:513: warning: `inter_module_unregister' is deprecated (declared 
at include/linux/module.h:565) 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.c: In function `firegl_stub_register': 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.c:533: warning: `inter_module_register' is deprecated (declared at 
include/linux/module.h:564) 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.c:564: warning: `inter_module_put' is deprecated (declared at 
include/linux/module.h:568) 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.c: In function `__ke_verify_area': 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.c:1441: warning: `verify_area' is deprecated (declared at include/
asm/uaccess.h:105) 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.c: At top level: 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.c:2650: warning: initialization from incompatible pointer type 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.c:2868: warning: initialization from incompatible pointer type 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.c:2871: warning: initialization from incompatible pointer type 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.c:2872: warning: initialization from incompatible pointer type 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.c:2873: warning: initialization from incompatible pointer type 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.c:2875: warning: initialization from incompatible pointer type 
  LD [M]  /var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/
build_mod/fglrx.o 
  Building modules, stage 2. 
  MODPOST 
  CC      /var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/
build_mod/fglrx.mod.o 
  LD [M]  /var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/
build_mod/fglrx.ko 
make: Leaving directory `/usr/src/linux-2.6.12-gentoo-r1' 
>>> Test phase [not enabled]: media-video/ati-drivers-8.14.13-r1 

after starting the X, X has no 3D acceleration. 

when I restart X, the computer hangs 

With gentoo-sources-2.6.11-r11 I did not have any problem, ati drivers just work 
fine. 

I do not know whether the kernel via-agp module became buggy, or the fglrx-
module needs patching for kernel-2.6.12...

Reproducible: Always
Steps to Reproduce:
1.loading agpgart kernel module
2.loading via-agp kernel module
3.loading fglrx kernel module
4. starting X (/etc/init.d/xdm start)
5. restarting X

Actual Results:  
X has no 3D accel, after restarting X computer hangs

Expected Results:  
X with 3D accel, and no hangup

The log says: 
[/var/log/messages] 

Jun 26 07:29:52 daisy Linux agpgart interface v0.101 (c) Dave Jones 
Jun 26 07:29:52 daisy agpgart: Detected VIA P4X266 chipset 
Jun 26 07:29:52 daisy agpgart: AGP aperture is 64M @ 0xe0000000 
Jun 26 07:29:52 daisy fglrx: module license 'Proprietary. (C) 2002 - ATI 
Technologies, Starnberg, GERMANY' taints kernel. 
Jun 26 07:29:52 daisy [fglrx] Maximum main memory to use for locked dma buffers: 
429 MBytes. 
Jun 26 07:29:52 daisy ACPI: PCI Interrupt 0000:01:00.0[A] -> Link [LNKA] -> GSI 
11 (level, low) -> IRQ 11 
Jun 26 07:29:52 daisy [fglrx] module loaded - fglrx 8.14.13 [Jun  8 2005] on 
minor 0 

... 

Jun 26 07:30:15 daisy [fglrx:firegl_unlock] *ERROR* Process 14751 using kernel 
context 0 

... 

Jun 26 08:10:03 daisy gdm[14737]: gdm_slave_xioerror_handler: V
Comment 1 fkosa 2005-06-26 00:36:32 UTC
I have just upgraded my kernel from gentoo-sources-2.6.11-r11 to gentoo-sources-
2.6.12-r1 
I did not change the kernel .config , only recompiled it, reboot, and then I did 
a 

emerge -a ati-drivers 

again. 

It compiled with the following warnings: 
emerge -a ati-drivers 
... 
 * Building the DRM module... 
make: Entering directory `/usr/src/linux-2.6.12-gentoo-r1' 
  CC [M]  /var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/
build_mod/agp3.o 
  CC [M]  /var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/
build_mod/nvidia-agp.o 
  CC [M]  /var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/
build_mod/agpgart_be.o 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
agpgart_be.c: In function `__fgl_agp_init': 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
agpgart_be.c:7629: warning: `pm_register' is deprecated (declared at include/
linux/pm.h:106) 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
agpgart_be.c: In function `__fgl_agp_cleanup': 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
agpgart_be.c:7639: warning: `pm_unregister_all' is deprecated (declared at 
include/linux/pm.h:116) 
  CC [M]  /var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/
build_mod/i7505-agp.o 
  CC [M]  /var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/
build_mod/firegl_public.o 
In file included from /var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/
fglrx/build_mod/firegl_public.c:128: 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.h:56:48: warning: backslash and newline separated by space 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.h:57:6: warning: backslash and newline separated by space 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.h:58:41: warning: backslash and newline separated by space 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.c: In function `firegl_stub_putminor': 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.c:511: warning: `inter_module_put' is deprecated (declared at 
include/linux/module.h:568) 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.c:513: warning: `inter_module_unregister' is deprecated (declared 
at include/linux/module.h:565) 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.c: In function `firegl_stub_register': 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.c:533: warning: `inter_module_register' is deprecated (declared at 
include/linux/module.h:564) 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.c:564: warning: `inter_module_put' is deprecated (declared at 
include/linux/module.h:568) 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.c: In function `__ke_verify_area': 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.c:1441: warning: `verify_area' is deprecated (declared at include/
asm/uaccess.h:105) 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.c: At top level: 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.c:2650: warning: initialization from incompatible pointer type 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.c:2868: warning: initialization from incompatible pointer type 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.c:2871: warning: initialization from incompatible pointer type 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.c:2872: warning: initialization from incompatible pointer type 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.c:2873: warning: initialization from incompatible pointer type 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/
firegl_public.c:2875: warning: initialization from incompatible pointer type 
  LD [M]  /var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/
build_mod/fglrx.o 
  Building modules, stage 2. 
  MODPOST 
  CC      /var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/
build_mod/fglrx.mod.o 
  LD [M]  /var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/
build_mod/fglrx.ko 
make: Leaving directory `/usr/src/linux-2.6.12-gentoo-r1' 
>>> Test phase [not enabled]: media-video/ati-drivers-8.14.13-r1 

after starting the X, X has no 3D acceleration. 

when I restart X, the computer hangs 

With gentoo-sources-2.6.11-r11 I did not have any problem, ati drivers just work 
fine. 

I do not know whether the kernel via-agp module became buggy, or the fglrx-
module needs patching for kernel-2.6.12...

Reproducible: Always
Steps to Reproduce:
1.loading agpgart kernel module
2.loading via-agp kernel module
3.loading fglrx kernel module
4. starting X (/etc/init.d/xdm start)
5. restarting X

Actual Results:  
X has no 3D accel, after restarting X computer hangs

Expected Results:  
X with 3D accel, and no hangup

The log says: 
[/var/log/messages] 

Jun 26 07:29:52 daisy Linux agpgart interface v0.101 (c) Dave Jones 
Jun 26 07:29:52 daisy agpgart: Detected VIA P4X266 chipset 
Jun 26 07:29:52 daisy agpgart: AGP aperture is 64M @ 0xe0000000 
Jun 26 07:29:52 daisy fglrx: module license 'Proprietary. (C) 2002 - ATI 
Technologies, Starnberg, GERMANY' taints kernel. 
Jun 26 07:29:52 daisy [fglrx] Maximum main memory to use for locked dma buffers: 
429 MBytes. 
Jun 26 07:29:52 daisy ACPI: PCI Interrupt 0000:01:00.0[A] -> Link [LNKA] -> GSI 
11 (level, low) -> IRQ 11 
Jun 26 07:29:52 daisy [fglrx] module loaded - fglrx 8.14.13 [Jun  8 2005] on 
minor 0 

... 

Jun 26 07:30:15 daisy [fglrx:firegl_unlock] *ERROR* Process 14751 using kernel 
context 0 

... 

Jun 26 08:10:03 daisy gdm[14737]: gdm_slave_xioerror_handler: Végzetes X hiba -
 :0 újraindítása 
Jun 26 08:10:07 daisy [fglrx] Kernel AGP support doesn't provide agplock 
functionality. 
Jun 26 08:10:07 daisy Unable to handle kernel NULL pointer dereference at 
virtual address 00000001 
Jun 26 08:10:07 daisy printing eip: 
Jun 26 08:10:07 daisy e126ca54 
Jun 26 08:10:07 daisy *pde = 1ac25067 
Jun 26 08:10:07 daisy *pte = 00000000 
Jun 26 08:10:07 daisy Oops: 0002 [#1] 
Jun 26 08:10:07 daisy PREEMPT 
Jun 26 08:10:07 daisy Modules linked in: microcode snd_pcm_oss snd_mixer_oss 
snd_seq_oss snd_seq_midi_event snd_seq snd_via82xx gameport snd_ac97_codec 
snd_pcm snd_time 
r snd_page_alloc snd_mpu401_uart snd_rawmidi snd_seq_device snd evdev fglrx 
spca5xx videodev subfs via_agp agpgart e100 pcspkr 
Jun 26 08:10:07 daisy CPU:    0 
Jun 26 08:10:07 daisy EIP:    0060:[<e126ca54>]    Tainted: P      VLI 
Jun 26 08:10:07 daisy EFLAGS: 00213246   (2.6.12-gentoo-r1-fk) 
Jun 26 08:10:07 daisy EIP is at agp_copy_info+0x14/0x9b [agpgart] 
Jun 26 08:10:07 daisy eax: 00000000   ebx: 00000001   ecx: 0000000b   edx: 
e1356560 
Jun 26 08:10:07 daisy esi: d7b56e70   edi: 00000001   ebp: 40046463   esp: 
d7b56e1c 
Jun 26 08:10:07 daisy ds: 007b   es: 007b   ss: 0068 
Jun 26 08:10:07 daisy Process X (pid: 15355, threadinfo=d7b56000 task=df486a20) 
Jun 26 08:10:07 daisy Stack: e136c954 00000000 e136c978 e134045a d7b56e70 
00000001 00000000 c01b732f 
Jun 26 08:10:07 daisy dd94ec80 d27af660 00014000 e136c760 e1347155 db2dde80 
00000001 0000000f 
Jun 26 08:10:07 daisy e1347d89 d0ddbf80 e136c8fc bff31440 07aff000 e136de90 
e136de84 e136c760 
Jun 26 08:10:07 daisy Call Trace: 
Jun 26 08:10:07 daisy [<e134045a>] __ke_agp_copy_info+0x118/0x176 [fglrx] 
Jun 26 08:10:07 daisy [<c01b732f>] reiserfs_file_write+0x51c/0x6b6 
Jun 26 08:10:07 daisy [<e1347155>] firegl_init_aperture+0xb5/0x1d0 [fglrx] 
Jun 26 08:10:07 daisy [<e1347d89>] firegl_aperture_size+0x49/0x60 [fglrx] 
Jun 26 08:10:07 daisy [<e1349a0e>] firegl_umm_init+0x31e/0x450 [fglrx] 
Jun 26 08:10:07 daisy [<e126b010>] agp_backend_acquire+0x10/0x2a [agpgart] 
Jun 26 08:10:07 daisy [<e133ffe6>] __ke_agpgart_available+0x66/0x6f [fglrx] 
Jun 26 08:10:07 daisy [<e1340097>] __ke_agp_available+0xa8/0xbd [fglrx] 
Jun 26 08:10:07 daisy [<e13554fb>] drm_agp_init+0x7b/0x90 [fglrx] 
Jun 26 08:10:07 daisy [<e1355e06>] _firegl_agp_acquire+0x76/0x360 [fglrx] 
Jun 26 08:10:07 daisy [<e1355af7>] firegl_agp_acquire+0x77/0xa0 [fglrx] 
Jun 26 08:10:07 daisy [<e13496f0>] firegl_umm_init+0x0/0x450 [fglrx] 
Jun 26 08:10:07 daisy [<e1355a80>] firegl_agp_acquire+0x0/0xa0 [fglrx] 
Jun 26 08:10:07 daisy [<e134191d>] firegl_ioctl+0x15d/0x1e0 [fglrx] 
Jun 26 08:10:07 daisy [<c0172e27>] do_ioctl+0x6f/0xa9 
Jun 26 08:10:07 daisy [<c0173004>] vfs_ioctl+0x65/0x1e1 
Jun 26 08:10:07 daisy [<c01731c5>] sys_ioctl+0x45/0x6c 
Jun 26 08:10:07 daisy [<c01030a7>] sysenter_past_esp+0x54/0x75 
Jun 26 08:10:07 daisy Code: 51 04 a1 44 20 27 e1 c1 f8 0c 29 c2 b8 00 00 00 00 
0f 48 d0 89 d0 c3 57 31 c0 b9 0b 00 00 00 56 53 8b 5c 24 14 8b 74 24 10 89 df 
<f3> ab 85 
f6 74 71 8b 06 0f b7 00 66 89 03 8b 06 0f b7 40 02 c7 
Jun 26 08:10:31 daisy <6>SysRq : Emergency Sync 
Jun 26 08:10:31 daisy Emergency Sync complete 
Jun 26 08:10:32 daisy SysRq : Emergency Remount R/O 



[/var/log/X.org.0.log] 
... 

(II) fglrx(0): Kernel Module Version Information: 
(II) fglrx(0):     Name: fglrx 
(II) fglrx(0):     Version: 8.14.13 
(II) fglrx(0):     Date: Jun  8 2005 
(II) fglrx(0):     Desc: ATI FireGL DRM kernel module 
(II) fglrx(0): Kernel Module version matches driver. 
(II) fglrx(0): Kernel Module Build Time Information: 
(II) fglrx(0):     Build-Kernel UTS_RELEASE:        2.6.12-gentoo-r1-fk 
(II) fglrx(0):     Build-Kernel MODVERSIONS:        no 
(II) fglrx(0):     Build-Kernel __SMP__:            no 
(II) fglrx(0):     Build-Kernel PAGE_SIZE:          0x1000 
(II) fglrx(0): [drm] register handle = 0xe5000000 
(EE) fglrx(0): [agp] unable to acquire AGP, error "xf86_ENODEV" 
(EE) fglrx(0): cannot init AGP 
(II) fglrx(0): [drm] removed 1 reserved context for kernel 
(II) fglrx(0): [drm] unmapping 8192 bytes of SAREA 0xe087a000 at 0xb7cf8000 
(WW) fglrx(0): *********************************************** 
(WW) fglrx(0): * DRI initialization failed!                  * 
(WW) fglrx(0): * (maybe driver kernel module missing or bad) * 
(WW) fglrx(0): * 2D acceleraton available (MMIO)             * 
(WW) fglrx(0): * no 3D acceleration available                * 
(WW) fglrx(0): ********************************************* * 
(II) fglrx(0): FBADPhys: 0xd0000000 FBMappedSize: 0x08000000 
(II) fglrx(0): FBMM initialized for area (0,0)-(1024,8191) 
(II) fglrx(0): FBMM auto alloc for area (0,0)-(1024,768) (front color buffer - 
assumption) 
(==) fglrx(0): Backing store disabled 
(==) fglrx(0): Silken mouse enabled 
(II) fglrx(0): Using hardware cursor (scanline 768) 
(II) fglrx(0): Largest offscreen area available: 1024 x 7419 

... 

uname -a 

Linux daisy 2.6.12-gentoo-r1-fk #1 Sun Jun 26 02:00:58 CEST 2005 i686 Intel(R) 
Celeron(R) CPU 2.00GHz GenuineIntel GNU/Linux 

lspci 

0000:00:00.0 Host bridge: VIA Technologies, Inc. VT8753 [P4X266 AGP] (rev 01) 
0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8633 [Apollo Pro266 AGP] 
0000:00:08.0 Ethernet controller: Intel Corporation 82557/8/9 [Ethernet Pro 100] 
(rev 05) 
0000:00:11.0 ISA bridge: VIA Technologies, Inc. VT8233 PCI to ISA Bridge 
0000:00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/
VT823x/A/C PIPC Bus Master IDE (rev 06) 
0000:00:11.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 
Controller (rev 1b) 
0000:00:11.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 
Controller (rev 1b) 
0000:00:11.4 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 
Controller (rev 1b) 
0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/
8237 AC97 Audio Controller (rev 30) 
0000:01:00.0 VGA compatible controller: ATI Technologies Inc RV280 [Radeon 9200 
SE] (rev 01) 
0000:01:00.1 Display controller: ATI Technologies Inc RV280 [Radeon 9200 SE] 
(Secondary) (rev 01) 

lsmod 

Module                  Size  Used by 
fglrx                 237308  0 
via_agp                 7680  1 
agpgart                28744  2 fglrx,via_agp 
microcode               5664  0 
snd_pcm_oss            48288  0 
snd_mixer_oss          17280  3 snd_pcm_oss 
snd_seq_oss            31872  0 
snd_seq_midi_event      6784  1 snd_seq_oss 
snd_seq                49424  4 snd_seq_oss,snd_seq_midi_event 
snd_via82xx            24000  5 
gameport               11784  1 snd_via82xx 
snd_ac97_codec         77432  1 snd_via82xx 
snd_pcm                82440  3 snd_pcm_oss,snd_via82xx,snd_ac97_codec 
snd_timer              21636  2 snd_seq,snd_pcm 
snd_page_alloc          7556  2 snd_via82xx,snd_pcm 
snd_mpu401_uart         6272  1 snd_via82xx 
snd_rawmidi            20896  1 snd_mpu401_uart 
snd_seq_device          6924  3 snd_seq_oss,snd_seq,snd_rawmidi 
snd                    46692  17 snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,
snd_via82xx,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,
snd_seq_device 
evdev                   7680  0 
spca5xx               316568  0 
videodev                7552  1 spca5xx 
subfs                   6400  3 
e100                   34688  0 
pcspkr                  3396  0
Comment 2 Julien Enche 2005-06-26 02:56:03 UTC
Same problem here with same version of kernel and ati-drivers and also with a
VIA agp driver...
Comment 3 sigloiv 2005-06-26 14:43:12 UTC
Same problem with Nforce AGPGart.
Comment 4 Kai Blaschke 2005-06-28 18:38:50 UTC
Same problem here, using kernel 2.6.11-gentoo-r9.

Weird thing is, ati-drivers-8.10.19 compile with the same warnings, but are
working flowlessly with full 3D acceleration.

It seems the kernel 2.6.12 fix by ATI has broken the driver seriously.
Comment 5 fkosa 2005-06-29 12:06:23 UTC
You may find precious informations here:

http://ati.cchtml.com/show_bug.cgi?id=136
Comment 6 Luca Barbato gentoo-dev 2005-06-29 22:15:13 UTC
the .11-r9 is working fine here.
maybe there is something quite wrong in you configuration?
Comment 7 Miroslav Šulc gentoo-dev 2005-06-29 23:46:33 UTC
I have similar problem but it seems the driver works fine for me. Here is my FPS
output:
$ glxgears
7772 frames in 5.0 seconds = 1554.400 FPS
9675 frames in 5.0 seconds = 1935.000 FPS
10042 frames in 5.0 seconds = 2008.400 FPS
10028 frames in 5.0 seconds = 2005.600 FPS
10043 frames in 5.0 seconds = 2008.600 FPS
10046 frames in 5.0 seconds = 2009.200 FPS

With gentoo-sources-2.6.12 the driver didn't work at all (see bug 96122). With
gentoo-sources-2.6.12-r1 and -r2 it works but after I exit kde, I get screen
with vertical stripes (the screen doesn't restore to kdm login screen) but the
computer reacts to Ctrl+Alt+Del (performs reboot) and power button pressing
(turns off).
Comment 8 Joe Heath 2005-07-01 01:20:31 UTC
I get this too, but with not only the gentoo-sources 2.6.12 kernel, but
nitro-sources 2.6.12-nitro2, and the vanilla 2.6.12, with the agpgart module as
a static driver, and intel_agp as a module. I also get a system hang, not only
on x restart, but when I try to stop X too. I don't have acceleration either,
and get a measly 200fps in glxgears, rather than my usual 5000. I also get a
nearly identical firegl_unlock error too. It seems that 2.6.12 has a new set of
AGP drivers that break fglrx. Come on ATi! sort it out! None of the devs can fix
this, it's ATi's problem.
Comment 9 Mark Knecht 2005-07-02 08:33:16 UTC
I think I've got a version of the same bug. I don't know when the trace below
happens. My machine works fine until I log out of Gnome at which time the
machine is hung going back to gdm. I've tried rebooting and shutting down from
an ssh login but the machine never shuts down. I have to power cycle.

[fglrx:firegl_unlock] *ERROR* Process 9050 using kernel context 0
Unable to handle kernel NULL pointer dereference at virtual address 00000076
 printing eip:
e0938038
*pde = 1a33a067
*pte = 00000000
Oops: 0002 [#1]
PREEMPT
Modules linked in: snd_pcm_oss snd_mixer_oss snd_seq_oss snd_seq_midi_event
snd_seq snd_usb_audio snd_usb_lib snd_rawmidi snd_seq_device eth1394 uhci_hcd
ehci_hcd ohci1394 ohci_hcd fglrx ati_agp agpgart sbp2 ieee1394 snd_atiixp
snd_ac97_codec snd_pcm snd_timer snd snd_page_alloc
CPU:    0
EIP:    0060:[<e0938038>]    Tainted: P      VLI
EFLAGS: 00213202   (2.6.12-gentoo-r2)
EIP is at agp_backend_release+0x8/0x10 [agpgart]
eax: 00000032   ebx: 00000000   ecx: 00000000   edx: 00000032
esi: e09cda50   edi: dfcf03e4   ebp: 40046463   esp: ddeefe8c
ds: 007b   es: 007b   ss: 0068
Process X (pid: 9656, threadinfo=ddeee000 task=dec87a80)
Stack: e09a0759 00000032 dfce2380 e09a0777 00000000 00000000 0000004c e09cda50
       e09b5d1c 00000000 00000000 0000004c dfce2380 ddeefee0 e09cd860 e09ccc44
       e09b6646 e09cda50 00000000 bf97be74 00000004 e09cd860 e09cd860 e09ccc44
Call Trace:
 [<e09a0759>] __ke_agpgart_available+0x69/0x70 [fglrx]
 [<e09a0777>] __ke_agp_available+0x17/0xb0 [fglrx]
 [<e09b5d1c>] drm_agp_init+0x5c/0x90 [fglrx]
 [<e09b6646>] _firegl_agp_acquire+0x76/0x360 [fglrx]
 [<e09b6337>] firegl_agp_acquire+0x77/0xa0 [fglrx]
 [<e09a9f30>] firegl_umm_init+0x0/0x450 [fglrx]
 [<e09b62c0>] firegl_agp_acquire+0x0/0xa0 [fglrx]
 [<e09a215d>] firegl_ioctl+0x15d/0x1e0 [fglrx]
 [<c016ef00>] do_ioctl+0x70/0xa0
 [<c016f0e5>] vfs_ioctl+0x65/0x1f0
 [<c016f2b5>] sys_ioctl+0x45/0x70
 [<c010312b>] sysenter_past_esp+0x54/0x75
Code: f0 93 e0 31 c9 85 c0 89 c2 74 0c 8b 40 44 85 c0 75 05 ff 42 44 89 d1 5a 89
c8 c3 90 8d b4 26 00 00 00 00 8b 44 24 04 85 c0 74 03 <ff> 48 44 c3 8d 74 26 00
57 b8 01 00 00 00 56 8b 35 c4 a6 49 c0
  
flash ~ #
Comment 10 Miroslav Šulc gentoo-dev 2005-07-02 10:39:08 UTC
I have installed gentoo-sources-2.6.12-r3 and re-emerged ati-drivers. Since then
I have rebooted several times and I didn't faced the "vertical stripes" problem
yet. 
Comment 11 Keef Aragon 2005-07-03 13:45:42 UTC
Same problem here with or without InternalAGPGart. Using VIA AGP driver, system
hangs - still a problem with 2.6.12-gentoo-r3 and ati-drivers-8.14.13-r1
Comment 12 Keef Aragon 2005-07-03 14:08:40 UTC
Alas, the problem is solved thanks to the link from fkosa... only need one patch
from that list

http://ati.cchtml.com/attachment.cgi?id=116
Comment 13 Manuel McLure 2005-07-13 21:47:25 UTC
Created attachment 63360 [details]
Ebuild which includes patch for kernel 2.6.12 AGP interface changes
Comment 14 Manuel McLure 2005-07-13 21:48:51 UTC
Created attachment 63361 [details, diff]
Patch for kernel 2.6.12 AGP interface changes
Comment 15 Manuel McLure 2005-07-13 21:51:33 UTC
Comment on attachment 63361 [details, diff]
Patch for kernel 2.6.12 AGP interface changes

From http://ati.cchtml.com/attachment.cgi?id=116 - save this as
fglrx-2.6.12-agp_interface.patch in the "files" directory under
media-video/ati-drivers in your portage overlay.
Comment 16 Manuel McLure 2005-07-13 21:52:26 UTC
Created attachment 63363 [details]
Ebuild which includes patch for kernel 2.6.12 AGP interface changes
Comment 17 Manuel McLure 2005-07-13 21:53:58 UTC
I can confirm that the patch listed works for me as well - I have attached an
ebuild and the patch.
Comment 18 Joshua Baergen (RETIRED) gentoo-dev 2005-07-14 09:04:03 UTC
I can confirm that this works on x86.  Manuel, what platform are you on?
Comment 19 Manuel McLure 2005-07-14 09:11:26 UTC
I'm on x86 (running on an Athlon 64). I haven't tried this on amd64 yet.
Comment 20 Joshua Baergen (RETIRED) gentoo-dev 2005-07-14 09:39:51 UTC
I'm not sure how different the AGP code is for 64-bit machines, but I have a
feeling this won't affect it negatively...

Luca's the maintainer of this package and thus has had to fight with ATI patches
before, so maybe he knows :P
Comment 21 Sébastien Champigny 2005-07-17 16:44:47 UTC
Just a feedback: your ebuild works. Patch should go in the portage tree asap. I
had to fix a stable system with this patch (including creating
/usr/local/portage and so on): quite dirty for a "stable" system.
Comment 22 arpac 2005-07-18 07:38:57 UTC
works fine on amd64
Comment 23 Benjamin Martin 2005-07-18 12:06:38 UTC
I'm experiencing exactly the same problems (System locks up on X stopping, 
missing 3D Accel). Now that 2.6.12 is stable on x86, this should really be 
fixed. And I mean really. This is not the way a stable tree should behave. 
Either fix the driver, or keep the 2.6.12 kernels in testing until there is a 
fix. 
 
Cheers, 
 
Ben 
Comment 24 Stian Skjelstad 2005-07-20 19:01:10 UTC
Can the agp patch please get merged into portage? It is VERY needed on 2.6.12
and 2.6.13-rcN kernels. Without it I get random agp failures and crashes
depending on which modules is loaded alongside fglrx.
Comment 25 Joshua Megerman 2005-07-23 06:24:55 UTC
Just echoing the chior at this point, I too manually build an overlay ebuild
with this patch (which I got from the linux-thinkpad ML),and it resolved my
problems on 2.6.12-gentoo-r6.  I still have to use the internal AGPGart, but I
can live with that...

Josh
Comment 26 Andy Dustman 2005-07-23 22:31:16 UTC
Patch fixes my problems as well.
Comment 27 Christian Roessner 2005-07-24 03:43:04 UTC
The patch fixes crashes on my machine, but I do not have DRI anymore. Nether
with built-in.

agpgart is built-in, amd64_agp as module. I tested it with radeonfb, vesa, all
combinations. I always get:

(II) fglrx(0): [drm] DRM interface version 1.0
(II) fglrx(0): [drm] created "fglrx" driver at busid "PCI:1:0:0"
(II) fglrx(0): [drm] added 8192 byte SAREA at 0xffffc200011ea000
(II) fglrx(0): [drm] mapped SAREA 0xffffc200011ea000 to 0x2aaaabbbb000
(II) fglrx(0): [drm] framebuffer handle = 0xb0000000
(II) fglrx(0): [drm] added 1 reserved context for kernel
(II) fglrx(0): DRIScreenInit done
(II) fglrx(0): Kernel Module Version Information:
(II) fglrx(0):     Name: fglrx
(II) fglrx(0):     Version: 8.14.13
(II) fglrx(0):     Date: Jun  8 2005
(II) fglrx(0):     Desc: ATI FireGL DRM kernel module
(II) fglrx(0): Kernel Module version matches driver.
(II) fglrx(0): Kernel Module Build Time Information:
(II) fglrx(0):     Build-Kernel UTS_RELEASE:        2.6.12-ck3-r1
(II) fglrx(0):     Build-Kernel MODVERSIONS:        no
(II) fglrx(0):     Build-Kernel __SMP__:            no
(II) fglrx(0):     Build-Kernel PAGE_SIZE:          0x1000
(II) fglrx(0): [drm] register handle = 0xff3f0000
(EE) fglrx(0): [agp] unable to acquire AGP, error "xf86_ENODEV"
(EE) fglrx(0): cannot init AGP
(II) fglrx(0): [drm] removed 1 reserved context for kernel
(II) fglrx(0): [drm] unmapping 8192 bytes of SAREA 0xffffc200011ea000 at
0x2aaaabbbb000
(WW) fglrx(0): ***********************************************
(WW) fglrx(0): * DRI initialization failed!                  *
(WW) fglrx(0): * (maybe driver kernel module missing or bad) *
(WW) fglrx(0): * 2D acceleraton available (MMIO)             *
(WW) fglrx(0): * no 3D acceleration available                *
(WW) fglrx(0): ********************************************* *
(II) fglrx(0): FBADPhys: 0xb0000000 FBMappedSize: 0x08000000
(II) fglrx(0): ----------------------------------
(II) fglrx(0): | panel native mode is 1280x1024 |
(II) fglrx(0): ----------------------------------
(II) fglrx(0): FBMM initialized for area (0,0)-(1280,8191)
(II) fglrx(0): FBMM auto alloc for area (0,0)-(1280,1024) (front color buffer -
assumption)


Gentoo Base System version 1.6.13
Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.4,
glibc-2.3.5-r0,glibc-2.3.4.20040808-r1, 2.6.12-ck3-r1 x86_64)
=================================================================
System uname: 2.6.12-ck3-r1 x86_64 AMD Athlon(tm) 64 Processor 3200+
ccache version 2.4 [enabled]
dev-lang/python:     2.4.1-r1
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=athlon64 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=athlon64 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache digest distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://gentoo.inode.at/source/ ftp://ftp.easynet.nl/mirror/gentoo/
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X X509 a52 aalib acl acpi acpi4linux activefilter adns alsa apache2
arts artswrappersuid audiofile avi bash-completion
bcmath berkdb bigger-fonts bitmap-fonts bonobo bzlib caps cddb cdparanoia cdr
chroot client codecs crypt cscope css ctype cups dbm dbus dhcp directfb doc dts
dvd dvdr dvdread eds encode extensions faac faad fam fame faxonly fbcon ffmpeg
flac font-server foomaticdb freetype gd gdbm gif gimp gimpprint gnome gpm
gstreamer gtk2 gtkhtml guile hal hbci icq icu imagemagick imlib ipv6 javascript
jbig jpeg jpeg2k kde lcd lcms ldap libclamav libwww lm_sensors lzo lzw lzw-tiff
mad maildir mailwrapper mbox mcal md5sum mikmod mime mjpeg mng motif mp3 mpeg
mpeg4 mppe-mppc mysql nas ncurses network nls no-old-linux nptl ogg oggvorbis
opengl oss pam pcntl pcre pdflib perl php pic png pnp posix postgres ppds python
qt quicktime readline rtc ruby samba scanner sdl session sftplogging slang snmp
sockets sox speex spell sqlite ssl symlink tcltk tcpd tetex theora threads tiff
tokenizer truetype truetype-fonts type1-fonts unicode usb vanilla vim-with-x
vorbis wxwindows xine xml xml2 xmms xpm xprint xrandr xsl xv xvid zlib
video_cards_radeon linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 28 Stian Skjelstad 2005-07-24 05:21:41 UTC
(In reply to comment #26)
> The patch fixes crashes on my machine, but I do not have DRI anymore. Nether
> with built-in.
> agpgart is built-in, amd64_agp as module. I tested it with radeonfb, vesa, all
> combinations. I always get:
> (EE) fglrx(0): [agp] unable to acquire AGP, error "xf86_ENODEV"

DRI should not be compiled (neither as module or built it when using fglrx. But 
Do you have agpgart and the agp-chipset driver compiled in or as modules. I 
must have them compiled in, else fglrx fails to get a lock when init'ing.
Comment 29 Andy Dustman 2005-07-24 07:12:16 UTC
In my tesing with the patch, I have agpgart (and nvidia_agp) compiled into the
kernel (non-module). Before things broke, I had these compiled as modules, and
have not tried it again. As Stian notes, DRI in the kernel configuration must be
turned off.

Related note: What magic is required to make the driver work with it's internal
AGP support? The build warns:

        ewarn "You don't have AGP support enabled, the direct rendering"
        ewarn "will not work."

Yet if you do have AGP support, the internal AGP won't initialize if you have in
/etc/X11/xorg.conf:

    Option "UseInternalAGPGART"         "yes"

Instead the kernel AGP is used. I think most of my previous testing in this area
was with a 2.4 kernel with devfs, and I'm using 2.6 with udev now, so perhaps
compiling as modules again will satisfy the build (by having AGP support
"enabled") and the fglrx module (by not actually having AGP support "enabled" at
run time).

Supposedly the internal AGPGART has better performance.
Comment 30 Jakub Moc (RETIRED) gentoo-dev 2005-07-28 09:39:59 UTC
*** Bug 100603 has been marked as a duplicate of this bug. ***
Comment 31 Jakub Moc (RETIRED) gentoo-dev 2005-07-28 09:41:42 UTC
This needs to be fixed, what's the status here?
Comment 32 Joshua Baergen (RETIRED) gentoo-dev 2005-07-29 17:19:42 UTC
It would appear that 88767 now contains the solution for this bug, even though
it refers to a different driver version.  I'll mark this as a dup. of that one
since it's newer.  Anyone reading this bug should try 8.14.13-r2, and post
comments regarding that ebuild in 88767.

*** This bug has been marked as a duplicate of 88767 ***
Comment 33 Stian Skjelstad 2005-07-29 18:19:27 UTC
with 2.6.13-rc3 and 2.6.13-rc4 I get blackscreen within 1 second of 3d. 2d
works. I'll try an older kernel later tonight again (fresh box, but I had it
working before on 2.6.13-rc2 I believe)
Comment 34 Stian Skjelstad 2005-08-01 06:19:18 UTC
I seem to be unable to get fglrx to work at all since I re-installed my gentoo
machine (my old ibm deskstar died, so I had no choice).I have tried a bunch of
different kernels and options-combinitions. Always when I want to use 3D, I get
maximum 1-2 seconds of things of my screen before it blacks out, or X freezes (I
can still move the mouse, but that's it)
Comment 35 Joshua Baergen (RETIRED) gentoo-dev 2005-08-01 11:53:47 UTC
Stian, this is not the place to be posting the problem.  Please file a new bug
with all the appropriate information and we'll help you there.