fglrx module loaded with errors, no 3D acceleration

Bug #12309 reported by Patrice Vetsel
30
Affects Status Importance Assigned to Milestone
Ubuntu
Invalid
Medium
Daniel Stone

Bug Description

2D work well but no 3D acceleration. Got somme errors messages on module loading
during the boot process.

glxgears -> 144 FPS
fgl_glxgears crash :
X Error of failed request: BadMatch (invalid parameter attributes)
  Major opcode of failed request: 145 (GLX)
  Minor opcode of failed request: 5 (X_GLXMakeCurrent)
  Serial number of failed request: 32
  Current serial number in output stream: 32

fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.2 (1.5 Mesa 6.2.1)

dmesg | grep fglrx
fglrx: module license 'Proprietary. (C) 2002 - ATI Technologies, Starnberg,
GERMANY' taints kernel.
[fglrx] Maximum main memory to use for locked dma buffers: 424 MBytes.
[fglrx:firegl_stub_register] *ERROR* Unable to the open some already present DRM
kernel module!
[fglrx] Maximum main memory to use for locked dma buffers: 424 MBytes.
[fglrx:firegl_init_32compat_ioctls] *ERROR* unable to register ioctl32 0
[fglrx:firegl_init] *ERROR* Couldn't register compat32 ioctls!

