[PATCH 1/5] drm/amdgpu: fix cgs alignment handling

Alex Deucher alexdeucher at gmail.com
Tue Sep 12 18:11:59 UTC 2017


On Tue, Sep 12, 2017 at 5:08 AM, Christian König
<deathsimple at vodafone.de> wrote:
> From: Christian König <christian.koenig at amd.com>
>
> This always allocated on PAGE_SIZE alignment.
>
> Signed-off-by: Christian König <christian.koenig at amd.com>

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
> index d450a96..8b5fa22 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);
> --
> 2.7.4
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list