]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/amdgpu:don't change ctx->reset_couner upon query
authorMonk Liu <Monk.Liu@amd.com>
Tue, 17 Oct 2017 06:39:23 +0000 (14:39 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Dec 2017 21:33:11 +0000 (16:33 -0500)
commit668ca1b44de16a8182419cc1a5913d33cc6263bd
tree3f2068533efc7277604de16abc11727e39323233
parenta4176cb484ac457a08b44c93da06fce09c6e281c
drm/amdgpu:don't change ctx->reset_couner upon query

reset_counter marks the reset counter number once the context
is created, shouldn't be changed due to query.

To keep U/K interface on the ctx_query and keep ctx's reset_counter
logic compatible with GPU RESET feature, now use another var named
"reset_counter_query" to replace the original checked & updated in
amdgpu_ctx_query.

Signed-off-by: Monk Liu <Monk.Liu@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.h
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c