]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/pm: disable gfxoff on the specific sku
authorKenneth Feng <kenneth.feng@amd.com>
Wed, 26 Feb 2025 08:05:57 +0000 (16:05 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Feb 2025 21:50:03 +0000 (16:50 -0500)
disable gfxoff on the specific sku based on the requirement

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c

index 985355bf78b221683e0e2ef04b23268d7f36f5dc..898487ad6cd2e01ebbfe787ddfd0d583e27d333f 100644 (file)
@@ -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;
 }