Re: [PATCH 0/4] drm/amdgpu: Explicitly add a flexible array at the end of 'struct amdgpu_bo_list' and simplify amdgpu_bo_list_create()
From: vitaly prosyak
Date: Mon Aug 21 2023 - 20:33:18 EST
Hi Christian,
On 2023-08-21 07:03, Christian König wrote:
> 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,
I applied the following 4 patches :
0001-drm-amdgpu-WIP-Explicitly-add-a-flexible-array-at-th.patch
0002-drm-amdgpu-WIP-Remove-a-redundant-sanity-check.patch
0003-drm-amdgpu-WIP-Use-kvzalloc-to-simplify-code.patch
0004-drm-amdgpu-WIP-Remove-amdgpu_bo_list_array_entry.patch
and all IGT tests were successful.
> 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(-)
>>
> Thanks, Vitaly