OSDN Git Service

drm/amdgpu: Fix NULL pointer when load kfd driver with PP block is disabled
authorShaoyun Liu <Shaoyun.Liu@amd.com>
Wed, 14 Mar 2018 18:44:58 +0000 (14:44 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 31 May 2018 19:08:54 +0000 (14:08 -0500)
commit7ba01f9e12bb3f088f617cf69b589ea37bd5d6ed
tree6f480d4907e6d7662ba1e4973d6962d7cd76b45d
parentac26b0f3fc41b942f03ec9fd0392e3aa1886800a
drm/amdgpu: Fix NULL pointer when load kfd driver with PP block is disabled

When PP block is disabled, return a fix value(100M) for mclk and sclk on
bare-metal mode. This will cover the emulation mode as well.

Signed-off-by: Shaoyun Liu <Shaoyun.Liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c