From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BEB8EC433E0 for ; Fri, 8 Jan 2021 17:16:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9628F2396F for ; Fri, 8 Jan 2021 17:16:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728235AbhAHRQK (ORCPT ); Fri, 8 Jan 2021 12:16:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:50570 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727471AbhAHRQJ (ORCPT ); Fri, 8 Jan 2021 12:16:09 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 126172396F; Fri, 8 Jan 2021 17:15:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610126129; bh=YhR6DyJ6oSXaH8kGg7Rrar6eHVmLXFUyvbhiZEytVM0=; h=From:To:Cc:Subject:Date:From; b=ro6hxY1P1RL8dsSv1xyCOQy+ixIxUkdshRdTRxE/tyhfzxg3hlA1fAKjJ+oZLrnQ1 pfk375zMP1ER8q4+pElBswPKJ4R9KZFL9/F5MFDmPl6yTNO+2WdvnOf3PqRDVV8rB9 7XqMotEh4KRpLyIRVlElPUlTSenZu4pThQwvVUgwpG2JsVlnhyQnIA58C9DiPDAOe5 01I8XmWPPlWFl1buFeG/SFJxE+pFV0US0cs6rqpaZZP826GMgS0HTnng6nWl7dJV3b kFbyCPF9W2NSvUNmdHnKwY+ZLiXMyg02Uo0FKHgOQ5eIkWs4n69esukrAawUMmxZ+I nBPHc7c2MqfWQ== From: Will Deacon To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, Will Deacon , Catalin Marinas , Jan Kara , Minchan Kim , Andrew Morton , "Kirill A . Shutemov" , Linus Torvalds , Vinayak Menon , Hugh Dickins , kernel-team@android.com Subject: [PATCH v2 0/3] Create 'old' ptes for faultaround mappings on arm64 with hardware access flag Date: Fri, 8 Jan 2021 17:15:14 +0000 Message-Id: <20210108171517.5290-1-will@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, This is version two of the series I originally posted here: https://lore.kernel.org/r/20201209163950.8494-1-will@kernel.org The patches allow architectures to opt-in at runtime for faultaround mappings to be created as 'old' instead of 'young'. Although there have been previous attempts at this, they failed either because the decision was deferred to userspace [1] or because it was done unconditionally and shown to regress benchmarks for particular architectures [2]. The big difference in this version is that I have reworked it based on Kirill's patch which he posted as a follow-up to the original. However, I can't tell where we've landed on that -- Linus seemed to like it, but Hugh was less enthusiastic. I think that my subsequent patches are an awful lot cleaner after the rework, but I don't think I necessarily depend on everything in there so if that patch is likely to be a sticking point then I can try to extract the parts I need. Feedback welcome. Cheers, Will [1] https://www.spinics.net/lists/linux-mm/msg143831.html [2] 315d09bf30c2 ("Revert "mm: make faultaround produce old ptes"") Cc: Catalin Marinas Cc: Jan Kara Cc: Minchan Kim Cc: Andrew Morton Cc: Kirill A. Shutemov Cc: Linus Torvalds Cc: Vinayak Menon Cc: Andrew Morton Cc: Hugh Dickins Cc: --->8 Kirill A. Shutemov (1): mm: Cleanup faultaround and finish_fault() codepaths Will Deacon (2): mm: Allow architectures to request 'old' entries when prefaulting arm64: mm: Implement arch_wants_old_prefaulted_pte() arch/arm64/include/asm/pgtable.h | 12 +- fs/xfs/xfs_file.c | 6 +- include/linux/mm.h | 17 ++- include/linux/pgtable.h | 11 ++ mm/filemap.c | 181 +++++++++++++++++++------ mm/memory.c | 219 +++++++++++-------------------- 6 files changed, 251 insertions(+), 195 deletions(-) -- 2.29.2.729.g45daf8777d-goog From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 31C6EC433DB for ; Fri, 8 Jan 2021 17:18:21 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DC0182396F for ; Fri, 8 Jan 2021 17:18:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DC0182396F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=XKBXDMuJIhwUSaD+L9FuVrCRP+Q9tqRhnvqenPnOy50=; b=mV6efwZfx4wmbuSfXC1n4EoEk3 Dj1aUQSlZ3aYMENqOzXI5e7FdJGQzg14/lUBq72mDRXRGeHA9WIug4LNrtHAoYNqfB+VQ/FqWVrnx aJ82wyvl0j2wFIwB7rhU0hBbe86LAPTQMqxr0bwjaXV3MnSEHN4cVqyyqsmHwHm2ZEucjtPDIML49 YCCh8XZ3W2+NKFwOD4kwpwRJqRGl9j4igTiqYdJUCTOVoSYL761BAYh65SqXjSLYUeDb7h1B38ewq gHEOtcwlQPFR7jgU9XBypX2k+/h1RX3WJEGynqRQHKCSCpcdwEMqLdcYXcDHBL/TsD00VXHUANUaJ wILv/LDw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kxvMh-0004qB-2G; Fri, 08 Jan 2021 17:15:55 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kxvMI-0004pU-2t for linux-arm-kernel@lists.infradead.org; Fri, 08 Jan 2021 17:15:31 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 126172396F; Fri, 8 Jan 2021 17:15:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610126129; bh=YhR6DyJ6oSXaH8kGg7Rrar6eHVmLXFUyvbhiZEytVM0=; h=From:To:Cc:Subject:Date:From; b=ro6hxY1P1RL8dsSv1xyCOQy+ixIxUkdshRdTRxE/tyhfzxg3hlA1fAKjJ+oZLrnQ1 pfk375zMP1ER8q4+pElBswPKJ4R9KZFL9/F5MFDmPl6yTNO+2WdvnOf3PqRDVV8rB9 7XqMotEh4KRpLyIRVlElPUlTSenZu4pThQwvVUgwpG2JsVlnhyQnIA58C9DiPDAOe5 01I8XmWPPlWFl1buFeG/SFJxE+pFV0US0cs6rqpaZZP826GMgS0HTnng6nWl7dJV3b kFbyCPF9W2NSvUNmdHnKwY+ZLiXMyg02Uo0FKHgOQ5eIkWs4n69esukrAawUMmxZ+I nBPHc7c2MqfWQ== From: Will Deacon To: linux-kernel@vger.kernel.org Subject: [PATCH v2 0/3] Create 'old' ptes for faultaround mappings on arm64 with hardware access flag Date: Fri, 8 Jan 2021 17:15:14 +0000 Message-Id: <20210108171517.5290-1-will@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210108_121530_244358_9814ADB7 X-CRM114-Status: GOOD ( 14.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kernel-team@android.com, Jan Kara , Minchan Kim , Catalin Marinas , Linus Torvalds , Hugh Dickins , linux-mm@kvack.org, Vinayak Menon , "Kirill A . Shutemov" , Andrew Morton , Will Deacon , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi all, This is version two of the series I originally posted here: https://lore.kernel.org/r/20201209163950.8494-1-will@kernel.org The patches allow architectures to opt-in at runtime for faultaround mappings to be created as 'old' instead of 'young'. Although there have been previous attempts at this, they failed either because the decision was deferred to userspace [1] or because it was done unconditionally and shown to regress benchmarks for particular architectures [2]. The big difference in this version is that I have reworked it based on Kirill's patch which he posted as a follow-up to the original. However, I can't tell where we've landed on that -- Linus seemed to like it, but Hugh was less enthusiastic. I think that my subsequent patches are an awful lot cleaner after the rework, but I don't think I necessarily depend on everything in there so if that patch is likely to be a sticking point then I can try to extract the parts I need. Feedback welcome. Cheers, Will [1] https://www.spinics.net/lists/linux-mm/msg143831.html [2] 315d09bf30c2 ("Revert "mm: make faultaround produce old ptes"") Cc: Catalin Marinas Cc: Jan Kara Cc: Minchan Kim Cc: Andrew Morton Cc: Kirill A. Shutemov Cc: Linus Torvalds Cc: Vinayak Menon Cc: Andrew Morton Cc: Hugh Dickins Cc: --->8 Kirill A. Shutemov (1): mm: Cleanup faultaround and finish_fault() codepaths Will Deacon (2): mm: Allow architectures to request 'old' entries when prefaulting arm64: mm: Implement arch_wants_old_prefaulted_pte() arch/arm64/include/asm/pgtable.h | 12 +- fs/xfs/xfs_file.c | 6 +- include/linux/mm.h | 17 ++- include/linux/pgtable.h | 11 ++ mm/filemap.c | 181 +++++++++++++++++++------ mm/memory.c | 219 +++++++++++-------------------- 6 files changed, 251 insertions(+), 195 deletions(-) -- 2.29.2.729.g45daf8777d-goog _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel