From: Christian König Date: Mon, 11 Sep 2017 13:51:30 +0000 (+0200) Subject: drm/amdgpu: fix cgs alignment handling X-Git-Tag: Ubuntu-5.13.0-19.19~12135^2~28^2~95 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=9f0ed7aab60e3563bfe247bc2ad82db3a88c2d57;p=mirror_ubuntu-jammy-kernel.git drm/amdgpu: fix cgs alignment handling This always allocated on PAGE_SIZE alignment. Signed-off-by: Christian König Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c index fd435a96481c..892cd8b3483c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c @@ -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);