]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
platform/x86/amd: pmc: Add Lenovo Legion Go 2 to pmc quirk list
authorAntheas Kapenekakis <lkml@antheas.dev>
Wed, 8 Oct 2025 13:50:57 +0000 (15:50 +0200)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 6 Nov 2025 12:19:32 +0000 (14:19 +0200)
The Lenovo Legion Go 2 takes a long time to resume from suspend.
This is due to it having an nvme resume handler that interferes
with IOMMU mappings. It is a common issue with older Lenovo
laptops. Adding it to that quirk list fixes this issue.

Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4618
Suggested-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Antheas Kapenekakis <lkml@antheas.dev>
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Link: https://patch.msgid.link/20251008135057.731928-1-lkml@antheas.dev
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/amd/pmc/pmc-quirks.c

index eb641ce0e9826739570fad5c73f5587bbdc22a6a..404e62ad293a98dfe1be34aad1feef9e30cde60c 100644 (file)
@@ -212,6 +212,23 @@ static const struct dmi_system_id fwbug_list[] = {
                        DMI_MATCH(DMI_PRODUCT_NAME, "82ND"),
                }
        },
+       /* https://gitlab.freedesktop.org/drm/amd/-/issues/4618 */
+       {
+               .ident = "Lenovo Legion Go 2",
+               .driver_data = &quirk_s2idle_bug,
+               .matches = {
+                       DMI_MATCH(DMI_BOARD_VENDOR, "LENOVO"),
+                       DMI_MATCH(DMI_PRODUCT_NAME, "83N0"),
+               }
+       },
+       {
+               .ident = "Lenovo Legion Go 2",
+               .driver_data = &quirk_s2idle_bug,
+               .matches = {
+                       DMI_MATCH(DMI_BOARD_VENDOR, "LENOVO"),
+                       DMI_MATCH(DMI_PRODUCT_NAME, "83N1"),
+               }
+       },
        /* https://gitlab.freedesktop.org/drm/amd/-/issues/2684 */
        {
                .ident = "HP Laptop 15s-eq2xxx",