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)

Patch for Surface 3 which is suffering from the "OEMB" problem.
On the affected systems, DMI table is broken and breaks
DMI matching used for quirk.

This patch will add 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 2dbc439 commit 13d62c4
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 13d62c4

Please sign in to comment.