COVER: Remove memcpy_page_flushcache()
cover COVER: Remove memcpy_page_flushcache()
Commit 21b56c847753 ("iov_iter: get rid of separate bvec and xarray callbacks") removed the calls to memcpy_page_flushcache().
kmap_atomic() is deprecated and used in the x86 version of memcpy_page_flushcache().
Remove the unnecessary memcpy_page_flushcache() call from all arch's.
---
Ira Weiny (3):
x86, uaccess: Remove memcpy_page_flushcache()
powerpc: Remove memcpy_page_flushcache()
arm: uaccess: Remove memcpy_page_flushcache()
arch/arm64/include/asm/uaccess.h | 2 -- arch/arm64/lib/uaccess_flushcache.c | 6 ------ arch/powerpc/include/asm/uaccess.h | 2 -- arch/powerpc/lib/pmem.c | 7 ------- arch/x86/include/asm/uaccess_64.h | 2 -- arch/x86/lib/usercopy_64.c | 9 --------- 6 files changed, 28 deletions(-)
---
base-commit: 6015b1aca1a233379625385feb01dd014aca60b5
change-id: 20221230-kmap-x86-bfda7e1f07ee
Best regards,
Signature · 1 line
Ira Weiny <[email protected]>
PATCH 1/3 x86, uaccess: Remove memcpy_page_flushcache()
Commit 21b56c847753 ("iov_iter: get rid of separate bvec and xarray callbacks") removed the calls to memcpy_page_flushcache().
kmap_atomic() is deprecated and used in memcpy_page_flushcache().
Remove the unnecessary memcpy_page_flushcache() call.
--- arch/x86/include/asm/uaccess_64.h | 2 -- arch/x86/lib/usercopy_64.c | 9 --------- 2 files changed, 11 deletions(-)
arch/x86/include/asm/uaccess_64.h +0 -2
@@ -62,8 +62,6 @@ extern long __copy_user_nocache(void *dst, const void __user *src, unsigned size, int zerorest);extern long __copy_user_flushcache (void *dst,const void __user *src,unsigned size); -extern void memcpy_page_flushcache (char *to,struct page *page,size_t offset, -size_t len); static inline int __copy_from_user_inatomic_nocache(void *dst, const void __user *src,
arch/x86/lib/usercopy_64.c +0 -9
@@ -136,13 +136,4 @@ void __memcpy_flushcache(void *_dst, const void *_src, size_t size) } }EXPORT_SYMBOL_GPL (__memcpy_flushcache); - -void memcpy_page_flushcache (char *to,struct page *page,size_t offset, -size_t len) -{ -char *from =kmap_atomic (page); - -memcpy_flushcache (to, from + offset, len); -kunmap_atomic (from); -}#endif
Signature · 1 line
2.39.2
PATCH 2/3 powerpc: Remove memcpy_page_flushcache()
In reply to Ira WeinyCommit 21b56c847753 ("iov_iter: get rid of separate bvec and xarray callbacks") removed the calls to memcpy_page_flushcache().
Remove the unnecessary memcpy_page_flushcache() call.
--- arch/powerpc/include/asm/uaccess.h | 2 -- arch/powerpc/lib/pmem.c | 7 ------- 2 files changed, 9 deletions(-)
arch/powerpc/include/asm/uaccess.h +0 -2
@@ -361,8 +361,6 @@ copy_mc_to_user(void __user *to, const void *from, unsigned long n)extern long __copy_from_user_flushcache (void *dst,const void __user *src,unsigned size); -extern void memcpy_page_flushcache (char *to,struct page *page,size_t offset, -size_t len);static __must_check inline bool user_access_begin (const void __user *ptr,size_t len) {
arch/powerpc/lib/pmem.c +0 -7
@@ -85,10 +85,3 @@ void memcpy_flushcache(void *dest, const void *src, size_t size)clean_pmem_range (start, start + size); }EXPORT_SYMBOL (memcpy_flushcache); - -void memcpy_page_flushcache (char *to,struct page *page,size_t offset, -size_t len) -{ -memcpy_flushcache (to,page_to_virt (page) + offset, len); -} -EXPORT_SYMBOL (memcpy_page_flushcache);
Signature · 1 line
2.39.2
PATCH 3/3 arm: uaccess: Remove memcpy_page_flushcache()
In reply to Ira WeinyCommit 21b56c847753 ("iov_iter: get rid of separate bvec and xarray callbacks") removed the calls to memcpy_page_flushcache().
Remove the unnecessary memcpy_page_flushcache() call.
--- arch/arm64/include/asm/uaccess.h | 2 -- arch/arm64/lib/uaccess_flushcache.c | 6 ------ 2 files changed, 8 deletions(-)
arch/arm64/include/asm/uaccess.h +0 -2
@@ -449,8 +449,6 @@ extern long strncpy_from_user(char *dest, const char __user *src, long count);extern __must_check long strnlen_user (const char __user *str,long n);#ifdef CONFIG_ARCH_HAS_UACCESS_FLUSHCACHE -struct page ; -void memcpy_page_flushcache (char *to,struct page *page,size_t offset,size_t len);extern unsigned long __must_check __copy_user_flushcache (void *to,const void __user *from,unsigned long n);static inline int __copy_from_user_flushcache (void *dst,const void __user *src,unsigned size)
arch/arm64/lib/uaccess_flushcache.c +0 -6
@@ -19,12 +19,6 @@ void memcpy_flushcache(void *dst, const void *src, size_t cnt) }EXPORT_SYMBOL_GPL (memcpy_flushcache); -void memcpy_page_flushcache (char *to,struct page *page,size_t offset, -size_t len) -{ -memcpy_flushcache (to,page_address (page) + offset, len); -} -unsigned long __copy_user_flushcache (void *to,const void __user *from,unsigned long n) {
Signature · 1 line
2.39.2
Quoted 7 lines · Ira Weiny
Commit
21b56c847753("iov_iter: get rid of separate bvec and xarray callbacks") removed the calls tomemcpy_page_flushcache().
kmap_atomic()is deprecated and used in the x86 version ofmemcpy_page_flushcache().Remove the unnecessary
memcpy_page_flushcache()call from all arch's.
Hi Ira,
Since the common code user is already gone these three patches seem quite independent. It seems like the right thing to do is have individual arch maintainers cherry pick their arch patch and carry it independently.
Is there a compelling reason to have someone pick up and carry these all together that I'm missing?
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 7 lines · Dave Hansen
Quoted 6 lines · Ira Weiny
Commit
21b56c847753("iov_iter: get rid of separate bvec and xarray callbacks") removed the calls tomemcpy_page_flushcache().
kmap_atomic()is deprecated and used in the x86 version ofmemcpy_page_flushcache().
Quoted 8 lines
Quoted 1 line
Remove the unnecessary
memcpy_page_flushcache()call from all arch's.Hi Ira,
Since the common code user is already gone these three patches seem quite independent. It seems like the right thing to do is have individual arch maintainers cherry pick their arch patch and carry it independently.
Yes.
Quoted 3 lines
Is there a compelling reason to have someone pick up and carry these all together that I'm missing?
No reason. Would you like me to submit them individually?
Sorry, submitting them separately crossed my mind when I wrote them but I kind of forgot as they were all on the same branch and I was waiting for after the merge window to submit them.
Ira
Michael Ellerman
reviewerQuoted 17 lines · Ira Weiny
Quoted 7 lines · Dave Hansen
Quoted 6 lines · Ira Weiny
Commit
21b56c847753("iov_iter: get rid of separate bvec and xarray callbacks") removed the calls tomemcpy_page_flushcache().
kmap_atomic()is deprecated and used in the x86 version ofmemcpy_page_flushcache().Quoted 8 lines
Quoted 1 line
Remove the unnecessary
memcpy_page_flushcache()call from all arch's.Hi Ira,
Since the common code user is already gone these three patches seem quite independent. It seems like the right thing to do is have individual arch maintainers cherry pick their arch patch and carry it independently.
Quoted 7 lines
Yes.
Quoted 3 lines
Is there a compelling reason to have someone pick up and carry these all together that I'm missing?
No reason. Would you like me to submit them individually?
I'll just grab the powerpc one from the thread, no need to resend.
Quoted 3 lines
Sorry, submitting them separately crossed my mind when I wrote them but I kind of forgot as they were all on the same branch and I was waiting for after the merge window to submit them.
It's also much easier to run git-send-email HEAD^^^, rather than running it three separate times, let alone if it's a 20 patch series.
I wonder if we could come up with some convention to indicate that a series is made up of independent patches, and maintainers are free to pick them individually - but still sent as a single series.
cheers
+ Konstantin
Quoted 21 lines · Michael Ellerman
Quoted 20 lines · Ira Weiny
Quoted 7 lines · Dave Hansen
Quoted 6 lines · Ira Weiny
Commit
21b56c847753("iov_iter: get rid of separate bvec and xarray callbacks") removed the calls tomemcpy_page_flushcache().
kmap_atomic()is deprecated and used in the x86 version ofmemcpy_page_flushcache().Quoted 8 lines
Quoted 1 line
Remove the unnecessary
memcpy_page_flushcache()call from all arch's.Hi Ira,
Since the common code user is already gone these three patches seem quite independent. It seems like the right thing to do is have individual arch maintainers cherry pick their arch patch and carry it independently.
Yes.
Quoted 1 line
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Is there a compelling reason to have someone pick up and carry these all together that I'm missing?
No reason. Would you like me to submit them individually?
I'll just grab the powerpc one from the thread, no need to resend.
Thanks.
Quoted 7 lines
Quoted 4 lines
Sorry, submitting them separately crossed my mind when I wrote them but I kind of forgot as they were all on the same branch and I was waiting for after the merge window to submit them.
It's also much easier to run git-send-email HEAD^^^, rather than running it three separate times, let alone if it's a 20 patch series.
Exactly. And I'm using b4 which would have forced me to create a separate branch for each of the patches to track. So I was keeping them around in a single branch to let 0day run after the merge window. Then I forgot about the idea of splitting them because b4 had it all packaged up nice!
Quoted 4 lines
I wonder if we could come up with some convention to indicate that a series is made up of independent patches, and maintainers are free to pick them individually - but still sent as a single series.
Maybe. But perhaps b4 could have a send option which would split them out? I'll see about adding an option to b4 but I've Cc'ed Konstantin as well for the idea.
Thanks for picking this up!
Ira
Quoted 2 lines
cheers
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Michael Ellerman
reviewerQuoted 47 lines · Ira Weiny
+ Konstantin
Quoted 21 lines · Michael Ellerman
Quoted 20 lines · Ira Weiny
Quoted 7 lines · Dave Hansen
Quoted 6 lines · Ira Weiny
Commit
21b56c847753("iov_iter: get rid of separate bvec and xarray callbacks") removed the calls tomemcpy_page_flushcache().
kmap_atomic()is deprecated and used in the x86 version ofmemcpy_page_flushcache().Quoted 8 lines
Quoted 1 line
Remove the unnecessary
memcpy_page_flushcache()call from all arch's.Hi Ira,
Since the common code user is already gone these three patches seem quite independent. It seems like the right thing to do is have individual arch maintainers cherry pick their arch patch and carry it independently.
Yes.
Quoted 1 line
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Is there a compelling reason to have someone pick up and carry these all together that I'm missing?
No reason. Would you like me to submit them individually?
I'll just grab the powerpc one from the thread, no need to resend.
Thanks.
Quoted 7 lines
Quoted 4 lines
Sorry, submitting them separately crossed my mind when I wrote them but I kind of forgot as they were all on the same branch and I was waiting for after the merge window to submit them.
It's also much easier to run git-send-email HEAD^^^, rather than running it three separate times, let alone if it's a 20 patch series.
Exactly. And I'm using b4 which would have forced me to create a separate branch for each of the patches to track. So I was keeping them around in a single branch to let 0day run after the merge window. Then I forgot about the idea of splitting them because b4 had it all packaged up nice!
Quoted 1 line
Quoted 7 lines
Quoted 3 lines
I wonder if we could come up with some convention to indicate that a series is made up of independent patches, and maintainers are free to pick them individually - but still sent as a single series.
Maybe. But perhaps b4 could have a send option which would split them out? I'll see about adding an option to b4 but I've Cc'ed Konstantin as well for the idea.
Yes you're right that's probably a better idea. b4 to the rescue!
cheers
Quoted 9 lines · Ira Weiny
Quoted 2 lines
It's also much easier to run git-send-email HEAD^^^, rather than running it three separate times, let alone if it's a 20 patch series.
Exactly. And I'm using b4 which would have forced me to create a separate branch for each of the patches to track. So I was keeping them around in a single branch to let 0day run after the merge window. Then I forgot about the idea of splitting them because b4 had it all packaged up nice!
Quoted 1 line
Quoted 7 lines
Quoted 3 lines
I wonder if we could come up with some convention to indicate that a series is made up of independent patches, and maintainers are free to pick them individually - but still sent as a single series.
Maybe. But perhaps b4 could have a send option which would split them out? I'll see about adding an option to b4 but I've Cc'ed Konstantin as well for the idea.
Yes, I plan to introduce the concept of "bundles" in addition to "series". The distinction is that when you send a bundle, each patch is sent as individual submission and we generate the change-id for each patch. It's a bit more work to send a v2 of some patch (you have to do a "prep -n --from-thread <msgid>"), but it's not insurmountable and should help with queuing up individual patches for sending post merge-window, like in your case.
-K
Will Deacon
maintainerQuoted 9 lines · Ira Weiny
Commit
21b56c847753("iov_iter: get rid of separate bvec and xarray callbacks") removed the calls tomemcpy_page_flushcache().
kmap_atomic()is deprecated and used in the x86 version ofmemcpy_page_flushcache().Remove the unnecessary
memcpy_page_flushcache()call from all arch's.[...]
Applied arm64 patch to arm64 (for-next/mm), thanks!
[3/3] arm: uaccess: Remove memcpy_page_flushcache()
https://git.kernel.org/arm64/c/7cae569e6209
Cheers,
Signature · 5 lines
Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev
Re: (subset) [PATCH 0/3] COVER: Remove memcpy_page_flushcache()
In reply to Ira WeinyQuoted 9 lines · Ira Weiny
Commit
21b56c847753("iov_iter: get rid of separate bvec and xarray callbacks") removed the calls tomemcpy_page_flushcache().
kmap_atomic()is deprecated and used in the x86 version ofmemcpy_page_flushcache().Remove the unnecessary
memcpy_page_flushcache()call from all arch's.[...]
Patch 2 applied to powerpc/next.
[2/3] powerpc: Remove memcpy_page_flushcache()
https://git.kernel.org/powerpc/c/0398abca61482ae47a41ae8f2401338aea366327
cheers