]> www.infradead.org Git - users/dwmw2/linux.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>
Thu, 16 Dec 2021 18:43:46 +0000 (13:43 -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 0907da02219746128141297c6b7b4007e46d25ec..7433a051e795d2a28f08d6d89a3f37f7790156fb 100644 (file)
@@ -1625,7 +1625,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);
 }