Skip to contentSkip to conversation

remove unnecessary cache flush on v6 copypage

PATCH Superseded heechul Yun 4 participants 4 messages Jul 7, 2011 Arm (32-bit)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove unnecessary cache flush on v6 copypage

ARM: mm: remove unnecessary cache flush on v6 copypage

--
arch/arm/mm/copypage-v6.c | 1 -

 1 files changed, 0 insertions(+), 1 deletions(-)
arch/arm/mm/copypage-v6.c +0 -1
index bdba6c6..63cca00 100644
@@ -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);
 }

--

Heechul

#1 lore raw

PATCH 1/1 remove unnecessary cache flush on v6 copypage

Quoted 12 lines · heechul Yun

ARM: mm: remove unnecessary cache flush on v6 copypage

--
arch/arm/mm/copypage-v6.c | 1 -

 1 files changed, 0 insertions(+), 1 deletions(-)
arch/arm/mm/copypage-v6.c +0 -0
index bdba6c6..63cca00 100644

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);
 }

Patch looks good, except that it's whitespace damaged (the tabs are replaced by spaces) which makes it hard to apply. Could you try to sort that out. Documentation/email-clients.txt in the kernel tree may help with that.

I assume Catalin will (eventually) provide an ack - and at that point please submit it (in non-whitespace damaged form) to the patch system, thanks.

#3 lore raw
Quoted 2 lines · Catalin Marinas
Quoted 1 line · heechul Yun

ARM: mm: remove unnecessary cache flush on v6 copypage

I think you better mention that this is regarding v6 nonaliasing mode.

Quoted 6 lines
Quoted 2 lines

I would clarify the commit log a bit stating that this flush is no longer necessary because of commit c0177800. We had a good reason for adding the flush initially.

I agree, but I would also mention that the flush was needed in order to coherent between dcache and icache, and now this is being handled by __sync_icache_dcache
saeed