Subject: Re: CVS commit: src/sys/arch/mips/include
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
From: Simon Burge <simonb@wasabisystems.com>
List: port-mips
Date: 01/18/2005 01:20:26
[ Changed to port-mips instead of source-changes ]

Izumi Tsutsui wrote:

> In article <20050117052602.993892DA1D@cvs.netbsd.org>
> simonb@netbsd.org wrote:
> 
> > Now that countless UVM bugs have been fixed and the MIPS pmap_prefer()
> > can deal with topdown for CPUs that need to deal with cache alias
> > conflicts (thanks Andrew Brown!), enable "topdown" memory allocation by
> > default.
> 
> BTW, can pmap_prefer() handle 2-way (and more) associative VA cache?
> On discussion with Soda, he said it should be handled by upper VM layer.

I'm not sure to be honest.

Maybe if the prefer mask was set (as "(d$ size / number-of-ways) - 1"?)
to take in to account the number of ways?  It might be informative to
instrument (with event counters) where the mips_cache_indexof() macro
is used to check this.

Simon.
--
Simon Burge                            <simonb@wasabisystems.com>
NetBSD Support and Service:         http://www.wasabisystems.com/