mei: me: do not reset when less than expected data is received
authorTomas Winkler <tomas.winkler@intel.com>
Sun, 2 Mar 2014 22:21:28 +0000 (00:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Mar 2014 22:49:41 +0000 (15:49 -0700)
commitb1b94b5d387e3a1f034c308e22f9295828d7174a
tree131a47df93abde60908304e8dd57983651b0c7cf
parent07792c7e102110b9e7243c5c6aca891041272b67
mei: me: do not reset when less than expected data is received

There is a race in ME hardware between data copy for host and interrupt
delivery. An interrupt can be delivered prior to whole data copied for the
host to read but rather then going trough the reset we just merely need to
wait for the next interrupt.

The bug is visible in read/write stress with multiple connections per client

This is a regression caused as a side effect of the commit:
commit 544f94601409653f07ae6e22d4a39e3a90dceead
mei: do not run reset flow from the interrupt thread

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Cc: stable <stable@vger.kernel.org> # 3.14
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/hw-me.c
drivers/misc/mei/interrupt.c