RE: [PATCH 1/1] drm/amdgpu: fix wrong sizeof argument

2024-01-23 Thread Wang, Yang(Kevin)
Reviewed-by: Yang Wang Best Regards, Kevin -Original Message- From: amd-gfx On Behalf Of Samasth Norway Ananda Sent: Tuesday, January 23, 2024 5:32 AM To: amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander ; samasth.norway.ana...@oracle.com Subject: [PATCH 1/1] drm/amdgpu: fix

[PATCH 1/1] drm/amdgpu: fix wrong sizeof argument

2024-01-23 Thread Samasth Norway Ananda
voltage_parameters is a point to a struct of type SET_VOLTAGE_PARAMETERS_V1_3. Passing just voltage_parameters would not print the right size of the struct variable. So we need to pass *voltage_parameters to sizeof(). Fixes: 4630d5031cd8 ("drm/amdgpu: check PS, WS index") Signed-off-by: Samasth N

[PATCH 1/1] drm/amdgpu: fix wrong sizeof argument

2024-01-23 Thread Samasth Norway Ananda
voltage_parameters is a point to a struct of type SET_VOLTAGE_PARAMETERS_V1_3. Passing just voltage_parameters would not print the right size of the struct variable. So we need to pass *voltage_parameters to sizeof(). Fixes: 4630d5031cd8 ("drm/amdgpu: check PS, WS index") Signed-off-by: Samasth N