Bug 74551

Summary: Unable to run linux with radeon.runpm=1
Product: Drivers Reporter: maxis11 (ya.maxis11)
Component: Video(DRI - non Intel)Assignee: drivers_video-dri
Status: NEEDINFO ---    
Severity: normal CC: alan, alexdeucher
Priority: P1    
Hardware: x86-64   
OS: Linux   
Kernel Version: 3.15-rc2 Subsystem:
Regression: Yes Bisected commit-id:
Attachments: dmesg
disable runpm by default on problematic systems

Description maxis11 2014-04-21 08:29:57 UTC
Created attachment 133141 [details]
dmesg

Until 3.14 kernel system can be loaded with radeon.runpm=0 (if radeon.runpm=1 system will hang after few seconds). Starting from 3.14 system can be loaded with radeon.runpm=1 but appears another problem: [    0.044788] ACPI Error: Hardware did not enter ACPI mode (20140214/evxfevnt-113). Aditionaly system can't poweroff (hangs on system will now halt).

Using: Xubuntu 14.04, Acer aspire 5560g (CPU: AMD A4-3305M; GPU: AMD Radeon HD 6480g + 7470m)

Sorry for my bad english
Comment 1 maxis11 2014-05-11 12:52:55 UTC
acer aspire 5560g has problem with gpt, so I convert using gdisk gpt to mbr, and problem seems fixed. But there is another problem, computer freezes during boot with radeon.runpm=1. Should I create another bug report?
Comment 2 Alex Deucher 2014-05-12 14:37:46 UTC
(In reply to maxis11 from comment #1)
> acer aspire 5560g has problem with gpt, so I convert using gdisk gpt to mbr,
> and problem seems fixed. But there is another problem, computer freezes
> during boot with radeon.runpm=1. Should I create another bug report?

Is that still and issue with a 3.15 kernel?  I believe that should be fixed now (with patches destined for stable as well).
Comment 3 maxis11 2014-05-13 21:12:30 UTC
(In reply to Alex Deucher from comment #2)
> (In reply to maxis11 from comment #1)
> > acer aspire 5560g has problem with gpt, so I convert using gdisk gpt to
> mbr,
> > and problem seems fixed. But there is another problem, computer freezes
> > during boot with radeon.runpm=1. Should I create another bug report?
> 
> Is that still and issue with a 3.15 kernel?  I believe that should be fixed
> now (with patches destined for stable as well).

system steel freezes during boot (using kernel 3.15-rc5 from git).
Comment 4 Alex Deucher 2014-05-13 21:16:01 UTC
(In reply to maxis11 from comment #3)
> 
> system steel freezes during boot (using kernel 3.15-rc5 from git).

Are you specifying a runpm setting or just a boot with no module options?  If no runpm setting, does setting radeon.runpm=0 help?
Comment 5 maxis11 2014-05-14 04:08:04 UTC
(In reply to Alex Deucher from comment #4)
> (In reply to maxis11 from comment #3)
> > 
> > system steel freezes during boot (using kernel 3.15-rc5 from git).
> 
> Are you specifying a runpm setting or just a boot with no module options? 
> If no runpm setting, does setting radeon.runpm=0 help?

boot freezes if runpm enabled (with runpm=0 all ok). Additionaly system freezes if i run: echo OFF > /sys/kernel/debug/vgaswitcheroo/switch (under root)
Comment 6 maxis11 2014-05-16 20:28:34 UTC
BTW runpm works with 3.12.7 and 3.12.8 (with 3.13 and later runpm=1 freezes laptop during boot)
Comment 7 Alex Deucher 2014-05-16 22:04:22 UTC
Can you bisect?
Comment 8 maxis11 2014-06-03 18:45:17 UTC
(In reply to Alex Deucher from comment #7)
> Can you bisect?

All kernels 3.13.X ,3.14.X, 3.15-rc(1-8) are broken. 3.12 kernel started work from commit b2b8225e61d9176a5d08218842ce03c7be035176 (drm/radeon: 0x9649 is SUMO2 not SUMO)
Comment 9 maxis11 2014-06-03 18:46:02 UTC
(In reply to maxis11 from comment #8)
> (In reply to Alex Deucher from comment #7)
> > Can you bisect?
> 
> All kernels 3.13.X ,3.14.X, 3.15-rc(1-8) are broken. 3.12 kernel started
> work from commit b2b8225e61d9176a5d08218842ce03c7be035176 (drm/radeon:
> 0x9649 is SUMO2 not SUMO)

3.12.7 - 3.12.20 working
Comment 10 maxis11 2014-06-16 16:31:09 UTC
3.16-rc1 still buggy
Comment 11 maxis11 2014-07-17 21:08:25 UTC
executing "echo OFF > /sys/kernel/debug/vgaswitcheroo/switch" on every kernel causes freezing OS(even where runpm and dpm are working). Additionally, when OS freezes, it doesn't write any log(not in kern.log or Xorg log) and doesn't executing any commands (try to add after previous command && dmesg > info.log, but file wasn't created), so I just can't give you any log. Problem still exists in 3.15.5 and in 3.16.0-4-generic.
Comment 12 Alex Deucher 2014-07-17 21:24:53 UTC
(In reply to maxis11 from comment #6)
> BTW runpm works with 3.12.7 and 3.12.8 (with 3.13 and later runpm=1 freezes
> laptop during boot)

runpm support didn't exist until 3.13. If "echo OFF > /sys/kernel/debug/vgaswitcheroo/switch" has never worked, then your system has never had functional support for turning on/off the dGPU.
Comment 13 maxis11 2014-07-17 22:48:32 UTC
(In reply to Alex Deucher from comment #12)
> (In reply to maxis11 from comment #6)
> > BTW runpm works with 3.12.7 and 3.12.8 (with 3.13 and later runpm=1 freezes
> > laptop during boot)
> 
> runpm support didn't exist until 3.13. If "echo OFF >
> /sys/kernel/debug/vgaswitcheroo/switch" has never worked, then your system
> has never had functional support for turning on/off the dGPU.

kernel 3.12.7:
When loading SUMO2(6480g)
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915421] [drm] Internal thermal controller without fan control
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915457] == power state 0 ==
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915459] 	ui class: none
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915461] 	internal class: uvd_mvc 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915463] 	caps: 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915465] 	uvd    vclk: 66667 dclk: 55173
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915468] 		power level 0    sclk: 59260 vddc: 1113
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915469] 	status: 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915471] == power state 1 ==
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915472] 	ui class: none
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915473] 	internal class: uvd_hd 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915475] 	caps: 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915477] 	uvd    vclk: 40000 dclk: 30770
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915478] 		power level 0    sclk: 27587 vddc: 888
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915479] 	status: 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915481] == power state 2 ==
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915482] 	ui class: none
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915483] 	internal class: uvd 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915485] 	caps: 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915487] 	uvd    vclk: 66667 dclk: 55173
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915488] 		power level 0    sclk: 59260 vddc: 1113
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915489] 	status: 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915491] == power state 3 ==
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915492] 	ui class: battery
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915493] 	internal class: none
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915495] 	caps: 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915496] 	uvd    vclk: 0 dclk: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915498] 		power level 0    sclk: 27587 vddc: 888
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915499] 	status: 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915500] == power state 4 ==
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915502] 	ui class: performance
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915503] 	internal class: none
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915504] 	caps: 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915506] 	uvd    vclk: 0 dclk: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915508] 		power level 0    sclk: 27587 vddc: 888
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915509] 		power level 1    sclk: 59260 vddc: 1113
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915510] 	status: 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915512] == power state 5 ==
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915513] 	ui class: none
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915514] 	internal class: boot 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915516] 	caps: 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915517] 	uvd    vclk: 0 dclk: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915519] 		power level 0    sclk: 20000 vddc: 1113
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915520] 	status: c r b 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915523] == power state 6 ==
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915524] 	ui class: none
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915525] 	internal class: thermal 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915527] 	caps: 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915528] 	uvd    vclk: 0 dclk: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915530] 		power level 0    sclk: 20000 vddc: 888
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915531] 	status: 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.915534] [drm] Found smc ucode version: 0x00011200
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.936330] switching from power state:
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.936336] 	ui class: none
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.936338] 	internal class: boot 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.936339] 	caps: 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.936341] 	uvd    vclk: 0 dclk: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.936344] 		power level 0    sclk: 20000 vddc: 1113
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.936344] 	status: c b 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.936346] switching to power state:
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.936347] 	ui class: performance
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.936348] 	internal class: none
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.936349] 	caps: 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.936351] 	uvd    vclk: 0 dclk: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.936352] 		power level 0    sclk: 27587 vddc: 888
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.936353] 		power level 1    sclk: 59260 vddc: 1113
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.936354] 	status: r 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    1.936450] [drm] radeon: dpm initialized

