]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amd/pm: Fix xgmi link control on aldebaran
authorLijo Lazar <lijo.lazar@amd.com>
Wed, 15 Dec 2021 15:37:03 +0000 (23:37 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 Dec 2021 17:47:28 +0000 (12:47 -0500)
Fix the message argument.
0: Allow power down
1: Disallow power down

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c

index 59a7d276541de7824b3a5f0519bbcd4a83f55874..7d50827cf0a8720b352a47553b9bed11899a41d2 100644 (file)
@@ -1621,7 +1621,7 @@ static int aldebaran_allow_xgmi_power_down(struct smu_context *smu, bool en)
 {
        return smu_cmn_send_smc_msg_with_param(smu,
                                               SMU_MSG_GmiPwrDnControl,
-                                              en ? 1 : 0,
+                                              en ? 0 : 1,
                                               NULL);
 }