From: Matthew Rosato <mjrosato@linux.ibm.com>
To: Jason Gunthorpe <jgg@nvidia.com>, schnelle@linux.ibm.com
Cc: linux-s390@vger.kernel.org, alex.williamson@redhat.com,
cohuck@redhat.com, farman@linux.ibm.com, pmorel@linux.ibm.com,
borntraeger@linux.ibm.com, hca@linux.ibm.com, gor@linux.ibm.com,
gerald.schaefer@linux.ibm.com, agordeev@linux.ibm.com,
svens@linux.ibm.com, frankja@linux.ibm.com, david@redhat.com,
imbrenda@linux.ibm.com, vneethv@linux.ibm.com,
oberpar@linux.ibm.com, freude@linux.ibm.com, thuth@redhat.com,
pasic@linux.ibm.com, Robin Murphy <robin.murphy@arm.com>
Subject: Re: s390-iommu.c default domain conversion
Date: Tue, 10 May 2022 11:25:54 -0400 [thread overview]
Message-ID: <ef3ea28b-ccfb-f354-bd6d-6290a2aa4b3e@linux.ibm.com> (raw)
In-Reply-To: <20220509233552.GT49344@nvidia.com>
On 5/9/22 7:35 PM, Jason Gunthorpe wrote:
> Hi s390 folks/Matthew
>
> Since everyone is looking at iommu support for the nested domains,
> could we also tackle the default domain conversion please? s390 is one
> of the last 4 drivers that need it.
>
> From what I can see it looks like when detach_dev() is called it
> expects the platform's dma_ops to work in arch/s390/pci/pci_dma.c ?
Yes
>
> Has anyone thought about converting the dma_ops to use the normal DMA
> API iommu support and run it through the iommu driver instead of
> through the dma_ops?
>
> Alternatively perhaps we can keep the dma_ops with some iommu
> side-change.
It has come up before. So ultimately the goal is to be driving the dma
through the default iommu domain (via dma-iommu) rather than directly in
the dma_ops? One of our main concerns is performance loss from s390-ism
optimizations in the dma_ops like RPCIT avoidance / lazy map + global
flush (maybe I am wrong or something can be generalized through the api
- or something is already there that will work). Of course there are
some obvious benefits too, we have some duplication of work between
s390-iommu.c and arch/s390/pci/pci_dma.c
I think the reality is that Niklas and I need to have a close look and
do some testing on our end to see what it will take and if we can get
acceptable performance from a conversion, then get back to you.
Thanks,
Matt
next prev parent reply other threads:[~2022-05-10 15:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-09 23:35 s390-iommu.c default domain conversion Jason Gunthorpe
2022-05-10 15:25 ` Matthew Rosato [this message]
2022-05-10 16:09 ` Jason Gunthorpe
2022-05-20 13:05 ` Niklas Schnelle
2022-05-20 13:44 ` Jason Gunthorpe
2022-05-20 15:17 ` Niklas Schnelle
2022-05-20 15:51 ` Robin Murphy
2022-05-20 15:56 ` Jason Gunthorpe
2022-05-20 16:26 ` Niklas Schnelle
2022-05-20 16:43 ` Jason Gunthorpe
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=ef3ea28b-ccfb-f354-bd6d-6290a2aa4b3e@linux.ibm.com \
--to=mjrosato@linux.ibm.com \
--cc=agordeev@linux.ibm.com \
--cc=alex.williamson@redhat.com \
--cc=borntraeger@linux.ibm.com \
--cc=cohuck@redhat.com \
--cc=david@redhat.com \
--cc=farman@linux.ibm.com \
--cc=frankja@linux.ibm.com \
--cc=freude@linux.ibm.com \
--cc=gerald.schaefer@linux.ibm.com \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=imbrenda@linux.ibm.com \
--cc=jgg@nvidia.com \
--cc=linux-s390@vger.kernel.org \
--cc=oberpar@linux.ibm.com \
--cc=pasic@linux.ibm.com \
--cc=pmorel@linux.ibm.com \
--cc=robin.murphy@arm.com \
--cc=schnelle@linux.ibm.com \
--cc=svens@linux.ibm.com \
--cc=thuth@redhat.com \
--cc=vneethv@linux.ibm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox