Skip to content

vga switcheroo: Prevent nouveau irq handler from kill the system

Alex Williamson dri-devel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2vga_switcheroo: Remove unbalanced pci_enable_devicedrivers/gpu/vga/vga_switcheroo.c+0 -61 reply
2/2drm/nouveau: Check that the device is enabled before processing interruptdrivers/gpu/drm/nouveau/nouveau_drv.c drivers/gpu/drm/nouveau/nouveau_irq.c+5 -05 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] vga switcheroo: Prevent nouveau irq handler from kill the system

On an Intel/Nvidia hybrid graphics system, using the integrated graphics and powering off the discrete, one of the primary sources of system hangs seems to be the nouveau driver processing interrupts while the device is powered off. This short series removes the unbalanced pci_enable_device() from core switcheroo code, allowing us to check pci_is_enabled() from the nouveau irq handler to determine whether to touch hardware. Thanks,

Alex

---

Alex Williamson (2):
drm/nouveau: Check that the device is enabled before processing interrupt
vga_switcheroo: Remove unbalanced pci_enable_device

 drivers/gpu/drm/nouveau/nouveau_drv.c |    2 ++
 drivers/gpu/drm/nouveau/nouveau_irq.c |    3 +++
 drivers/gpu/vga/vga_switcheroo.c      |    6 ------
 3 files changed, 5 insertions(+), 6 deletions(-)