Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1783604pxb; Sun, 17 Jan 2021 22:55:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJymWaYUWoRxrd127gNen1/6toWNtOH/Tw2dYANbndgxfE4T5zCLQMF2x1I5sR1ixfFNhL2F X-Received: by 2002:a17:906:388b:: with SMTP id q11mr3371281ejd.421.1610952952443; Sun, 17 Jan 2021 22:55:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610952952; cv=none; d=google.com; s=arc-20160816; b=IiDfmwHvsoEwaiy7cD6QrsbOotZHch+SQNiYSiZrAaY6TarrwNhYTAUYjvYzXth/dd tjd71bTEsmw2Cu//nBbv6NzoIdjF27+Zt/wnVEgU3SgGEfyHN1luLZcfpcQYW6No2rA3 I83F2LZzhjdt3ZSnJljbKljAVKaqqUteEYa72Dpx1ZkVVZEbkgC/L6FddQxeUlXGN8HF 2etLcyYFiSqfCtZQ8MzNtNS1QT2uPygAM397QoeccEDcwzmHykFGT1EtaJaQ4fy53Mfa Ryj/KxYy6neMDJxZzLAawmybyxiMgDdjDSSCAk9LdlK3zhVZKBeWPVL4ZhhBtv/Zhlmn gljA== 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=eB9lwS3KfulnK58PqB4lMsHTeGWdz18ka5yvaiD1dgo=; b=ZXLlgLh7iRr8/lVo6gAJ4V9k0jKxVDzIrFYVbEc8cvTRa3+sOGe2+itFcMAaBNusQL RenyMivwB5Yy4SThegJ7m1jfQ1O/0gcPr2r7QJQAonDt3CXlohzRJedO+DQaYlvxHgcw hx+fMqP1yVYWdPUIPr/bc9H9aZJ3GukiRpwmn7wtH7jDZG+7VpMgqBkDStDrFY6klnNQ daaFN8D2iqHNBG+mz5eiWzhsyG/UJg+sLIRD09XW2/EJbsJEuQfQ//q0KY7M3AgNcg57 1amF9/yKM0Zh4xsX96x9hjdE8lpVA0aWn6RhUVpxFGR1623s8JcSm/m5r+fSKZbZ7B6p wUug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="W/QPVTZ2"; 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 i19si7250146edq.373.2021.01.17.22.55.29; Sun, 17 Jan 2021 22:55:52 -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="W/QPVTZ2"; 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 S1731155AbhARGV2 (ORCPT + 99 others); Mon, 18 Jan 2021 01:21:28 -0500 Received: from mail.kernel.org ([198.145.29.99]:54282 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725860AbhARGVX (ORCPT ); Mon, 18 Jan 2021 01:21:23 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6EA9922513; Mon, 18 Jan 2021 06:20:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610950843; bh=24hfdJRWZcqPyS24ESJ7iEzXUdt5YM+29ZgucCMPL7o=; h=From:To:Cc:Subject:Date:From; b=W/QPVTZ2vFs86y6/yPOc0+d2EHDWg+hJLyovMkNWqysIBrRta8PRdzl5zO4URQ/2L jTSbFuW6Q22WJU8iDLM1mXnklomiTNHdFxPZDKyE4BK46qwkp9rvGEDTvAFC1Qxx7X 6MC/mY+sXN77YFQ6Cg1zdYKPXbpa80NTrGE6c5WYLl4f9esx0jjw3K0OzZHyoP9XqD J1yzmEHBk2G+KyhWjV6VgM10zlvE85zWM+geSPTz/+GcBMQXkjuVfcCICn+7PnkEGv wDf0qQjYnl+YkCNO2tHE1rQhRKpB8j9uCkbasAnOnW5Pu31DZVXfZjErHoYY1WTDSA VH3IMj01zd4MQ== From: Andy Lutomirski To: x86@kernel.org Cc: LKML , Krzysztof Mazur , =?UTF-8?q?Krzysztof=20Ol=C4=99dzki?= , Arnd Bergmann , Andy Lutomirski Subject: [PATCH 0/4] x86/fpu: Reduce unnecessary FNINIT and MXCSR usage Date: Sun, 17 Jan 2021 22:20:37 -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 :) Andy Lutomirski (4): x86/fpu: Add kernel_fpu_begin_mask() to selectively initialize state x86/mmx: Use KFPU_MMX 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 | 4 ++-- arch/x86/include/asm/fpu/api.h | 35 ++++++++++++++++++++++++++++++++-- arch/x86/kernel/fpu/core.c | 17 +++++++++++------ arch/x86/lib/mmx_32.c | 10 +++++----- arch/x86/platform/efi/efi_64.c | 2 +- 5 files changed, 52 insertions(+), 16 deletions(-) -- 2.29.2