mei: dma: silent the reject message
Subsystems (3)
PATCH 1/3 mei: dma: silent the reject message
Not all FW versions support DMA on their first release, hence it is normal behavior to receive a reject response upon DMA setup request.
In order to prevent confusion, the DMA setup reject message is printed only in debug level.
Cc <[email protected]> #v5.0+
Signed-off-by Tomas Winkler <[email protected]>
--- drivers/misc/mei/hbm.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)
drivers/misc/mei/hbm.c +9 -3
@@ -1187,9 +1187,15 @@ int mei_hbm_dispatch(struct mei_device *dev, struct mei_msg_hdr *hdr) dma_setup_res = (struct hbm_dma_setup_response *)mei_msg;if (dma_setup_res->status) { -dev_info (dev->dev,"hbm: dma setup response: failure = %d %s\n" , - dma_setup_res->status, -mei_hbm_status_str (dma_setup_res->status)); +u8 status = dma_setup_res->status; + +if (status ==MEI_HBMS_NOT_ALLOWED ) { +dev_dbg (dev->dev,"hbm: dma setup not allowed\n" ); + }else { +dev_info (dev->dev,"hbm: dma setup response: failure = %d %s\n" , + status, +mei_hbm_status_str (status)); + } dev->hbm_f_dr_supported =0 ;mei_dmam_ring_free (dev); }
Signature · 1 line
2.20.1
PATCH 2/3 mei: me: mark LBG devices as having dma support
From: Alexander Usyskin <[email protected]>
The LBG server platform sports DMA support.
Cc <[email protected]> #v5.0+
Signed-off-by Alexander Usyskin <[email protected]>
Signed-off-by Tomas Winkler <[email protected]>
--- drivers/misc/mei/pci-me.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/mei/pci-me.c +1 -1
@@ -88,7 +88,7 @@ static const struct pci_device_id mei_me_pci_tbl[] = { {MEI_PCI_DEVICE(MEI_DEV_ID_SPT_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_LBG, MEI_ME_PCH8_CFG)}, + {MEI_PCI_DEVICE(MEI_DEV_ID_LBG, MEI_ME_PCH12_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)},
Signature · 1 line
2.20.1
PATCH 3/3 mei: me: add denverton innovation engine device IDs
In reply to Tomas WinklerAdd the Denverton innovation engine (IE) device ids. The IE is an ME-like device which provides HW security offloading.
Cc <[email protected]>
Signed-off-by Tomas Winkler <[email protected]>
Signed-off-by Alexander Usyskin <[email protected]>
--- drivers/misc/mei/hw-me-regs.h | 2 ++ drivers/misc/mei/pci-me.c | 2 ++ 2 files changed, 4 insertions(+)
drivers/misc/mei/hw-me-regs.h +2 -0
@@ -127,6 +127,8 @@#define MEI_DEV_ID_BXT_M 0x1A9A/* Broxton M */ #define MEI_DEV_ID_APL_I 0x5A9A/* Apollo Lake I */ +#define MEI_DEV_ID_DNV_IE 0x19E5/* Denverton IE */ +#define MEI_DEV_ID_GLK 0x319A/* Gemini Lake */ #define MEI_DEV_ID_KBP 0xA2BA/* Kaby Point */
drivers/misc/mei/pci-me.c +2 -0
@@ -93,6 +93,8 @@ static const struct pci_device_id mei_me_pci_tbl[] = { {MEI_PCI_DEVICE(MEI_DEV_ID_BXT_M, MEI_ME_PCH8_CFG)}, {MEI_PCI_DEVICE(MEI_DEV_ID_APL_I, MEI_ME_PCH8_CFG)}, + {MEI_PCI_DEVICE(MEI_DEV_ID_DNV_IE, MEI_ME_PCH8_CFG)}, + {MEI_PCI_DEVICE(MEI_DEV_ID_GLK, MEI_ME_PCH8_CFG)}, {MEI_PCI_DEVICE(MEI_DEV_ID_KBP, MEI_ME_PCH8_CFG)},
Signature · 1 line
2.20.1