Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp328882imm; Thu, 14 Jun 2018 21:26:27 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKlsA9/lQS4i8HlajDjkbr6wG7v9vMNne9Rtgb1/NzprYH2iL4u+NHRjDQdmJvt0z1CFQ68 X-Received: by 2002:a17:902:854a:: with SMTP id d10-v6mr107613plo.106.1529036787850; Thu, 14 Jun 2018 21:26:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529036787; cv=none; d=google.com; s=arc-20160816; b=iU30yuMmpA3BOz1kWaXHRJApazqLJg5ZmVUWSXnzcQdcKMO5hFsag+Tp0O9b9LjfqM gPqS6zS6mEjVV2aNwiF1yCFP0EV7P0tzxSWxyxvPEX9jU0JEEQ2u4oFSKqa2DqzqZ8N1 I5dHz/Cb1Fbmf2Dr8ekMGuVyfp0zB+RnaE9bCgoDgf+bwKZmXRmYQJpMlH51t9x0hiBs Spctbq6jGSgAtQyFc/cCId3y2pyQcq05ogMPTogXM2SwxdLMue+vU8Ybdru5CxFGTWu4 SzQ0X1MICimkRFvQdCgYN5ylRUVCV5MCuZNUsDCXgKXXFyazBPkzDR3/7FeRiVwwMNwQ WtvQ== 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=8WxsjW89bH6BZL2TiRcyFykqA8PYp19acVGfb68scGs=; b=nMSNAfgylOwu8o8ZTx3sZXWXFKrNhK4NU8tHkLVLo0Hr410G9kV3Q+MClZZ7SX0Gsz xInvMcT8aCTSBdSvFFZheFRUajsNPjrZBJl8cLPe1zgmU6ssZ4YZA/hVzpf1oEk+ppm6 QXHD1cpiuNqHEDKletfiPHB7kyLTKU71Uj/uWHCEYE5A6LUT1TISPtmH96vgiNlDGDTw q+9j+7OAvaeHJXY9oL/gDL1acjiL/Kz3Idqbav3I07IKyRZM+52aSkoM7cbGbvTZCJvV 2Ta/yRiMH170bgngO/i+2TGXSivtuQ8Mx1WIHP2PjZvhPQsbOUVeMVS44oiE8FP355J/ 989A== 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 w3-v6si5652474pgc.645.2018.06.14.21.26.12; Thu, 14 Jun 2018 21:26:27 -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 S1755545AbeFOEZp convert rfc822-to-8bit (ORCPT + 99 others); Fri, 15 Jun 2018 00:25:45 -0400 Received: from mo-csw1516.securemx.jp ([210.130.202.155]:52446 "EHLO mo-csw.securemx.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751237AbeFOEZo (ORCPT ); Fri, 15 Jun 2018 00:25:44 -0400 Received: by mo-csw.securemx.jp (mx-mo-csw1516) id w5F4OXv6009397; Fri, 15 Jun 2018 13:24:34 +0900 X-Iguazu-Qid: 34tIVOFt9LkeQsXUcy X-Iguazu-QSIG: v=1; s=0; t=1529036673; q=34tIVOFt9LkeQsXUcy; m=QUIW+ptMhDpD0HvPXyZlspWrT/9BmVucJFbV42nCF/4= Received: from imx12.toshiba.co.jp (imx12.toshiba.co.jp [61.202.160.132]) by relay.securemx.jp (mx-mr1511) id w5F4OUQX013970; Fri, 15 Jun 2018 13:24:30 +0900 Received: from hop101.toshiba.co.jp ([133.199.85.107]) by imx12.toshiba.co.jp with ESMTP id w5F4OUUc002439; Fri, 15 Jun 2018 13:24:30 +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> In-Reply-To: <20180614132724.905032027@linuxfoundation.org> Subject: RE: [PATCH 4.4 10/24] x86/fpu: Hard-disable lazy FPU mode Date: Fri, 15 Jun 2018 13:24:27 +0900 X-TSB-HOP: ON Message-ID: <000c01d40460$bfc97710$3f5c6530$@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: AQGUQj4igkaupq7EehpFPqRFc6I8UgHKB38SpNHsNUA= Content-Language: ja Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks, Daniel Sangorrin