patch "mei: ignore not found client in the enumeration" added to char-misc-linus
Subsystems (3)
This is a note to let you know that I've just added the patch titled
mei: ignore not found client in the enumeration
to my char-misc git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git
in the char-misc-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
Quoted 1 line
From
8d2d8935d30cc2acc57a3196dc10dfa8d5cbcdabMon Sep 17 00:00:00 2001
From: Alexander Usyskin <[email protected]>
Date: Mon, 6 Aug 2018 17:47:33 +0300
Subject: mei: ignore not found client in the enumeration
Some of the ME clients are available only for BIOS operation and are removed during hand off to an OS. However the removal is not instant. A client may be visible on the client list when the mei driver requests for enumeration, while the subsequent request for properties will be answered with client not found error value. The default behavior for an error is to perform client reset while this error is harmless and the link reset should be prevented. This issue started to be visible due to suspend/resume timing changes. Currently reported only on the Haswell based system.
Fixes:
[33.564957] mei_me 0000:00:16.0: hbm: properties response: wrong status = 1 CLIENT_NOT_FOUND [33.564978] mei_me 0000:00:16.0: mei_irq_read_handler ret = -71. [33.565270] mei_me 0000:00:16.0: unexpected reset: dev_state = INIT_CLIENTS fw status = 1E000255 60002306 00000200 00004401 00000000 00000010
--- drivers/misc/mei/hbm.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/misc/mei/hbm.c +6 -3
@@ -1161,15 +1161,18 @@ int mei_hbm_dispatch(struct mei_device *dev, struct mei_msg_hdr *hdr) props_res = (struct hbm_props_response *)mei_msg; -if (props_res->status) { +if (props_res->status ==MEI_HBMS_CLIENT_NOT_FOUND ) { +dev_dbg (dev->dev,"hbm: properties response: %d CLIENT_NOT_FOUND\n" , + props_res->me_addr); + }else if (props_res->status) {dev_err (dev->dev,"hbm: properties response: wrong status = %d %s\n" , props_res->status,mei_hbm_status_str (props_res->status));return -EPROTO ; + }else { +mei_hbm_me_cl_add (dev, props_res); } -mei_hbm_me_cl_add (dev, props_res); -/* request property for the next client */ if (mei_hbm_prop_req (dev, props_res->me_addr +1 ))return -EIO ;
Signature · 1 line
2.18.0