From: Bjorn Helgaas <helgaas@kernel.org>
To: Sunil Muthuswamy <sunilmut@microsoft.com>
Cc: "Marc Zyngier" <maz@kernel.org>,
"Michael Kelley" <mikelley@microsoft.com>,
"Boqun Feng" <Boqun.Feng@microsoft.com>,
"KY Srinivasan" <kys@microsoft.com>,
"Haiyang Zhang" <haiyangz@microsoft.com>,
"Stephen Hemminger" <sthemmin@microsoft.com>,
"Dexuan Cui" <decui@microsoft.com>,
"Lorenzo Pieralisi" <lorenzo.pieralisi@arm.com>,
"Rob Herring" <robh@kernel.org>,
"\"Krzysztof Wilczyński\"" <kw@linux.com>,
"Bjorn Helgaas" <bhelgaas@google.com>,
"Wei Liu" <wei.liu@kernel.org>,
"Thomas Gleixner" <tglx@linutronix.de>,
"Ingo Molnar" <mingo@redhat.com>,
"Borislav Petkov" <bp@alien8.de>,
"\"H. Peter Anvin\"" <hpa@zytor.com>,
"Arnd Bergmann" <arnd@arndb.de>,
"linux-hyperv@vger.kernel.org" <linux-hyperv@vger.kernel.org>,
"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2 1/2] PCI: hv: Make the code arch neutral
Date: Fri, 8 Oct 2021 14:16:52 -0500 [thread overview]
Message-ID: <20211008191652.GA1364497@bhelgaas> (raw)
In-Reply-To: <MW4PR21MB2002C5BFFD9DCB9C3B2AF9E8C0B29@MW4PR21MB2002.namprd21.prod.outlook.com>
Can you put some specifics in the subject line, please? If this patch
does several things, that might be an indication that it should be
split into several patches.
On Fri, Oct 08, 2021 at 05:20:35PM +0000, Sunil Muthuswamy wrote:
> This patch makes the Hyper-V vPCI code architectural neutral by
> introducing an irqchip that takes care of architectural
> dependencies. This allows for the implementation of Hyper-V vPCI
> for other architecture such as ARM64.
No need to include "This patch"; we already know we're talking about
this patch.
Write in "imperative mood", e.g., "Encapsulate arch dependencies in
X ..." instead of "This patch makes the code ...". See
https://chris.beams.io/posts/git-commit/
Wrap the text to fill 75 columns.
You said this "introduces an irqchip", but I don't see a new
struct irq_chip or similar.
The important part about making this arch-neutral seems to be adding
these interfaces that will encapsulate arch dependencies:
hv_pci_irqchip_init()
hv_pci_irqchip_free()
hv_msi_get_int_vector()
hv_set_msi_entry_from_desc()
hv_msi_prepare()
I'm not sure wrapping them in "#ifdef CONFIG_X86_64" is the best
approach, but the IRQ folks will know better.
> +++ b/drivers/pci/controller/pci-hyperv-irqchip.c
> @@ -0,0 +1,51 @@
> +// SPDX-License-Identifier: GPL-2.0
> +
Spurious blank line (follow style of nearby files).
> +/*
> + * Hyper-V vPCI irqchip.
> +++ b/drivers/pci/controller/pci-hyperv-irqchip.h
> @@ -0,0 +1,21 @@
> +/* SPDX-License-Identifier: GPL-2.0 */
> +
Spurious blank line (follow style of nearby files).
> +/*
> + * Architecture specific vector management for the Hyper-V vPCI.
next prev parent reply other threads:[~2021-10-08 19:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-08 17:20 [PATCH v2 1/2] PCI: hv: Make the code arch neutral Sunil Muthuswamy
2021-10-08 19:16 ` Bjorn Helgaas [this message]
2021-10-08 19:55 ` [EXTERNAL] " Sunil Muthuswamy
2021-10-13 6:06 ` Boqun Feng
2021-10-13 19:44 ` [EXTERNAL] " Sunil Muthuswamy
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=20211008191652.GA1364497@bhelgaas \
--to=helgaas@kernel.org \
--cc=Boqun.Feng@microsoft.com \
--cc=arnd@arndb.de \
--cc=bhelgaas@google.com \
--cc=bp@alien8.de \
--cc=decui@microsoft.com \
--cc=haiyangz@microsoft.com \
--cc=hpa@zytor.com \
--cc=kw@linux.com \
--cc=kys@microsoft.com \
--cc=linux-hyperv@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lorenzo.pieralisi@arm.com \
--cc=maz@kernel.org \
--cc=mikelley@microsoft.com \
--cc=mingo@redhat.com \
--cc=robh@kernel.org \
--cc=sthemmin@microsoft.com \
--cc=sunilmut@microsoft.com \
--cc=tglx@linutronix.de \
--cc=wei.liu@kernel.org \
/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