Re: [PATCH 8/8] drm/amdkfd: remove dead code in kfd_create_vcrat_image_gpu

2024-05-31 Thread Felix Kuehling
, Christian ; Kim, Jonathan ; Huang, Tim Subject: Re: [PATCH 8/8] drm/amdkfd: remove dead code in kfd_create_vcrat_image_gpu On 2024-05-29 23:50, Jesse Zhang wrote: Since the value of avail_size is at least VCRAT_SIZE_FOR_GPU(16384), minus struct crat_header(40UL) and struct crat_subtype_compute(40UL

RE: [PATCH 8/8] drm/amdkfd: remove dead code in kfd_create_vcrat_image_gpu

2024-05-30 Thread Zhang, Jesse(Jie)
: [PATCH 8/8] drm/amdkfd: remove dead code in kfd_create_vcrat_image_gpu On 2024-05-29 23:50, Jesse Zhang wrote: > Since the value of avail_size is at least VCRAT_SIZE_FOR_GPU(16384), > minus struct crat_header(40UL) and struct crat_subtype_compute(40UL) it > cannot be less than 0. > >

Re: [PATCH 8/8] drm/amdkfd: remove dead code in kfd_create_vcrat_image_gpu

2024-05-30 Thread Felix Kuehling
On 2024-05-29 23:50, Jesse Zhang wrote: Since the value of avail_size is at least VCRAT_SIZE_FOR_GPU(16384), minus struct crat_header(40UL) and struct crat_subtype_compute(40UL) it cannot be less than 0. Signed-off-by: Jesse Zhang --- drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 6 -- 1 fi

[PATCH 8/8] drm/amdkfd: remove dead code in kfd_create_vcrat_image_gpu

2024-05-29 Thread Jesse Zhang
Since the value of avail_size is at least VCRAT_SIZE_FOR_GPU(16384), minus struct crat_header(40UL) and struct crat_subtype_compute(40UL) it cannot be less than 0. Signed-off-by: Jesse Zhang --- drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drive