drm/radeon: Call radeon_suspend_kms() in radeon_pci_shutdown() for Loongson64
authorjsg <jsg@openbsd.org>
Mon, 19 Jul 2021 10:42:27 +0000 (10:42 +0000)
committerjsg <jsg@openbsd.org>
Mon, 19 Jul 2021 10:42:27 +0000 (10:42 +0000)
From Tiezhu Yang
0d50d93d05d6571347f3ab9d28d0b80e5d142d81 in linux 5.10.y/5.10.51
c1bfd74bfef77bcefc88d12eaf8996c0dfd51331 in mainline linux

sys/dev/pci/drm/radeon/radeon_drv.c

index 99fd33b..7b88401 100644 (file)
@@ -426,13 +426,13 @@ radeon_pci_shutdown(struct pci_dev *pdev)
        if (radeon_device_is_virtual())
                radeon_pci_remove(pdev);
 
-#ifdef CONFIG_PPC64
+#if defined(CONFIG_PPC64) || defined(CONFIG_MACH_LOONGSON64)
        /*
         * Some adapters need to be suspended before a
         * shutdown occurs in order to prevent an error
-        * during kexec.
-        * Make this power specific becauase it breaks
-        * some non-power boards.
+        * during kexec, shutdown or reboot.
+        * Make this power and Loongson specific because
+        * it breaks some other boards.
         */
        radeon_suspend_kms(pci_get_drvdata(pdev), true, true, false);
 #endif