Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp753783pxb; Wed, 20 Jan 2021 21:19:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJymHnihPCiNqU3tkhzqQhOHkL3BOCBxs6No0K/Bt1qBb/R0ztMo6S/GLFt64M1TNZZLiP+B X-Received: by 2002:aa7:db1a:: with SMTP id t26mr10226739eds.25.1611206351811; Wed, 20 Jan 2021 21:19:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611206351; cv=none; d=google.com; s=arc-20160816; b=xr0bS9JXU4KzJls6dQlzmutYBruffhFU9kxUB35DByMGHxAAtS0IDjPCTHJTjCXW42 43ec7r7vTjJlmoJwRv6SdPDgkVCWGsLlWkkn10X2clsaC/f5bXIBAA48gDSMxeCE6Np1 0RV88tflxuluipMDk7SFKiPTuTbvzSaz8PVI78oDgesUJe2aejw/8ABrJn4yvQvgUVas 9UbEGIwUGkVvDMyAjOFScqhBJdL7ZMTuP1flmk6zJVSdsRHXV4uFg0WLxa14Jnt6zJgt 0ZmkY0TGU6VmQI56A/gsj84Y8plWIxk6JmRsXWTYozT/j29qPwlvH9fuMQ4tK9fLhnyZ a+0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=I283hWMWzr0ZC9N4di42pvfoc81c8jhLrML3M37JQw4=; b=TwP/mLJxY99D4eAplEQr6LvMMIRD3EB+BEcL3/gD6jQzqubmsw82a3o55nUejGSmLy AYYU9Ts+Kgq0zGCwXYShrcKxDIVPjQiKpCjygj9fHgLbXiM9b80xp/D/ksQIa6jcbFuU iE70I66gWeZvdp265+ap2CHznQ7O9GeUnp9IycQC4Ek2//iid1hVA4iYvlaTabQFEY9Q /nBdp6K0uU2/MP79jn53ZlHxi5mFvlAV8/2EZT8zCYVo9XMA6QPyxWY9nfFX4Nen4v43 hPQ5ka0R4T4Zclkz5bkXlUKjcCq9zCA47Gi2EyDOiA8ZupFd2aKeZ7FtyNBxTIPkI8Xg DBug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dtXCriKi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x19si1691224eds.79.2021.01.20.21.18.42; Wed, 20 Jan 2021 21:19:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dtXCriKi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726765AbhAUFPU (ORCPT + 99 others); Thu, 21 Jan 2021 00:15:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:46794 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725765AbhAUFKe (ORCPT ); Thu, 21 Jan 2021 00:10:34 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 84DE3238D7; Thu, 21 Jan 2021 05:09:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611205792; bh=YbN9Rjpu9+5amNEx8O6+cJGQ454I7ra1ehKAt1GioBM=; h=From:To:Cc:Subject:Date:From; b=dtXCriKiOvwgoc+79Hpjy63w5et/LfmSXYXfJCBYaialIgbyoJ4JRSJckgxnVgXgd jlvAFkBwgJh/EojnlipCY7Is/VZnYtu+QuMDl2jk+JP33Hqy//Z2cPPS4vPnFXuKoZ pLv2YCVm8d2U3fEmry5eZCkETUJrdAwrtTmwnig3ShORRMw63Ufxj1TOZjTSrJjNPA iEv1KqTF+9kQ2lqsewbEnGrVHEqd8K2Twg2xiQiyI8fiAHVtbZygSO+9S7klbx8MSL CCTSqYaAZL8W2VPxRHEv00nj9vxHlKdbIo9Dal8UoD118ZEWmP/+qlw+BVRaoN52Ko 0F/WOC/w9IHnw== From: Andy Lutomirski To: x86@kernel.org Cc: LKML , Krzysztof Mazur , =?UTF-8?q?Krzysztof=20Ol=C4=99dzki?= , Arnd Bergmann , Andy Lutomirski Subject: [PATCH v3 0/4] x86/fpu: Reduce unnecessary FNINIT and MXCSR usage Date: Wed, 20 Jan 2021 21:09:47 -0800 Message-Id: X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series fixes two regressions: a boot failure on AMD K7 and a performance regression on everything. I did a double-take here -- the regressions were reported by different people, both named Krzysztof :) Changes from v2: - Tidy up the if statements (Sean) - Changelog and comment improvements (Boris) Changes from v1: - Fix MMX better -- MMX really does need FNINIT. - Improve the EFI code. - Rename the KFPU constants. - Changelog improvements. Andy Lutomirski (4): x86/fpu: Add kernel_fpu_begin_mask() to selectively initialize state x86/mmx: Use KFPU_387 for MMX string operations x86/fpu: Make the EFI FPU calling convention explicit x86/fpu/64: Don't FNINIT in kernel_fpu_begin() arch/x86/include/asm/efi.h | 24 ++++++++++++++++++++---- arch/x86/include/asm/fpu/api.h | 27 +++++++++++++++++++++++++-- arch/x86/kernel/fpu/core.c | 9 +++++---- arch/x86/lib/mmx_32.c | 20 +++++++++++++++----- arch/x86/platform/efi/efi_64.c | 4 ++-- 5 files changed, 67 insertions(+), 17 deletions(-) -- 2.29.2