Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2260156imm; Thu, 18 Oct 2018 11:34:10 -0700 (PDT) X-Google-Smtp-Source: ACcGV61PpypPYhXXeZaB9HRaJ+cKblt+XxpG3mT4NNIcpM99g29h9tUw4VmGq5rNT+OF65WvmAwz X-Received: by 2002:a63:5f43:: with SMTP id t64-v6mr1958515pgb.352.1539887650889; Thu, 18 Oct 2018 11:34:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539887650; cv=none; d=google.com; s=arc-20160816; b=Q6MUe0QOCmsHfdSOl5yqgFyrTK/wufesGP0AZBATjvHKX92Dxx1NUBCBW9s4rFylB9 GK5HBswHEIBkc01djJb9tdMW6AsSG4JaGE0fQckPkdlmSCgW6zMri1lrl7bQ6wPJF+Wi TeNdVa8TEBMlAB5Lv3488Q3Ki3Oj0RFyyMtSHYmLUB8zwa5yRhovX9R/EKXFeOJ7CPp2 V7cemZr69zDm3QLJ+F5HBdIO6d0qFNq4Em6Rf/o53/dHUjvpuZknv5YvYXyJLhG1K4ZW bchPcKLkk0OoTQoNjgw1zmXNX4t2p2brn33beui5v61vKroAcSDd/+rjzSKutFQBQ+B/ 32zw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=J1S6OMzDwMhIRERpcA7tKl7GY51RB6EzAkqpMicvUtY=; b=d/jB3GCvJ6GcKHBx757wJk16kVL5sQ178OrWuQknyhtnwgZOpixXSXxGlQqrFDW0Ei 0n9qTWTS23wZ23UgdWuCgVB+A+IAL7tUD4filpf5znIjA/KAu/uNm6PcAeo9VaXmxIBR fhvfGYWrteVpHHY+evLmQhdlVwzKHlJGhhOCUQBzJMMb9Y4ZomkxTXrIqQvi1J2ElnAo IOm9FCJIvihHMlOOVWyqxZGh/xXH+ZAwcQo61r0ARSW017ia1ERnUhe3J4DbNv1fkbDD YpFgH/wOCwwO+/VwID2EvMOnUSj+OlKQcbl5+XXisSKSLY5UpJlSPv/7TSW1fqnxMAF/ nVbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VXCfB4Um; 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 q9-v6si22076762pgi.162.2018.10.18.11.33.49; Thu, 18 Oct 2018 11:34:10 -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=VXCfB4Um; 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 S1730537AbeJSCIt (ORCPT + 99 others); Thu, 18 Oct 2018 22:08:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:58006 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730527AbeJSCIt (ORCPT ); Thu, 18 Oct 2018 22:08:49 -0400 Received: from localhost (ip-213-127-77-176.ip.prioritytelecom.net [213.127.77.176]) (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 03B902145D; Thu, 18 Oct 2018 18:06:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539886001; bh=4QjTu785IKyz92oRLB1jq63SfS4erv9UBWdVH88lVh4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VXCfB4Umq+ZibCU5ty0SzdIbua82B8wTjNSYeNGhlTZj+x/ms4H3VB4lk2kyEsKNo LsZTXYtZjupTYzJb2XZoQTp2oeOM3Fs5xucy6ekEU3uB2brOlVpLNhkbniMpqEN/WU CKH8k41P05JygGo1S7mmtsL4As37Srihos4SdxRs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andy Lutomirski , Borislav Petkov , Brian Gerst , Dave Hansen , Denys Vlasenko , Fenghua Yu , "H. Peter Anvin" , Josh Poimboeuf , Linus Torvalds , Oleg Nesterov , Peter Zijlstra , Quentin Casasnovas , Rik van Riel , Thomas Gleixner , Ingo Molnar , Daniel Sangorrin Subject: [PATCH 4.4 34/48] x86/fpu: Finish excising eagerfpu Date: Thu, 18 Oct 2018 19:55:09 +0200 Message-Id: <20181018175429.764997534@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181018175427.133690306@linuxfoundation.org> References: <20181018175427.133690306@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Andy Lutomirski commit e63650840e8b053aa09ad934877e87e9941ed135 upstream. Now that eagerfpu= is gone, remove it from the docs and some comments. Also sync the changes to tools/. Signed-off-by: Andy Lutomirski Cc: Borislav Petkov Cc: Brian Gerst Cc: Dave Hansen Cc: Denys Vlasenko Cc: Fenghua Yu Cc: H. Peter Anvin Cc: Josh Poimboeuf Cc: Linus Torvalds Cc: Oleg Nesterov Cc: Peter Zijlstra Cc: Quentin Casasnovas Cc: Rik van Riel Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/cf430dd4481d41280e93ac6cf0def1007a67fc8e.1476740397.git.luto@kernel.org Signed-off-by: Ingo Molnar Signed-off-by: Daniel Sangorrin Signed-off-by: Greg Kroah-Hartman --- Documentation/kernel-parameters.txt | 5 ----- arch/x86/include/asm/cpufeatures.h | 1 - arch/x86/include/asm/fpu/types.h | 23 ----------------------- 3 files changed, 29 deletions(-) --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt @@ -961,11 +961,6 @@ bytes respectively. Such letter suffixes See Documentation/x86/intel_mpx.txt for more information about the feature. - eagerfpu= [X86] - on enable eager fpu restore - off disable eager fpu restore - auto selects the default scheme, which automatically - enables eagerfpu restore for xsaveopt. module.async_probe [KNL] Enable asynchronous probe on this module. --- a/arch/x86/include/asm/cpufeatures.h +++ b/arch/x86/include/asm/cpufeatures.h @@ -104,7 +104,6 @@ #define X86_FEATURE_EXTD_APICID ( 3*32+26) /* has extended APICID (8 bits) */ #define X86_FEATURE_AMD_DCM ( 3*32+27) /* multi-node processor */ #define X86_FEATURE_APERFMPERF ( 3*32+28) /* APERFMPERF */ -/* free, was #define X86_FEATURE_EAGER_FPU ( 3*32+29) * "eagerfpu" Non lazy FPU restore */ #define X86_FEATURE_NONSTOP_TSC_S3 ( 3*32+30) /* TSC doesn't stop in S3 state */ /* Intel-defined CPU features, CPUID level 0x00000001 (ecx), word 4 */ --- a/arch/x86/include/asm/fpu/types.h +++ b/arch/x86/include/asm/fpu/types.h @@ -310,29 +310,6 @@ struct fpu { * the registers in the FPU are more recent than this state * copy. If the task context-switches away then they get * saved here and represent the FPU state. - * - * After context switches there may be a (short) time period - * during which the in-FPU hardware registers are unchanged - * and still perfectly match this state, if the tasks - * scheduled afterwards are not using the FPU. - * - * This is the 'lazy restore' window of optimization, which - * we track though 'fpu_fpregs_owner_ctx' and 'fpu->last_cpu'. - * - * We detect whether a subsequent task uses the FPU via setting - * CR0::TS to 1, which causes any FPU use to raise a #NM fault. - * - * During this window, if the task gets scheduled again, we - * might be able to skip having to do a restore from this - * memory buffer to the hardware registers - at the cost of - * incurring the overhead of #NM fault traps. - * - * Note that on modern CPUs that support the XSAVEOPT (or other - * optimized XSAVE instructions), we don't use #NM traps anymore, - * as the hardware can track whether FPU registers need saving - * or not. On such CPUs we activate the non-lazy ('eagerfpu') - * logic, which unconditionally saves/restores all FPU state - * across context switches. (if FPU state exists.) */ union fpregs_state state; /*