drm/amdgpu: support runtime pm for GPUs that support BOCO
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Dec 2020 18:12:50 +0000 (13:12 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Dec 2020 16:35:17 +0000 (11:35 -0500)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c

index ec8fff7839efbe73ea36767cea4b07801051086f..af049041ea3fa90a949d58229df8fb0311d031ce 100644 (file)
@@ -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)) {