From owner-freebsd-stable@FreeBSD.ORG Thu May 9 15:42:30 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A1B09E42 for ; Thu, 9 May 2013 15:42:30 +0000 (UTC) (envelope-from jim@ohlste.in) Received: from mail-qc0-x230.google.com (mail-qc0-x230.google.com [IPv6:2607:f8b0:400d:c01::230]) by mx1.freebsd.org (Postfix) with ESMTP id 6351BE39 for ; Thu, 9 May 2013 15:42:30 +0000 (UTC) Received: by mail-qc0-f176.google.com with SMTP id a11so1711383qcx.21 for ; Thu, 09 May 2013 08:42:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding:x-gm-message-state; bh=fGY8hlh6eD7BqH7HaA5iL9nYBSSQB68EtHsynzAaFCI=; b=V84ArTewIFRVY9G1D1TzI42SsGdbTvgljiPzplDhukehJuKk1hlUQs6I4O0iVXYA2e sZX18c7y+5j3YyYwIgyNPt+Kjr0txQk4tXnmx/x3ZZ630mqcpvm6UQ5OYYtqb/pT7CPA w96/faAVCBE/9yMucgZXT0CMGwU9IzFKYc/zJdV/pLhNEe0/L/+AV5px6E1e24B+EfX8 JdSFke5ejPuTDYmPjw0M6QLK9v8/ARgQwFe4J4W2pHzf6fjQCmqvmb5hRzk7ry7zt8t9 fLGHCADVgNrZbmh9H3W84xnTiriLkmotjxjBvG2AKnNrykRrTd4Hh0Zl4odPeyoRMa9O xwdQ== X-Received: by 10.229.122.6 with SMTP id j6mr3604885qcr.111.1368114149893; Thu, 09 May 2013 08:42:29 -0700 (PDT) Received: from [192.168.1.10] (pool-74-110-99-189.nrflva.fios.verizon.net. [74.110.99.189]) by mx.google.com with ESMTPSA id fq5sm3806866qab.2.2013.05.09.08.42.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 09 May 2013 08:42:29 -0700 (PDT) Message-ID: <518BC3E4.1030104@ohlste.in> Date: Thu, 09 May 2013 11:42:28 -0400 From: Jim Ohlstein User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130405 Thunderbird/17.0.5 MIME-Version: 1.0 To: Konstantin Belousov Subject: Re: Apparent regression in r250359 References: <518A880C.3090906@ohlste.in> <20130509053055.GM3047@kib.kiev.ua> <518BAEFB.5090204@ohlste.in> <20130509143038.GV3047@kib.kiev.ua> In-Reply-To: <20130509143038.GV3047@kib.kiev.ua> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQmxz6SSBpeZQns6RbOLEpvhsFVb2ErI6i9lMHpO4tsEH9I4jMHUeXVh83GUwDttBdAXAl5Q 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 15:42:30 -0000 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. Same error > > As another workaround, which does not disable AVX support, you > could try loader tunable hw.xsave_mask=0x7. This works > > diff --git a/sys/amd64/amd64/fpu.c b/sys/amd64/amd64/fpu.c > index de79baa..61ce94d 100644 > --- a/sys/amd64/amd64/fpu.c > +++ b/sys/amd64/amd64/fpu.c > @@ -687,7 +687,7 @@ fpugetregs(struct thread *td) > offsetof(struct xstate_hdr, xstate_bv)); > max_ext_n = flsl(xsave_mask); > for (i = 0; i < max_ext_n; i++) { > - bit = 1 << i; > + bit = 1ULL << i; > if ((*xstate_bv & bit) != 0) > continue; > bcopy((char *)fpu_initialstate + > -- Jim Ohlstein