Linux MIPS Architecture development
 help / color / mirror / Atom feed
* __flush_cache_all() miscellany
@ 2002-05-29 16:50 Justin Carlson
  2002-05-29 19:26 ` Justin Carlson
  2002-05-29 21:07 ` Ralf Baechle
  0 siblings, 2 replies; 17+ messages in thread
From: Justin Carlson @ 2002-05-29 16:50 UTC (permalink / raw)
  To: linux-mips

Looking at the cache routines, I've noticed that there's been a
relatively recent introduction of a __flush_cache_all() routine. 
Looking at oss.sgi.com's cvs logs, I see this comment:

>Introduce __flush_cache_all() which flushes the cache no matter if
>this operation is necessary from the mm point of view or not.

Some questions:

Which caches does this apply to?  It looks like the current
implementations assume L1 only.

Would anyone have a problem with renaming this function?  To me, at
least, it's rather confusing to have all of:

flush_cache_all()
_flush_cache_all()
__flush_cache_all()
___flush_cache_all()

defined, especially when the latter two mean something significantly
different from the former two.  I'd prefer calling the new one
{_}force_flush_l1_caches() or somesuch.

In a related note, one of the few places this routine is called is the
kgdb stub routines (in arch/mips/kernel/gdb-stub.c):

void set_async_breakpoint(unsigned int epc)
{
	int cpu = smp_processor_id();

	async_bp[cpu].addr = epc;
	async_bp[cpu].val  = *(unsigned *)epc;
	*(unsigned *)epc = BP;
	__flush_cache_all();
}

Shouldn't that be a flush_icache_range() call anyways?

Thanks,
  Justin

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

end of thread, other threads:[~2002-06-03 17:21 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-29 16:50 __flush_cache_all() miscellany Justin Carlson
2002-05-29 19:26 ` Justin Carlson
2002-05-29 19:50   ` Maciej W. Rozycki
2002-05-29 20:20     ` Justin Carlson
2002-05-29 21:00       ` Maciej W. Rozycki
2002-05-29 21:33         ` Ralf Baechle
2002-05-29 21:46           ` Maciej W. Rozycki
2002-05-29 22:46             ` Ralf Baechle
2002-05-29 22:59         ` Justin Carlson
2002-05-29 23:24           ` Jun Sun
2002-06-03 17:23           ` Maciej W. Rozycki
2002-05-29 21:03   ` Kevin D. Kissell
2002-05-29 21:03     ` Kevin D. Kissell
2002-05-29 21:28     ` Ralf Baechle
2002-05-29 21:09   ` Ralf Baechle
2002-05-29 21:07 ` Ralf Baechle
2002-05-30 12:31   ` Florian Laws

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