OSDN Git Service

mei: me: do not load the driver if the FW doesn't support MEI interface
authorTomas Winkler <tomas.winkler@intel.com>
Tue, 25 Mar 2014 19:25:18 +0000 (21:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Apr 2014 19:24:16 +0000 (12:24 -0700)
commit5e6533a6f52f1a8283b2f818f5828be99a417dd6
tree67545420a93a61b87ce975fe3360d98c78b54b60
parent73590a25ba6f55eecde4ffbbbc53835d7ccf5402
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>
drivers/misc/mei/hw-me-regs.h
drivers/misc/mei/pci-me.c