Bug 53111
Summary: | vgaswitcheroo not working anymore | ||
---|---|---|---|
Product: | Drivers | Reporter: | cem.aydin |
Component: | Video(DRI - non Intel) | Assignee: | drivers_video-dri |
Status: | CLOSED CODE_FIX | ||
Severity: | high | CC: | alan, alexdeucher, fedevx, florian, mezin.alexander |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 3.7.4 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
Workaround
Print atpx function mask possible fix |
Description
cem.aydin
2013-01-27 17:16:52 UTC
Can you bisect? Usually I use the current arch package. Looking at the Arch Rollback Machine (http://arm.konnichi.com/search/index.php?a=64&q=^linux&core=1) shows that there was made a jump from 3.6.11 to 3.7.3. I was a bit surprised before to get 3.7.4 all of a sudden... I just tried 3.7.3 and the problem appears there already. Doing a quick search I found this: https://bugzilla.novell.com/show_bug.cgi?id=798254 indicating that it's already broken on 3.7.1 (similar description, and _same_ lspci | grep VGA as mine: [root@hplaptop cem]# lspci | grep VGA 00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) 01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Caicos [Radeon HD 6400M/7400M Series] The old Arch bug mentioned there was mine, but note that it is _not_ related to this error cause in the meantime vgaswitcheroo was working. Don't know if it's of interest but maybe see the link there: http://www.phoronix.com/scan.php?page=news_item&px=MTE4MDM I have the same problem with 01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Whistler XT [AMD Radeon HD 6700M Series] Seems that the bug is introduced in this commit: http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=commit;h=492b49a2f21a7ce6cb0abce36017daa06036a626 Before it discrete card actually switches off. Make sure your kernel has this patch: http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=commitdiff;h=0b90365e7a32317b948583c4b5c2712d84610b08 Tested on vanilla 3.8. It has this patch. Created attachment 93541 [details]
Workaround
I found a workaround.
atpx->functions.power_cntl is 0 on my machine. Without this check switcheroo works again.
lspci:
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
Subsystem: Hewlett-Packard Company Device 3388
01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Whistler XT [AMD Radeon HD 6700M Series] (rev ff)
It's muxless system.
Created attachment 93591 [details]
Print atpx function mask
Can you attach the output of this patch? I'd like to see the atpx function mask on your system.
atpx function mask: 0x00000031 Created attachment 93601 [details]
possible fix
Does the attached patch fix the issue for you?
yes, it fixes the issue A patch referencing this bug report has been merged in Linux v3.9-rc1: commit 43a23aa450cc19fe8996caf09e7e21ae5f6e56e8 Author: Alex Deucher <alexander.deucher@amd.com> Date: Tue Feb 19 12:55:52 2013 -0500 drm/radeon: properly validate the atpx interface *** Bug 55311 has been marked as a duplicate of this bug. *** |