提交 9f0ed7aa 编写于 作者: C Christian König 提交者: Alex Deucher

drm/amdgpu: fix cgs alignment handling

This always allocated on PAGE_SIZE alignment.
Signed-off-by: NChristian König <christian.koenig@amd.com>
Reviewed-by: NAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 e97f12f3
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册