On 2022-07-05 10:43, Christoph Hellwig wrote: > On Tue, Jul 05, 2022 at 10:41:52AM -0600, Logan Gunthorpe wrote: >> Using sysfs means we don't need all the messy callbacks from the nvme >> driver, which is a plus. But I'm not sure how we'd get or unmap the >> mapping of a sysfs file or avoid the anonymous inode. Seems with the >> existing PCI resources, it uses an bin_attribute->f_mapping() callback >> to pass back the iomem_get_mapping() mapping on file open. >> revoke_iomem() is then used to nuke the VMAs. I don't think we can use >> the same infrastructure here as that would add a dependency on >> CONFIG_IO_STRICT_DEVMEM; which would be odd. And I'm not sure whether >> there is a better way. > > Why can't we do the revoke on the actual sysfs inode? We might be able to. I'm not sure. I'll have to figure out how to find that inode from the p2pdma code. I haven't found an obvious interface to do that. Logan _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu
- Re: [PATCH v7 20/21] PCI/P2PDMA: Introduce pci_mma... Christoph Hellwig
- Re: [PATCH v7 20/21] PCI/P2PDMA: Introduce pci... Logan Gunthorpe
- Re: [PATCH v7 20/21] PCI/P2PDMA: Introduce... Jason Gunthorpe
- Re: [PATCH v7 20/21] PCI/P2PDMA: Intro... Christoph Hellwig
- Re: [PATCH v7 20/21] PCI/P2PDMA: ... Jason Gunthorpe
- Re: [PATCH v7 20/21] PCI/P2PD... Christoph Hellwig
- Re: [PATCH v7 20/21] PCI/P2PD... Jason Gunthorpe
- Re: [PATCH v7 20/21] PCI/P2PD... Christoph Hellwig
- Re: [PATCH v7 20/21] PCI/P2PD... Logan Gunthorpe
- Re: [PATCH v7 20/21] PCI/P2PD... Christoph Hellwig
- Re: [PATCH v7 20/21] PCI/P2PD... Logan Gunthorpe
- Re: [PATCH v7 20/21] PCI/P2PD... Christoph Hellwig
- Re: [PATCH v7 20/21] PCI/P2PD... Greg Kroah-Hartman
- Re: [PATCH v7 20/21] PCI/P2PD... Logan Gunthorpe
- Re: [PATCH v7 20/21] PCI/P2PD... Greg Kroah-Hartman
- Re: [PATCH v7 20/21] PCI/P2PD... Logan Gunthorpe
- Re: [PATCH v7 20/21] PCI/P2PD... Christoph Hellwig
- Re: [PATCH v7 20/21] PCI/P2PD... Greg Kroah-Hartman
- Re: [PATCH v7 20/21] PCI/P2PD... Logan Gunthorpe
- [PATCH v7 19/21] block: set FOLL_PCI_P2PDMA in bio_map_... Logan Gunthorpe
- [PATCH v7 14/21] mm: introduce FOLL_PCI_P2PDMA to gate ... Logan Gunthorpe