Bug 25228 - Software renderer or freeze after X restart with radeon driver
Summary: Software renderer or freeze after X restart with radeon driver
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/r300 (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-22 08:34 UTC by Róbert Čerňanský
Modified: 2012-07-15 12:11 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Log from the first X start. (48.81 KB, text/plain)
2009-11-22 08:34 UTC, Róbert Čerňanský
Details
Log from the second X start. (47.13 KB, text/plain)
2009-11-22 08:35 UTC, Róbert Čerňanský
Details

Description Róbert Čerňanský 2009-11-22 08:34:55 UTC
Created attachment 31393 [details]
Log from the first X start.

With radeon driver on HP Compaq nx6325 with Radeon Xpress 200M restarting the X server causes that new X instance does not get 3D acceleration. Another (third) X restart causes total freeze of the machine (login via ssh not possible, magic sysrq keys not working).

This means that when a user that was logged in first, logs out then the user that logs in next does not get 3D acceleration. And if that user logs out then machine freezes.

Using git versions of the Mesa, libdrm, and xf86-video-ati. Kernel version is 2.6.32-rc8. Xorg server version is 1.6.3.901 (X11 version 7.4). xorg.conf is empty.

After X is killed (via gdm stop) the radeon module still shows that something is using it and it can not be removed:

$ lsmod | grep radeon
radeon                544327  1 
ttm                    32625  1 radeon
drm_kms_helper         21579  1 radeon
drm                   143356  4 radeon,ttm,drm_kms_helper
i2c_algo_bit            4823  1 radeon
i2c_core               16817  4 radeon,drm,i2c_algo_bit,i2c_piix4


Some logs/outputs while the first X instance is running/starting:

$ glxinfo | egrep "(OpenGL|direct)"
direct rendering: Yes
OpenGL vendor string: DRI R300 Project
OpenGL renderer string: Mesa DRI R300 (RS400 5975) 20090101  NO-TCL
OpenGL version string: 1.5 Mesa 7.8-devel
OpenGL extensions:



From /var/log/messages:

Nov 22 15:19:27 bemit kernel: pci 0000:01:05.0: PCI INT A -> GSI 17 (level,
low) -> IRQ 17
Nov 22 15:19:27 bemit kernel: [drm] Initialized drm 1.1.0 20060810
Nov 22 15:19:27 bemit kernel: [drm] radeon defaulting to userspace modesetting.
Nov 22 15:19:27 bemit kernel: [drm] Initialized radeon 1.31.0 20080528 for
0000:01:05.0 on minor 0
Nov 22 15:19:28 bemit kernel: [drm] Setting GART location based on new memory
map
Nov 22 15:19:28 bemit kernel: [drm] Loading R300 Microcode
Nov 22 15:19:28 bemit kernel: platform radeon_cp.0: firmware: requesting
radeon/R300_cp.bin
Nov 22 15:19:28 bemit kernel: [drm] Num pipes: 4
Nov 22 15:19:28 bemit kernel: [drm] writeback test succeeded in 1 usecs



Some logs/outputs while the second X instance is running/starting:

$ glxinfo | egrep "(OpenGL|direct)"
direct rendering: Yes
OpenGL vendor string: Mesa Project
OpenGL renderer string: Software Rasterizer
OpenGL version string: 2.1 Mesa 7.8-devel
OpenGL shading language version string: 1.20
OpenGL extensions:



From /var/log/messages:

Nov 22 16:50:41 bemit gdm[7001]: pam_unix(gdm:session): session closed for user hs
Nov 22 16:50:41 bemit kernel: [drm] Num pipes: 4
Nov 22 16:50:42 bemit kernel: gdm[8154]: segfault at 7f952c7b4da8 ip 00007f952a05e54e sp 00007fffaa1576f0 error 4 in libc-2.9.so[7f9529feb000+14b000]
Nov 22 16:50:45 bemit acpid: client 7011[0:0] has disconnected
Nov 22 16:50:45 bemit acpid: client connected from 8157[0:0]
Nov 22 16:50:45 bemit acpid: 1 client rule loaded
Nov 22 16:50:46 bemit kernel: [drm] Setting GART location based on new memory map
Nov 22 16:50:46 bemit kernel: [drm:drm_ati_pcigart_init] *ERROR* cannot allocate PCI GART page!
Nov 22 16:50:46 bemit kernel: [drm] Num pipes: 4
Nov 22 16:50:46 bemit kernel: [drm] writeback test failed



Attached also Xorg from first (Xorg.0.log.old) and second (Xorg.0.log) X start.



GPU entry from lspci -vv:

01:05.0 VGA compatible controller: ATI Technologies Inc RS482 [Radeon Xpress
200M] (prog-if 00 [VGA controller])
        Subsystem: Hewlett-Packard Company Device 30b0
        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: 64 (2000ns min), Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 17
        Region 0: Memory at c0000000 (32-bit, prefetchable) [size=128M]
        Region 1: I/O ports at 6000 [size=256]
        Region 2: Memory at d4300000 (32-bit, non-prefetchable) [size=64K]
        [virtual] Expansion ROM at d4320000 [disabled] [size=128K]
        Capabilities: [50] Power Management version 2
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
        Kernel modules: radeonfb
Comment 1 Róbert Čerňanský 2009-11-22 08:35:59 UTC
Created attachment 31394 [details]
Log from the second X start.
Comment 2 Róbert Čerňanský 2010-04-05 09:28:32 UTC
This is not reproducible with Mesa 7.5.2, xf86-video-ati-6.12.5, libdrm-2.4.15, xorg server 1.6.5 and kernel 2.6.31.
Comment 3 Róbert Čerňanský 2012-07-15 12:11:29 UTC
Not reproducible (see previous comment).


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.