aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/misc/mei/hw-me-regs.h
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2014-03-25 21:25:18 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-04-16 12:24:16 -0700
commit5e6533a6f52f1a8283b2f818f5828be99a417dd6 (patch)
tree67545420a93a61b87ce975fe3360d98c78b54b60 /drivers/misc/mei/hw-me-regs.h
parentGenWQE: Increase driver version number (diff)
downloadwireguard-linux-5e6533a6f52f1a8283b2f818f5828be99a417dd6.tar.xz
wireguard-linux-5e6533a6f52f1a8283b2f818f5828be99a417dd6.zip
mei: me: do not load the driver if the FW doesn't support MEI interface
NM and SPS FW types that may run on ME device on server platforms do not have valid MEI/HECI interface and driver should not be bound to it as this might lead to system hung. In practice not all BIOSes effectively hide such devices from the OS and in some cases it is not possible. We determine FW type by examining Host FW status registers in order to unbind the driver. In this patch we are adding check for ME on Cougar Point, Lynx Point Devices Cc: stable <stable@vger.kernel.org> # 3.10+ Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Tested-by: Nikola Ciprich <nikola.ciprich@linuxbox.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/hw-me-regs.h')
-rw-r--r--drivers/misc/mei/hw-me-regs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/misc/mei/hw-me-regs.h b/drivers/misc/mei/hw-me-regs.h
index 66f411a6e8ea..cabc04383685 100644
--- a/drivers/misc/mei/hw-me-regs.h
+++ b/drivers/misc/mei/hw-me-regs.h
@@ -115,6 +115,11 @@
#define MEI_DEV_ID_LPT_HR 0x8CBA /* Lynx Point H Refresh */
#define MEI_DEV_ID_WPT_LP 0x9CBA /* Wildcat Point LP */
+
+/* Host Firmware Status Registers in PCI Config Space */
+#define PCI_CFG_HFS_1 0x40
+#define PCI_CFG_HFS_2 0x48
+
/*
* MEI HW Section
*/