mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Marc Zyngier <marc.zyngier@arm.com>
To: linux-kernel@vger.kernel.org
Cc: Thomas Gleixner <tglx@linutronix.de>,
	Jason Cooper <jason@lakedaemon.net>,
	Shanker Donthineni <shankerd@codeaurora.org>,
	Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>,
	Christoffer Dall <cdall@linaro.org>,
	Eric Auger <eric.auger@redhat.com>
Subject: [PATCH 00/10] irqchip: Proposed GICv4 updates for 4.15
Date: Tue, 10 Oct 2017 13:51:27 +0100	[thread overview]
Message-ID: <20171010125137.9464-1-marc.zyngier@arm.com> (raw)

The core GICv4 code has been merged in 4.14, but there is some
additional nails to be hammered on that coffin, and this is what
this short series tries to achieve.

The first three patches have been posted before, and implement a
workaround for the HiSilicon Hip07 (aka D05) platform.

The following 5 patches change the way we perform VPE mappings.
Instead of always mapping all VPEs on all ITSs, it is much more
optimal to only map them on the ITSs that will dispatch interrupts the
VPEs could be interested in (i.e. the ITS that is directly connected
to a device assigned to that VM). This results in a bit of refcounting
so that we can perform mapping/unmappingas VLPIs get themselves
mapped/unmapped. In turn, VMOVP becomes much cheaper on systems that
have multiple ITSs.

Patch 9 is a small optimization to avoid spamming all the ITSs
with VINVALL when a guest emits an INVALL, since it is enough to emit
a single one on the first v4 ITS we find.

Finally, the last patch prevents irqbalance and co from messing
with the doorbell interrupts by making the affinity of those to
be only managed by the kernel. This reduces the VMOVP traffic by
a substancial amount and avoid unnecessary exits.

This has been tested on a Huawei D05 system, together with the rest of
the KVM GICv4 series[1]. I'd welcome further testing on alternative
GICv4 platforms.

	M.

[1] https://lwn.net/Articles/735882/

Marc Zyngier (10):
  irqchip/gic-v3-its: Add post-mortem info on command timeout
  irqchip/gic-v3-its: Pass its_node pointer to each command builder
  irqchip/gic-v3-its: Workaround HiSilicon Hip07 redistributor
    addressing
  irqchip/gic-v3-its: Track per-ITS list number
  irqchip/gic-v3-its: Make GICv4_ITS_LIST_MAX globally available
  irqchip/gic-v3-its: Make its_send_vinvall operate on a single ITS
  irqchip/gic-v3-its: Make its_send_vmapp operate on a single ITS
  irqchip/gic-v3-its: Limit scope of VPE mapping to be per ITS
  irqchip/gic-v3-its: Only send VINVALL to a single ITS
  irqchip/gic-v4: Make the doorbells managed affinity interrupts

 Documentation/arm64/silicon-errata.txt |   1 +
 arch/arm64/Kconfig                     |   9 ++
 drivers/irqchip/irq-gic-v3-its.c       | 252 +++++++++++++++++++++++++--------
 drivers/irqchip/irq-gic-v4.c           |  35 ++++-
 include/linux/irqchip/arm-gic-v4.h     |   8 ++
 5 files changed, 246 insertions(+), 59 deletions(-)

-- 
2.11.0

             reply	other threads:[~2017-10-10 12:51 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-10 12:51 Marc Zyngier [this message]
2017-10-10 12:51 ` [PATCH 01/10] irqchip/gic-v3-its: Add post-mortem info on command timeout Marc Zyngier
2017-10-10 12:51 ` [PATCH 02/10] irqchip/gic-v3-its: Pass its_node pointer to each command builder Marc Zyngier
2017-10-10 12:51 ` [PATCH 03/10] irqchip/gic-v3-its: Workaround HiSilicon Hip07 redistributor addressing Marc Zyngier
2017-10-10 12:51 ` [PATCH 04/10] irqchip/gic-v3-its: Track per-ITS list number Marc Zyngier
2017-10-10 12:51 ` [PATCH 05/10] irqchip/gic-v3-its: Make GICv4_ITS_LIST_MAX globally available Marc Zyngier
2017-10-10 12:51 ` [PATCH 06/10] irqchip/gic-v3-its: Make its_send_vinvall operate on a single ITS Marc Zyngier
2017-10-10 12:51 ` [PATCH 07/10] irqchip/gic-v3-its: Make its_send_vmapp " Marc Zyngier
2017-10-10 12:51 ` [PATCH 08/10] irqchip/gic-v3-its: Limit scope of VPE mapping to be per ITS Marc Zyngier
2017-10-10 12:51 ` [PATCH 09/10] irqchip/gic-v3-its: Only send VINVALL to a single ITS Marc Zyngier
2017-10-10 12:51 ` [PATCH 10/10] irqchip/gic-v4: Make the doorbells managed affinity interrupts Marc Zyngier
2017-10-12  9:22   ` Thomas Gleixner
2017-10-12 14:38     ` Marc Zyngier

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=20171010125137.9464-1-marc.zyngier@arm.com \
    --to=marc.zyngier@arm.com \
    --cc=cdall@linaro.org \
    --cc=eric.auger@redhat.com \
    --cc=jason@lakedaemon.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=shameerali.kolothum.thodi@huawei.com \
    --cc=shankerd@codeaurora.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 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®