diff options
| author | Ilia Mirkin <imirkin@alum.mit.edu> | 2014-01-29 19:53:00 -0500 |
|---|---|---|
| committer | Ben Skeggs <bskeggs@redhat.com> | 2014-02-17 19:36:35 -0500 |
| commit | 7d3428cd4b2ad51af86fdbdf8284ca38fa95e601 (patch) | |
| tree | 3601749cab3d3cc9d8c0ad1bf78cbb84916783e9 | |
| parent | f3980dc50c5117a952baee7135aae50d48304af3 (diff) | |
drm/nouveau: set irq_enabled manually
Since commit 0fa9061ae8c ("drm/nouveau/mc: handle irq-related setup
ourselves"), drm_device->irq_enabled remained unset. This is needed in
order to properly wait for a vblank event in the generic drm code.
See https://bugs.freedesktop.org/show_bug.cgi?id=74195
Reported-by: Jan Janecek <janjanjanx@gmail.com>
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: stable@vger.kernel.org # 3.10+
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
| -rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_drm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.c b/drivers/gpu/drm/nouveau/nouveau_drm.c index 78c8e7146d56..89c484d8ac26 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drm.c +++ b/drivers/gpu/drm/nouveau/nouveau_drm.c | |||
| @@ -376,6 +376,8 @@ nouveau_drm_load(struct drm_device *dev, unsigned long flags) | |||
| 376 | if (ret) | 376 | if (ret) |
| 377 | goto fail_device; | 377 | goto fail_device; |
| 378 | 378 | ||
| 379 | dev->irq_enabled = true; | ||
| 380 | |||
| 379 | /* workaround an odd issue on nvc1 by disabling the device's | 381 | /* workaround an odd issue on nvc1 by disabling the device's |
| 380 | * nosnoop capability. hopefully won't cause issues until a | 382 | * nosnoop capability. hopefully won't cause issues until a |
| 381 | * better fix is found - assuming there is one... | 383 | * better fix is found - assuming there is one... |
| @@ -475,6 +477,7 @@ nouveau_drm_remove(struct pci_dev *pdev) | |||
| 475 | struct nouveau_drm *drm = nouveau_drm(dev); | 477 | struct nouveau_drm *drm = nouveau_drm(dev); |
| 476 | struct nouveau_object *device; | 478 | struct nouveau_object *device; |
| 477 | 479 | ||
| 480 | dev->irq_enabled = false; | ||
| 478 | device = drm->client.base.device; | 481 | device = drm->client.base.device; |
| 479 | drm_put_dev(dev); | 482 | drm_put_dev(dev); |
| 480 | 483 | ||
