a quick question regarding CONFIG_MIPS_UNCACHED..

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux