diff options
Diffstat (limited to 'drivers/platform/x86/intel_ips.c')
| -rw-r--r-- | drivers/platform/x86/intel_ips.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/drivers/platform/x86/intel_ips.c b/drivers/platform/x86/intel_ips.c index 0ffdb3cde2bb..9af4257d4901 100644 --- a/drivers/platform/x86/intel_ips.c +++ b/drivers/platform/x86/intel_ips.c | |||
| @@ -72,6 +72,7 @@ | |||
| 72 | #include <linux/string.h> | 72 | #include <linux/string.h> |
| 73 | #include <linux/tick.h> | 73 | #include <linux/tick.h> |
| 74 | #include <linux/timer.h> | 74 | #include <linux/timer.h> |
| 75 | #include <linux/dmi.h> | ||
| 75 | #include <drm/i915_drm.h> | 76 | #include <drm/i915_drm.h> |
| 76 | #include <asm/msr.h> | 77 | #include <asm/msr.h> |
| 77 | #include <asm/processor.h> | 78 | #include <asm/processor.h> |
| @@ -1485,6 +1486,24 @@ static DEFINE_PCI_DEVICE_TABLE(ips_id_table) = { | |||
| 1485 | 1486 | ||
| 1486 | MODULE_DEVICE_TABLE(pci, ips_id_table); | 1487 | MODULE_DEVICE_TABLE(pci, ips_id_table); |
| 1487 | 1488 | ||
| 1489 | static int ips_blacklist_callback(const struct dmi_system_id *id) | ||
| 1490 | { | ||
| 1491 | pr_info("Blacklisted intel_ips for %s\n", id->ident); | ||
| 1492 | return 1; | ||
| 1493 | } | ||
| 1494 | |||
| 1495 | static const struct dmi_system_id ips_blacklist[] = { | ||
| 1496 | { | ||
| 1497 | .callback = ips_blacklist_callback, | ||
| 1498 | .ident = "HP ProBook", | ||
| 1499 | .matches = { | ||
| 1500 | DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), | ||
| 1501 | DMI_MATCH(DMI_PRODUCT_NAME, "HP ProBook"), | ||
| 1502 | }, | ||
| 1503 | }, | ||
| 1504 | { } /* terminating entry */ | ||
| 1505 | }; | ||
| 1506 | |||
| 1488 | static int ips_probe(struct pci_dev *dev, const struct pci_device_id *id) | 1507 | static int ips_probe(struct pci_dev *dev, const struct pci_device_id *id) |
| 1489 | { | 1508 | { |
| 1490 | u64 platform_info; | 1509 | u64 platform_info; |
| @@ -1494,6 +1513,9 @@ static int ips_probe(struct pci_dev *dev, const struct pci_device_id *id) | |||
| 1494 | u16 htshi, trc, trc_required_mask; | 1513 | u16 htshi, trc, trc_required_mask; |
| 1495 | u8 tse; | 1514 | u8 tse; |
| 1496 | 1515 | ||
| 1516 | if (dmi_check_system(ips_blacklist)) | ||
| 1517 | return -ENODEV; | ||
| 1518 | |||
| 1497 | ips = kzalloc(sizeof(struct ips_driver), GFP_KERNEL); | 1519 | ips = kzalloc(sizeof(struct ips_driver), GFP_KERNEL); |
| 1498 | if (!ips) | 1520 | if (!ips) |
| 1499 | return -ENOMEM; | 1521 | return -ENOMEM; |
