remove unnecessary cache flush on v6 copypage
PATCH v2 1/1 remove unnecessary cache flush on v6 copypage
ARM: mm: remove unnecessary cache flush on v6 copypage
Originally introduced to maintain coherency between icache and dcache in v6 nonaliasing mode. This is now handled by __sync_icache_dcache since c0177800, therefore unneceary in this function.
--arch/arm/mm/copypage-v6.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
arch/arm/mm/copypage-v6.c +0 -1
@@ -41,7 +41,6 @@ static void v6_copy_user_highpage_nonaliasing(struct page *to, kfrom =kmap_atomic (from,KM_USER0 ); kto =kmap_atomic (to,KM_USER1 );copy_page (kto, kfrom); -__cpuc_flush_dcache_area (kto,PAGE_SIZE );kunmap_atomic (kto,KM_USER1 );kunmap_atomic (kfrom,KM_USER0 ); }
Quoted 1 line · Heechul Yun
ARM: mm: remove unnecessary cache flush on v6 copypage
Just move this line in the subject and remove it from the body.
Quoted 3 lines
Originally introduced to maintain coherency between icache and dcache in v6 nonaliasing mode. This is now handled by
__sync_icache_dcachesincec0177800, therefore unneceary in this function.
Minor typo - "unnecessary".
Thanks.
Signature · 1 line
Catalin
Quoted 18 lines · Heechul Yun
ARM: mm: remove unnecessary cache flush on v6 copypage
Originally introduced to maintain coherency between icache and dcache in v6 nonaliasing mode. This is now handled by
__sync_icache_dcachesincec0177800, therefore unneceary in this function.Signed-off-by Heechul Yun <[email protected]>Acked-by Catalin Marinas <[email protected]>--
arch/arm/mm/copypage-v6.c| 1 -1 files changed, 0 insertions(+), 1 deletions(-)arch/arm/mm/copypage-v6.c +0
-0
arch/arm/mm/copypage-v6.c static void v6_copy_user_highpage_nonaliasing(struct page *to, · line 46
Quoted 7 lines
arch/arm/mm/copypage-v6.c +0
-1@@ -41,7 +41,6 @@ static void v6_copy_user_highpage_nonaliasing(struct page *to, kfrom =kmap_atomic (from,KM_USER0 ); kto =kmap_atomic (to,KM_USER1 );copy_page (kto, kfrom); -__cpuc_flush_dcache_area (kto,PAGE_SIZE );kunmap_atomic (kto,KM_USER1 );kunmap_atomic (kfrom,KM_USER0 ); }
The above patch is fine (it has tabs preserved) but the version in the patch system has spaces instead (each space character has been replaced with a '.') and so doesn't apply:
$ pdb getpatch 6995/1 |tr ' ' '.' Patch:.6995/1:.mm:.remove.unnecessary.cache.flush.on.v6.copypage From:.Heechul.Yun ------------------------------------------------------------------------------- .arch/arm/mm/copypage-v6.c.|....1.- .1.file.changed,.1.deletion(-) ------------------------------------------------------------------------------- diff.--git.a/arch/arm/mm/copypage-v6.c.b/arch/arm/mm/copypage-v6.c index.bdba6c6..63cca00.100644 ---.a/arch/arm/mm/copypage-v6.c +++.b/arch/arm/mm/copypage-v6.c @@.-41,7.+41,6.@@.static.void.v6_copy_user_highpage_nonaliasing(struct.page.*to,........kfrom.=.kmap_atomic(from,.KM_USER0); ........kto.=.kmap_atomic(to,.KM_USER1); ........copy_page(kto,.kfrom); -.......__cpuc_flush_dcache_area(kto,.PAGE_SIZE); ........kunmap_atomic(kto,.KM_USER1); ........kunmap_atomic(kfrom,.KM_USER0); .}
Quoted 13 lines · Russell King - ARM Linux
Quoted 12 lines · Heechul Yun
ARM: mm: remove unnecessary cache flush on v6 copypage
Originally introduced to maintain coherency between icache and dcache in v6 nonaliasing mode. This is now handled by
__sync_icache_dcachesincec0177800, therefore unneceary in this function.Signed-off-by Heechul Yun <[email protected]>Acked-by Catalin Marinas <[email protected]>--
arch/arm/mm/copypage-v6.c| 1 -1 files changed, 0 insertions(+), 1 deletions(-)
Quoted 16 lines
arch/arm/mm/copypage-v6.c static void v6_copy_user_highpage_nonaliasing(struct page *to, · line 46
Quoted 12 lines
arch/arm/mm/copypage-v6.c +0
-1@@ -41,7 +41,6 @@ static void v6_copy_user_highpage_nonaliasing(struct page *to, kfrom =kmap_atomic (from,KM_USER0 ); kto =kmap_atomic (to,KM_USER1 );copy_page (kto, kfrom); -__cpuc_flush_dcache_area (kto,PAGE_SIZE );kunmap_atomic (kto,KM_USER1 );kunmap_atomic (kfrom,KM_USER0 ); }The above patch is fine (it has tabs preserved) but the version in the patch system has spaces instead (each space character has been replaced with a '.') and so doesn't apply:
Does your patch system now understand a From: line in the patch log (and preserve the author)? I can upload the patch on Heechul's behalf.
Signature · 1 line
Catalin
I just resubmitted the patch to the patch system (6995/2).
Thank you for your patience.
Quoted 51 lines · Russell King - ARM Linux
Quoted 18 lines · Heechul Yun
ARM: mm: remove unnecessary cache flush on v6 copypage
Originally introduced to maintain coherency between icache and dcache in v6 nonaliasing mode. This is now handled by
__sync_icache_dcachesincec0177800, therefore unneceary in this function.Signed-off-by Heechul Yun <[email protected]>Acked-by Catalin Marinas <[email protected]>--
arch/arm/mm/copypage-v6.c| ? ?1 -
?1 files changed, 0 insertions(+), 1 deletions(-)arch/arm/mm/copypage-v6.c +0
-0arch/arm/mm/copypage-v6.c static void v6_copy_user_highpage_nonaliasing(struct page *to, · line 46
Quoted 7 lines
arch/arm/mm/copypage-v6.c +0
-1@@ -41,7 +41,6 @@ static void v6_copy_user_highpage_nonaliasing(struct page *to, ? ? ? kfrom = kmap_atomic(from, KM_USER0); ? ? ? kto = kmap_atomic(to, KM_USER1); ? ? ? copy_page(kto, kfrom); - ? ? __cpuc_flush_dcache_area(kto, PAGE_SIZE); ? ? ? kunmap_atomic(kto, KM_USER1); ? ? ? kunmap_atomic(kfrom, KM_USER0); ?}The above patch is fine (it has tabs preserved) but the version in the patch system has spaces instead (each space character has been replaced with a '.') and so doesn't apply:
$ pdb getpatch 6995/1 |tr ' ' '.' Patch:.6995/1:.mm:.remove.unnecessary.cache.flush.on.v6.copypage From:.Heechul.Yun ------------------------------------------------------------------------------- .arch/arm/mm/copypage-v6.c.|....1.- .1.file.changed,.1.deletion(-) ------------------------------------------------------------------------------- diff.--git.a/arch/arm/mm/copypage-v6.c.b/arch/arm/mm/copypage-v6.c index.bdba6c6..63cca00.100644 ---.a/arch/arm/mm/copypage-v6.c +++.b/arch/arm/mm/copypage-v6.c @@.-41,7.+41,6.@@.static.void.v6_copy_user_highpage_nonaliasing(struct.page.*to,........kfrom.=.kmap_atomic(from,.KM_USER0); ........kto.=.kmap_atomic(to,.KM_USER1); ........copy_page(kto,.kfrom); -.......__cpuc_flush_dcache_area(kto,.PAGE_SIZE); ........kunmap_atomic(kto,.KM_USER1); ........kunmap_atomic(kfrom,.KM_USER0); .}