From: Christoph Hellwig <hch-jcswGhMUV9g@public.gmane.org>
To: Stefano Stabellini <sstabellini-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: jgross-IBi9RG/b67k@public.gmane.org,
iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org,
julien.grall-5wv7dgnIgG8@public.gmane.org,
xen-devel-GuqFBffKawtpuQazS67q72D2FQJk+8+b@public.gmane.org,
boris.ostrovsky-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org,
Christoph Hellwig <hch-jcswGhMUV9g@public.gmane.org>
Subject: Re: [PATCH] arm64/xen: fix xen-swiotlb cache flushing
Date: Sat, 19 Jan 2019 10:43:01 +0100 [thread overview]
Message-ID: <20190119094301.GB21653@lst.de> (raw)
In-Reply-To: <alpine.DEB.2.10.1901181612150.18561@sstabellini-ThinkPad-X260>
[full quote deleted, please take a little more care when quoting]
On Fri, Jan 18, 2019 at 04:44:23PM -0800, Stefano Stabellini wrote:
> > #ifdef CONFIG_XEN
> > - if (xen_initial_domain()) {
> > - dev->archdata.dev_dma_ops = dev->dma_ops;
> > + if (xen_initial_domain())
> > dev->dma_ops = xen_dma_ops;
> > - }
> > #endif
> > }
>
> This is an optional suggestion, but it would be nice to add a check on
> dev->dma_ops being unset here, something like:
>
> #ifdef CONFIG_XEN
> if (xen_initial_domain()) {
> if (dev->dma_ops != NULL)
> warning/error
> dev->dma_ops = xen_dma_ops;
> }
>
> Does it make sense?
Well, no such check existed before, so this probably should be a
separate patch if we care enough. I have a series for 5.1 pending
that moves the IOMMU handling to the comment code which will make
the ops assginment a lot cleaner, and I guess I could fold such
a check in that. Doing it now will just create churn as it would
have to get reworked anyway
> Reviewed-by: Stefano Stabellini <sstabellini-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Where should we pick this up? I could pick it up through the dma-mapping
tree given that is where the problem is introduced, but the Xen or arm64
trees would also fit.
next prev parent reply other threads:[~2019-01-19 9:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-17 17:18 [PATCH] arm64/xen: fix xen-swiotlb cache flushing Christoph Hellwig
2019-01-19 0:44 ` Stefano Stabellini
[not found] ` <20190117171842.26173-1-hch-jcswGhMUV9g@public.gmane.org>
2019-01-19 0:44 ` Stefano Stabellini
2019-01-19 9:43 ` Christoph Hellwig [this message]
2019-01-21 23:56 ` Stefano Stabellini
2019-01-22 17:22 ` Christoph Hellwig
2019-01-19 9:43 ` Christoph Hellwig
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=20190119094301.GB21653@lst.de \
--to=hch-jcswghmuv9g@public.gmane.org \
--cc=boris.ostrovsky-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org \
--cc=iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
--cc=jgross-IBi9RG/b67k@public.gmane.org \
--cc=julien.grall-5wv7dgnIgG8@public.gmane.org \
--cc=sstabellini-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=xen-devel-GuqFBffKawtpuQazS67q72D2FQJk+8+b@public.gmane.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 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.