* s390 PCI dma ops
@ 2020-09-11 7:27 Christoph Hellwig
2020-09-11 14:39 ` Matthew Rosato
0 siblings, 1 reply; 2+ messages in thread
From: Christoph Hellwig @ 2020-09-11 7:27 UTC (permalink / raw)
To: Matthew Rosato, Gerald Schaefer, Niklas Schnelle; +Cc: linux-s390
Hi S/390 PCI and IOMMU maintainers,
We've recently tried to convert all implementations of the IOMMU API to
use drivers/iommu/dma-iommu.c instead of their local IOMMU ops. I've
looked at S/390 and while some comments mention things about the iommu
API the implementation looks quite separate. Do arch/s390/pci/pci_dma.c
and drivers/iommu/s390-iommu.c driver the same hardware? If so would a
switch to drivers/iommu/dma-iommu.c be feasibel?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: s390 PCI dma ops
2020-09-11 7:27 s390 PCI dma ops Christoph Hellwig
@ 2020-09-11 14:39 ` Matthew Rosato
0 siblings, 0 replies; 2+ messages in thread
From: Matthew Rosato @ 2020-09-11 14:39 UTC (permalink / raw)
To: Christoph Hellwig, Gerald Schaefer, Niklas Schnelle; +Cc: linux-s390
On 9/11/20 3:27 AM, Christoph Hellwig wrote:
> Hi S/390 PCI and IOMMU maintainers,
>
> We've recently tried to convert all implementations of the IOMMU API to
> use drivers/iommu/dma-iommu.c instead of their local IOMMU ops. I've
> looked at S/390 and while some comments mention things about the iommu
> API the implementation looks quite separate. Do arch/s390/pci/pci_dma.c
> and drivers/iommu/s390-iommu.c driver the same hardware? If so would a
Yes, these drivers are dealing with the same hardware.
> switch to drivers/iommu/dma-iommu.c be feasibel?
>
Hmm... s390 does some particular things that are arch-specific, largely
as forms of optimization. One such example is a case where we avoid
reusing IO TLB Page Table Entries until we have to do a global flush.
I'd need to take a closer look at what AMD did / what intel is doing.
Fundamentally we are open to the idea as the maintenance benefit is
clear, but I don't think it's a trivial swap - I think we would need
extensions to dma-iommu to accommodate some of our special cases /
optimizations.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-11 15:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-11 7:27 s390 PCI dma ops Christoph Hellwig
2020-09-11 14:39 ` Matthew Rosato
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox