From: John Garry <john.garry@huawei.com>
To: <tglx@linutronix.de>, Christoph Hellwig <hch@lst.de>
Cc: Marc Zyngier <marc.zyngier@arm.com>,
"axboe@kernel.dk" <axboe@kernel.dk>,
Keith Busch <keith.busch@intel.com>,
Peter Zijlstra <peterz@infradead.org>,
Michael Ellerman <mpe@ellerman.id.au>,
Linuxarm <linuxarm@huawei.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"Hannes Reinecke" <hare@suse.com>
Subject: Question on handling managed IRQs when hotplugging CPUs
Date: Tue, 29 Jan 2019 11:25:48 +0000 [thread overview]
Message-ID: <f6f6e031-8b79-439d-c2af-8d3e76f30710@huawei.com> (raw)
Hi,
I have a question on $subject which I hope you can shed some light on.
According to commit c5cb83bb337c25 ("genirq/cpuhotplug: Handle managed
IRQs on CPU hotplug"), if we offline the last CPU in a managed IRQ
affinity mask, the IRQ is shutdown.
The reasoning is that this IRQ is thought to be associated with a
specific queue on a MQ device, and the CPUs in the IRQ affinity mask are
the same CPUs associated with the queue. So, if no CPU is using the
queue, then no need for the IRQ.
However how does this handle scenario of last CPU in IRQ affinity mask
being offlined while IO associated with queue is still in flight?
Or if we make the decision to use queue associated with the current CPU,
and then that CPU (being the last CPU online in the queue's IRQ
afffinity mask) goes offline and we finish the delivery with another CPU?
In these cases, when the IO completes, it would not be serviced and timeout.
I have actually tried this on my arm64 system and I see IO timeouts.
Thanks in advance,
John
next reply other threads:[~2019-01-29 11:26 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-29 11:25 John Garry [this message]
2019-01-29 11:54 ` Question on handling managed IRQs when hotplugging CPUs Hannes Reinecke
2019-01-29 12:01 ` Thomas Gleixner
2019-01-29 15:27 ` John Garry
2019-01-29 16:27 ` Thomas Gleixner
2019-01-29 17:23 ` John Garry
2019-01-29 15:44 ` Keith Busch
2019-01-29 17:12 ` John Garry
2019-01-29 17:20 ` Keith Busch
2019-01-30 10:38 ` John Garry
2019-01-30 12:43 ` Thomas Gleixner
2019-01-31 17:48 ` John Garry
2019-02-01 15:56 ` Hannes Reinecke
2019-02-01 21:57 ` Thomas Gleixner
2019-02-04 7:12 ` Hannes Reinecke
2019-02-05 13:24 ` John Garry
2019-02-05 14:52 ` Keith Busch
2019-02-05 15:09 ` John Garry
2019-02-05 15:11 ` Keith Busch
2019-02-05 15:15 ` Hannes Reinecke
2019-02-05 15:27 ` John Garry
2019-02-05 18:23 ` Christoph Hellwig
2019-02-06 9:21 ` John Garry
2019-02-06 13:34 ` Benjamin Block
2019-02-05 15:10 ` Hannes Reinecke
2019-02-05 15:16 ` Keith Busch
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=f6f6e031-8b79-439d-c2af-8d3e76f30710@huawei.com \
--to=john.garry@huawei.com \
--cc=axboe@kernel.dk \
--cc=hare@suse.com \
--cc=hch@lst.de \
--cc=keith.busch@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxarm@huawei.com \
--cc=marc.zyngier@arm.com \
--cc=mpe@ellerman.id.au \
--cc=peterz@infradead.org \
--cc=tglx@linutronix.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.