mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-07-26 22:07:51 +00:00
6203cbca5c
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
71 lines
2.0 KiB
Diff
71 lines
2.0 KiB
Diff
From ea2ca0ebd427d4a745043e6e030619221fe9a55b Mon Sep 17 00:00:00 2001
|
|
From: Takashi Iwai <tiwai@suse.de>
|
|
Date: Mon, 25 Jun 2012 15:07:17 +0200
|
|
Subject: [PATCH 051/109] intel_ips: blacklist HP ProBook laptops
|
|
|
|
commit 88ca518b0bb4161e5f20f8a1d9cc477cae294e54 upstream.
|
|
|
|
intel_ips driver spews the warning message
|
|
"ME failed to update for more than 1s, likely hung"
|
|
at each second endlessly on HP ProBook laptops with IronLake.
|
|
|
|
As this has never worked, better to blacklist the driver for now.
|
|
|
|
Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
|
Signed-off-by: Matthew Garrett <mjg@redhat.com>
|
|
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
---
|
|
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 809a3ae..b46ec11 100644
|
|
--- a/drivers/platform/x86/intel_ips.c
|
|
+++ b/drivers/platform/x86/intel_ips.c
|
|
@@ -72,6 +72,7 @@
|
|
#include <linux/string.h>
|
|
#include <linux/tick.h>
|
|
#include <linux/timer.h>
|
|
+#include <linux/dmi.h>
|
|
#include <drm/i915_drm.h>
|
|
#include <asm/msr.h>
|
|
#include <asm/processor.h>
|
|
@@ -1505,6 +1506,24 @@ static DEFINE_PCI_DEVICE_TABLE(ips_id_table) = {
|
|
|
|
MODULE_DEVICE_TABLE(pci, ips_id_table);
|
|
|
|
+static int ips_blacklist_callback(const struct dmi_system_id *id)
|
|
+{
|
|
+ pr_info("Blacklisted intel_ips for %s\n", id->ident);
|
|
+ return 1;
|
|
+}
|
|
+
|
|
+static const struct dmi_system_id ips_blacklist[] = {
|
|
+ {
|
|
+ .callback = ips_blacklist_callback,
|
|
+ .ident = "HP ProBook",
|
|
+ .matches = {
|
|
+ DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
|
|
+ DMI_MATCH(DMI_PRODUCT_NAME, "HP ProBook"),
|
|
+ },
|
|
+ },
|
|
+ { } /* terminating entry */
|
|
+};
|
|
+
|
|
static int ips_probe(struct pci_dev *dev, const struct pci_device_id *id)
|
|
{
|
|
u64 platform_info;
|
|
@@ -1514,6 +1533,9 @@ static int ips_probe(struct pci_dev *dev, const struct pci_device_id *id)
|
|
u16 htshi, trc, trc_required_mask;
|
|
u8 tse;
|
|
|
|
+ if (dmi_check_system(ips_blacklist))
|
|
+ return -ENODEV;
|
|
+
|
|
ips = kzalloc(sizeof(struct ips_driver), GFP_KERNEL);
|
|
if (!ips)
|
|
return -ENOMEM;
|
|
--
|
|
1.7.7.6
|
|
|