Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5287806imm; Tue, 19 Jun 2018 08:04:02 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK6lw2wKxmiXGH5OY3epQifFyF6HG0uxtuMsyys8WarNMF+DOH3gqxwUL2y5kgQ7/IPWxRY X-Received: by 2002:a63:3115:: with SMTP id x21-v6mr15047769pgx.373.1529420642735; Tue, 19 Jun 2018 08:04:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529420642; cv=none; d=google.com; s=arc-20160816; b=KYFLBNAdzOsP20IE+/kcWrURK4P/QQHmszx1nGsTSLgJZzx1SjRtVlbFhZIiklAUsV EMHPJ+jzh5rcWWt8IB2jpG8DHZ54qtLx4N2hpxCPup63A7vc6aHWaLEYzSbLcgmTu34w VLQcvQag6So0HCqusBGvMg96w0Heh+zRA95eAZkw1VUqUy5uJDA0pOsEqBAFiizbZezx pYZL5nhWcHe67RygGaY9yW6QBH/n3ZlVYZ+8sh3Wst22cVXNh5dSeN8chposdg/qK57x lb9ce7d8u0RF8RfsmgALsd4+juFe0aHoIVczIAfRKKok0nBPERR7X05NmdiuHMwfha38 vjxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:date:cc:to:from:subject :message-id:arc-authentication-results; bh=MLiu8K/AXH8dKh12JXfbaLn+nyGlKoFf5gLg+6AOcX8=; b=kniIwftZV00+/u8OCX3n5ys7NygD3Z1eCW5bTCbVcD0cbMbwCt2zGU724fYBCTyZ06 ZHceB6nQzm1S4z1xhWCQueKaPJRIK6/jS1rlN2QKRK5Mr9jFCrraRb3pvVLhw91vDGKV w+abSJDJp09MU/gI/ShvwwE+4LeKgsIMdcjAKWIJeBiEMt9O9CvgFPYVajqeBpLClqwm S/1B1jaok0SZ+Zkap1yxfjMWu3gXHfiaFuN208GJuNEhie19b0uQOrIul81dMroFZFkw mWeyYGkZBVFjRP8L0ZwYSiRRS23kIcMXQlGeXCgSc2Cf7HaIfzL8Ao6DwpjmpcsP8lIe zdtA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 67-v6si14363850pge.373.2018.06.19.08.03.40; Tue, 19 Jun 2018 08:04:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966525AbeFSPCm (ORCPT + 99 others); Tue, 19 Jun 2018 11:02:42 -0400 Received: from imap1.codethink.co.uk ([176.9.8.82]:57355 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965681AbeFSPCl (ORCPT ); Tue, 19 Jun 2018 11:02:41 -0400 Received: from [148.252.241.226] (helo=xylophone) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1fVI9Q-0003SP-TD; Tue, 19 Jun 2018 16:02:33 +0100 Message-ID: <1529420551.19394.2.camel@codethink.co.uk> Subject: Re: [PATCH 4.4 10/24] x86/fpu: Hard-disable lazy FPU mode From: Ben Hutchings To: Daniel Sangorrin , 'Greg Kroah-Hartman' , linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org, 'Andy Lutomirski' , 'Rik van Riel' , 'Borislav Petkov' , 'Brian Gerst' , 'Dave Hansen' , 'Denys Vlasenko' , 'Fenghua Yu' , "'H. Peter Anvin'" , 'Josh Poimboeuf' , 'Linus Torvalds' , 'Oleg Nesterov' , 'Peter Zijlstra' , 'Quentin Casasnovas' , 'Thomas Gleixner' , pbonzini@redhat.com, 'Ingo Molnar' Date: Tue, 19 Jun 2018 16:02:31 +0100 In-Reply-To: <000c01d40460$bfc97710$3f5c6530$@toshiba.co.jp> References: <20180614132724.483802160@linuxfoundation.org> <20180614132724.905032027@linuxfoundation.org> <000c01d40460$bfc97710$3f5c6530$@toshiba.co.jp> Organization: Codethink Ltd. Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2018-06-15 at 13:24 +0900, Daniel Sangorrin wrote: > Hi Greg, > > >  /* Intel-defined CPU features, CPUID level 0x00000001 (ecx), word 4 */ > > --- a/arch/x86/include/asm/fpu/internal.h > > +++ b/arch/x86/include/asm/fpu/internal.h > > @@ -58,7 +58,7 @@ extern u64 fpu__get_supported_xfeatures_ > >   */ > >  static __always_inline __pure bool use_eager_fpu(void) > >  { > > - return static_cpu_has_safe(X86_FEATURE_EAGER_FPU); > > + return true; > >  } > > Since this function returns always true then we can remove the code depending on lazy FPU mode. > Actually this has already been done in "x86/fpu: Remove use_eager_fpu()" > Ref: https://patchwork.kernel.org/patch/9365883/ > > >  static void __init fpu__init_parse_early_param(void) > >  { > > - if (cmdline_find_option_bool(boot_command_line, "eagerfpu=off")) { > > - eagerfpu = DISABLE; > > - fpu__clear_eager_fpu_features(); > > - } > > Since this patch removes the kernel boot parameter "eagerfpu", maybe we should remove it from the Documentation. > This has also been done by commit "x86/fpu: Finish excising 'eagerfpu'" > Ref: https://patchwork.kernel.org/patch/9380673/ > > I will try backporting those patches unless anyone has any objections. This does seem like a good idea—there is quite a bit of dead code left and it may be hard to backport any further bug fixes in this area without that removal. Ben. -- Ben Hutchings, Software Developer   Codethink Ltd https://www.codethink.co.uk/ Dale House, 35 Dale Street Manchester, M1 2HF, United Kingdom