Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2996265pxb; Tue, 19 Jan 2021 10:55:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwA33/kK5amCRi2hiJHuhYqiRHv77CYNJKLFvSvLSZKCXbjOj+fpA2UlyMiS9/y+4TaCOro X-Received: by 2002:a17:906:70d4:: with SMTP id g20mr4004334ejk.361.1611082508537; Tue, 19 Jan 2021 10:55:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611082508; cv=none; d=google.com; s=arc-20160816; b=r4wa3vjsB8WLu+i6OxRS/JSHdW147aDj2P5x5QOh6nuCYdg3A2UK7lxqjGQBNZV02c tyt1Ran1zl4pEemrSd5CGOfwUzGvJK9BhFj/grq3yiF9MBNY6hFg0DphnwRNFHlXM3zb 5Vc/qX3je3P+GcRd+7tzPzNnOs+4jgGGCp8QOnGuUrTaTn8LGaAfcEUXX6L0Kb0fhqH8 Y8tMr4OjaDS+OyqANyA35OwqMzsabCD3wq+2ZqmA5wWEeLZ07++SdWlQNMwK2Uju1x/G M2mNcFjl3la/AVqe3BWvMAvjBO13uzR6II1kU0SszSP4e66YAbDig2IyebbXDqmQxmbq DHww== 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=Bho1b5UsdGwmbHyxOjuUtptCbTrIk4Ogt5jjxjLgmms=; b=K3Q/uSAAGYEPRm1X/sGd8l5ibI+MKhnefhfSamm2pWS5XlJHfxcbXzv6zvURQqTe35 7VL1hn7P094FWw5WwdPmdbNTTBF7dCxLFjep5nNJNqvysRz35Y286ZA11KwmrqvxWvJU zTgyjK+42nmvSnJbhQbRqagLTedWxR4dR93TE07HwP6XV95BfzMsA+z4aMb/wQvKqu6F 1Yv211V14LLoPDDZthBNdl3V562lJo8xybqxt0yG7E/09DdrCiP9kgibQiRBlz9pqp2f FFLzUghQvmEc3sMNXOZo1wua/2ZXfE1yHiKRNnLdfJLCH0ML8/WClDzozKUzVgRjG0wB a7Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Ox/tzsSk"; 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 bi12si6742808edb.423.2021.01.19.10.54.44; Tue, 19 Jan 2021 10:55:08 -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="Ox/tzsSk"; 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 S1729155AbhASSxe (ORCPT + 99 others); Tue, 19 Jan 2021 13:53:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:49886 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729303AbhASS2Q (ORCPT ); Tue, 19 Jan 2021 13:28:16 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 72FB823382; Tue, 19 Jan 2021 17:39:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611077947; bh=fQ8cPHRGRF+GCX++UouMADtg5PnfwR+E6puxFz1iVGg=; h=From:To:Cc:Subject:Date:From; b=Ox/tzsSk1yTqgCJVeSdEzp13i/9son2f0VyRVLy9z4TkapPZP4BrJdlu4bGzfl5HR +UzuE+ykHAndP16U4KZCj8+A0gIOUMiqbPxiRoRZ98pJEfUntUG2MB5glbaf4klBkz TLJ3/X0qyhpGYpJFJar6CzmmeWbvr/ttOeBY9w4/47L5gnuzA4I7cqoxFIWYuGNVl8 hpVlhyKBaKw/2s4SVNOTqbPNbxHbqhpF47S62+bKUPDv3cuzW/bpDl45RJ6bTrCdSy ed/rhXapQINnzM/NEvzch4cLpGup+jRqtHDgvHeP/rh4oyyDwbertE2+FjVr7HvftM F3VBXMjSBK5UA== From: Andy Lutomirski To: x86@kernel.org Cc: LKML , Krzysztof Mazur , =?UTF-8?q?Krzysztof=20Ol=C4=99dzki?= , Arnd Bergmann , Andy Lutomirski Subject: [PATCH v2 0/4] x86/fpu: Reduce unnecessary FNINIT and MXCSR usage Date: Tue, 19 Jan 2021 09:38:58 -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 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 | 17 +++++++++++------ arch/x86/lib/mmx_32.c | 20 +++++++++++++++----- arch/x86/platform/efi/efi_64.c | 4 ++-- 5 files changed, 73 insertions(+), 19 deletions(-) -- 2.29.2