When loading CAICOS(7470m) also this text appear.
Comment 14 maxis11 2014-07-17 22:52:26 UTC
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728524] [drm] Internal thermal controller with fan control
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728612] == power state 0 ==
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728615] 	ui class: none
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728617] 	internal class: boot 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728618] 	caps: 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728620] 	uvd    vclk: 0 dclk: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728622] 		power level 0    sclk: 10000 mclk: 15000 vddc: 900 vddci: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728623] 		power level 1    sclk: 10000 mclk: 15000 vddc: 900 vddci: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728625] 		power level 2    sclk: 10000 mclk: 15000 vddc: 900 vddci: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728626] 	status: c r b 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728628] == power state 1 ==
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728629] 	ui class: performance
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728630] 	internal class: none
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728631] 	caps: 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728632] 	uvd    vclk: 0 dclk: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728634] 		power level 0    sclk: 10000 mclk: 30000 vddc: 900 vddci: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728635] 		power level 1    sclk: 40000 mclk: 90000 vddc: 1000 vddci: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728636] 		power level 2    sclk: 75000 mclk: 90000 vddc: 1100 vddci: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728637] 	status: 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728638] == power state 2 ==
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728639] 	ui class: none
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728640] 	internal class: uvd 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728641] 	caps: video 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728643] 	uvd    vclk: 70000 dclk: 56000
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728644] 		power level 0    sclk: 75000 mclk: 90000 vddc: 1100 vddci: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728645] 		power level 1    sclk: 75000 mclk: 90000 vddc: 1100 vddci: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728647] 		power level 2    sclk: 75000 mclk: 90000 vddc: 1100 vddci: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728647] 	status: 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728648] == power state 3 ==
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728649] 	ui class: battery
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728650] 	internal class: none
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728652] 	caps: 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728653] 	uvd    vclk: 0 dclk: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728654] 		power level 0    sclk: 10000 mclk: 30000 vddc: 900 vddci: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728655] 		power level 1    sclk: 10000 mclk: 30000 vddc: 900 vddci: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728656] 		power level 2    sclk: 30000 mclk: 30000 vddc: 900 vddci: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728657] 	status: 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728658] == power state 4 ==
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728659] 	ui class: battery
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728660] 	internal class: uvd_hd 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728661] 	caps: video 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728663] 	uvd    vclk: 40000 dclk: 30000
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728664] 		power level 0    sclk: 40000 mclk: 65000 vddc: 900 vddci: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728666] 		power level 1    sclk: 40000 mclk: 65000 vddc: 900 vddci: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728667] 		power level 2    sclk: 40000 mclk: 65000 vddc: 900 vddci: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728668] 	status: 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728669] == power state 5 ==
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728670] 	ui class: battery
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728671] 	internal class: uvd_sd 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728672] 	caps: video 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728673] 	uvd    vclk: 10000 dclk: 10000
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728675] 		power level 0    sclk: 30000 mclk: 30000 vddc: 900 vddci: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728676] 		power level 1    sclk: 30000 mclk: 30000 vddc: 900 vddci: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728677] 		power level 2    sclk: 30000 mclk: 30000 vddc: 900 vddci: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.728678] 	status: 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.752498] switching from power state:
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.752503] 	ui class: none
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.752505] 	internal class: boot 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.752507] 	caps: 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.752509] 	uvd    vclk: 0 dclk: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.752511] 		power level 0    sclk: 10000 mclk: 15000 vddc: 900 vddci: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.752513] 		power level 1    sclk: 10000 mclk: 15000 vddc: 900 vddci: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.752514] 		power level 2    sclk: 10000 mclk: 15000 vddc: 900 vddci: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.752515] 	status: c b 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.752517] switching to power state:
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.752518] 	ui class: performance
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.752519] 	internal class: none
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.752520] 	caps: 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.752521] 	uvd    vclk: 0 dclk: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.752523] 		power level 0    sclk: 10000 mclk: 30000 vddc: 900 vddci: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.752524] 		power level 1    sclk: 40000 mclk: 90000 vddc: 1000 vddci: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.752525] 		power level 2    sclk: 75000 mclk: 90000 vddc: 1100 vddci: 0
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.752526] 	status: r 
Jul 18 00:34:03 maxis11-Aspire-5560 kernel: [    6.754876] [drm] radeon: dpm initialized
Comment 15 Alex Deucher 2014-07-18 01:28:48 UTC
(In reply to maxis11 from comment #13)
> (In reply to Alex Deucher from comment #12)
> > (In reply to maxis11 from comment #6)
> > > BTW runpm works with 3.12.7 and 3.12.8 (with 3.13 and later runpm=1
> freezes
> > > laptop during boot)
> > 
> > runpm support didn't exist until 3.13. If "echo OFF >
> > /sys/kernel/debug/vgaswitcheroo/switch" has never worked, then your system
> > has never had functional support for turning on/off the dGPU.
> 
> kernel 3.12.7:
> When loading SUMO2(6480g)

That's not runpm, that's dpm (dynamic power management).  Runpm turns the dGPU off completely when it's not in use.  Dpm dynamically adjusts the clocks and voltages of the GPU when it's powered on.  Prior to 3.13, runpm was not available and the dGPU was always powered on unless you manually powered it off via debugfs.
Comment 16 maxis11 2014-07-18 05:36:50 UTC
(In reply to Alex Deucher from comment #15)
> (In reply to maxis11 from comment #13)
> > (In reply to Alex Deucher from comment #12)
> > > (In reply to maxis11 from comment #6)
> > > > BTW runpm works with 3.12.7 and 3.12.8 (with 3.13 and later runpm=1
> freezes
> > > > laptop during boot)
> > > 
> > > runpm support didn't exist until 3.13. If "echo OFF >
> > > /sys/kernel/debug/vgaswitcheroo/switch" has never worked, then your
> system
> > > has never had functional support for turning on/off the dGPU.
> > 
> > kernel 3.12.7:
> > When loading SUMO2(6480g)
> 
> That's not runpm, that's dpm (dynamic power management).  Runpm turns the
> dGPU off completely when it's not in use.  Dpm dynamically adjusts the
> clocks and voltages of the GPU when it's powered on.  Prior to 3.13, runpm
> was not available and the dGPU was always powered on unless you manually
> powered it off via debugfs.

So it seems that this is Acer BIOS problem freezes laptop, when trying to turn off dGPU. Am I right?
Comment 17 Alex Deucher 2014-07-18 13:26:32 UTC
(In reply to maxis11 from comment #16)
> 
> So it seems that this is Acer BIOS problem freezes laptop, when trying to
> turn off dGPU. Am I right?


Either that or it requires some special system specific handling.
Comment 18 maxis11 2014-07-18 15:08:49 UTC
(In reply to Alex Deucher from comment #17)
> (In reply to maxis11 from comment #16)
> > 
> > So it seems that this is Acer BIOS problem freezes laptop, when trying to
> > turn off dGPU. Am I right?
> 
> 
> Either that or it requires some special system specific handling.

In BIOS switch menu Graphics mode from switchable to integrated. Now system starts with runpm, but, as expected, dGPU turned off and linux can't find them. Seems that this is exactly BIOS problem.
Bios:
Vendor: Phoenix Technologies Ltd.
Version: V1.17
Release Date: 04/09/2012
Comment 19 Alex Deucher 2014-07-18 15:58:47 UTC
Created attachment 143401 [details]
disable runpm by default on problematic systems

The attached patch will disable runpm by default on problematic boards like yours so at least your system will be usable until we fix the deeper problem.
Comment 20 maxis11 2014-07-19 14:51:03 UTC
I would glad to help with fixing the deeper problem