Skip to content

Commit

Permalink
drm/nouveau/pci: do a msi rearm on init
Browse files Browse the repository at this point in the history
On my GP107 when I load nouveau after unloading it, for some reason the
GPU stopped sending or the CPU stopped receiving interrupts if MSI was
enabled.

Doing a rearm once before getting any interrupts fixes this.

Signed-off-by: Karol Herbst <[email protected]>
Reviewed-by: Thierry Reding <[email protected]>
Signed-off-by: Ben Skeggs <[email protected]>
  • Loading branch information
karolherbst authored and Ben Skeggs committed Dec 19, 2017
1 parent 81a24b9 commit a121027
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/gpu/drm/nouveau/nvkm/subdev/pci/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,13 @@ nvkm_pci_init(struct nvkm_subdev *subdev)
return ret;

pci->irq = pdev->irq;

/* Ensure MSI interrupts are armed, for the case where there are
* already interrupts pending (for whatever reason) at load time.
*/
if (pci->msi)
pci->func->msi_rearm(pci);

return ret;
}

Expand Down

0 comments on commit a121027

Please sign in to comment.