Bug 905947 - Switching off discreet NVIDIA GPU causes kernel panic when changing power state
Summary: Switching off discreet NVIDIA GPU causes kernel panic when changing power state
Alias: None
Product: Fedora
Classification: Fedora
Component: xorg-x11-drv-nouveau
Version: 18
Hardware: x86_64
OS: Linux
Target Milestone: ---
Assignee: Ben Skeggs
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2013-01-30 14:51 UTC by Daniel Helgenberger
Modified: 2014-02-05 18:42 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2014-02-05 18:42:04 UTC
Type: Bug

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 896400 0 unspecified CLOSED i915 and radeon both enabled on vgaswitcheroo at boot 2021-02-22 00:41:40 UTC

Description Daniel Helgenberger 2013-01-30 14:51:41 UTC
Description of problem:
Powering down the dedicated NVIDIA graphics chip results in a x11 kernel panic when switching power states.
See bug 896400.

Version-Release number of selected component (if applicable):

How reproducible:
Disable (power down) the unused dedicated nvidia graphics chip and reboot / power down / suspend etc. the computer.

Steps to Reproduce:
1. Boot the computer with switchable graphics enabled in BIOS

2. Check the running on IGD adapter, both apdapters powered (hitting bug 896400)
# cat /sys/kernel/debug/vgaswitcheroo/switch
1:DIS: :Pwr:000xxxxxx

3. Powerdown the DIS adapter:
# echo OFF> /sys/kernel/debug/vgaswitcheroo/switch

4. Confirm the swiched off GPU:
# cat /sys/kernel/debug/vgaswitcheroo/switch
1:DIS: :Off:000xxxxxx

5. Optional, confirm this with powertop (my notebook actually consumes 5-6W less per h)

6. # reboot
- Panic -

Actual results:
kernel panic

Expected results:

I have tested two workarounds:
1. Disable NVIDIA GPU in BIOS
- or -
2. Powerdown the GPU while X11 not runnung:
# systemctl start multi-user.target
# echo OFF> /sys/kernel/debug/vgaswitcheroo/switch
[   71.046869] VGA switcheroo: switched nouveau off
[   71.048137] nouveau E[   PFIFO][0000:01:00.0] write fault at 0x0000000000 [PAGE_NOT_PRESENT] from PCOPY0/PCOPY0 on channel 0x003fe1b000
[   73.045525] nouveau E[   PFIFO][0000:01:00.0] channel 0 kick timeout
[   73.045575] nouveau E[   PFIFO][0000:01:00.0][0xc000906f][ffff88021c9bed80] failed to detach PCE0 context, -16
[   73.045642] nouveau E[    PCE0][0000:01:00.0][0x0300c01b][ffff88021c64c600] failed suspend, -16
[   73.045747] nouveau E[     DRM] 0xcccc0000:0x000490b5 suspend failed with -16
[   73.045804] nouveau E[     DRM] 0xdddddddd:0xcccc0000 suspend failed with -16
[   73.045919] nouveau E[     DRM] 0xffffffff:0xdddddddd suspend failed with -16
[   73.046010] nouveau E[     DRM] 0xffffffff:0xffffffff suspend failed with -16

# systemctl start graphical.target

This can be done by systemd before 
Additional info:
Requires a notebook with switchable graphics. Tested with Lenovo Thinkpad E330; NVIDIA GT + Intel i915.

Comment 1 Fedora End Of Life 2013-12-21 11:00:00 UTC
This message is a reminder that Fedora 18 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 18. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '18'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 18's end of life.

Thank you for reporting this issue and we are sorry that we may not be 
able to fix it before Fedora 18 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior to Fedora 18's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 2 Fedora End Of Life 2014-02-05 18:42:04 UTC
Fedora 18 changed to end-of-life (EOL) status on 2014-01-14. Fedora 18 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this

Thank you for reporting this bug and we are sorry it could not be fixed.

Note You need to log in before you can comment on or make changes to this bug.