summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2017-11-01 03:56:19 +1000
committerBen Skeggs <bskeggs@redhat.com>2017-11-02 13:32:20 +1000
commite9be3c7d7ae0aa6e273ac5cf66dfd2d53479bdbf (patch)
tree5ba0af556252cd34537a9074a47612bcc85ecbd2 /drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c
parentb00b8430468d2922c5ea9a0557c7a36136df98c2 (diff)
downloadlinux-stable-e9be3c7d7ae0aa6e273ac5cf66dfd2d53479bdbf.tar.gz
linux-stable-e9be3c7d7ae0aa6e273ac5cf66dfd2d53479bdbf.tar.bz2
linux-stable-e9be3c7d7ae0aa6e273ac5cf66dfd2d53479bdbf.zip
drm/nouveau/imem: use fast-path for suspend backup
Before: "imem: suspend completed in 5540487us" After: "imem: suspend completed in 1871526us" Suspend from Fedora 26 gnome desktop on GP102. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c')
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c b/drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c
index c8cb8b8b1323..190fb730de17 100644
--- a/drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c
+++ b/drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c
@@ -74,7 +74,6 @@ nvkm_bar_fini(struct nvkm_subdev *subdev, bool suspend)
{
struct nvkm_bar *bar = nvkm_bar(subdev);
bar->func->bar1.fini(bar);
- nvkm_bar_bar2_fini(subdev->device);
return 0;
}
@@ -101,6 +100,7 @@ static void *
nvkm_bar_dtor(struct nvkm_subdev *subdev)
{
struct nvkm_bar *bar = nvkm_bar(subdev);
+ nvkm_bar_bar2_fini(subdev->device);
return bar->func->dtor(bar);
}