linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH/RFC] remove frv usage of flush_tlb_pgtables()
@ 2007-07-26 23:50 Benjamin Herrenschmidt
  2007-07-27  9:43 ` David Howells
  0 siblings, 1 reply; 3+ messages in thread
From: Benjamin Herrenschmidt @ 2007-07-26 23:50 UTC (permalink / raw)
  To: dhowells; +Cc: linux-mm, Linux Kernel list

frv is the last user in the tree of that dubious hook, and it's my
understanding that it's not even needed. It's only called by memory.c
free_pgd_range() which is always called within an mmu_gather, and
tlb_flush() on frv will do a flush_tlb_mm(), which from my reading
of the code, seems to do what flush_tlb_ptables() does, which is
to clear the cached PGE.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---

Hi David ! I want to get rid of flush_tlb_pgtables() as part of my
work on the mmu_gather and frv seems to be the only one to still use it.
I don't think it needs it though, can you double check ?

Thanks !
Ben.

Index: linux-work/include/asm-frv/tlbflush.h
===================================================================
--- linux-work.orig/include/asm-frv/tlbflush.h	2007-07-27 09:40:38.000000000 +1000
+++ linux-work/include/asm-frv/tlbflush.h	2007-07-27 09:43:17.000000000 +1000
@@ -57,8 +57,7 @@ do {								\
 #define __flush_tlb_global()			flush_tlb_all()
 #define flush_tlb()				flush_tlb_all()
 #define flush_tlb_kernel_range(start, end)	flush_tlb_all()
-#define flush_tlb_pgtables(mm,start,end) \
-	asm volatile("movgs %0,scr0 ! movgs %0,scr1" :: "r"(ULONG_MAX) : "memory");
+#define flush_tlb_pgtables(mm,start,end)	do { } while(0)
 
 #else
 


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH/RFC] remove frv usage of flush_tlb_pgtables()
  2007-07-26 23:50 [PATCH/RFC] remove frv usage of flush_tlb_pgtables() Benjamin Herrenschmidt
@ 2007-07-27  9:43 ` David Howells
  2007-07-27 12:37   ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 3+ messages in thread
From: David Howells @ 2007-07-27  9:43 UTC (permalink / raw)
  To: Benjamin Herrenschmidt; +Cc: linux-mm, Linux Kernel list

Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:

> frv is the last user in the tree of that dubious hook, and it's my
> understanding that it's not even needed. It's only called by memory.c
> free_pgd_range() which is always called within an mmu_gather, and
> tlb_flush() on frv will do a flush_tlb_mm(), which from my reading
> of the code, seems to do what flush_tlb_ptables() does, which is
> to clear the cached PGE.

Yeah...  I hadn't got around to killing myself yet.

Acked-By: David Howells <dhowells@redhat.com>

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH/RFC] remove frv usage of flush_tlb_pgtables()
  2007-07-27  9:43 ` David Howells
@ 2007-07-27 12:37   ` Benjamin Herrenschmidt
  0 siblings, 0 replies; 3+ messages in thread
From: Benjamin Herrenschmidt @ 2007-07-27 12:37 UTC (permalink / raw)
  To: David Howells; +Cc: linux-mm, Linux Kernel list

On Fri, 2007-07-27 at 10:43 +0100, David Howells wrote:
> > frv is the last user in the tree of that dubious hook, and it's my
> > understanding that it's not even needed. It's only called by
> memory.c
> > free_pgd_range() which is always called within an mmu_gather, and
> > tlb_flush() on frv will do a flush_tlb_mm(), which from my reading
> > of the code, seems to do what flush_tlb_ptables() does, which is
> > to clear the cached PGE.
> 
> Yeah...  I hadn't got around to killing myself yet.

Ahem... hopefully you won't get around to it any time soon :-)

Cheers,
Ben.


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-07-27 12:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-26 23:50 [PATCH/RFC] remove frv usage of flush_tlb_pgtables() Benjamin Herrenschmidt
2007-07-27  9:43 ` David Howells
2007-07-27 12:37   ` Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox