Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 452642 - sys-kernel/gentoo-sources-3.5.7 - Radeon card with KMS enabled - X? crashes and freezes upon resume
Summary: sys-kernel/gentoo-sources-3.5.7 - Radeon card with KMS enabled - X? crashes a...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal normal
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard: linux-bugzilla-pending
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-17 07:53 UTC by Andrea Bartoli
Modified: 2013-06-05 08:28 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge.info,6.60 KB, text/plain)
2013-01-17 17:59 UTC, Andrea Bartoli
Details
git blame radeon_combios.c (file_452642.txt,1.58 KB, text/plain)
2013-01-27 20:45 UTC, Tom Wijsman (TomWij) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrea Bartoli 2013-01-17 07:53:41 UTC
This is my first bug report, so be patience.
Recently I decided to try (again) Kernel Modesetting for my old ATI Xpress 200M video card. I don't spend time writing my pain to succeed.

Now it's working.

The problem is the crash upon resume after suspension. With or without X on, it blocks my PC, no magic SYSRQ keys working.

The solution came from google. I paste the solving sentence:

[quote]Edit the file radeon_combios.c and find the line that says /* DYN CLK 1 */
Just before that line add the following:

/* quirk for rs4xx laptop to make it resume
* - it hangs on resume inside the dynclk 1 table.
*/
if (rdev->family == CHIP_RS480)
return;

After changing this, then simply compile your kernel, package it and install it. With KMS enabled it works like a charm.[/quote]

I did this manually and it WORKED.

Tell me which info do I have to post.

Andrea
Comment 1 David J Cozatt 2013-01-17 14:38:05 UTC
I had one of these some time ago and did not have the issue you report however that could be due to kernel changes. 

You will need to post the output of 'emerge --info' one way to do that would be 

<code>
emerge --info > emerge-system-info  
</code>

