drm/amdgpu: don't increment vram lost if we are in hibernation
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 1 Oct 2019 21:45:27 +0000 (16:45 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Oct 2019 17:58:19 +0000 (12:58 -0500)
commit49379032aa22a040fdd7708fcb6300d1d98a0f57
treeb361f15e534b27b426c33be93826a0512737373d
parent8225630ea61da1c96af84849a055d5b20b404438
drm/amdgpu: don't increment vram lost if we are in hibernation

We reset the GPU as part of our hibernation sequence so we need
to make sure we don't mark vram as lost in that case.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=111879
Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nv.c
drivers/gpu/drm/amd/amdgpu/soc15.c