Re: [PATCH 19/22] drm/amdgpu: Fix the warning division or modulo by zero for the variable num_xcc_per_xcp

2024-05-10 Thread Lazar, Lijo
On 5/10/2024 1:09 PM, Zhang, Jesse(Jie) wrote: > [AMD Official Use Only - General] > > Hi Lijo, > > -Original Message- > From: amd-gfx On Behalf Of Lazar, Lijo > Sent: Friday, May 10, 2024 3:16 PM > To: amd-gfx@lists.freedesktop.org > Subject: Re: [PATCH 19/22] drm/amdgpu: Fix the

RE: [PATCH 19/22] drm/amdgpu: Fix the warning division or modulo by zero for the variable num_xcc_per_xcp

2024-05-10 Thread Zhang, Jesse(Jie)
[AMD Official Use Only - General] Hi Lijo, -Original Message- From: amd-gfx On Behalf Of Lazar, Lijo Sent: Friday, May 10, 2024 3:16 PM To: amd-gfx@lists.freedesktop.org Subject: Re: [PATCH 19/22] drm/amdgpu: Fix the warning division or modulo by zero for the variable num_xcc_per_xcp

Re: [PATCH 19/22] drm/amdgpu: Fix the warning division or modulo by zero for the variable num_xcc_per_xcp

2024-05-10 Thread Lazar, Lijo
On 5/10/2024 8:20 AM, Jesse Zhang wrote: > Dividing expression num_xcc_per_xcp which may be zero has undefined behavior. > > Signed-off-by: Jesse Zhang > --- > drivers/gpu/drm/amd/amdgpu/aqua_vanjaram.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git

RE: [PATCH 19/22] drm/amdgpu: Fix the warning division or modulo by zero for the variable num_xcc_per_xcp

2024-05-10 Thread Huang, Tim
[AMD Official Use Only - General] This patch is, Reviewed-by: Tim Huang > -Original Message- > From: amd-gfx On Behalf Of Jesse > Zhang > Sent: Friday, May 10, 2024 10:51 AM > To: amd-gfx@lists.freedesktop.org > Cc: Deucher, Alexander ; Koenig, Christian > ; Huang, Tim ; Zhang, >