From: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
To: linux-kernel@vger.kernel.org
Cc: dan.carpenter@oracle.com, stefan.wahren@i2se.com,
Nicolas Saenz Julienne <nsaenzjulienne@suse.de>,
linux-rpi-kernel@lists.infradead.org,
linux-arm-kernel@lists.infradead.org, devel@driverdev.osuosl.org
Subject: [PATCH v3 0/4] staging: vchiq: use interruptible waits
Date: Thu, 9 May 2019 16:31:32 +0200 [thread overview]
Message-ID: <20190509143137.31254-1-nsaenzjulienne@suse.de> (raw)
Hi,
this series tries to address an issue that came up in Raspbian's kernel
tree [1] and upstream distros [2][3].
We adopted some changes that moved wait calls from a custom
implementation to the more standard killable family of functions. Users
complained that all the VCHIQ threads showed up in D state (which is the
expected behaviour).
The custom implementation we deleted tried to mimic the killable family
of functions, yet accepted more signals than the later; SIGKILL |
SIGINT | SIGQUIT | SIGTRAP | SIGSTOP | SIGCONT for the custom
implementation as opposed to plain old SIGKILL.
Raspbian maintainers decided roll back some of those changes and leave
the wait functions as interruptible. Hence creating some divergence
between both trees.
One could argue that not liking having the threads stuck in D state is
not really a software issue. It's more a cosmetic thing that can scare
people when they look at "uptime". On the other hand, if we are ever to
unstage this driver, we'd really need a proper justification for using
the killable family of functions. Which I think it's not really clear at
the moment.
As Raspbian's kernel has been working for a while with interruptible
waits I propose we follow through. If needed we can always go back to
killable. But at least we'll have a proper understanding on the actual
needs. In the end the driver is in staging, and the potential for errors
small.
The first 3 commits fix the issue, and should probably get in as soon as
possible, the last commit is just cosmetic and can wait until 5.3.
Regards,
Nicolas
[1] https://github.com/raspberrypi/linux/issues/2881
[2] https://archlinuxarm.org/forum/viewtopic.php?f=65&t=13485
[3] https://lists.fedoraproject.org/archives/list/arm@lists.fedoraproject.org/message/GBXGJ7DOV5CQQXFPOZCXTRD6W4BEPT4Q/
--
Changes since v2:
- Cleaned up revert commit message
- Rebase & merge conflict resolutions
- Add code cleanup suggested by Dan Carpenter
Changes since v1:
- Proplery format revert commits
- Add code comment to remind of this issue
- Add Fixes tags
Nicolas Saenz Julienne (4):
staging: vchiq_2835_arm: revert "quit using custom
down_interruptible()"
staging: vchiq: revert "switch to wait_for_completion_killable"
staging: vchiq: make wait events interruptible
staging: vchiq: stop explicitly comparing with zero to catch errors
.../bcm2835-camera/bcm2835-camera.c | 11 ++-
.../interface/vchiq_arm/vchiq_2835_arm.c | 2 +-
.../interface/vchiq_arm/vchiq_arm.c | 85 +++++++++----------
.../interface/vchiq_arm/vchiq_connected.c | 4 +-
.../interface/vchiq_arm/vchiq_core.c | 53 +++++++-----
.../interface/vchiq_arm/vchiq_debugfs.c | 4 +-
.../interface/vchiq_arm/vchiq_util.c | 6 +-
7 files changed, 82 insertions(+), 83 deletions(-)
--
2.21.0
next reply other threads:[~2019-05-09 14:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-09 14:31 Nicolas Saenz Julienne [this message]
2019-05-09 14:31 ` [PATCH v3 1/4] staging: vchiq_2835_arm: revert "quit using custom down_interruptible()" Nicolas Saenz Julienne
2019-05-15 9:52 ` Stefan Wahren
2019-05-09 14:31 ` [PATCH v3 2/4] staging: vchiq: revert "switch to wait_for_completion_killable" Nicolas Saenz Julienne
2019-05-09 14:31 ` [PATCH v3 3/4] staging: vchiq: make wait events interruptible Nicolas Saenz Julienne
2019-05-09 14:31 ` [PATCH v3 4/4] staging: vchiq: stop explicitly comparing with zero to catch errors Nicolas Saenz Julienne
2019-05-09 14:41 ` Dan Carpenter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190509143137.31254-1-nsaenzjulienne@suse.de \
--to=nsaenzjulienne@suse.de \
--cc=dan.carpenter@oracle.com \
--cc=devel@driverdev.osuosl.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rpi-kernel@lists.infradead.org \
--cc=stefan.wahren@i2se.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®