Skip to content

Commit

Permalink
Surface3-OEMB: surface3-wmi: add quirk for Surface 3 with broken DMI …
Browse files Browse the repository at this point in the history
…table

(made referring to http://git.osdn.net/view?p=android-x86/kernel.git;a=commitdiff;h=18e2e857c57633b25b3b4120f212224a108cd883)

On some Surface 3, DMI table gets corrupted for unknown reasons
and breaks existing DMI matching used for device-specific quirks.

This commit adds the (broken) DMI info for the affected Surface 3.
Fixes surface3-wmi probe on Surface 3 with broken DMI table.

Note here that this issue will not necessarily happen after playing
around with Android-x86. I heard a report from a person on the IRC
channel that on the affected system, only Manjaro was used.

On affected systems, dmidecode will look like this:
        $ sudo dmidecode
        [...]
        BIOS Information
            Vendor: American Megatrends Inc.
        [...]
        System Information
            Manufacturer: OEMB
            Product Name: OEMB
        [...]

Expected:
        $ sudo dmidecode
        [...]
        BIOS Information
            Vendor: (???, I think something like "Microsoft Corporation")
        [...]
        System Information
            Manufacturer: Microsoft Corporation
            Product Name: Surface 3
        [...]
  • Loading branch information
kitakar5525 committed Jan 12, 2020
1 parent 85982de commit 9c1f1f4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/platform/x86/surface3-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ static const struct dmi_system_id surface3_dmi_table[] = {
DMI_MATCH(DMI_PRODUCT_NAME, "Surface 3"),
},
},
{
.matches = {
DMI_MATCH(DMI_BIOS_VENDOR, "American Megatrends Inc."),
DMI_MATCH(DMI_SYS_VENDOR, "OEMB"),
DMI_MATCH(DMI_PRODUCT_NAME, "OEMB"),
},
},
#endif
{ }
};
Expand Down

0 comments on commit 9c1f1f4

Please sign in to comment.