Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753148AbcJEHO2 (ORCPT ); Wed, 5 Oct 2016 03:14:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47990 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751304AbcJEHO1 (ORCPT ); Wed, 5 Oct 2016 03:14:27 -0400 Subject: Re: [PATCH 2/9] x86/fpu: Hard-disable lazy fpu mode To: riel@redhat.com, linux-kernel@vger.kernel.org References: <1475627678-20788-1-git-send-email-riel@redhat.com> <1475627678-20788-3-git-send-email-riel@redhat.com> Cc: dave.hansen@linux.intel.com, x86@kernel.org, tglx@linutronix.de, mingo@redhat.com, luto@kernel.org, pa@zytor.com, bp@suse.de From: Paolo Bonzini Message-ID: Date: Wed, 5 Oct 2016 09:14:21 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <1475627678-20788-3-git-send-email-riel@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Wed, 05 Oct 2016 07:14:27 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 823 Lines: 24 On 05/10/2016 02:34, riel@redhat.com wrote: > From: Andy Lutomirski > > Since commit 58122bf1d856 ("x86/fpu: Default eagerfpu=on on all > CPUs") in Linux 4.6, eager FPU mode has been the default on all x86 > systems, and no one has reported any regressions. > > This patch removes the ability to enable lazy mode: use_eager_fpu() > becomes "return true" and all of the FPU mode selection machinery is > removed. I haven't quite followed up on my promise to benchmark lazy vs. eager FPU, but I probably should do that now... I see two possible issues with this. First, AMD as far as I know does not have XSAVEOPT. Second, when using virtualization, depending on how you configure your cluster it's enough to have one pre-SandyBridge Intel machine to force no XSAVE on all machines. Thanks, Paolo