Skip to content

Commit d76bc82

Browse files
Tomas Winklergregkh
authored andcommitted
mei: me: disable mei interface on LBG servers.
Disable the MEI driver on LBG SPS (server) platforms, some corner flows such as recovery mode does not work, and the driver doesn't have working use cases. Cc: <[email protected]> Signed-off-by: Tomas Winkler <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 73faaa6 commit d76bc82

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

drivers/misc/mei/hw-me.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1465,6 +1465,13 @@ static const struct mei_cfg mei_me_pch12_cfg = {
14651465
MEI_CFG_DMA_128,
14661466
};
14671467

1468+
/* LBG with quirk for SPS Firmware exclusion */
1469+
static const struct mei_cfg mei_me_pch12_sps_cfg = {
1470+
MEI_CFG_PCH8_HFS,
1471+
MEI_CFG_FW_VER_SUPP,
1472+
MEI_CFG_FW_SPS,
1473+
};
1474+
14681475
/* Tiger Lake and newer devices */
14691476
static const struct mei_cfg mei_me_pch15_cfg = {
14701477
MEI_CFG_PCH8_HFS,
@@ -1487,6 +1494,7 @@ static const struct mei_cfg *const mei_cfg_list[] = {
14871494
[MEI_ME_PCH8_CFG] = &mei_me_pch8_cfg,
14881495
[MEI_ME_PCH8_SPS_CFG] = &mei_me_pch8_sps_cfg,
14891496
[MEI_ME_PCH12_CFG] = &mei_me_pch12_cfg,
1497+
[MEI_ME_PCH12_SPS_CFG] = &mei_me_pch12_sps_cfg,
14901498
[MEI_ME_PCH15_CFG] = &mei_me_pch15_cfg,
14911499
};
14921500

drivers/misc/mei/hw-me.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ struct mei_me_hw {
8080
* servers platforms with quirk for
8181
* SPS firmware exclusion.
8282
* @MEI_ME_PCH12_CFG: Platform Controller Hub Gen12 and newer
83+
* @MEI_ME_PCH12_SPS_CFG: Platform Controller Hub Gen12 and newer
84+
* servers platforms with quirk for
85+
* SPS firmware exclusion.
8386
* @MEI_ME_PCH15_CFG: Platform Controller Hub Gen15 and newer
8487
* @MEI_ME_NUM_CFG: Upper Sentinel.
8588
*/
@@ -93,6 +96,7 @@ enum mei_cfg_idx {
9396
MEI_ME_PCH8_CFG,
9497
MEI_ME_PCH8_SPS_CFG,
9598
MEI_ME_PCH12_CFG,
99+
MEI_ME_PCH12_SPS_CFG,
96100
MEI_ME_PCH15_CFG,
97101
MEI_ME_NUM_CFG,
98102
};

drivers/misc/mei/pci-me.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ static const struct pci_device_id mei_me_pci_tbl[] = {
7070
{MEI_PCI_DEVICE(MEI_DEV_ID_SPT_2, MEI_ME_PCH8_CFG)},
7171
{MEI_PCI_DEVICE(MEI_DEV_ID_SPT_H, MEI_ME_PCH8_SPS_CFG)},
7272
{MEI_PCI_DEVICE(MEI_DEV_ID_SPT_H_2, MEI_ME_PCH8_SPS_CFG)},
73-
{MEI_PCI_DEVICE(MEI_DEV_ID_LBG, MEI_ME_PCH12_CFG)},
73+
{MEI_PCI_DEVICE(MEI_DEV_ID_LBG, MEI_ME_PCH12_SPS_CFG)},
7474

7575
{MEI_PCI_DEVICE(MEI_DEV_ID_BXT_M, MEI_ME_PCH8_CFG)},
7676
{MEI_PCI_DEVICE(MEI_DEV_ID_APL_I, MEI_ME_PCH8_CFG)},

0 commit comments

Comments
 (0)