Skip to content

Commit 12d3924

Browse files
AlexXAmdalexdeucher
authored andcommitted
drm/amdgpu: Fix use of interruptible waiting
There is no good mechanism to handle the corresponding error. When signal interrupt happens, unpin is not called. As a result, inside AMDGPU, the statistic of pin size will be wrong. Signed-off-by: Alex Xie <AlexBin.Xie@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent cca7ecb commit 12d3924

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_display.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ static void amdgpu_flip_cleanup_unpin(struct amdgpu_flip_work *work,
169169
void amdgpu_crtc_cleanup_flip_ctx(struct amdgpu_flip_work *work,
170170
struct amdgpu_bo *new_abo)
171171
{
172-
if (unlikely(amdgpu_bo_reserve(new_abo, false) != 0)) {
172+
if (unlikely(amdgpu_bo_reserve(new_abo, true) != 0)) {
173173
DRM_ERROR("failed to reserve new abo in error path\n");
174174
amdgpu_flip_work_cleanup(work);
175175
return;

0 commit comments

Comments
 (0)