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

Commit f7618a63 authored by Alex Deucher's avatar Alex Deucher
Browse files

drm/amdgpu/gfx9: reserve kiq eop object before unmapping it



It's required.

Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e1d53aa8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -600,7 +600,11 @@ static int gfx_v9_0_kiq_init(struct amdgpu_device *adev)

	memset(hpd, 0, MEC_HPD_SIZE);

	r = amdgpu_bo_reserve(kiq->eop_obj, false);
	if (unlikely(r != 0))
		dev_warn(adev->dev, "(%d) reserve kiq eop bo failed\n", r);
	amdgpu_bo_kunmap(kiq->eop_obj);
	amdgpu_bo_unreserve(kiq->eop_obj);

	return 0;
}