Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 457930 - x11-drivers/ati-drivers-12.11_beta11 system lock on exiting X
Summary: x11-drivers/ati-drivers-12.11_beta11 system lock on exiting X
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: emil karlson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-17 03:17 UTC by Navar
Modified: 2013-03-04 13:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info ati-drivers (emerge.ati-drivers.info,5.08 KB, text/plain)
2013-02-17 03:21 UTC, Navar
Details
Xorg.log (Xorg.0.log.fglrxissue,43.27 KB, text/plain)
2013-02-17 03:23 UTC, Navar
Details
/etc/X11/xorg.conf (xorg.conf,684 bytes, text/plain)
2013-02-17 03:25 UTC, Navar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Navar 2013-02-17 03:17:21 UTC
Using startx for a Gnome2 session, this release functions fine on an ATI 7850 2GB until exiting X via logout/shutdown or transitioning to a console whereupon it hard locks the system (no SysRq functionality and display signal is lost).

This is with x11-base/xorg-server-1.13.1 ONLY with the beta11 build, the prior 11_beta build which was removed for this release as a revision bump continues to work fine which I've had to move into a local overlay since it was removed.  Please consider bringing back 12.11_beta which does function stable here and changing 12.11_beta11's stable status.

Reproducible: Always

Steps to Reproduce:
1.emerge x11-drivers/ati-drivers-12.11_beta11
2.start X
3.Exit X or transition via alt-f1-8 hotkeys to tty console
Actual Results:  
Xorg log shows no errors upon switch to console hang.  Exiting X shows the following at the end of the log:

(EE) fglrx(0): PPLIB: swlPPLibNotifyEventToPPLib() failed!
(EE) fglrx(0):        ulEventType = 00000023, ulEventData = 00000001

System becomes entirely unresponsive needing power cycle / hard reset.

Expected Results:  
Stable X session exit, transitions to console display normally.

I will attach emerge --info x11-drivers/ati-drivers, an example Xorg.0.log and my existing /etc/X11/xorg.conf generated by aticonfig.
Comment 1 Navar 2013-02-17 03:21:34 UTC
Created attachment 339114 [details]
emerge --info ati-drivers
Comment 2 Navar 2013-02-17 03:23:43 UTC
Created attachment 339116 [details]
Xorg.log
Comment 3 Navar 2013-02-17 03:25:54 UTC
Created attachment 339118 [details]
/etc/X11/xorg.conf
Comment 4 Navar 2013-03-04 03:17:55 UTC
Hardware: GA-Z77X-UD5H (rev. 1.1) motherboard BIOS F14, i5-3570K CPU, (one) Sapphire Radeon HD 7850 2GB.  I have not tried the very recent 'beta' BIOS updates and wary to do so until more time has passed as they do not mention anything related to this in Gigabyte's brief descriptions.

Setup: gentoo-sources 3.7.10, X.Org X Server 1.13.1, ati-drivers 12.11beta11

'00' (normal) reading on motherboard debug LED

Messages after running startx after boot up and login:
Mar  3 18:31:00 localhost kernel: [  220.609977] fglrx_pci 0000:01:00.0: irq 48 for MSI/MSI-X
Mar  3 18:31:00 localhost kernel: [  220.610648] <6>[fglrx] Firegl kernel thread PID: 1481
Mar  3 18:31:00 localhost kernel: [  220.610719] <6>[fglrx] Firegl kernel thread PID: 1482
Mar  3 18:31:00 localhost kernel: [  220.610851] <6>[fglrx] Firegl kernel thread PID: 1483
Mar  3 18:31:00 localhost kernel: [  220.610952] <6>[fglrx] IRQ 48 Enabled
Mar  3 18:31:00 localhost kernel: [  220.622265] <6>[fglrx] Gart USWC size:1280 M.
Mar  3 18:31:00 localhost kernel: [  220.622268] <6>[fglrx] Gart cacheable size:508 M.
Mar  3 18:31:00 localhost kernel: [  220.622272] <6>[fglrx] Reserved FB block: Shared offset:0, size:1000000 
Mar  3 18:31:00 localhost kernel: [  220.622274] <6>[fglrx] Reserved FB block: Unshared offset:f8fc000, size:404000 
Mar  3 18:31:00 localhost kernel: [  220.622276] <6>[fglrx] Reserved FB block: Unshared offset:7ffef000, size:11000 
Mar  3 18:31:00 localhost kernel: [  220.634760] <3>[fglrx:firegl_pplib_notify_event] *ERROR* PPLIB: PPLib Notify Event failed!
Mar  3 18:31:00 localhost kernel: [  220.634763] <3>[fglrx:firegl_pplib_notify_event] *ERROR*        ulEventType = 00000023, ulEventData = 00000001

