[PATCH] drm/amdgpu: Fix oops when pp_funcs->switch_power_profile is unset

Joerg Roedel jroedel at suse.de
Fri Nov 16 17:06:13 UTC 2018


On Thu, Nov 15, 2018 at 09:56:51PM +0000, Kuehling, Felix wrote:
> On Vega20 and other pre-production GPUs, powerplay is not enabled yet.
> Check for NULL pointers before calling pp_funcs function pointers.
> 
> Also affects Kaveri.
> 
> CC: Joerg Roedel <jroedel at suse.de>
> Signed-off-by: Felix Kuehling <Felix.Kuehling at amd.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)

Tested on my Kaveri box and the issue is fixed, thanks!

Tested-by: Joerg Roedel <jroedel at suse.de>



More information about the amd-gfx mailing list