Am 22.06.2015 um 18:17 schrieb Christoph Hellwig: >> +#ifdef ARCH_HAS_NOCACHE_UACCESS > > Seems like this is always define for x86 anyway? > >> +/** >> + * arch_memcpy_to_pmem - copy data to persistent memory >> + * @dst: destination buffer for the copy >> + * @src: source buffer for the copy >> + * @n: length of the copy in bytes >> + * >> + * Copy data to persistent memory media via non-temporal stores so that >> + * a subsequent arch_wmb_pmem() can flush cpu and memory controller >> + * write buffers to guarantee durability. >> + */ > static inline void arch_memcpy_to_pmem(void __pmem *dst, const void *src, > size_t n) > > Too long line. Also why not simply arch_copy_{from,to}_pmem? > >> +#else /* ARCH_HAS_NOCACHE_UACCESS i.e. ARCH=um */ > > Oh, UM. I'd rather see UM fixed to provide these. > > Richard, any chance you could look into it?
Not sure if I understand this correctly, is the plan to support pmem also on UML? At least drivers/block/pmem.c cannot work on UML as it depends on io memory. Only x86 seems to have ARCH_HAS_NOCACHE_UACCESS, if UML would offer these methods what drivers need them? I'm still not sure where it would make sense on UML as uaccess on UML means ptrace() between host and guest process. Thanks, //richard -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/