Results upon terminating X via logout in gnome or transitioning to any console screen:

'3C' reading on motherboard LED until delayed hardware reset switch or power cycle.
(3B-3E are listed in manual as PCH PEI initialization)


...with gentoo-sources 3.7.10, X.Org X Server 1.13.1, prior ati-drivers 12.11beta saved in local overlay

'00' reading on motherboard LED

Messages after running startx:
Mar  3 18:38:53 localhost kernel: [   58.358796] fglrx_pci 0000:01:00.0: irq 48 for MSI/MSI-X
Mar  3 18:38:53 localhost kernel: [   58.359490] <6>[fglrx] Firegl kernel thread PID: 1456
Mar  3 18:38:53 localhost kernel: [   58.359586] <6>[fglrx] Firegl kernel thread PID: 1457
Mar  3 18:38:53 localhost kernel: [   58.359648] <6>[fglrx] Firegl kernel thread PID: 1458
Mar  3 18:38:53 localhost kernel: [   58.359751] <6>[fglrx] IRQ 48 Enabled
Mar  3 18:38:53 localhost kernel: [   58.368945] <6>[fglrx] Gart USWC size:1280 M.
Mar  3 18:38:53 localhost kernel: [   58.368947] <6>[fglrx] Gart cacheable size:508 M.
Mar  3 18:38:53 localhost kernel: [   58.368949] <6>[fglrx] Reserved FB block: Shared offset:0, size:1000000 
Mar  3 18:38:53 localhost kernel: [   58.368950] <6>[fglrx] Reserved FB block: Unshared offset:f8fc000, size:404000 
Mar  3 18:38:53 localhost kernel: [   58.368950] <6>[fglrx] Reserved FB block: Unshared offset:7ffef000, size:11000 

Results upon terminating X via logout in gnome or transitioning to any console screen:

'00' reading on motherboard LED and normal expected function, system is stable and consistent.
The pplib_notify_event error never occurs.

I have not rebuilt X.Org since kernel 3.6.11, if that would somehow matter.

Searching for this pplib event seemed a common occurrence in the past affecting these drivers on various distros.

I ended up writing a quick script,
--
#!/bin/sh
HLIGHT=`echo -e '/033[33m'`
NORMAL=`echo -e '/033[0m'`

for OUT in $(equery f ati-drivers); do
    if [ -f OUT ]; then
        echo "$HLIGHT $OUT$NORMAL"
        strings $OUT | grep -i $1
    fi
done
--
to determine that aticonfig, fglrx.ko, atieventsd, fglrx_drv.so and libfglrxdrm.so were using this static built library, 'PowerPlay'.  This driver change is causing a hang during DPMS energy saving kicking on as well.  It appears to be responsible for various power states and fan control.  The 12.11_beta11 driver otherwise seems to function as expected apart from these severe issues.

The dependency graph only shows an addition of virtual/glu and app-arch/unzip between 12.11_beta and 12.11_beta11.

I'm at a loss at what further to check.  Any ideas or anyone else similarly affected?
Comment 5 Navar 2013-03-04 11:54:12 UTC
x11-drivers/ati-drivers-13.1 marked recent stable compiled against kernel 3.7.10 seem to have resolved the issues.  Thanks.
Comment 6 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-03-04 13:18:45 UTC
Marking as fixed per comment 5