Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 12d39245 authored by Alex Xie's avatar Alex Xie Committed by Alex Deucher
Browse files

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: default avatarAlex Xie <AlexBin.Xie@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent cca7ecb3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -169,7 +169,7 @@ static void amdgpu_flip_cleanup_unpin(struct amdgpu_flip_work *work,
void amdgpu_crtc_cleanup_flip_ctx(struct amdgpu_flip_work *work,
				  struct amdgpu_bo *new_abo)
{
	if (unlikely(amdgpu_bo_reserve(new_abo, false) != 0)) {
	if (unlikely(amdgpu_bo_reserve(new_abo, true) != 0)) {
		DRM_ERROR("failed to reserve new abo in error path\n");
		amdgpu_flip_work_cleanup(work);
		return;