[Needs AGPMode quirk] Freeze with ati driver during boot on 8.10

Bug #296617 reported by nanotube
6
Affects Status Importance Assigned to Milestone
xserver-xorg-video-ati (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Binary package hint: xserver-xorg-video-ati

According to the suggestion made in this post:
https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-ati/+bug/214105/comments/44

I am creating a new bug report about the X freeze using the "ati" driver on ubuntu 8.10.

Here's the info on my system, as per the specifications in https://wiki.ubuntu.com/X/Quirks#ATI%20AGP%20Mode%20Quirk

The system boots fine and X works with AGPMode of "1" only, not with 2 or 4.

The machine is a Dell Inspiron 5150, with an ATI Mobility Radeon 9000 graphics card (this model also had the option of an nvidia card, so not all 5150s come with ati)

Host bridge info, output from "lspci -nn | grep 00:00.0":
00:00.0 Host bridge [0600]: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller [8086:3580] (rev 02)

Video card info, output from 'lspci -nnvv | grep -i "VGA compatible controller" -A1':
01:00.0 VGA compatible controller [0300]: ATI Technologies Inc Radeon R250 [Mobility FireGL 9000] [1002:4c66] (rev 02) (prog-if 00 [VGA])
        Subsystem: Dell Unknown device [1028:0149]

The system is not all original factory hardware. Over time, I have had to replace the motherboard, the video card [and the lcd screen backlight ccfl, and the power adapter, and did a few ram upgrades, and stuck in an intel pro/wireless 2200 b/g mini pci card, but these should not matter at all for the purposes of this problem]. However, the replacements of the motherboard and video card were used pulls from other dell 5150s, so /should/ be equivalent to original factory parts.

There is no AGP mode setting in the bios (bios revision 37, by the way).

I think that covers everything - please let me know if any additional information is required, and i'll be happy to provide it.

Note also that the system runs feisty just fine, using the ati driver. (It also runs beryl under feisty just fine, by the way, so I don't think the graphics card should be blacklisted for compiz)

Revision history for this message
Tormod Volden (tormodvolden) wrote :

Please attach your lspci --nnvv output.

Revision history for this message
Tormod Volden (tormodvolden) wrote :

Sorry, scrap that, I didn't see you already had provided all the info.

Changed in xserver-xorg-video-ati:
status: New → Confirmed
Revision history for this message
Bryce Harrington (bryce) wrote :

Thanks, all necessary info is provided.

Changed in xserver-xorg-video-ati:
assignee: nobody → bryceharrington
importance: Undecided → High
status: Confirmed → Triaged
Revision history for this message
nanotube (nanotube) wrote :

Sounds good.

By the way, I will note that the hardware specs actually specify that the system should be capable of running on agp4x (both the motherboard and the video card support 4x), so i'm not really sure why it only works on 1x.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xserver-xorg-video-ati - 1:6.9.0+git20081003.f9826a56-0ubuntu4

---------------
xserver-xorg-video-ati (1:6.9.0+git20081003.f9826a56-0ubuntu4) jaunty; urgency=low

  * 100_quirk_system.patch: Add three more quirks for AGPMode issues
    (LP: #296617, #141551)

 -- Bryce Harrington <email address hidden> Mon, 24 Nov 2008 20:32:11 -0800

Changed in xserver-xorg-video-ati:
status: Triaged → Fix Released
Revision history for this message
Bryce Harrington (bryce) wrote :

There's a few other quirks for graphics cards with the 82855 model motherboard to use 1x; possibly it's some hardware bug that 4x doesn't work compatibly.

Revision history for this message
nanotube (nanotube) wrote :

Update:
I was able to get things to work with agp at 4x, with the following config:

###########
Section "Device"
 Identifier "Configured Video Device"
 Driver "ati"
 Option "AccelMethod" "XAA"
 Option "AGPMode" "4"
 Option "AGPFastWrite" "yes"
 Option "EnablePageFlip" "on"
 Option "RenderAccel" "on"
 Option "DynamicClocks" "on"
 Option "BIOSHotkeys" "on"
EndSection

Section "DRI"
 Mode 0666
EndSection

Section "Extensions"
 Option "Composite" "Enable"
EndSection
###########

Which, by the way, produces a much snappier experience than the default setup which only works with agp1x.

Not sure which of those are the key settings that enable things to work with agp 4x, i don't really have the time to play around and try taking them out one at a time...

note also that i'm running on plain metacity, rather than compiz... but should work just as well...

Hope this info comes handy.

Revision history for this message
Tormod Volden (tormodvolden) wrote :

Looking at the options you use:
RenderAccel is on by default anyway.
DynamicClocks is not a valid option any longer.
BIOSHotkeys is not an option any longer (the functionality is always active).
EnablePageFlip should increase performance but may reduce stability.
AGPFastWrite might increase performance but often wrecks stability.
So I think "AccelMethod" "XAA" is the only one that can help for stability.

Whether you try this out or not, it would be nice if you can attach your Xorg.0.log for completeness.

Revision history for this message
nanotube (nanotube) wrote :

Hi Tormod
Thanks for your quick response

Attaching my Xorg.0.log for your review.

as far trying things - so i should try taking out everything but the XAA?

Revision history for this message
nanotube (nanotube) wrote :

Oh and by the way, any comments on sections DRI and Extensions? I added those first, separately, before I got around to trying the stuff in the Device section, and those two showed a marked improvement in responsiveness all by themselves...

Revision history for this message
Tormod Volden (tormodvolden) wrote :

Before seeing your log I didn't know that you are still on Intrepid, for instance DynamicClocks might still be valid in that version, although it should not add stability anyway. Yes, please try with only XAA.

In Jaunty and later the driver will recognize your card and default to AGPMode 1, but you can still override it.

The DRI and Extensions sections should not be necessary. Are you not getting DRI and Composite without them?

If you have the possibility to try Karmic it would be great, because we would like to make sure it works optimally, and many things have changed since Intrepid.

Revision history for this message
nanotube (nanotube) wrote :

> Yes, please try with only XAA.

ok, will do, and post here if it still works with agpmode4

> The DRI and Extensions sections should not be necessary. Are you not getting DRI and Composite without them?

what exactly do i look for in xorg log or elsewhere, to know whether they are enabled without these settings?

> If you have the possibility to try Karmic it would be great, because we would like to make sure it works optimally, and many things have changed since Intrepid.

I can try it with the latest alpha livecd, i suppose, and see how things look, and whether apgmode4 works by default, or needs other settings. and whether dri and composite do as well.

Revision history for this message
Tormod Volden (tormodvolden) wrote :

Look for "Direct rendering enabled" and "Initializing built-in extension COMPOSITE".

Which I just did in your old log:
(EE) RADEON(0): Static buffer allocation failed. Disabling DRI.
(EE) RADEON(0): At least 66000 kB of video memory needed at this resolution and depth.
(II) RADEON(0): RADEONRestoreMemMapRegisters() :
(II) RADEON(0): MC_FB_LOCATION : 0xebffe800 0x1fff0000
(II) RADEON(0): MC_AGP_LOCATION : 0xffffffc0
(==) RADEON(0): Backing store disabled
(WW) RADEON(0): Direct rendering disabled

So that is why it is stable, DRI is disabled... But compiz and all 3D applications will suck without DRI.

Revision history for this message
nanotube (nanotube) wrote :

yea, i'm running plain metacity, no compiz...

well, i'll try with just the XAA, under intrepid, and let you know if i can use agpmode4, and will also play with karmic and see what happens there.

will let you know any results. :)

Revision history for this message
Tormod Volden (tormodvolden) wrote :

The driver allocates memory for a big combined dual screen (it detects both a VGA and an LCD at 1600x1200):
(II) RADEON(0): Memory manager initialized to (0,0) (3520,4766)
(II) RADEON(0): Reserved area from (0,1600) to (3520,1602)
(II) RADEON(0): Largest offscreen area available: 3520 x 3164

and therefore have no VRAM left for DRI. If you are not using all that screen space, you can configure xorg.conf with a "Virtual" size, see https://wiki.ubuntu.com/X/Config/Resolution

Revision history for this message
Tormod Volden (tormodvolden) wrote :

Only DRI will use AGP transfers, so if DRI is disabled is does not matter what AGPMode you are setting. DRI is used for 2 things, 3D hardware acceleration (mesa libraries) and EXA 2D acceleration (in driver). Without DRI, 3D graphics will be software rendered, and EXA will be terribly slow. In Karmic, the driver will switch to XAA if there is no DRI.

I would be curious to see if the memory allocation is different in Karmic. Do you have two monitors connected, and a virtual desktop spanning both?

Bryce Harrington (bryce)
Changed in xserver-xorg-video-ati (Ubuntu):
assignee: Bryce Harrington (bryceharrington) → nobody
Revision history for this message
nanotube (nanotube) wrote :

Hi
indeed, I have two screens on this comp, the built-in lcd at 1600x1200, and an external monitor at 1920x1200, sitting side by side, for a total desktop size of 3520x1200.

I have "virtual" set to "3520 1600".

But, i notice in those lines you pasted out of my xorg, it appears to reserve a much larger screen space? 3520x4766, and 3520x3164... is that normal?

hrm, well, i guess your explanation about DRI and XAA/EXA explains a lot. :)

Revision history for this message
Tormod Volden (tormodvolden) wrote :

I am not sure about each of these numbers, but we can hope the memory allocation will be more efficient and dynamic once the kernel memory manager is used. This comes with KMS and DRI2, and it is possible to try it out in Karmic already.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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