svn commit: r270201 - in head/sys: powerpc/include sys
kostikbel at gmail.com
Fri Aug 22 19:01:49 UTC 2014
On Fri, Aug 22, 2014 at 07:46:32PM +0100, Craig Butler wrote:
> On Wed, 2014-08-20 at 11:27 +0300, Konstantin Belousov wrote:
> > On Wed, Aug 20, 2014 at 08:02:38AM +0000, Konstantin Belousov wrote:
> > > Author: kib
> > > Date: Wed Aug 20 08:02:38 2014
> > > New Revision: 270201
> > > URL: http://svnweb.freebsd.org/changeset/base/270201
> > >
> > > Log:
> > > Add arch-specific macro SFBUF_PHYS_DMAP(), which should translate the
> > > physical address of the page to direct map address, in case
> > > SFBUF_OPTIONAL_DIRECT_MAP returns true. The case of PowerPC AIM
> > > 64bit, where the page physical address is identical to the direct map
> > > address, is accidental.
> > Real use of this interposer is for sparc64 machines which can use direct
> > map due to usable cache implementation.
> > Could someone with the machine identified as SPARC64V test the following
> > patch ? Just booting multiuser should be enough.
> > diff --git a/sys/sparc64/include/vmparam.h b/sys/sparc64/include/vmparam.h
> > index 8e7d76c..c2f30c3 100644
> > --- a/sys/sparc64/include/vmparam.h
> > +++ b/sys/sparc64/include/vmparam.h
> > @@ -241,5 +241,8 @@ extern vm_offset_t vm_max_kernel_address;
> > #define SFBUF
> > #define SFBUF_MAP
> > +#define SFBUF_OPTIONAL_DIRECT_MAP dcache_color_ignore
> > +#include <machine/tlb.h>
> > +#define SFBUF_PHYS_DMAP(x) TLB_PHYS_TO_DIRECT(x)
> > #endif /* !_MACHINE_VMPARAM_H_ */
> What machines are identified as SPARC64V ?? our collection only
> identifies as sparc64.
SPARC64V are Zeus cores from Fujitsu.
FWIW, I find it strange that later cores are not marked as having
the unaliasing tagging.
> I think the sun4v code got sin binned, AFAIK the sun4u identifies as
> just plain sparc64.
sun4v is the platform name, not the CPU microarchitecture. I believe
that Zeus are sun4u.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 819 bytes
Desc: not available
More information about the freebsd-sparc64