From: Kenneth Feng Date: Wed, 26 Feb 2025 08:05:57 +0000 (+0800) Subject: drm/amd/pm: disable gfxoff on the specific sku X-Git-Tag: v6.15-rc1~120^2~12^2~107 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7d37bcab9748134be668ec222ed630150eb32e8e;p=thirdparty%2Flinux.git drm/amd/pm: disable gfxoff on the specific sku disable gfxoff on the specific sku based on the requirement Signed-off-by: Kenneth Feng Reviewed-by: Lijo Lazar Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c index 985355bf78b22..898487ad6cd2e 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c +++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c @@ -3234,4 +3234,9 @@ void smu_v13_0_0_set_ppt_funcs(struct smu_context *smu) smu->workload_map = smu_v13_0_0_workload_map; smu->smc_driver_if_version = SMU13_0_0_DRIVER_IF_VERSION; smu_v13_0_0_set_smu_mailbox_registers(smu); + + if (amdgpu_ip_version(smu->adev, MP1_HWIP, 0) == + IP_VERSION(13, 0, 10) && + !amdgpu_device_has_display_hardware(smu->adev)) + smu->adev->pm.pp_feature &= ~PP_GFXOFF_MASK; }