]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
drm/amdgpu: fix cgs alignment handling
authorChristian König <christian.koenig@amd.com>
Mon, 11 Sep 2017 13:51:30 +0000 (15:51 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Sep 2017 16:10:12 +0000 (12:10 -0400)
This always allocated on PAGE_SIZE alignment.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c

index fd435a96481c2f1c019bd4d2303ebbb9b590adad..892cd8b3483c5a1bc4fcd37e813d4caac7315b46 100644 (file)
@@ -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);