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

Commit 9f0ed7aa authored by Christian König's avatar Christian König Committed by Alex Deucher
Browse files

drm/amdgpu: fix cgs alignment handling



This always allocated on PAGE_SIZE alignment.

Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e97f12f3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -121,7 +121,7 @@ static int amdgpu_cgs_alloc_gpu_mem(struct cgs_device *cgs_device,
	placement.busy_placement = &place;
	placement.num_busy_placement = 1;

	ret = amdgpu_bo_create_restricted(adev, size, PAGE_SIZE,
	ret = amdgpu_bo_create_restricted(adev, size, align,
					  true, domain, flags,
					  NULL, &placement, NULL,
					  0, &obj);