AGP speed not detected properly (work only with 64 bit kernel)

Bug #262631 reported by Ermenegildo Fiorito
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linux
Confirmed
Medium
Declined for Trunk by Andy Whitcroft
linux (Ubuntu)
Incomplete
Medium
Unassigned

Bug Description

Environment:
  - Motherboard ASUS K8V-X SE
  - CPU: AMD Sempron 3000+
  - Graphics ATI 9200 PRO
  - Ubuntu 8.10 alpha 4 / Ubuntu 8.04
AGP fail to initialize &/or not detecte speed properly
Causing:
causing black screen
unkillable Xorg process

It Works only with a X86_64 kernel

AGP speed not detected properly

Revision history for this message
Ermenegildo Fiorito (fiorito-g) wrote :
Revision history for this message
Ermenegildo Fiorito (fiorito-g) wrote :
Revision history for this message
Ermenegildo Fiorito (fiorito-g) wrote :
description: updated
description: updated
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Hi Gildo,

The Ubuntu Kernel Team is planning to move to the 2.6.27 kernel for the upcoming Intrepid Ibex 8.10 release. As a result, the kernel team would appreciate it if you could please test this newer 2.6.27 Ubuntu kernel. There are one of two ways you should be able to test:

1) If you are comfortable installing packages on your own, the linux-image-2.6.27-* package is currently available for you to install and test.

--or--

2) The upcoming Alpha5 for Intrepid Ibex 8.10 will contain this newer 2.6.27 Ubuntu kernel. Alpha5 is set to be released Thursday Sept 4. Please watch http://www.ubuntu.com/testing for Alpha5 to be announced. You should then be able to test via a LiveCD.

Please let us know immediately if this newer 2.6.27 kernel resolves the bug reported here or if the issue remains. More importantly, please open a new bug report for each new bug/regression introduced by the 2.6.27 kernel and tag the bug report with 'linux-2.6.27'. Also, please specifically note if the issue does or does not appear in the 2.6.26 kernel. Thanks again, we really appreicate your help and feedback.

Revision history for this message
Ermenegildo Fiorito (fiorito-g) wrote :

