All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefano Stabellini <sstabellini@kernel.org>
To: Julien Grall <Julien.Grall@arm.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>,
	Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>,
	Oleksandr Tyshchenko <olekstysh@gmail.com>,
	Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>,
	"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
	nd <nd@arm.com>,
	"volodymyr_babchuk@epam.com" <volodymyr_babchuk@epam.com>
Subject: Re: [Xen-devel] [PATCH V6 0/8] iommu/arm: Add Renesas IPMMU-VMSA support + Linux's iommu_fwspec
Date: Mon, 30 Sep 2019 13:58:39 -0700 (PDT)	[thread overview]
Message-ID: <alpine.DEB.2.21.1909301339100.2594@sstabellini-ThinkPad-T480s> (raw)
In-Reply-To: <96bea916-74a0-fa8e-582c-a702d43483c2@arm.com>

[-- Attachment #1: Type: text/plain, Size: 2823 bytes --]

On Sat, 28 Sep 2019, Julien Grall wrote:
> On 28/09/2019 00:52, Oleksandr Tyshchenko wrote:
> > сб, 28 сент. 2019 г., 01:50 Stefano Stabellini <sstabellini@kernel.org 
> > <mailto:sstabellini@kernel.org>>:
> > 
> >     On Thu, 26 Sep 2019, Oleksandr wrote:
> >      > On 26.09.19 17:56, Julien Grall wrote:
> >      > > Hi,
> >      >
> >      > Hi Julien
> >      >
> >      >
> >      > >
> >      > > On 9/26/19 12:20 PM, Oleksandr Tyshchenko wrote:
> >      > > > Oleksandr Tyshchenko (8):
> >      > > >    iommu/arm: Add iommu_helpers.c file to keep common for
> >     IOMMUs stuff
> >      > > >    iommu/arm: Add ability to handle deferred probing request
> >      > > >    xen/common: Introduce _xrealloc function
> >      > > >    xen/common: Introduce xrealloc_flex_struct() helper macros
> >      > > >    iommu/arm: Add lightweight iommu_fwspec support
> >      > > >    iommu: Order the headers alphabetically in device_tree.c
> >      > > >    iommu/arm: Introduce iommu_add_dt_device API
> >      > > >    iommu/arm: Add Renesas IPMMU-VMSA support
> >      > >
> >      > > This series is now merged.
> >      >
> >      > Thank you!
> > 
> >     I just wanted to provide early feedback that this series causes problems
> >     with the legacy mmu-masters binding:
> > 
> > 
> > This series was developed in a way to add new functionality, but not to 
> > brake existing (legacy bindings). Probably, I missed something 
> > important. iommu_add_dt_device() could return an error (I assume, this 
> > is what you are facing) if the device node in DT contains "iommus" 
> > property (I mean, uses new bindings), but the IOMMU driver doesn't 
> > implement required callbacks yet. Do the device nodes in your DT contain 
> > "iommus" property? And to which domain these devices (in your log) are 
> > going to be assigned (dom0 or other domains?).
> 
> Looking at the bindings, I don't think it is legit to have a node using 
> both legacy and generic binding together. If this is what happens, then 
> I would consider it as unsupported.

I have just sent a fix for this.

The issue is that some Xilinx device trees expose both the legacy and
generic bindings, however, only one set of bindings is supposed to be
used, either the legacy or the generic bindings (not both!). Linux
solves this problem by probing for the existence of "mmu-masters" (the
legacy bindings property) very early on and disabling the generic
bindings if "mmu-masters" is present.

Something like that would work for Xen too, but I chatted with Julien
and came up with something simpler. (Also keeping in mind that a new
colleague of mine has just started working on generic bindings support
for the ARM SMMU driver in Xen so this issue will go away soon). See:

https://marc.info/?l=xen-devel&m=156987707614744

[-- Attachment #2: Type: text/plain, Size: 157 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  reply	other threads:[~2019-09-30 20:59 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-26 11:20 [Xen-devel] [PATCH V6 0/8] iommu/arm: Add Renesas IPMMU-VMSA support + Linux's iommu_fwspec Oleksandr Tyshchenko
2019-09-26 11:20 ` [Xen-devel] [PATCH V6 1/8] iommu/arm: Add iommu_helpers.c file to keep common for IOMMUs stuff Oleksandr Tyshchenko
2019-09-26 11:20 ` [Xen-devel] [PATCH V6 2/8] iommu/arm: Add ability to handle deferred probing request Oleksandr Tyshchenko
2019-09-26 11:20 ` [Xen-devel] [PATCH V6 3/8] xen/common: Introduce _xrealloc function Oleksandr Tyshchenko
2019-09-26 12:19   ` Jan Beulich
2019-09-26 13:39     ` Oleksandr
2019-09-26 11:20 ` [Xen-devel] [PATCH V6 4/8] xen/common: Introduce xrealloc_flex_struct() helper macros Oleksandr Tyshchenko
2019-09-26 11:20 ` [Xen-devel] [PATCH V6 5/8] iommu/arm: Add lightweight iommu_fwspec support Oleksandr Tyshchenko
2019-09-26 11:20 ` [Xen-devel] [PATCH V6 6/8] iommu: Order the headers alphabetically in device_tree.c Oleksandr Tyshchenko
2019-09-26 11:20 ` [Xen-devel] [PATCH V6 7/8] iommu/arm: Introduce iommu_add_dt_device API Oleksandr Tyshchenko
2019-09-26 12:52   ` Julien Grall
2019-09-26 13:34     ` Oleksandr
2019-09-26 14:34     ` Jan Beulich
2019-09-26 11:20 ` [Xen-devel] [PATCH V6 8/8] iommu/arm: Add Renesas IPMMU-VMSA support Oleksandr Tyshchenko
2019-09-26 12:22   ` Jan Beulich
2019-09-26 13:32     ` Oleksandr
2019-09-26 14:56 ` [Xen-devel] [PATCH V6 0/8] iommu/arm: Add Renesas IPMMU-VMSA support + Linux's iommu_fwspec Julien Grall
2019-09-26 15:16   ` Oleksandr
2019-09-27 22:50     ` Stefano Stabellini
2019-09-27 23:52       ` Oleksandr Tyshchenko
2019-09-28  9:36         ` Julien Grall
2019-09-30 20:58           ` Stefano Stabellini [this message]
2019-10-01  9:23             ` Oleksandr

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=alpine.DEB.2.21.1909301339100.2594@sstabellini-ThinkPad-T480s \
    --to=sstabellini@kernel.org \
    --cc=Julien.Grall@arm.com \
    --cc=nd@arm.com \
    --cc=oleksandr_tyshchenko@epam.com \
    --cc=olekstysh@gmail.com \
    --cc=volodymyr_babchuk@epam.com \
    --cc=xen-devel@lists.xenproject.org \
    --cc=yoshihiro.shimoda.uh@renesas.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.