[PATCH] Fix nouveau hang after switcheroo

2012-11-02 Thread Daniel J Blueman
After switcherooing to integrated and starting X, when X fails to start and causes a console switch, we get hit with a hanger (below). Fix by checking if we're already in D3. BUG: soft lockup - CPU#0 stuck for 22s! [Xorg:1703] [] nv04_timer_read+0x28/0x70 [nouveau] [] nouveau_timer_wait_eq+0x7c/

[PATCH] Fix nouveau hang after switcheroo

2012-11-02 Thread Daniel J Blueman
After switcherooing to integrated and starting X, when X fails to start and causes a console switch, we get hit with a hanger (below). Fix by checking if we're already in D3. BUG: soft lockup - CPU#0 stuck for 22s! [Xorg:1703] [] nv04_timer_read+0x28/0x70 [nouveau] [] nouveau_timer_wait_eq+0x7c/