From owner-freebsd-sparc64@FreeBSD.ORG Sun Jan 8 16:41:36 2012 Return-Path: Delivered-To: sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 44C3D106566B; Sun, 8 Jan 2012 16:41:36 +0000 (UTC) (envelope-from lists@yamagi.org) Received: from mail.yamagi.org (unknown [IPv6:2a01:4f8:121:2102:1::7]) by mx1.freebsd.org (Postfix) with ESMTP id CE0F58FC0A; Sun, 8 Jan 2012 16:41:35 +0000 (UTC) Received: from happy.home.yamagi.org (g224129135.adsl.alicedsl.de [92.224.129.135]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.yamagi.org (Postfix) with ESMTPSA id 1FE951666334; Sun, 8 Jan 2012 17:41:33 +0100 (CET) Date: Sun, 8 Jan 2012 17:41:12 +0100 From: Yamagi Burmeister To: kostikbel@gmail.com Message-Id: <20120108174112.50e030ba.lists@yamagi.org> In-Reply-To: <20120102063700.GF50300@deviant.kiev.zoral.com.ua> References: <20111226220756.GR50300@deviant.kiev.zoral.com.ua> <20120102063700.GF50300@deviant.kiev.zoral.com.ua> X-Mailer: Sylpheed 3.1.2 (GTK+ 2.24.6; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Sun__8_Jan_2012_17_41_12_+0100_kuU+DV/Jqkt+Aq8r" Cc: amd64@freebsd.org, arch@freebsd.org, sparc64@freebsd.org Subject: Re: AVX X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jan 2012 16:41:36 -0000 --Signature=_Sun__8_Jan_2012_17_41_12_+0100_kuU+DV/Jqkt+Aq8r Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I've tested your patch on a Core2Duo with XSAVE but (of course) without AVX on 10-CURRENT as of today (r229812): CPU: Intel(R) Core(TM)2 Duo CPU T6670 @ 2.20GHz (2194.55-MHz K8-class CPU) Origin =3D "GenuineIntel" Id =3D 0x1067a Family =3D 6 Model =3D 17 Stepping =3D 10 Features=3D0xbfebfbff Features2=3D0x408e3bd AMD Features=3D0x20100800 AMD Features2=3D0x1=20 Everything's fine: - System is booting without a problem - All applications are working - AVX applications are still failing with SIGILL But there's one problem: While a shutdown (shutdown -p now) is always successfull a reboot (shutdown -r now) and suspend (zzz) are resulting=20 in a double panic. The first panic is a "Fatal trap 9: general protection fault while in kernel mode" on "cpuid =3D 1; apic id =3D 01". The process is always "idle: cpu1". The second panic is also "Fatal trap 9: general protection fault while in kernel mode" but with "cpuid =3D 0; apic id =3D 00". The process is always "init".=20 Since it's a dual core cpu, one panic for each processor core?=20 I'm unable to get a core dump and ddb is unresponsive to any keyboard input. A serial console is unavailable, since it's a laptop... Nevertheless I've uploaded screenshots of both panics to: =20 http://deponie.yamagi.org/freebsd/debug/avx=20 On Mon, 2 Jan 2012 08:37:00 +0200 Kostik Belousov wrote: > The patch > http://people.freebsd.org/~kib/misc/avx.2.patch > is the commit candidate. Compared with avx.1.patch, it includes > several bugfixes, some move of code around, and finishes the > implementation of getcontextx(3) for non-x86 architectures. >=20 > Please note that variant of getcontextx() is required for deferred > signal delivery from libthr. This is the reason for Cc:ing sparc64@, > could somebody test the patch on this architecture ? I used the > http://people.freebsd.org/~kib/misc/defer_sig.c to test deferred > delivery on amd64. >=20 > Another missed testing point is machines capable of XSAVE but lacking > AVX extensions. I think most Core2 fall into this category, but my Core2 > machine is disassembled. Could anybody test the patch on non-SandyBridge > machine having XSAVE support ? You can check the capability using > ports/sysutils/x86info or looking at the early boot Features2 line, > which shall contain the XSAVE. --=20 Homepage: www.yamagi.org XMPP: yamagi@yamagi.org GnuPG/GPG: 0xEFBCCBCB --Signature=_Sun__8_Jan_2012_17_41_12_+0100_kuU+DV/Jqkt+Aq8r Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk8JxzwACgkQWTjlg++8y8t4jgCfWd8oyl3al8qrCbC2A5ZbiA7U 24UAnRQJoOVK7JWDzrXpCBGKJ6BnrNMn =kXS0 -----END PGP SIGNATURE----- --Signature=_Sun__8_Jan_2012_17_41_12_+0100_kuU+DV/Jqkt+Aq8r--