Patch "mei: me: disable driver on SPT SPS firmware" has been added to the 4.7-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
mei: me: disable driver on SPT SPS firmware
to the 4.7-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
mei-me-disable-driver-on-spt-sps-firmware.patch
and it can be found in the queue-4.7 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
8c57cac1457f3125a5d13dc03635c0708c61bff0Mon Sep 17 00:00:00 2001
From: Tomas Winkler <[email protected]>
Date: Wed, 20 Jul 2016 10:24:02 +0300
Subject: mei: me: disable driver on SPT SPS firmware
From: Tomas Winkler <[email protected]>
commit 8c57cac1457f3125a5d13dc03635c0708c61bff0 upstream.
Sunrise Point PCH with SPS Firmware doesn't expose working MEI interface, we need to quirk it out.
The SPS Firmware is identifiable only on the first PCI function of the device.
--- drivers/misc/mei/hw-me.c | 10 ++++++++-- drivers/misc/mei/pci-me.c | 4 ++-- 2 files changed, 10 insertions(+), 4 deletions(-)
drivers/misc/mei/hw-me.c +8 -2
@@ -1263,8 +1263,14 @@ static bool mei_me_fw_type_nm(struct pcistatic bool mei_me_fw_type_sps (struct pci_dev *pdev) {u32 reg; -/* Read ME FW Status check for SPS Firmware */ -pci_read_config_dword (pdev,PCI_CFG_HFS_1 , ®); +unsigned int devfn; + +/* +* Read ME FW Status register to check for SPS Firmware +* The SPS FW is only signaled in pci function 0 +*/ + devfn =PCI_DEVFN (PCI_SLOT (pdev->devfn),0 ); +pci_bus_read_config_dword (pdev->bus, devfn,PCI_CFG_HFS_1 , ®);trace_mei_pci_cfg_read (&pdev->dev,"PCI_CFG_HFS_1" ,PCI_CFG_HFS_1 , reg);/* if bits [19:16] = 15, running SPS Firmware */ return (reg &0xf0000 ) ==0xf0000 ;
drivers/misc/mei/pci-me.c +2 -2
@@ -85,8 +85,8 @@ static const struct pci_device_id mei_me {MEI_PCI_DEVICE(MEI_DEV_ID_SPT, mei_me_pch8_cfg)}, {MEI_PCI_DEVICE(MEI_DEV_ID_SPT_2, mei_me_pch8_cfg)}, - {MEI_PCI_DEVICE(MEI_DEV_ID_SPT_H, mei_me_pch8_cfg)}, - {MEI_PCI_DEVICE(MEI_DEV_ID_SPT_H_2, mei_me_pch8_cfg)}, + {MEI_PCI_DEVICE(MEI_DEV_ID_SPT_H, mei_me_pch8_sps_cfg)}, + {MEI_PCI_DEVICE(MEI_DEV_ID_SPT_H_2, mei_me_pch8_sps_cfg)}, {MEI_PCI_DEVICE(MEI_DEV_ID_BXT_M, mei_me_pch8_cfg)}, {MEI_PCI_DEVICE(MEI_DEV_ID_APL_I, mei_me_pch8_cfg)},
Patches currently in stable-queue which might be from [email protected] are
queue-4.7/mei-me-disable-driver-on-spt-sps-firmware.patch