Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp370794imm; Thu, 14 Jun 2018 22:26:13 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKjYx82KUpMYYPz434P/P5KCJts69RSBP7kGpl+7QEua0QHgq84cw/qzoWlmZhanaBDmVRF X-Received: by 2002:a62:fd0b:: with SMTP id p11-v6mr275920pfh.52.1529040373899; Thu, 14 Jun 2018 22:26:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529040373; cv=none; d=google.com; s=arc-20160816; b=C5O4jSC+xzUqOdSpifD09cB/0otzrwCfQz9vI6Yj8HvCslIO4p8TnQdqUkY0ivpn5T BPuiA6yp4E78I8B47lo3nZOjvCULNfjlSWOpISEkqMo76tHVcxg1taw7bxFy2QkBIRUL 9CitiLDR2FtBl06uUPcmPb8bAga02IGZY0WHe5ZOFXRHrehXxieomuCoGR8cfRbV9IPH eolfc+1yMotoymagdHL0C9go3FSZnBNcHg7Pw9UdRChNFhICFsAW1O6CXxWbD67cS5M6 xf+YsRILhyUQPlSPvJA5BcE1Vt4I3N8BXszMTqoCPwEEg8pe2fsRmBW31IYoZEQg1GnO IrrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language:thread-index :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from:arc-authentication-results; bh=nOMgIfdx/QSrBg8otD3kVVjat4tpwi8tFtZaZvAEszQ=; b=QwgkhZoKm9cJo7G/xb6adfZWBvcQOg5YD9sB06QS8rlHB/xUbTrGU2X2ZSVmAf2l8g zESl4dwDfJ6KL8XSjDVu+KgOVBsoqNfcM0E3RsCFL3rnZQKBjYSV3+FqlfMTcFC7iLV3 QaZSNp8mj06uWyakINhAmtGAmyGHwTKkpbvk1sedbEGzl0a0oFOVpxL0eXi/Ui9c2/mq E4N0I+UQncYCdV4vCE/erZloSVOEz/8rkqN6Ddz1PnwTqbYXTZ262ryRzcRTtUywNhEy iShWdEvC7k0f3J+rFx8Arlr9EytWiIcIxZePocFoY4O9ipRBmEx5gZ19o/3lPCtMcj0z RnaA== 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=toshiba.co.jp Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 63-v6si213377plb.515.2018.06.14.22.25.27; Thu, 14 Jun 2018 22:26:13 -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=toshiba.co.jp Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755590AbeFOFYT convert rfc822-to-8bit (ORCPT + 99 others); Fri, 15 Jun 2018 01:24:19 -0400 Received: from mo-csw1515.securemx.jp ([210.130.202.154]:46198 "EHLO mo-csw.securemx.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754728AbeFOFYR (ORCPT ); Fri, 15 Jun 2018 01:24:17 -0400 Received: by mo-csw.securemx.jp (mx-mo-csw1515) id w5F5NEr6028564; Fri, 15 Jun 2018 14:23:15 +0900 X-Iguazu-Qid: 34tKt34PlbNppOu0QL X-Iguazu-QSIG: v=1; s=0; t=1529040194; q=34tKt34PlbNppOu0QL; m=Z3Qauwwgj/lfDqmSLMsg8KA4zdMObm5oGKBMsiyGBUk= Received: from imx12.toshiba.co.jp (imx12.toshiba.co.jp [61.202.160.132]) by relay.securemx.jp (mx-mr1513) id w5F5NBvP026056; Fri, 15 Jun 2018 14:23:11 +0900 Received: from hop101.toshiba.co.jp ([133.199.85.107]) by imx12.toshiba.co.jp with ESMTP id w5F5NAvU003037; Fri, 15 Jun 2018 14:23:10 +0900 (JST) From: "Daniel Sangorrin" To: "'Greg Kroah-Hartman'" Cc: , , "'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'" , , "'Ingo Molnar'" References: <20180614132724.483802160@linuxfoundation.org> <20180614132724.905032027@linuxfoundation.org> <000c01d40460$bfc97710$3f5c6530$@toshiba.co.jp> <20180615045604.GA8664@kroah.com> In-Reply-To: <20180615045604.GA8664@kroah.com> Subject: RE: [PATCH 4.4 10/24] x86/fpu: Hard-disable lazy FPU mode Date: Fri, 15 Jun 2018 14:23:08 +0900 X-TSB-HOP: ON Message-ID: <000d01d40468$f2109570$d631c050$@toshiba.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQGUQj4igkaupq7EehpFPqRFc6I8UgHKB38SAimvd0gBXoRCXqS1tl4Q Content-Language: ja Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: stable-owner@vger.kernel.org [mailto:stable-owner@vger.kernel.org] On > Behalf Of 'Greg Kroah-Hartman' > Sent: Friday, June 15, 2018 1:56 PM > To: Daniel Sangorrin > Cc: linux-kernel@vger.kernel.org; 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' > Subject: Re: [PATCH 4.4 10/24] x86/fpu: Hard-disable lazy FPU mode > > On Fri, Jun 15, 2018 at 01:24:27PM +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. > > What are the git commit ids of those patches in Linus's tree? No need > to point to patchwork links, I don't use that tool. OK, I got it. "x86/fpu: Remove use_eager_fpu()": c592b57347069abfc0dcad3b3a302cf882602597 "x86/fpu: Finish excising 'eagerfpu'": e63650840e8b053aa09ad934877e87e9941ed135 Unfortunately, they don't apply cleanly to stable kernels. Thanks, Daniel Sangorrin