commit | 236763d340d6190c56554caee61c2bd5cfdf5217 | [log] [tgz] |
---|---|---|
author | Monk Liu <Monk.Liu@amd.com> | Mon May 01 16:15:31 2017 +0800 |
committer | Alex Deucher <alexander.deucher@amd.com> | Fri May 05 18:12:42 2017 -0400 |
tree | 3556de5494f017c3da48af7afc55bf730920a9bf | |
parent | 1d1a2cd58f05da1167c04394292aef9fbcf29bff [diff] |
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>