I have already tested Linux 2.6.27 on Intrepid Ibex but the result is the same
:(

Revision history for this message
Ermenegildo Fiorito (fiorito-g) wrote :

gildo@jv:~$ cat /var/log/Xorg.0.log | grep "(EE)"
 (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(EE) RADEON(0): [agp] Could not bind
(EE) RADEON(0): [agp] AGP failed to initialize. Disabling the DRI.
gildo@jv:~$

Revision history for this message
Ermenegildo Fiorito (fiorito-g) wrote :

I point out a possible solution on bugzilla.kernel.org:
http://bugzilla.kernel.org/show_bug.cgi?id=6350#c79
Sorry for my english

Changed in linux:
status: Unknown → Confirmed
Revision history for this message
Ermenegildo Fiorito (fiorito-g) wrote :

From Albert Gall on bugzilla.kernel.org :

Hello:

With this version of the kernel

http://www.kernel.org/pub/linux/kernel/v2.6/testing/patch-2.6.27-rc5.bz2

and the following options enabled

Symbol: ACPI_PCI_SLOT [=]

Symbol: AMD_IOMMU [=]

seems that the problem is solved.

I would like to prove what someone else and comment on their results.

/usr/src/linux-2.6.27-rc5[0]# uname --all
Linux localhost 2.6.27-rc5 #2 PREEMPT Tue Sep 9 23:19:27 WEST 2008 x86_64 AMD
Athlon(tm) 64 Processor 3200+ AuthenticAMD GNU/Linux
/usr/src/linux-2.6.27-rc5[0]# glxinfo |grep render
libGL warning: 3D driver claims to not support visual 0x4b
direct rendering: Yes
OpenGL renderer string: Mesa DRI R200 20060602 AGP 1x TCL
/usr/src/linux-2.6.27-rc5[0]# dmesg |grep -i agp
AGP bridge at 00:00:00
Aperture from AGP @ f0000000 old size 32 MB
Aperture from AGP @ f0000000 size 32 MB (APSIZE 0)
agpgart-amd64 0000:00:00.0: AGP bridge [10de/00e1]
agpgart-amd64 0000:00:00.0: setting up Nforce3 AGP
agpgart-amd64 0000:00:00.0: AGP aperture is 32M @ 0xf0000000
agpgart-amd64 0000:00:00.0: calling nv_msi_ht_cap_quirk+0x0/0x106
agpgart-amd64 0000:00:00.0: calling quirk_cardbus_legacy+0x0/0x1d
agpgart-amd64 0000:00:00.0: calling quirk_usb_early_handoff+0x0/0x449
agpgart-amd64 0000:00:00.0: calling pci_fixup_video+0x0/0xaf
Linux agpgart interface v0.103
agpgart-amd64 0000:00:00.0: AGP 3.0 bridge
agpgart-amd64 0000:00:00.0: putting AGP V3 device into 4x mode
pci 0000:01:00.0: putting AGP V3 device into 4x mode
/usr/src/linux-2.6.27-rc5[0]#

Greetings

Revision history for this message
Ermenegildo Fiorito (fiorito-g) wrote :

news?

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Here's the current kernel config options for ACPI_PCI_SLOT and AMD_IOMMU for Intrepid. Looks like the latter isn't enabled for i386. I'll reassign to the kernel team. Thanks.

ogasawara@emiko:~/ubuntu-intrepid/debian/config$ grep -rn "ACPI_PCI_SLOT" *
amd64/config:45:CONFIG_ACPI_PCI_SLOT=m
i386/config:47:CONFIG_ACPI_PCI_SLOT=m
ogasawara@emiko:~/ubuntu-intrepid/debian/config$ grep -rn "AMD_IOMMU" *
amd64/config:96:CONFIG_AMD_IOMMU=y

Changed in linux:
assignee: nobody → ubuntu-kernel-team
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Andy Whitcroft (apw) wrote :

The AMD_IOMMU symbol is not something one can enable for the i386 version of the kernel according to Kconfig:

config AMD_IOMMU
        bool "AMD IOMMU support"
        select SWIOTLB
        depends on X86_64 && PCI && ACPI

Also from the dmesg.log attached above, the agp gart seems to be found and configured ok:

[...]
[ 12.112178] Linux agpgart interface v0.103
[ 12.153706] agpgart: Detected AGP bridge 0
[ 12.154810] agpgart: AGP aperture is 32M @ 0xe4000000
[...]
[ 36.749550] agpgart: Found an AGP 3.0 compliant device at 0000:00:00.0.
[ 36.749577] agpgart: Putting AGP V3 device at 0000:00:00.0 into 8x mode
[ 36.749635] agpgart: Putting AGP V3 device at 0000:01:00.0 into 8x mode

So its not clear turning on more gart support is the issue here. We can also see that your graphics card was picked up here (from your lspci output):

01:00.0 VGA compatible controller [0300]: ATI Technologies Inc RV280 [Radeon 9200 PRO] [1002:5960] (rev 01)

Now I do note that this does show the AGP aperture as 32MB, and from your Xorg.log, you seem to have configured it to be 64MB:

(==) RADEON(0): Default visual is TrueColor
(**) RADEON(0): Option "AGPMode" "8"
(**) RADEON(0): Option "GARTSize" "64"
[...]
(**) RADEON(0): Using AGP 8x
(II) RADEON(0): [agp] Mode 0x1f000a0a [AGP 0x1106/0x0282; Card 0x1002/0x5960]
(II) RADEON(0): [agp] 65536 kB allocated with handle 0x00000001
(EE) RADEON(0): [agp] Could not bind
(EE) RADEON(0): [agp] AGP failed to initialize. Disabling the DRI.

Can you check if this is a real option in your Xorg.conf configuration file, and if so try and disable that for the i386 boot?

Changed in linux:
assignee: ubuntu-kernel-team → apw
status: Triaged → In Progress
Andy Whitcroft (apw)
Changed in linux:
status: In Progress → Incomplete
Revision history for this message
Ermenegildo Fiorito (fiorito-g) wrote :

My xorg.conf

Changed in linux:
assignee: apw → leannogasawara
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Ermenegildo, not sure why you assigned this to me when Andy had already taken ownership. Please don't assign/reassign bugs to someone without asking first. Thanks.

Changed in linux:
assignee: leannogasawara → apw
Revision history for this message
Wawrzyniec Niewodniczański (wawrzek) wrote :

I have the same problem. I'm using 8.10 with updated kernel (i686 version).

I'm attaching outputs of:
- egrep "radeon|agp" /var/log/Xorg.0.log
- dmesg |grep agp
- lspci

and
- my xorg.conf (separate file)

└─(:18:36:%)── egrep "radeon|agp" /var/log/Xorg.0.log ──(śro,gru31)─┘
(II) LoadModule: "radeon"
(II) Loading /usr/lib/xorg/modules/drivers//radeon_drv.so
(II) Module radeon: vendor="X.Org Foundation"
(II) RADEON(0): [agp] Mode 0x1f004a0a [AGP 0x8086/0x2570; Card 0x1002/0x4150]
(II) RADEON(0): [agp] 32768 kB allocated with handle 0x00000001
(EE) RADEON(0): [agp] Could not bind
(EE) RADEON(0): [agp] AGP failed to initialize. Disabling the DRI.
(II) RADEON(0): [agp] You may want to make sure the agpgart kernel module
is loaded before the radeon kernel module.

└─(:18:37:%)── dmesg |grep agp ──(śro,gru31)─┘
[ 15.015593] Linux agpgart interface v0.103
[ 15.323518] agpgart-intel 0000:00:00.0: Intel 865 Chipset
[ 15.593827] agpgart-intel 0000:00:00.0: AGP aperture is 16M @ 0xfd000000
[ 33.782646] agpgart-intel 0000:00:00.0: AGP 3.0 bridge
[ 33.782682] agpgart-intel 0000:00:00.0: putting AGP V3 device into 8x mode
[23762.534523] agpgart-intel 0000:00:00.0: AGP 3.0 bridge
[23762.534558] agpgart-intel 0000:00:00.0: putting AGP V3 device into 8x mode

└─(:18:47:%)── lspci ──(śro,gru31)─┘
00:00.0 Host bridge: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02)
00:01.0 PCI bridge: Intel Corporation 82865G/PE/P PCI to AGP Controller (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2)
00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801EB (ICH5) SATA Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02)
01:00.0 VGA compatible controller: ATI Technologies Inc RV350 AP [Radeon 9600]
01:00.1 Display controller: ATI Technologies Inc RV350 AP [Radeon 9600] (Secondary)
02:02.0 Multimedia audio controller: Cirrus Logic CS 4614/22/24/30 [CrystalClear SoundFusion Audio Accelerator] (rev 01)
02:08.0 Ethernet controller: Intel Corporation 82562EZ 10/100 Ethernet Controller (rev 01)

