aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/cik.c
diff options
context:
space:
mode:
authorMa Jun <[email protected]>2024-03-27 09:26:08 +0000
committerAlex Deucher <[email protected]>2024-04-10 02:07:59 +0000
commitb2207dc6989f5c913cca932eb8720b6ad0725d67 (patch)
tree01a279f41ddd6a693b1ef1b41601ccdb9242b6d1 /drivers/gpu/drm/amd/amdgpu/cik.c
parentdrm/amdgpu/pm: Change the member function name in pp_hwmgr_func and pptable_f... (diff)
downloadkernel-b2207dc6989f5c913cca932eb8720b6ad0725d67.tar.gz
kernel-b2207dc6989f5c913cca932eb8720b6ad0725d67.zip
drm/amdgpu/pm: Add support for MACO flag checking
Add support for MACO flag checking. MACO mode only works if BACO is supported. Signed-off-by: Ma Jun <[email protected]> Reviewed-by: Lijo Lazar <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/cik.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/cik.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/cik.c b/drivers/gpu/drm/amd/amdgpu/cik.c
index a3a643254d7a..fdbc26346b54 100644
--- a/drivers/gpu/drm/amd/amdgpu/cik.c
+++ b/drivers/gpu/drm/amd/amdgpu/cik.c
@@ -1375,14 +1375,14 @@ static int cik_asic_pci_config_reset(struct amdgpu_device *adev)
return r;
}
-static bool cik_asic_supports_baco(struct amdgpu_device *adev)
+static int cik_asic_supports_baco(struct amdgpu_device *adev)
{
switch (adev->asic_type) {
case CHIP_BONAIRE:
case CHIP_HAWAII:
return amdgpu_dpm_is_baco_supported(adev);
default:
- return false;
+ return 0;
}
}