Skip to content

net: ipa: don't disable NAPI in suspend

Alex Elder lkml netdev 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 2 repliesApplied
  2. v19 patches 11 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/7net: ipa: don't thaw channel if error startingdrivers/net/ipa/gsi.c+4 -20 replies
2/7net: ipa: introduce gsi_channel_stop_retry()drivers/net/ipa/gsi.c+15 -50 replies
3/7net: ipa: introduce __gsi_channel_start()drivers/net/ipa/gsi.c+37 -340 replies
4/7net: ipa: kill gsi_channel_freeze() and gsi_channel_thaw()drivers/net/ipa/gsi.c+12 -250 replies
5/7net: ipa: disable interrupt and NAPI after channel stopdrivers/net/ipa/gsi.c+9 -90 replies
6/7net: ipa: don't disable interrupt on suspenddrivers/net/ipa/gsi.c+29 -150 replies
7/7net: ipa: expand last transaction checkdrivers/net/ipa/gsi.c+25 -90 replies

Reviews trailers per patch

None of the 7 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchWillem de Bruijn
SeriesA-b
1/7
2/7
3/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH net-next v2 0/7] net: ipa: don't disable NAPI in suspend

This is version 2 of a series that reworks the order in which things happen during channel stop and suspend (and start and resume), in order to address a hang that has been observed during suspend. The introductory message on the first version of the series gave some history which is omitted here.

The end result of this series is that we only enable NAPI and the I/O completion interrupt on a channel when we start the channel for the first time. And we only disable them when stopping the channel "for good." In other words, NAPI and the completion interrupt remain enabled while a channel is stopped for suspend.

One comment on version 1 of the series suggested *not* returning early on success in a function, instead having both success and error paths return from the same point at the end of the function block. This has been addressed in this version.

In addition, this version consolidates things a little bit, but the net result of the series is exactly the same as version 1 (with the exception of the return fix mentioned above).

First, patch 6 in the first version was a small step to make patch 7 easier to understand. The two have been combined now.

Second, previous version moved (and for suspend/resume, eliminated) I/O completion interrupt and NAPI disable/enable control in separate steps (patches). Now both are moved around together in patch 5 and 6, which eliminates the need for the final (NAPI-only) patch.

I won't repeat the patch summaries provided in v1:
https://lore.kernel.org/netdev/[email protected]/

Many thanks to Willem de Bruijn for his thoughtful input.

-Alex

Alex Elder (7):
net: ipa: don't thaw channel if error starting
net: ipa: introduce gsi_channel_stop_retry()
net: ipa: introduce __gsi_channel_start()
net: ipa: kill gsi_channel_freeze() and gsi_channel_thaw()
net: ipa: disable interrupt and NAPI after channel stop
net: ipa: don't disable interrupt on suspend
net: ipa: expand last transaction check

 drivers/net/ipa/gsi.c | 138 ++++++++++++++++++++++++++----------------
 1 file changed, 85 insertions(+), 53 deletions(-)
Signature · 1 line
2.27.0