From owner-freebsd-stable@FreeBSD.ORG Thu May 9 16:04:41 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D0F314CB for ; Thu, 9 May 2013 16:04:41 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 61697F3B for ; Thu, 9 May 2013 16:04:41 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.7/8.14.7) with ESMTP id r49G4XJZ017404; Thu, 9 May 2013 19:04:33 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.8.3 kib.kiev.ua r49G4XJZ017404 Received: (from kostik@localhost) by tom.home (8.14.7/8.14.7/Submit) id r49G4XNt017403; Thu, 9 May 2013 19:04:33 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 9 May 2013 19:04:33 +0300 From: Konstantin Belousov To: Jim Ohlstein Subject: Re: Apparent regression in r250359 Message-ID: <20130509160433.GW3047@kib.kiev.ua> References: <518A880C.3090906@ohlste.in> <20130509053055.GM3047@kib.kiev.ua> <518BAEFB.5090204@ohlste.in> <20130509143038.GV3047@kib.kiev.ua> <518BC3E4.1030104@ohlste.in> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dokHZ4yyOnLbJiR1" Content-Disposition: inline In-Reply-To: <518BC3E4.1030104@ohlste.in> User-Agent: Mutt/1.5.21 (2010-09-15) 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 version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on tom.home Cc: freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 May 2013 16:04:41 -0000 --dokHZ4yyOnLbJiR1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 09, 2013 at 11:42:28AM -0400, Jim Ohlstein wrote: > On 05/09/13 10:30, Konstantin Belousov wrote: > > On Thu, May 09, 2013 at 10:13:15AM -0400, Jim Ohlstein wrote: > >> # sysctl hw.model > >> hw.model: AMD FX(tm)-8350 Eight-Core Processor > > Ahh, so it seems that this is a CPU with the LWP. > > Please try the patch at the end of message. >=20 > Same error >=20 > > > > As another workaround, which does not disable AVX support, you > > could try loader tunable hw.xsave_mask=3D0x7. >=20 > This works Hm, I see another bug in the next line as well. Could you try this updated patch ? diff --git a/sys/amd64/amd64/fpu.c b/sys/amd64/amd64/fpu.c index de79baa..9bc8a2f 100644 --- a/sys/amd64/amd64/fpu.c +++ b/sys/amd64/amd64/fpu.c @@ -687,8 +687,8 @@ fpugetregs(struct thread *td) offsetof(struct xstate_hdr, xstate_bv)); max_ext_n =3D flsl(xsave_mask); for (i =3D 0; i < max_ext_n; i++) { - bit =3D 1 << i; - if ((*xstate_bv & bit) !=3D 0) + bit =3D 1ULL << i; + if ((xsave_mask & bit) =3D=3D 0 || (*xstate_bv & bit) !=3D 0) continue; bcopy((char *)fpu_initialstate + xsave_area_desc[i].offset, --dokHZ4yyOnLbJiR1 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQIcBAEBAgAGBQJRi8kQAAoJEJDCuSvBvK1BoBwP/0Anmhlt8ca8Cc4rANdT1rbg dIio0nBwgtzH5465H+ZV7rm0X0ofcpev2JhjWOH/RyDg/jaBgBeDEwffBZIT2qmV lLohV7yy/56fihCER6zVr8IR4OCmrR0+f2LyKCUnnfd2JbnKdwzVOYR8wqQzEhSP t9g0JkQJSe05PB2CG/uTUAYymixOiMlfGcVrzHnvSP/OGEqrcYBDsUqEZDqYdjCe 7nvFDzW+rl2dQeGu1ndEowWlkfwoJIOYetetVO7nQ7SXP2aqskVXUosJ1J3Qfghr vomiEHm23QWxjzNArC1NVj8IBk14D+/hGDhyaMvG9FFKC5Z7771l7yxWFlW7um+H f83+mN8oXLHOZDGHlFgemkVwjfDe2pWRKEwP9RelgA8uR1bE6e+wJrPLGwxH7BUE Md4byEwZIg0Gk2iVGPud9G8aUXIRdR7s7ru6v4+hW6ZUcNxxn/x2QYRopm+tNhlO xW5TbK6U1k9Xkacu+NL5IOgzqidopOMAKFsWKo1uQscHoUrngUmIjn9sse9KlaNh u6hCJ+bEeqvsCp9EcvMbEYLOD3rpuCG+dq/6taZ1kOIAOxylz7E2JqXclS2OMvri x+Xde/SdyMBqiKmJ7JRy2k5ficBTD5wZ4FPVTqJjSUGZfs1FfEC8CGX/iav7A0pf 1jdsUVZCRzlM7zITr5Gi =8AEX -----END PGP SIGNATURE----- --dokHZ4yyOnLbJiR1--