]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Fix oops when pp_funcs->switch_power_profile is unset
authorFelix Kuehling <Felix.Kuehling@amd.com>
Fri, 20 Jul 2018 15:37:25 +0000 (11:37 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Nov 2018 21:05:52 +0000 (16:05 -0500)
commitd2bc4b07cc78988ca745b7b43e32e22fdbf17167
tree86a0c3b82a8cced4c9d4d26d9411496cfcd242de
parent64acbccae648dd8b7549790914a70b04f5a1f83f
drm/amdgpu: Fix oops when pp_funcs->switch_power_profile is unset

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@suse.de>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Tested-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c