diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2020-12-09 21:12:50 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-12-15 19:35:17 +0300 |
commit | 157e8306038cf54e3c5149e72ad88ac0448ec7e2 (patch) | |
tree | 8a3718554482298bbd22a2b9844a384698d08051 /drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | |
parent | 0330b8487842924351663878582b777002792acd (diff) | |
download | linux-157e8306038cf54e3c5149e72ad88ac0448ec7e2.tar.xz |
drm/amdgpu: support runtime pm for GPUs that support BOCO
Enable runtime pm on non HG/PX BOCO capable boards.
Acked-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c index ec8fff7839ef..af049041ea3f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c @@ -161,7 +161,10 @@ int amdgpu_driver_load_kms(struct amdgpu_device *adev, unsigned long flags) } if (amdgpu_device_supports_atpx(dev) && - (amdgpu_runtime_pm != 0)) { /* enable runpm by default for boco */ + (amdgpu_runtime_pm != 0)) { /* enable runpm by default for atpx */ + adev->runpm = true; + } else if (amdgpu_device_supports_boco(dev) && + (amdgpu_runtime_pm != 0)) { /* enable runpm by default for boco */ adev->runpm = true; } else if (amdgpu_device_supports_baco(dev) && (amdgpu_runtime_pm != 0)) { |