RE: [PATCH] drm/amd/pm: avoid potential UBSAN issue on legacy asics

2023-05-09 Thread Chen, Guchun
> -Original Message- > From: Lazar, Lijo > Sent: Tuesday, May 9, 2023 3:29 PM > To: Chen, Guchun ; amd- > g...@lists.freedesktop.org; Deucher, Alexander > ; Zhang, Hawking > ; Quan, Evan > Subject: Re: [PATCH] drm/amd/pm: avoid potential UBSAN issue on legacy &

Re: [PATCH] drm/amd/pm: avoid potential UBSAN issue on legacy asics

2023-05-09 Thread Lazar, Lijo
On 5/9/2023 10:59 AM, Guchun Chen wrote: Prevent further dpm casting on legacy asics without od_enabled in amdgpu_dpm_is_overdrive_supported. This can avoid UBSAN complain in init sequence. v2: add a macro to check legacy dpm instead of checking asic family/type Suggested-by: Evan Quan

RE: [PATCH] drm/amd/pm: avoid potential UBSAN issue on legacy asics

2023-05-08 Thread Chen, Guchun
> -Original Message- > From: Lazar, Lijo > Sent: Tuesday, May 9, 2023 11:47 AM > To: Chen, Guchun ; amd- > g...@lists.freedesktop.org; Deucher, Alexander > ; Zhang, Hawking > ; Quan, Evan > Subject: Re: [PATCH] drm/amd/pm: avoid potential UBSAN issue on legacy &

Re: [PATCH] drm/amd/pm: avoid potential UBSAN issue on legacy asics

2023-05-08 Thread Lazar, Lijo
On 5/9/2023 7:12 AM, Guchun Chen wrote: Prevent further casting on chip MULLINS/KABINI/KAVERI when calling amdgpu_dpm_is_overdrive_supported, this can avoid UBSAN complain in init sequence. Suggested-by: Evan Quan Signed-off-by: Guchun Chen --- drivers/gpu/drm/amd/pm/amdgpu_dpm.c | 10

RE: [PATCH] drm/amd/pm: avoid potential UBSAN issue on legacy asics

2023-05-08 Thread Quan, Evan
[AMD Official Use Only - General] Acked-by: Evan Quan > -Original Message- > From: Chen, Guchun > Sent: Tuesday, May 9, 2023 9:43 AM > To: amd-gfx@lists.freedesktop.org; Deucher, Alexander > ; Zhang, Hawking > ; Lazar, Lijo ; Quan, Evan > > Cc: Chen, Guchun > Subject: [PATCH]