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

Commit 01ab960d authored by Frank Min's avatar Frank Min Committed by Alex Deucher
Browse files

drm/amdgpu:keep bo pinned in prefered domain

parent 4bc10d16
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -242,7 +242,7 @@ static int amdgpu_cgs_gmap_gpu_mem(struct cgs_device *cgs_device, cgs_handle_t h
	r = amdgpu_bo_reserve(obj, false);
	r = amdgpu_bo_reserve(obj, false);
	if (unlikely(r != 0))
	if (unlikely(r != 0))
		return r;
		return r;
	r = amdgpu_bo_pin_restricted(obj, AMDGPU_GEM_DOMAIN_GTT,
	r = amdgpu_bo_pin_restricted(obj, obj->prefered_domains,
				     min_offset, max_offset, mcaddr);
				     min_offset, max_offset, mcaddr);
	amdgpu_bo_unreserve(obj);
	amdgpu_bo_unreserve(obj);
	return r;
	return r;