]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu:fix waiting on dirty fence
authorMonk Liu <Monk.Liu@amd.com>
Mon, 1 May 2017 08:15:31 +0000 (16:15 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 5 May 2017 22:12:42 +0000 (18:12 -0400)
commit6a1af06267d8bb77a2f361b64baf26f53a917969
tree3556de5494f017c3da48af7afc55bf730920a9bf
parent3712c1253e0756e4d75dbc883fe5c659e7e3c51f
drm/amdgpu:fix waiting on dirty fence

if bo->shadow is NULL (race issue:BO shadow was just released
and gpu-reset kick in but BO hasn't yet) recover_vram_from_shadow
won't set @next, so the following "fence=next"
will wrongly use a fence pointer which may already dirty.
fixing it by set next to NULL prior to recover_vram_from_shadow

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Chunming Zhou<david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c