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>
Thu, 3 Oct 2019 14:11:05 +0000 (09:11 -0500)
commit2c9a0c66d520c94d157d0882b2977a219846845c
tree64924da56043449c001ac7da336432db482cc20f
parentbd660f4f111161f60392dd02424c3a3d2240dc2f
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