From owner-svn-src-head@FreeBSD.ORG Wed Aug 20 08:27:06 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BA8E0D09; Wed, 20 Aug 2014 08:27:06 +0000 (UTC) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 424983DC5; Wed, 20 Aug 2014 08:27:06 +0000 (UTC) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.14.9/8.14.9) with ESMTP id s7K8R0eb057639 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 20 Aug 2014 11:27:00 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.9.2 kib.kiev.ua s7K8R0eb057639 Received: (from kostik@localhost) by tom.home (8.14.9/8.14.9/Submit) id s7K8R0bW057638; Wed, 20 Aug 2014 11:27:00 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 20 Aug 2014 11:27:00 +0300 From: Konstantin Belousov To: sparc64@freebsd.org Subject: Re: svn commit: r270201 - in head/sys: powerpc/include sys Message-ID: <20140820082700.GY2737@kib.kiev.ua> References: <201408200802.s7K82cJ6059609@svn.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="JViz224v3YRbOSfM" Content-Disposition: inline In-Reply-To: <201408200802.s7K82cJ6059609@svn.freebsd.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on tom.home Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2014 08:27:06 -0000 --JViz224v3YRbOSfM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 >=20 > 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; =20 #define SFBUF #define SFBUF_MAP +#define SFBUF_OPTIONAL_DIRECT_MAP dcache_color_ignore +#include +#define SFBUF_PHYS_DMAP(x) TLB_PHYS_TO_DIRECT(x) =20 #endif /* !_MACHINE_VMPARAM_H_ */ --JViz224v3YRbOSfM Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJT9FvUAAoJEJDCuSvBvK1BaJgP/1WPrITGayGgyrWUCQWI9buj HT8IbGzSrBs33EANdcxm68GKHU+0s8iEkd+SrlUTJvaqPc1oFiguZ3X/He/i0tBQ ShjYxW6lTQfeKR2Q1ueY7nN3pOXe5oSwOWkasSYkijHvTldswZzLiasuDghNMWff z+kOwzWK3lTyP4BDUv8YNxiqN5t575XG6eVTHpFQrrJIWwz+HToGwrzL3MVAraJK Vbod7N3q9Ek/Q0m4naNAq3EoB3l412uz11+BCbJW2wgWk6oVjAPHLc3p/eUVafdX xd9V7xaiTGpLFpdkIAjI8cOajoihBwwTa6XESzeCjiMSpda8ONJjTbS6+lwlzDt8 xfwCQf6/htRcfZFtGeRcibSz5cuchAjFWOQyfc0trVW1Bw+fpwgAlXlBkp2Gv7dy l6HUJJJiDq/njy6MI8HXC4L8LPkSmy3NmI4Z9vuMUMP+vKsm7BaXSFqMLoLlCR+5 vqhKCf5p7n2PTQ4ugbwxv/Rz94jk/FRImbxCNFF8gHG2Q8QCXFQqm72xfg3/MWOL FSUt++27ypy0IMb54ZsgDNkBn0p/XpNYvsdXbSNSnpNfyUX4FvIB2OBycLHlbMrr xIpZT48ui/Z8UMA1tSruooKNI3Y+QWuaByrEtuSpYeAd/y5da2fLmqEi8PtZ1OHp 8SJ+Vcy4hwOba2pskA1b =OODx -----END PGP SIGNATURE----- --JViz224v3YRbOSfM--