Linux MIPS Architecture development
 help / color / mirror / Atom feed
* a quick question regarding CONFIG_MIPS_UNCACHED..
@ 2002-11-27  9:11 atul srivastava
  2002-11-28 15:51 ` Maciej W. Rozycki
  0 siblings, 1 reply; 9+ messages in thread
From: atul srivastava @ 2002-11-27  9:11 UTC (permalink / raw)
  To: linux-mips

Hello,

Is it sufficient to set "CONFIG_MIPS_UNCACHED" in order to track 
a
possible cache related problem otherwise hard to debug.
in so many places the functions to operate on caches are called
directly..don't they should be placed under
"#ifdef CONFIg_MIPS_UNCACHED" , if not technically then at least
for consistent coding.

secondly if once i have gone for UNCACHED operation then 
dump_tlb_all
should show the "page cheency attribute" for all entries as 
"UNCACHED" anywhere in whole address space..

in my case this attribute for some entries in TLB is still 
showing
"Cacheable, noncoherent, write-through, no write allocate" ..how 
this is possible..

following is the relevant code:--

#ifdef CONFIG_MIPS_UNCACHED
         change_cp0_config(CONF_CM_CMASK, CONF_CM_UNCACHED);
#else
         change_cp0_config(CONF_CM_CMASK, 
CONF_CM_CACHABLE_NONCOHERENT);
#endif

Best Regards,
Atul

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

end of thread, other threads:[~2002-11-29 14:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-27  9:11 a quick question regarding CONFIG_MIPS_UNCACHED atul srivastava
2002-11-28 15:51 ` Maciej W. Rozycki
2002-11-28 16:15   ` Ralf Baechle
2002-11-29 11:56     ` Maciej W. Rozycki
2002-11-29 12:42       ` Ralf Baechle
2002-11-29 13:03         ` Maciej W. Rozycki
2002-11-29 13:42           ` Ralf Baechle
2002-11-29 14:23             ` Maciej W. Rozycki
2002-11-29 13:49         ` Carsten Langgaard

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