]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'net-ipa-don-t-disable-napi-in-suspend'
authorJakub Kicinski <kuba@kernel.org>
Wed, 3 Feb 2021 01:42:37 +0000 (17:42 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 3 Feb 2021 01:42:38 +0000 (17:42 -0800)
commit76a6f27c939e2c704decf38f3765d5f9c7ecaa1d
tree129e6a5d7c3d77f7a427f9d25760f482bf4e361d
parent6d0be49b56d708b8dc3055b06884112d0d9482c5
parentb5e3949dc673d149acc1ca60a273447db05b3f3b
Merge branch 'net-ipa-don-t-disable-napi-in-suspend'

Alex Elder says:

====================
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/20210129202019.2099259-1-elder@linaro.org/

Many thanks to Willem de Bruijn for his thoughtful input.
====================

Link: https://lore.kernel.org/r/20210201172850.2221624-1-elder@linaro.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>