[RFC 5/8] scatterlist: Modify SG copy functions to support io memory.
Logan Gunthorpe
logang at deltatee.com
Fri Mar 31 08:41:56 PDT 2017
On 31/03/17 01:09 AM, Christoph Hellwig wrote:
> You're calling memcpy_{to,from}_iomem on non-__iomem pointers. This
> is a fundamental no-go as we keep I/O memory separate from kernel
> pointers.
Yes, that's true, however I don't know how we could get around that when
the iomem is referenced by struct pages inside a scatter gather list. Do
we need to now have special __iomem sgls? And even still, I'm not sure
how that could work when the nvme target code is using the same sgls to
sometimes point to iomem and sometimes point to regular memory.
I'm certainly open to suggestions, though.
Logan
More information about the Linux-nvme
mailing list