Skip to content

mei: add timeout to send

Alexander Usyskin intel-gfx lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 4 repliesIn review
  2. v21 patch 3 repliesSuperseded
  3. v11 patch 3 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mei: add timeout to senddrivers/misc/mei/bus-fixup.c drivers/misc/mei/bus.c drivers/misc/mei/client.c +3 more+46 -90 replies
2/2mei: bus-fixup: change pxp mode only if message was sentdrivers/misc/mei/bus-fixup.c+4 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/2] mei: add timeout to send

When driver wakes up the firmware from the low power state, it is sending a memory ready message.
The send is done via synchronous/blocking function to ensure that firmware is in ready state. However, in case of firmware undergoing reset send might be block forever.
To address this issue a timeout is added to blocking write command on the internal bus.

Introduce the __mei_cl_send_timeout function to use instead of __mei_cl_send in cases where timeout is required.
The mei_cl_write has only two callers and there is no need to split it into two functions.

V2: address review comments:
- split __mei_cl_send and __mei_cl_send_timeout
- add units to timeout KDoc
- use MAX_SCHEDULE_TIMEOUT to squash wait to one macro

V3: - split the state fix into separate patch
- document define unit
- expand timeout KDoc

Alexander Usyskin (2):
mei: add timeout to send
mei: bus-fixup: change pxp mode only if message was sent

 drivers/misc/mei/bus-fixup.c | 14 +++++++++-----
 drivers/misc/mei/bus.c       | 22 +++++++++++++++++++++-
 drivers/misc/mei/client.c    | 20 ++++++++++++++++----
 drivers/misc/mei/client.h    |  2 +-
 drivers/misc/mei/main.c      |  2 +-
 drivers/misc/mei/mei_dev.h   |  2 ++
 6 files changed, 50 insertions(+), 12 deletions(-)
Signature · 1 line
2.34.1