From: Hanjun Guo <guohanjun@huawei.com>
To: Tomasz Nowicki <tn@semihalf.com>,
marc.zyngier@arm.com, tglx@linutronix.de, jason@lakedaemon.net,
rjw@rjwysocki.net, lorenzo.pieralisi@arm.com,
robert.richter@caviumnetworks.com
Cc: Suravee.Suthikulpanit@amd.com, graeme.gregory@linaro.org,
Catalin.Marinas@arm.com, will.deacon@arm.com,
linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org,
hanjun.guo@linaro.org, ddaney.cavm@gmail.com,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH V1 10/10] acpi, gicv3, its: Use MADT ITS subtable to do PCI/MSI domain initialization.
Date: Sat, 24 Oct 2015 18:20:30 +0800 [thread overview]
Message-ID: <562B5B6E.2000305@huawei.com> (raw)
In-Reply-To: <1444917919-21152-11-git-send-email-tn@semihalf.com>
On 2015/10/15 22:05, Tomasz Nowicki wrote:
> After refactoring DT code, we let ACPI to build ITS PCI MSI domain
> and do requester ID to device ID translation using IORT table.
>
> We have now full PCI MSI domain stack, thus we can enable ITS initialization
> from GICv3 core driver for ACPI scenario.
>
> Signed-off-by: Tomasz Nowicki <tn@semihalf.com>
> ---
> drivers/irqchip/irq-gic-v3-its-pci-msi.c | 48 ++++++++++++++++++++++++++++++--
> drivers/irqchip/irq-gic-v3.c | 3 +-
> 2 files changed, 47 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/irqchip/irq-gic-v3-its-pci-msi.c b/drivers/irqchip/irq-gic-v3-its-pci-msi.c
> index cfd35da..09ae2d8 100644
> --- a/drivers/irqchip/irq-gic-v3-its-pci-msi.c
> +++ b/drivers/irqchip/irq-gic-v3-its-pci-msi.c
> @@ -15,6 +15,8 @@
> * along with this program. If not, see <http://www.gnu.org/licenses/>.
> */
>
> +#include <linux/acpi.h>
> +#include <linux/iort.h>
> #include <linux/msi.h>
> #include <linux/of.h>
> #include <linux/of_irq.h>
> @@ -59,8 +61,10 @@ static int its_pci_msi_vec_count(struct pci_dev *pdev)
> static int its_get_pci_alias(struct pci_dev *pdev, u16 alias, void *data)
> {
> struct its_pci_alias *dev_alias = data;
> + u32 dev_id;
>
> - dev_alias->dev_id = alias;
> + dev_alias->dev_id = iort_find_pci_id(pdev, alias, &dev_id) == 0 ?
> + dev_id : alias;
Hi tomasz, I think we need to re work this patch on top of tip/irq/core
which has support for "msi-map" and "mai-parent" property support.
Thanks
Hanjun
WARNING: multiple messages have this Message-ID (diff)
From: guohanjun@huawei.com (Hanjun Guo)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH V1 10/10] acpi, gicv3, its: Use MADT ITS subtable to do PCI/MSI domain initialization.
Date: Sat, 24 Oct 2015 18:20:30 +0800 [thread overview]
Message-ID: <562B5B6E.2000305@huawei.com> (raw)
In-Reply-To: <1444917919-21152-11-git-send-email-tn@semihalf.com>
On 2015/10/15 22:05, Tomasz Nowicki wrote:
> After refactoring DT code, we let ACPI to build ITS PCI MSI domain
> and do requester ID to device ID translation using IORT table.
>
> We have now full PCI MSI domain stack, thus we can enable ITS initialization
> from GICv3 core driver for ACPI scenario.
>
> Signed-off-by: Tomasz Nowicki <tn@semihalf.com>
> ---
> drivers/irqchip/irq-gic-v3-its-pci-msi.c | 48 ++++++++++++++++++++++++++++++--
> drivers/irqchip/irq-gic-v3.c | 3 +-
> 2 files changed, 47 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/irqchip/irq-gic-v3-its-pci-msi.c b/drivers/irqchip/irq-gic-v3-its-pci-msi.c
> index cfd35da..09ae2d8 100644
> --- a/drivers/irqchip/irq-gic-v3-its-pci-msi.c
> +++ b/drivers/irqchip/irq-gic-v3-its-pci-msi.c
> @@ -15,6 +15,8 @@
> * along with this program. If not, see <http://www.gnu.org/licenses/>.
> */
>
> +#include <linux/acpi.h>
> +#include <linux/iort.h>
> #include <linux/msi.h>
> #include <linux/of.h>
> #include <linux/of_irq.h>
> @@ -59,8 +61,10 @@ static int its_pci_msi_vec_count(struct pci_dev *pdev)
> static int its_get_pci_alias(struct pci_dev *pdev, u16 alias, void *data)
> {
> struct its_pci_alias *dev_alias = data;
> + u32 dev_id;
>
> - dev_alias->dev_id = alias;
> + dev_alias->dev_id = iort_find_pci_id(pdev, alias, &dev_id) == 0 ?
> + dev_id : alias;
Hi tomasz, I think we need to re work this patch on top of tip/irq/core
which has support for "msi-map" and "mai-parent" property support.
Thanks
Hanjun
WARNING: multiple messages have this Message-ID (diff)
From: Hanjun Guo <guohanjun@huawei.com>
To: Tomasz Nowicki <tn@semihalf.com>, <marc.zyngier@arm.com>,
<tglx@linutronix.de>, <jason@lakedaemon.net>, <rjw@rjwysocki.net>,
<lorenzo.pieralisi@arm.com>, <robert.richter@caviumnetworks.com>
Cc: <will.deacon@arm.com>, <Catalin.Marinas@arm.com>,
<hanjun.guo@linaro.org>, <graeme.gregory@linaro.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>, <linux-acpi@vger.kernel.org>,
<ddaney.cavm@gmail.com>, <Suravee.Suthikulpanit@amd.com>
Subject: Re: [PATCH V1 10/10] acpi, gicv3, its: Use MADT ITS subtable to do PCI/MSI domain initialization.
Date: Sat, 24 Oct 2015 18:20:30 +0800 [thread overview]
Message-ID: <562B5B6E.2000305@huawei.com> (raw)
In-Reply-To: <1444917919-21152-11-git-send-email-tn@semihalf.com>
On 2015/10/15 22:05, Tomasz Nowicki wrote:
> After refactoring DT code, we let ACPI to build ITS PCI MSI domain
> and do requester ID to device ID translation using IORT table.
>
> We have now full PCI MSI domain stack, thus we can enable ITS initialization
> from GICv3 core driver for ACPI scenario.
>
> Signed-off-by: Tomasz Nowicki <tn@semihalf.com>
> ---
> drivers/irqchip/irq-gic-v3-its-pci-msi.c | 48 ++++++++++++++++++++++++++++++--
> drivers/irqchip/irq-gic-v3.c | 3 +-
> 2 files changed, 47 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/irqchip/irq-gic-v3-its-pci-msi.c b/drivers/irqchip/irq-gic-v3-its-pci-msi.c
> index cfd35da..09ae2d8 100644
> --- a/drivers/irqchip/irq-gic-v3-its-pci-msi.c
> +++ b/drivers/irqchip/irq-gic-v3-its-pci-msi.c
> @@ -15,6 +15,8 @@
> * along with this program. If not, see <http://www.gnu.org/licenses/>.
> */
>
> +#include <linux/acpi.h>
> +#include <linux/iort.h>
> #include <linux/msi.h>
> #include <linux/of.h>
> #include <linux/of_irq.h>
> @@ -59,8 +61,10 @@ static int its_pci_msi_vec_count(struct pci_dev *pdev)
> static int its_get_pci_alias(struct pci_dev *pdev, u16 alias, void *data)
> {
> struct its_pci_alias *dev_alias = data;
> + u32 dev_id;
>
> - dev_alias->dev_id = alias;
> + dev_alias->dev_id = iort_find_pci_id(pdev, alias, &dev_id) == 0 ?
> + dev_id : alias;
Hi tomasz, I think we need to re work this patch on top of tip/irq/core
which has support for "msi-map" and "mai-parent" property support.
Thanks
Hanjun
next prev parent reply other threads:[~2015-10-24 10:20 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-15 14:05 [PATCH V1 00/10] Introduce ACPI world to GICv3 and ITS irqchips Tomasz Nowicki
2015-10-15 14:05 ` Tomasz Nowicki
2015-10-15 14:05 ` Tomasz Nowicki
2015-10-15 14:05 ` [PATCH V1 01/10] irqchip / GICv3: Refactor gic_of_init() for GICv3 driver Tomasz Nowicki
2015-10-15 14:05 ` Tomasz Nowicki
2015-10-15 14:05 ` [PATCH V1 02/10] irqchip / GICv3: Add ACPI support for GICv3+ initialization Tomasz Nowicki
2015-10-15 14:05 ` Tomasz Nowicki
2015-10-15 14:05 ` [PATCH V1 03/10] irqchip, GICv3, ACPI: Add redistributor support via GICC structures Tomasz Nowicki
2015-10-15 14:05 ` [PATCH V1 03/10] irqchip,GICv3,ACPI: " Tomasz Nowicki
2015-10-15 14:05 ` [PATCH V1 03/10] irqchip, GICv3, ACPI: " Tomasz Nowicki
2015-10-15 14:05 ` [PATCH V1 04/10] irqchip / GICv3: remove gic root node in ITS Tomasz Nowicki
2015-10-15 14:05 ` Tomasz Nowicki
2015-10-15 14:05 ` [PATCH V1 05/10] irqchip, gicv3, its: Mark its_init() and its children as __init Tomasz Nowicki
2015-10-15 14:05 ` Tomasz Nowicki
2015-10-15 14:05 ` Tomasz Nowicki
2015-10-15 14:05 ` [PATCH V1 06/10] irqchip/GICv3/ITS: Refator ITS dt init code to prepare for ACPI Tomasz Nowicki
2015-10-15 14:05 ` Tomasz Nowicki
2015-10-15 14:05 ` Tomasz Nowicki
2015-10-15 14:05 ` [PATCH V1 07/10] ARM64, ACPI, PCI: I/O Remapping Table (IORT) initial support Tomasz Nowicki
2015-10-15 14:05 ` Tomasz Nowicki
2015-10-15 14:05 ` [PATCH V1 08/10] irqchip, gicv3, its: Probe ITS in the ACPI way Tomasz Nowicki
2015-10-15 14:05 ` Tomasz Nowicki
2015-10-15 14:05 ` [PATCH V1 09/10] acpi, gicv3, msi: Factor out code that might be reused for ACPI equivalent Tomasz Nowicki
2015-10-15 14:05 ` Tomasz Nowicki
2015-10-15 14:05 ` [PATCH V1 10/10] acpi, gicv3, its: Use MADT ITS subtable to do PCI/MSI domain initialization Tomasz Nowicki
2015-10-15 14:05 ` Tomasz Nowicki
2015-10-24 10:20 ` Hanjun Guo [this message]
2015-10-24 10:20 ` Hanjun Guo
2015-10-24 10:20 ` Hanjun Guo
2015-10-24 13:58 ` Tomasz Nowicki
2015-10-24 13:58 ` Tomasz Nowicki
2015-11-17 7:11 ` Huang Shijie
2015-11-17 7:11 ` Huang Shijie
2015-11-17 9:03 ` Hanjun Guo
2015-11-17 9:03 ` Hanjun Guo
2015-11-17 9:03 ` Hanjun Guo
2015-11-17 9:30 ` Huang Shijie
2015-11-17 9:30 ` Huang Shijie
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=562B5B6E.2000305@huawei.com \
--to=guohanjun@huawei.com \
--cc=Catalin.Marinas@arm.com \
--cc=Suravee.Suthikulpanit@amd.com \
--cc=ddaney.cavm@gmail.com \
--cc=graeme.gregory@linaro.org \
--cc=hanjun.guo@linaro.org \
--cc=jason@lakedaemon.net \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lorenzo.pieralisi@arm.com \
--cc=marc.zyngier@arm.com \
--cc=rjw@rjwysocki.net \
--cc=robert.richter@caviumnetworks.com \
--cc=tglx@linutronix.de \
--cc=tn@semihalf.com \
--cc=will.deacon@arm.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 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.