then post that file as an attachment. There is not a patch here and that should be removed from your bug report.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-01-17 16:01:42 UTC
1) Please post your `emerge --info' output in a comment. 
2) What category/package-version are you patching?
Comment 3 Andrea Bartoli 2013-01-17 17:59:16 UTC
Created attachment 335938 [details]
emerge --info
Comment 4 Andrea Bartoli 2013-01-17 18:02:50 UTC
emerge --info
Portage 2.1.11.31 (default/linux/x86/10.0/desktop/kde, gcc-4.6.3, glibc-2.15-r3, 3.5.7-gentoo i686)
=================================================================
System uname: Linux-3.5.7-gentoo-i686-AMD_Turion-tm-_64_Mobile_Technology_ML-30-with-gentoo-2.1
Timestamp of tree: Mon, 14 Jan 2013 22:00:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo oldATI
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -msse3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=athlon-xp -msse3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="it_IT.UTF-8"                                                                                                                                                                                         
LDFLAGS="-Wl,-O1 -Wl,--as-needed"                                                                                                                                                                          
MAKEOPTS="-j2"                                                                                                                                                                                             
PKGDIR="/usr/portage/packages"                                                                                                                                                                             
PORTAGE_CONFIGROOT="/"                                                                                                                                                                                     
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"                                                                                                                                                                                                       
PORTAGE_TMPDIR="/var/tmp"                                                                                                                                                                                  
PORTDIR="/usr/portage"                                                                                                                                                                                     
PORTDIR_OVERLAY="/usr/local/portage"                                                                                                                                                                       
SYNC="rsync://rsync.gentoo.org/gentoo-portage"                                                                                                                                                             
USE="/ 3dnow 3dnowext X a52 aac acl acpi alsa avi bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups custom-optimization cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm iconv ipv6 jpeg kde kipi lcms ldap libnotify live lm_sensors mad mmx mmxext mng modules mp3 mp4 mpeg mudflap ncurses nls nptl offensive ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pppd qt3support qt4 readline sdl semantic-desktop session spell sse sse2 ssl ssse3 startup-notification svg tcpd tiff truetype udev udisks unicode upower usb userlocales vorbis wxwidgets x264 x86 xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ALSA_CARDS="atiixp atiixp-modem" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver pdfimport presenter-console presenter-minimizer" LINGUAS="it" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 5 Andrea Bartoli 2013-01-17 18:05:09 UTC
The patch described above should patch the file I have in /usr/src/linux-3.5.7-gentoo/drivers/gpu/drm/radeon/radeon_combios.c

I hope, I put all needed info.
Comment 6 Andrea Bartoli 2013-01-17 18:11:51 UTC
(In reply to comment #5)
> The patch described above should patch the file I have in
> /usr/src/linux-3.5.7-gentoo/drivers/gpu/drm/radeon/radeon_combios.c
> 
> I hope, I put all needed info.

sys-kernel/gentoo-sources-3.5.7 
(/usr/src/linux-3.5.7-gentoo/drivers/gpu/drm/radeon/radeon_combios.c)
Comment 7 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-01-17 18:34:40 UTC
Have you tried a more recent kernel like 3.6.11 (gentoo-sources) and a development kernel like 3.8.0-rc3 (git-sources)?
Comment 8 Andrea Bartoli 2013-01-17 18:57:24 UTC
no, I did not.
I achieved KMS only with month of tries! And suspension even longer.
Comment 9 Mike Pagano gentoo-dev 2013-01-27 16:19:08 UTC
Tom's suggestion is a good one. Can you test with the latest 3.7 kernel?
Comment 10 Andrea Bartoli 2013-01-27 20:16:23 UTC
Are they going to been stabilized soon?

If useful I can test in a few days, but that "patch" has been descovered in 2010! Any chance?
Comment 11 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-01-27 20:45:58 UTC
Created attachment 337052 [details]
git blame radeon_combios.c

commit 302a8e8b06d312dcb3b718dfeb42aa912b5f426b
Author: Alex Deucher <alexander.deucher@amd.com>
Date:   Mon Aug 29 14:55:25 2011 +0000

    drm/radeon/kms: add s/r quirk for Compaq Presario V5245EU
    
    Fixes resume on Compaq Presario V5245EU.
    
    Fixes:
    https://bugzilla.kernel.org/show_bug.cgi?id=41642
    
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Cc: stable@kernel.org
    Signed-off-by: Dave Airlie <airlied@redhat.com>

commit a49a50dad48586d42ebac1a6730c3a3cd5603421
Author: Jerome Glisse <jglisse@redhat.com>
Date:   Wed Aug 24 20:00:17 2011 +0000

commit 6380c509215b10c44aec8760e65b2e7f1827d009
Author: Joonyoung Shim <jy0922.shim@samsung.com>
Date:   Sat Aug 27 02:06:21 2011 +0000

commit c6a389f123b9f68d605bb7e0f9b32ec1e3e14132
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date:   Sun Aug 28 21:16:01 2011 -0700

    Linux 3.1-rc4

See the attached blame, there are checks present but the last one was introduced right after Linux 3.1-rc4; so yes, you should indeed have them. Indeed, a new quirk would need to be added for your vendor and device; the patch you currently have is not a proper patch since it allows any device on the family and not just your device of your vendor.

Could you report this upstream at http://bugzilla.kernel.org?

Please attach the output of `lspci -vnn` there in an attachment so they know the details needed for the quirk. Can you also link the bugs to each other?
Comment 12 Andrea Bartoli 2013-02-21 22:31:14 UTC
Going to test on gentoo-sources-3.7.9 stabilized.
Keep you informed.
Comment 13 Andrea Bartoli 2013-02-22 16:10:26 UTC
Not resolved in gentoo-sources-3.7.9
Comment 14 Andrea Bartoli 2013-03-03 16:46:15 UTC
If my first proposal was too generic, this is specific of my card ATI RADEON XPRESS 200M 5955 (PCIE), and works as well.
Is this useful?


/* quirk for rs4xx HP DV8002EA laptop to make it resume
* - it hangs on resume inside the dynclk 1 table.
*/
if (rdev->family == CHIP_RS480 &&
            rdev->pdev->subsystem_vendor == 0x103c &&
            rdev->pdev->subsystem_device == 0x309b)
                return;
Comment 15 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-06-05 08:28:44 UTC
(In reply to Tom Wijsman (TomWij) from comment #11)
> Could you report this upstream at http://bugzilla.kernel.org?
> 
> Please attach the output of `lspci -vnn` there in an attachment so they know
> the details needed for the quirk. Can you also link the bugs to each other?