cat /var/log/Xorg.0.log | grep fglrx
(II) LoadModule: "fglrx"
(II) Loading /usr/X11R6/lib/modules/drivers/fglrx_drv.o
(II) Module fglrx: vendor="FireGL - ATI Technologies Inc."
(II) fglrx(0): pEnt->device->identifier=0x718d60
(II) fglrx(0): === [R200PreInit] === begin, [s]
(II) fglrx(0): PCI bus 1 card 0 func 0
(**) fglrx(0): Depth 24, (--) framebuffer bpp 32
(II) fglrx(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps)
(==) fglrx(0): Default visual is TrueColor
(==) fglrx(0): Qbs disabled
(==) fglrx(0): RGB weight 888
(II) fglrx(0): Using 8 bits per RGB (8 bit DAC)
(==) fglrx(0): Gamma Correction for I is 0x06419064
(==) fglrx(0): Gamma Correction for II is 0x06419064
(==) fglrx(0): Buffer Tiling is ON
(II) fglrx(0): initializing int10
(II) fglrx(0): Primary V_BIOS segment is: 0xc000
(--) fglrx(0): Chipset: "MOBILITY RADEON 9600/9700 (M10/M11 4E50)" (Chipset =
0x4e50)
(--) fglrx(0): (PciSubVendor = 0x17c0, PciSubDevice = 0x2061)
(--) fglrx(0): board vendor info: third party grafics adapter - NOT original ATI
(--) fglrx(0): Linear framebuffer (phys) at 0xd8000000
(--) fglrx(0): MMIO registers at 0xd0100000
(--) fglrx(0): ChipExtRevID = 0x00
(--) fglrx(0): ChipIntRevID = 0x0C
(--) fglrx(0): VideoRAM: 65536 kByte (64-bit SDR SDRAM)
(WW) fglrx(0): board is an unknown third party board, chipset is supported
(II) fglrx(0): I2C bus "DDC" initialized.
(II) fglrx(0): Connector Layout from BIOS --------
(II) fglrx(0): Connector1: DDCType-3, DACType-0, TMDSType--1, ConnectorType-2
(II) fglrx(0): I2C device "DDC:ddc2" registered at address 0xA0.
(II) fglrx(0): I2C device "DDC:ddc2" removed.
(II) fglrx(0): I2C device "DDC:ddc2" registered at address 0xA0.
(II) fglrx(0): I2C device "DDC:ddc2" removed.
(II) fglrx(0): I2C device "DDC:ddc2" registered at address 0xA0.
(II) fglrx(0): I2C device "DDC:ddc2" removed.
(II) fglrx(0): DDC detected on DDCType 3 with Monitor Type 0
(II) fglrx(0): Primary head:
(II) fglrx(0): Secondary head:
(II) fglrx(0):
(II) fglrx(0): DesktopSetup 0x0000
(II) fglrx(0): Panel ID string: 1024x768
(II) fglrx(0): Panel Size from BIOS: 1024x768
(==) fglrx(0): PseudoColor visuals disabled
(==) fglrx(0): Overlay disabled
(==) fglrx(0): Overlay disabled
(II) fglrx(0): PLL parameters: rf=2700 rd=6 min=20000 max=35000
(==) fglrx(0): Using gamma correction (1.0, 1.0, 1.0)
(==) fglrx(0): Center Mode is disabled
(==) fglrx(0): TMDS coherent mode is enabled
(II) fglrx(0): Valid mode using on-chip RMX: 1024x768
(II) fglrx(0): Total 1 valid mode(s) found.
(--) fglrx(0): Virtual size is 1024x768 (pitch 1024)
(**) fglrx(0): *Mode "1024x768": 65.0 MHz (scaled from 0.0 MHz), 48.4 kHz, 60.0 Hz
(II) fglrx(0): Modeline "1024x768" 65.00 1024 1040 1176 1344 768 770 776 806
(==) fglrx(0): DPI set to (75, 75)
(==) fglrx(0): NoAccel = NO
(==) fglrx(0): HPV inactive
(==) fglrx(0): FSAA enabled: NO
(==) fglrx(0): FSAA Gamma enabled
(==) fglrx(0): FSAA Multisample Position is fix
(==) fglrx(0): NoDRI = NO
(II) Loading sub module "fglrxdrm"
(II) LoadModule: "fglrxdrm"
(II) Loading /usr/X11R6/lib/modules/linux/libfglrxdrm.a
(II) Module fglrxdrm: vendor="FireGL - ATI Technologies Inc."
(II) fglrx(0): Depth moves disabled by default
(==) fglrx(0): Capabilities: 0x00000000
(==) fglrx(0): cpuFlags: 0x4000001f
(==) fglrx(0): cpuSpeedMHz: 0x00000702
(==) fglrx(0): OpenGL ClientDriverName: "fglrx_dri.so"
(==) fglrx(0): UseFastTLS=0
(==) fglrx(0): BlockSignalsOnLock=1
(==) fglrx(0): EnablePrivateBackZ = NO
(II) fglrx(0): UMM area: 0xd8501000 (size=0x03aff000)
(II) fglrx(0): driver needs XFree86 version: 4.3.x
(WW) fglrx(0): could not detect XFree86 version (query_status=-3)
(II) fglrx(0): doing DRIScreenInit
[drm] failed to load kernel module "fglrx"
(II) fglrx(0): [drm] drmOpen failed
(EE) fglrx(0): DRIScreenInit failed!
(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: 0xd8000000 FBMappedSize: 0x04000000
(==) fglrx(0): Write-combining range (0xd8000000,0x4000000)
(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
(**) fglrx(0): DPMS enabled
(II) fglrx(0): Using XFree86 Acceleration Architecture (XAA)
(II) fglrx(0): Acceleration enabled
(II) fglrx(0): Direct rendering disabled

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :
Download full text (12.1 KiB)

(In reply to comment #0)
> 2D work well but no 3D acceleration. Got somme errors messages on module loading
> during the boot process.
>
> glxgears -> 144 FPS
> fgl_glxgears crash :
> X Error of failed request: BadMatch (invalid parameter attributes)
> Major opcode of failed request: 145 (GLX)
> Minor opcode of failed request: 5 (X_GLXMakeCurrent)
> Serial number of failed request: 32
> Current serial number in output stream: 32
>
> fglrxinfo
> display: :0.0 screen: 0
> OpenGL vendor string: Mesa project: www.mesa3d.org
> OpenGL renderer string: Mesa GLX Indirect
> OpenGL version string: 1.2 (1.5 Mesa 6.2.1)
>
> dmesg | grep fglrx
> fglrx: module license 'Proprietary. (C) 2002 - ATI Technologies, Starnberg,
> GERMANY' taints kernel.
> [fglrx] Maximum main memory to use for locked dma buffers: 424 MBytes.
> [fglrx:firegl_stub_register] *ERROR* Unable to the open some already present DRM
> kernel module!
> [fglrx] Maximum main memory to use for locked dma buffers: 424 MBytes.
> [fglrx:firegl_init_32compat_ioctls] *ERROR* unable to register ioctl32 0
> [fglrx:firegl_init] *ERROR* Couldn't register compat32 ioctls!
>
> cat /var/log/Xorg.0.log | grep fglrx
> (II) LoadModule: "fglrx"
> (II) Loading /usr/X11R6/lib/modules/drivers/fglrx_drv.o
> (II) Module fglrx: vendor="FireGL - ATI Technologies Inc."
> (II) fglrx(0): pEnt->device->identifier=0x718d60
> (II) fglrx(0): === [R200PreInit] === begin, [s]
> (II) fglrx(0): PCI bus 1 card 0 func 0
> (**) fglrx(0): Depth 24, (--) framebuffer bpp 32
> (II) fglrx(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps)
> (==) fglrx(0): Default visual is TrueColor
> (==) fglrx(0): Qbs disabled
> (==) fglrx(0): RGB weight 888
> (II) fglrx(0): Using 8 bits per RGB (8 bit DAC)
> (==) fglrx(0): Gamma Correction for I is 0x06419064
> (==) fglrx(0): Gamma Correction for II is 0x06419064
> (==) fglrx(0): Buffer Tiling is ON
> (II) fglrx(0): initializing int10
> (II) fglrx(0): Primary V_BIOS segment is: 0xc000
> (--) fglrx(0): Chipset: "MOBILITY RADEON 9600/9700 (M10/M11 4E50)" (Chipset =
> 0x4e50)
> (--) fglrx(0): (PciSubVendor = 0x17c0, PciSubDevice = 0x2061)
> (--) fglrx(0): board vendor info: third party grafics adapter - NOT original ATI
> (--) fglrx(0): Linear framebuffer (phys) at 0xd8000000
> (--) fglrx(0): MMIO registers at 0xd0100000
> (--) fglrx(0): ChipExtRevID = 0x00
> (--) fglrx(0): ChipIntRevID = 0x0C
> (--) fglrx(0): VideoRAM: 65536 kByte (64-bit SDR SDRAM)
> (WW) fglrx(0): board is an unknown third party board, chipset is supported
> (II) fglrx(0): I2C bus "DDC" initialized.
> (II) fglrx(0): Connector Layout from BIOS --------
> (II) fglrx(0): Connector1: DDCType-3, DACType-0, TMDSType--1, ConnectorType-2
> (II) fglrx(0): I2C device "DDC:ddc2" registered at address 0xA0.
> (II) fglrx(0): I2C device "DDC:ddc2" removed.
> (II) fglrx(0): I2C device "DDC:ddc2" registered at address 0xA0.
> (II) fglrx(0): I2C device "DDC:ddc2" removed.
> (II) fglrx(0): I2C device "DDC:ddc2" registered at address 0xA0.
> (II) fglrx(0): I2C device "DDC:ddc2" removed.
> (II) fglrx(0): DDC detected on DDCType 3 with Monitor Type 0
> (II) fglrx(0): Primary head:
> (II) fglrx(0): Secondary head:
> (II) fglr...

Revision history for this message
Kareema (markmueller86) wrote :

This bug only shows in conjunction with the kernel images version 2.6.10-11 and
above. Downgrading to kernel image version 2.6.10-10 solves the problem, so it
seems to be a problem with linux-image-2.6.10-2? See
http://www.ubuntuforums.org/showthread.php?t=8993&page=4&pp=10 for more details.
My system: Acer Ferrari 3400 laptop with Radeon Mobility 9700 and Ubuntu Hoary
AMD64 with all recent updates.

Revision history for this message
Daniel Stone (daniels) wrote :

Bleh. Does http://people.ubuntu.com/~daniels/fglrx.ko work for you with the
newer kernels?

Revision history for this message
Ernst Persson (ernstp) wrote :

Got the same error here.

That module doesn't work.

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

Like me, that module produce the same errors.

Revision history for this message
Kareema (markmueller86) wrote :

Hi Daniel,

no need to test it with the fglrx.ko you linked to in you message: It's the same
as the one I've got installed from the latest restricted modules (version
2.6.10.3-3) - I checked the md5sum of the two files for equality. As I said,
this fglrx.ko doesn't work with kernel image version 2.6.10-11 and version
2.6.10-11. Sorry to disappoint you...

Revision history for this message
Kareema (markmueller86) wrote :

Typo above: ...kernel image version 2.6.10-11 and version
2.6.10-12... Sorry!

Revision history for this message
Nafallo Bjälevik (nafallo) wrote :

I see this aswell. Shouldn't this one be signed against linux-image and Fabbione?

Revision history for this message
Nafallo Bjälevik (nafallo) wrote :

nafallo@darkelf:~ $ cat /boot/config-2.6.10-3-amd64-k8 | grep DRM
CONFIG_DRM=y
CONFIG_DRM_TDFX=m
CONFIG_DRM_R128=m
CONFIG_DRM_RADEON=m
CONFIG_DRM_MGA=m
CONFIG_DRM_SIS=m

nafallo@darkelf:~ $ cat /boot/config-2.6.10-3-amd64-k8 | grep AGP
CONFIG_AGP=y
CONFIG_AGP_AMD64=y
# CONFIG_AGP_INTEL_MCH is not set

nafallo@darkelf:~ $ dmesg | grep -B1 drm
Linux agpgart interface v0.100 (c) Dave Jones
[drm] Initialized drm 1.0.0 20040925

I should try to recompile the kernel when I got time.
Lot's of studies right now. I'll probably find some time in the weekend.

Revision history for this message
Daniel Stone (daniels) wrote :

*** Bug 12661 has been marked as a duplicate of this bug. ***

Revision history for this message
Kareema (markmueller86) wrote :

Just installed linux-image-2.6.11-1 and tried to compile the fglrx module.To
compile the fglrx module with kernel 2.6.11, a patch is needed (see
http://www.rage3d.com/board/showpost.php?p=1333473014&postcount=42). I modified
the patch to work with fglrx-kernel-source_8.8.25-0ubuntu5 (see
http://www.ubuntuforums.org/showpost.php?p=69192&postcount=6) and compiled the
fglrx module successfully. But when loading the module, the same error as with
linux-image-2.6.10-11 and above occurs: "[fglrx:firegl_stub_register] *ERROR*
Unable to the open some already present DRM kernel module!".
The only way to get rid of this error seems to recompile the kernel and compile
DRM as a module (as suggested in
http://www.ubuntuforums.org/showpost.php?p=60795&postcount=47). Sorry, but I had
no time to try this out. Perhaps later...

Revision history for this message
Kareema (markmueller86) wrote :

Problem found: In the kernel-images before 2.6.10-11, the drm-core was built
into the specific driver modules (like radeon.ko, etc.). This means when you
set CONFIG_DRM=y in these kernels, no extra drm kernel module was built.
Starting with the kernel-images 2.6.10-11 and above the drm core functions have
been moved from the driver modules to a drm-core module. If you set CONFIG_DRM=y
in the newer kernels, a drm-core module is built into the kernel and all drivers
not aware of this architecture change don't work any more.
This is the case with the fglrx driver and the cause of the error message. To
solve this problem, please set CONFIG_DRM=m as the default for all newer kernel
images as suggested by Tristan in
http://www.ubuntuforums.org/showpost.php?p=60795&postcount=47.

Revision history for this message
Daniel Stone (daniels) wrote :

Can we please get this done in the next round of kernel updating?

Revision history for this message
Tristan Tarrant (tristan-tarrant) wrote :

(In reply to comment #13)
> Can we please get this done in the next round of kernel updating?

Even though Fabio says otherwise, I believe he should be involved with this as
owner of the linux-image package. Does it really make a difference to anybody
that CONFIG_DRM is set as a module instead of compiled in ?
DRM doesn't really matter until the X server is loaded.

Anybody ?

Revision history for this message
Chuck Short (zulcss) wrote :

DRM has been built as a module since 2.6.10-19. This could probably be closed now.

chuck

Revision history for this message
reh4c (gene-hoffler) wrote :

Running Hoary array 7, I cannot get 3d fglrx to run properly. I have installed the fglrx restricted
modules on my AMD64 laptop. However, I still cannot get 3D acceleration. 'fglrxinfo' tells me:
"Xlib: extension "Xfree86-DRI" missing on display ":0.0".
display: :0.0 screen: 0
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect"

Do I need to run commands to install the ATI drivers or are they automatically downloaded and
installed when I use synaptic to get them?

Revision history for this message
Daniel Stone (daniels) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.