Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp349112imm; Thu, 14 Jun 2018 21:57:30 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKtHfH2o2sS731lO6kUxs7jtWT5RyRjAG8MzD9rI6+sOJMAdhtf2hF+t2HE5S7vtRJt/yej X-Received: by 2002:a17:902:563:: with SMTP id 90-v6mr149804plf.327.1529038650117; Thu, 14 Jun 2018 21:57:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529038650; cv=none; d=google.com; s=arc-20160816; b=T5jqP5g2d/89M9GfsH+B2m/a7nIVzaEbFck8OVWMlJKf84edEva4keA4CEYMFAUOtu bP3ipJ2G1l7N8/OOQ58jPKiLHuaseTqTTbStInyh4K85CGHWzYebm8lyXTAw/jz3pfuj q4Mx08IhFnKi0N7t1lMfc1iSis5LlL3cChdNvyQOUdLz0sA2HlBBJgEZDpjlyXrrPJiz cpHWW0EtidYArGqBJvkxfQph2RZ3jdCMnMwLop3IgixHsSS2En783DMWpGPe8s+XfqJ3 iBjxS2PYXgCDz0zUsSickIcwEIcT2G0ZWUR0/OMOyMETDlbYTkPLgJFDbPTt/a+ogctV B+iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=WcXxIaW96QDMvCMC4YNpJB1fyCXcL6AF+P5HbZjBhvY=; b=O+2mpW44XPqp7ZmiabEg1cj67zV/Vdn0PQuDPbg0Zboit4KRKAPBmkkmxO+KRxItN6 I8aMDXVHXTvcb4TpmC4rASu0+q6sAOn+yqXul7wCCNtHKuiXuLMLWmnUr/8XnSVoq46r 6EjITpEcUV9FbyMDRKIf4dYngI4Uq03VQAQdIbjHGLsPRYzZb74rw9eZ4KH/mumShYYC 2FG3LXh4uNz64D23v3uvX8m6MXt3NrbQgt0MEoz/FCLmIMARhM2J2rnUBu/v9rz/pQXo NBPznaut6QliZJ9CADVHG8tZ4yik3R81RRf9sAREKKq7s9ORSPeEKDTXOvLttRI9vCt2 pGJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PocKCwIe; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a5-v6si7135566plh.340.2018.06.14.21.57.02; Thu, 14 Jun 2018 21:57:30 -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; dkim=pass header.i=@kernel.org header.s=default header.b=PocKCwIe; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755565AbeFOE4a (ORCPT + 99 others); Fri, 15 Jun 2018 00:56:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:36500 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754165AbeFOE43 (ORCPT ); Fri, 15 Jun 2018 00:56:29 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8BE5C2086A; Fri, 15 Jun 2018 04:56:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1529038588; bh=HjsIwJz8BHrjqM6exA6JhpGE/dFSa/omYzpXBg7JsSE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PocKCwIew9k/c+iAZXuX53Rq6nPlRWMs/MMskGr46d7tpA9NrNaGz99Fx+EX10Z6q bK425dzJiLOlP8prUFZnWChe8ZVQ9atFnpXse93eCdmf4JNN2QBJ39HsDwH8SbTkgl 2NlUeIPM8RPW5rHCUFiqI5/FzZi/+zKllnBNVLgs= Date: Fri, 15 Jun 2018 06:56:04 +0200 From: 'Greg Kroah-Hartman' 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 Message-ID: <20180615045604.GA8664@kroah.com> References: <20180614132724.483802160@linuxfoundation.org> <20180614132724.905032027@linuxfoundation.org> <000c01d40460$bfc97710$3f5c6530$@toshiba.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000c01d40460$bfc97710$3f5c6530$@toshiba.co.jp> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. thanks, greg k-h