drm/amdgpu: id reset count only is updated when used end v2
authorChunming Zhou <David1.Zhou@amd.com>
Wed, 10 May 2017 05:02:39 +0000 (13:02 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 May 2017 21:40:36 +0000 (17:40 -0400)
commitbea396726d004df08a7d08972d5eeb792857c8bc
treef167378d41799bb542c729ff573723de7bf3ee8e
parentb9bf33d5ac55aa9f23b60b4d03017b2e59d02f02
drm/amdgpu: id reset count only is updated when used end v2

before that, we have function to check if reset happens by using reset count.
v2: always update reset count after vm flush

Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c