From owner-freebsd-sparc64@FreeBSD.ORG Fri Aug 22 18:52:47 2014 Return-Path: Delivered-To: sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BFD8B8B7 for ; Fri, 22 Aug 2014 18:52:47 +0000 (UTC) Received: from mx.bsdtec.net (mx.bsdtec.net [174.34.171.65]) by mx1.freebsd.org (Postfix) with ESMTP id 90DCA36EA for ; Fri, 22 Aug 2014 18:52:47 +0000 (UTC) Received: from localhost (mx.bsdtec.net [172.16.32.2]) by mx.bsdtec.net (Postfix) with ESMTP id 671A7489875; Fri, 22 Aug 2014 18:46:36 +0000 (UTC) Received: from mx.bsdtec.net ([172.16.32.2]) by localhost (mx.bsdtec.net [172.16.32.2]) (amavisd-new, port 10032) with ESMTP id oujl6d9KDzso; Fri, 22 Aug 2014 18:46:35 +0000 (UTC) Received: from localhost (mx.bsdtec.net [172.16.32.2]) by mx.bsdtec.net (Postfix) with ESMTP id 5F62D4898C8; Fri, 22 Aug 2014 18:46:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at bsdtec.net Received: from mx.bsdtec.net ([172.16.32.2]) by localhost (mx.bsdtec.net [172.16.32.2]) (amavisd-new, port 10026) with ESMTP id mqdiePYXyv81; Fri, 22 Aug 2014 18:46:35 +0000 (UTC) Received: from [192.168.1.111] (bsdtec.plus.com [84.92.41.141]) by mx.bsdtec.net (Postfix) with ESMTPSA id 97080489875; Fri, 22 Aug 2014 18:46:34 +0000 (UTC) Message-ID: <1408733192.4056.5.camel@atlas.lerwick.hopto.org> Subject: Re: svn commit: r270201 - in head/sys: powerpc/include sys From: Craig Butler To: Konstantin Belousov Date: Fri, 22 Aug 2014 19:46:32 +0100 In-Reply-To: <20140820082700.GY2737@kib.kiev.ua> References: <201408200802.s7K82cJ6059609@svn.freebsd.org> <20140820082700.GY2737@kib.kiev.ua> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Cc: sparc64@freebsd.org X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Aug 2014 18:52:47 -0000 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 > +#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. I think the sun4v code got sin binned, AFAIK the sun4u identifies as just plain sparc64. Regards Craig