Revision history for this message
Wawrzyniec Niewodniczański (wawrzek) wrote :

Some update:
My Xorg working but not Compiz.

I have ATI Radeon 9600 with Pentium4 2.40 on unkown (to me) Motherboard.

I also check Fedora10 and it work fine. There are no xorg.conf in Fedora so I'm attaching Xorg.0.log file

Revision history for this message
Wawrzyniec Niewodniczański (wawrzek) wrote :

And Xorg.log from Ubuntu 8.10

Revision history for this message
Andy Whitcroft (apw) wrote : Re: [Bug 262631] Re: AGP speed not detected properly (work only with 64 bit kernel)

On Wed, Dec 31, 2008 at 07:13:09PM -0000, Wawrzek wrote:
[...]
> (II) RADEON(0): [agp] Mode 0x1f004a0a [AGP 0x8086/0x2570; Card 0x1002/0x4150]
> (II) RADEON(0): [agp] 32768 kB allocated with handle 0x00000001
> (EE) RADEON(0): [agp] Could not bind
> (EE) RADEON(0): [agp] AGP failed to initialize. Disabling the DRI.
[...]
> [ 15.015593] Linux agpgart interface v0.103
> [ 15.323518] agpgart-intel 0000:00:00.0: Intel 865 Chipset
> [ 15.593827] agpgart-intel 0000:00:00.0: AGP aperture is 16M @ 0xfd000000
> [ 33.782646] agpgart-intel 0000:00:00.0: AGP 3.0 bridge
> [ 33.782682] agpgart-intel 0000:00:00.0: putting AGP V3 device into 8x mode
> [23762.534523] agpgart-intel 0000:00:00.0: AGP 3.0 bridge
> [23762.534558] agpgart-intel 0000:00:00.0: putting AGP V3 device into 8x mode

