diff options
author | Christian König <christian.koenig@amd.com> | 2017-09-11 09:51:30 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-09-13 12:10:12 -0400 |
commit | 9f0ed7aab60e3563bfe247bc2ad82db3a88c2d57 (patch) | |
tree | 83c57f16621d933364302a487cacf15cc8f5ebfe /drivers/gpu/drm/amd | |
parent | e97f12f359775de4fabfb507f836ebffa20f4986 (diff) |
drm/amdgpu: fix cgs alignment handling
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>
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
121 | placement.busy_placement = &place; | 121 | placement.busy_placement = &place; |
122 | placement.num_busy_placement = 1; | 122 | placement.num_busy_placement = 1; |
123 | 123 | ||
124 | ret = amdgpu_bo_create_restricted(adev, size, PAGE_SIZE, | 124 | ret = amdgpu_bo_create_restricted(adev, size, align, |
125 | true, domain, flags, | 125 | true, domain, flags, |
126 | NULL, &placement, NULL, | 126 | NULL, &placement, NULL, |
127 | 0, &obj); | 127 | 0, &obj); |