From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
To: Stefano Stabellini <sstabellini@kernel.org>
Cc: edgar.iglesias@xilinx.com, Julien Grall <julien.grall@arm.com>,
xen-devel@lists.xen.org
Subject: Re: [PATCH v1 1/1] xen/arm: Relax hw domain mapping attributes to p2m_mmio_direct_c
Date: Thu, 26 Jan 2017 13:52:58 +0100 [thread overview]
Message-ID: <20170126125258.GI9606@toto> (raw)
In-Reply-To: <alpine.DEB.2.10.1701191042400.10192@sstabellini-ThinkPad-X260>
On Thu, Jan 19, 2017 at 10:46:03AM -0800, Stefano Stabellini wrote:
> On Thu, 19 Jan 2017, Julien Grall wrote:
> > Hi Edgar,
> >
> > On 10/01/2017 11:37, Edgar E. Iglesias wrote:
> > > From: "Edgar E. Iglesias" <edgar.iglesias@xilinx.com>
> > >
> > > Relax the hardware domains mapping attributes to p2m_mmio_direct_c.
> > > This will allow the hardware domain to fully control the
> > > attribtues via its S1 mappings.
> >
> > s/attribtues/attributes/
> >
> > I would like some rationale in the commit message to explain why it is fine to
> > do this relaxation (e.g the hardware domain is a trusted domain).
> >
> > A such relaxation would probably be necessary for the ACPI case too (see
> > map_dev_mmio_region).
> >
> > Also, this is a revert of patch 1e75ed8 and 9eed361 + relaxation, I would
> > either mention it in the commit message. Or send separate patch to revert both
> > of them. Either way will be fine by me.
> >
> > >
> > > Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
> > > ---
> > > xen/arch/arm/domain_build.c | 63
> > > ++++++++++-----------------------------------
> > > 1 file changed, 13 insertions(+), 50 deletions(-)
> > >
> > > diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c
> > > index 07b868d..a3521c7 100644
> > > --- a/xen/arch/arm/domain_build.c
> > > +++ b/xen/arch/arm/domain_build.c
> > > @@ -48,20 +48,6 @@ struct map_range_data
> > > p2m_type_t p2mt;
> > > };
> > >
> > > -static const struct dt_device_match dev_map_attrs[] __initconst =
> > > -{
> > > - {
> > > - __DT_MATCH_COMPATIBLE("mmio-sram"),
> > > - __DT_MATCH_PROP("no-memory-wc"),
> > > - .data = (void *) (uintptr_t) p2m_mmio_direct_dev,
> > > - },
> > > - {
> > > - __DT_MATCH_COMPATIBLE("mmio-sram"),
> > > - .data = (void *) (uintptr_t) p2m_mmio_direct_nc,
> > > - },
> > > - { /* sentinel */ },
> > > -};
> > > -
> > > //#define DEBUG_11_ALLOCATION
> > > #ifdef DEBUG_11_ALLOCATION
> > > # define D11PRINT(fmt, args...) printk(XENLOG_DEBUG fmt, ##args)
> > > @@ -1005,8 +991,7 @@ static int map_range_to_domain(const struct
> > > dt_device_node *dev,
> > > u64 addr, u64 len,
> > > void *data)
> > > {
> > > - struct map_range_data *mr_data = data;
> >
> > I would actually prefer to keep the plumbing and only remove dev_map_attrs.
> > Stefano do you have any opinions?
>
> I would keep the plumbings too (9eed361a), but I am fine either way.
Thanks, I've changed the patch to keep the plumbing from 9eed361a.
Cheers,
Edgar
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2017-01-26 12:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-10 11:37 [PATCH v1 0/1] xen/arm: Relax hw domain mapping attributes to p2m_mmio_direct_c Edgar E. Iglesias
2017-01-10 11:37 ` [PATCH v1 1/1] " Edgar E. Iglesias
2017-01-19 12:40 ` Julien Grall
2017-01-19 18:46 ` Stefano Stabellini
2017-01-26 12:52 ` Edgar E. Iglesias [this message]
2017-01-26 12:52 ` Edgar E. Iglesias
2017-01-26 12:58 ` Julien Grall
2017-01-26 13:18 ` Edgar E. Iglesias
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=20170126125258.GI9606@toto \
--to=edgar.iglesias@gmail.com \
--cc=edgar.iglesias@xilinx.com \
--cc=julien.grall@arm.com \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xen.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;
as well as URLs for NNTP newsgroup(s).