[PATCH 0/4] drm/amdgpu: Explicitly add a flexible array at the end of 'struct amdgpu_bo_list' and simplify amdgpu_bo_list_create()

Christian König christian.koenig at amd.com
Mon Aug 21 11:03:46 UTC 2023


Am 20.08.23 um 11:51 schrieb Christophe JAILLET:
> This serie simplifies amdgpu_bo_list_create() and usage of the 'struct
> amdgpu_bo_list'.

Oh, yes please. That's something I always wanted to cleanup as well.

> It is compile tested only.

That bothers me a bit. Arun, Vitaly, Shashank can anybody with time run 
a quick test on this? Preferable the IGT tests, but this just some game 
should probably do as well.

Apart from that looks good to me,
Christian.

>
> Christophe JAILLET (4):
>    drm/amdgpu: Explicitly add a flexible array at the end of 'struct
>      amdgpu_bo_list'
>    drm/amdgpu: Remove a redundant sanity check
>    drm/amdgpu: Remove amdgpu_bo_list_array_entry()
>    drm/amdgpu: Use kvzalloc() to simplify code
>
>   drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c | 15 ++-------------
>   drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.h | 18 ++++++------------
>   2 files changed, 8 insertions(+), 25 deletions(-)
>



More information about the amd-gfx mailing list