Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2006416imm; Thu, 14 Jun 2018 07:21:26 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ2wqNAg4zwKu5efKvL0H0DPhGTUdQtnhquqteQbOBBmx8GpFOc62cj3+3DsKYC1fO8FYym X-Received: by 2002:a62:e117:: with SMTP id q23-v6mr9783297pfh.75.1528986086422; Thu, 14 Jun 2018 07:21:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528986086; cv=none; d=google.com; s=arc-20160816; b=kAXkijh/BVkjbUfBewuGlHe15IWajbJBOd7db39syGLE0oPzUdt09+DnLyrZ2TzdQ6 U2KZ1yGo8GWDfMJgrMG93IAVfsEJeiqrabtoad8TP23+Jy6sPSpJITjQBFFS3HWUSiCq xvFsuBJrVGFMnmbtpOCsQGgjBaS/L87P9xIpohCXGrEdZIXtN0TMX44G5o/vItkb/bnB RppBkHXF6cmywgbCxLr4Vhiioc3QoR+/zBdcaq4Zxe96cD1MjkIJ4bw6koAa7GDmteOu ka2oKdkQXQE7lah7rF33nQmSbK7dIUXsnqmCdYDCT4imeNPVxuxylR3s3yR2hSYtXU3k 1iGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=tNBt7QsDQ3skSgALBVmChSmFE2hDY+hSZDhmqqMCppQ=; b=nAgPCyMCE61zoEle8kwmLQJU4EmMg4T6WcDL4+CmMiJiDq4zOvkRCTm/TbKpwzIFyj /mIpZtr1E5n3ArXzBlThkPLXSWgL96kT+Q85ru1DwPUT3oaWyusxVRDAVkS5dgzDfX1L ZZXG6LkxwKNLX1tM5lp5HoHO1NQgrVrITQmklVjQlfcof4HR1+qkgmtOhA8QItuH17wl zN7eUNWNaxFFSa++kuX2cqHDZW1TdTGKWSpf05SkdmzhqITImuTNcL4JcoMPPnbaqC7i CCfFZ/TcVfY36q0wqmwadCAbgwZw5VTY2qlqCw/WBoxcSwcZapu6gL/cGJN4ViMpKyGV WJNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ATB2uIqm; 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 bc4-v6si5200886plb.254.2018.06.14.07.21.12; Thu, 14 Jun 2018 07:21:26 -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=ATB2uIqm; 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 S966324AbeFNOTF (ORCPT + 99 others); Thu, 14 Jun 2018 10:19:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:54616 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966173AbeFNONK (ORCPT ); Thu, 14 Jun 2018 10:13:10 -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 6B441208E4; Thu, 14 Jun 2018 14:13:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1528985590; bh=xLxz/iUafIDXQrmVaFmjpQMPlJ1ucexw8e6tpSEf8W0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ATB2uIqmgBEGS30b0apJqBBcajqGej4tV0SPhQ+ae7/pAJSu7QBCzRIZSTebkifYD yaiFKFKOmxUhy16y5XvyLAL3q87pNhxSXlj8FOeWWZ2RwwDtsO7yI7DVJnrrg2k5RH 1Pj4e8h61XdyIVs5ARvvAxADAxoi1/IQXgOzblRk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , 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: [PATCH 4.4 14/24] x86/crypto, x86/fpu: Remove X86_FEATURE_EAGER_FPU #ifdef from the crc32c code Date: Thu, 14 Jun 2018 16:05:09 +0200 Message-Id: <20180614132725.057373052@linuxfoundation.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180614132724.483802160@linuxfoundation.org> References: <20180614132724.483802160@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 02f39b2379fb81557ae864ec8f85421c0250c954 upstream. The crypto code was checking both use_eager_fpu() and defined(X86_FEATURE_EAGER_FPU). The latter was nonsensical, so remove it. This will avoid breakage when we remove X86_FEATURE_EAGER_FPU. Signed-off-by: Andy Lutomirski Signed-off-by: Rik van Riel 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: Thomas Gleixner Cc: pbonzini@redhat.com Link: http://lkml.kernel.org/r/1475627678-20788-2-git-send-email-riel@redhat.com Signed-off-by: Ingo Molnar Signed-off-by: Greg Kroah-Hartman --- arch/x86/crypto/crc32c-intel_glue.c | 5 ----- 1 file changed, 5 deletions(-) --- a/arch/x86/crypto/crc32c-intel_glue.c +++ b/arch/x86/crypto/crc32c-intel_glue.c @@ -58,16 +58,11 @@ asmlinkage unsigned int crc_pcl(const u8 *buffer, int len, unsigned int crc_init); static int crc32c_pcl_breakeven = CRC32C_PCL_BREAKEVEN_EAGERFPU; -#if defined(X86_FEATURE_EAGER_FPU) #define set_pcl_breakeven_point() \ do { \ if (!use_eager_fpu()) \ crc32c_pcl_breakeven = CRC32C_PCL_BREAKEVEN_NOEAGERFPU; \ } while (0) -#else -#define set_pcl_breakeven_point() \ - (crc32c_pcl_breakeven = CRC32C_PCL_BREAKEVEN_NOEAGERFPU) -#endif #endif /* CONFIG_X86_64 */ static u32 crc32c_intel_le_hw_byte(u32 crc, unsigned char const *data, size_t length)