From: Alex Deucher Date: Wed, 9 Dec 2020 18:12:50 +0000 (-0500) Subject: drm/amdgpu: support runtime pm for GPUs that support BOCO X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=157e8306038cf54e3c5149e72ad88ac0448ec7e2;p=linux.git drm/amdgpu: support runtime pm for GPUs that support BOCO Enable runtime pm on non HG/PX BOCO capable boards. Acked-by: Evan Quan Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c index ec8fff7839efb..af049041ea3fa 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)) {