This looks similar, the aperture allocated by the BIOS looks to be 16MB
but the card really wants 32MB so there simply is not space. This will
prevent DRI from initialising and that in turn stops compiz from being
used. You might want to check if there are any aperture options in your
BIOS and see if they let you make the space larger.

Revision history for this message
Wawrzyniec Niewodniczański (wawrzek) wrote :

I changed Aperture size to 32Mb in Bios and card started to work fine. Thank Andy!!!!

I think there is a problem with screen size in 'text mode'. I will try to explicit add some vga option to the kernel.

If you need any other test please let me know. Anyway I#'m going to try TV-Output next.

Revision history for this message
Andy Whitcroft (apw) wrote :

@Ermenegildo Fiorito -- we are still waiting to hear if you have an aperture defined in your xorg.conf. Also others have had success increasing their aperture size in their BIOS, see above. You should also check that and report back.

Andy Whitcroft (apw)
Changed in linux:
status: Incomplete → In Progress
status: In Progress → Incomplete
Revision history for this message
Andy Whitcroft (apw) wrote :

@Ermenegildo Fiorito -- could you comment on whether the bios change worked for you. If we do not hear back shortly we will assume that this was the trigger and close the bug. Thanks for your input.

Changed in linux (Ubuntu):
status: Incomplete → In Progress
status: In Progress → Incomplete
Revision history for this message
Ermenegildo Fiorito (fiorito-g) wrote :

The bios change don't work for me

Revision history for this message
Andy Whitcroft (apw) wrote :

@Ermenegildo Fiorito -- ok could you attach the dmesg output and /var/log/Xorg.0.log logfile to this bug for me. Thanks!

Changed in linux (Ubuntu):
status: Incomplete → In Progress
status: In Progress → Incomplete
Revision history for this message
Andy Whitcroft (apw) wrote :

 @Ermenegildo Fiorito -- we are still waiting for the dmesg output and /var/log/Xorg.0.log logfile to be attached to this bug for me. Thanks!

Revision history for this message
oliver (oliver-schinagl) wrote :

Almost 2010 and still seeing this bug. I'm running Karmic Koala with a 2.6.31-15-generic i386 kernel. I can't change (m)any setting in the bios, as this is an IBM T42 so an IBM bios with limited options.

Revision history for this message
oliver (oliver-schinagl) wrote :

Also attached my Xorg.0.log here

and for completeness sake:
01:00.0 VGA compatible controller: ATI Technologies Inc RV350 [Mobility Radeon 9600 M10]
 Subsystem: IBM Device 0550
 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B+ DisINTx-
 Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
 Latency: 66 (2000ns min), Cache Line Size: 32 bytes
 Interrupt: pin A routed to IRQ 11
 Region 0: Memory at e0000000 (32-bit, prefetchable) [size=128M]
 Region 1: I/O ports at 3000 [size=256]
 Region 2: Memory at c0100000 (32-bit, non-prefetchable) [size=64K]
 [virtual] Expansion ROM at c0120000 [disabled] [size=128K]
 Capabilities: <access denied>
 Kernel modules: radeon, radeonfb

00:01.0 PCI bridge: Intel Corporation 82855PM Processor to AGP Controller (rev 03)
 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
 Status: Cap- 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
 Latency: 96
 Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
 I/O behind bridge: 00003000-00003fff
 Memory behind bridge: c0100000-c01fffff
 Prefetchable memory behind bridge: e0000000-e7ffffff
 Secondary status: 66MHz+ FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
 BridgeCtl: Parity- SERR- NoISA+ VGA+ MAbort- >Reset- FastB2B-
  PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
 Kernel modules: shpchp

The two important entries from lspci.
I dunno if it really matters that AGP is stuck in 1x mode, I forced it into agp 4x mode via my xorg.conf ages ago and it 'felt' smoother on the desktop, but that may be a placebo very well. Switching between virtual desktops is just doomed to be slow :p

Andy Whitcroft (apw)
Changed in linux (Ubuntu):
assignee: Andy Whitcroft (apw) → nobody
Changed in linux:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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