diff options
| author | Rex Zhu <[email protected]> | 2017-09-22 10:03:59 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2017-09-28 20:03:31 +0000 |
| commit | 46967c221fa9d06f4ddf168fbcf16fd9216dd574 (patch) | |
| tree | 5941e9c7b5b257cd6575378edc25c56ba4f97166 /drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | |
| parent | drm/amdgpu: move common pm sysfs code to amdgpu_device.c (diff) | |
| download | kernel-46967c221fa9d06f4ddf168fbcf16fd9216dd574.tar.gz kernel-46967c221fa9d06f4ddf168fbcf16fd9216dd574.zip | |
drm/amdgpu: move amdgpu_ucode_init_bo to amdgpu_device.c
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Rex Zhu <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c index 1ad632388c95..c05e5a86e7cc 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c @@ -174,8 +174,6 @@ static int amdgpu_pp_hw_init(void *handle) int ret = 0; struct amdgpu_device *adev = (struct amdgpu_device *)handle; - if (adev->pp_enabled && adev->firmware.load_type == AMDGPU_FW_LOAD_SMU) - amdgpu_ucode_init_bo(adev); if (adev->powerplay.ip_funcs->hw_init) ret = adev->powerplay.ip_funcs->hw_init( @@ -201,9 +199,6 @@ static int amdgpu_pp_hw_fini(void *handle) ret = adev->powerplay.ip_funcs->hw_fini( adev->powerplay.pp_handle); - if (adev->pp_enabled && adev->firmware.load_type == AMDGPU_FW_LOAD_SMU) - amdgpu_ucode_fini_bo(adev); - return ret; } |
