Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1013371ybg; Mon, 27 Jul 2020 05:49:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQOYIM3GZbNQ+Pk3A6PEnZLQKx+y3z5pYhk2QcUvRO3CO5VBK4+nz85l6W77p8smzJzq13 X-Received: by 2002:aa7:c442:: with SMTP id n2mr20672810edr.309.1595854188973; Mon, 27 Jul 2020 05:49:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595854188; cv=none; d=google.com; s=arc-20160816; b=bHAeb6vRxdMYDoQh0SHWIrzNcONlEOBmDL2blhPZxsAKy1vAu+w3r60s1sYHryoQrL aE8oafb5ri66iZdOC8294AxClrrPfwhlkdog00QSL6WqLzw3utO35ET/t/xq1CaobSzn 8CC2ZnQ8Y2vs273jXtPof+VI4Enll6mWqPBM5cfQlc9xVOiO5gCWUi8t6FC7atzukpIU GkzaEGy2I6uFQgjnXRR/59/aRlJ35u+sv4Kt+qUCESax4ZrUC2hkH88F3tMoVfUUavu0 UnBKYYoR5RyTmNUW3G5vh/9zpQ3l7KUTt4fSGGCXs8WAFFfQKgBXbYtlZU1EEDvcuOeD JAwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:dkim-signature :dkim-signature:date; bh=zaloEFRTqoTP58E0zEf74QFtQaCoWtp3TL9B5Itjv9U=; b=VtXC7ObLnK/3Ve2736Grxl8aNccm6QfdmAlTU1HgIo9UAhdxN+z1ApoTQn+v7y7XT/ Q31jDJHZgcoSVRK10CjzIRtm4OijPQCc7BObe+8ZXH7kTsTBpiGw+WOuA5Jy7SkWBvvO iu1XAOy/aM71LOlcJh4Do5/i563Cq3ZxrGA7YBYhB0HEp4RSyzxl83lnNsM2XnHIHgwF KnyLMn8JLWwap+nA7dOGNtA3tdLrbetrWEzxf+HecHxmEOaTH2iHMD6wInkOJkkYB+za 82kdiXQiEtW9ax9kCl6o+MY+0L2Nz6+p7MdYKhBcSK7lVBCJilfOuMb0P59IbNs/P6fB 4E9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=vUnyyTQR; dkim=neutral (no key) header.i=@vger.kernel.org; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v24si1710052edl.35.2020.07.27.05.49.27; Mon, 27 Jul 2020 05:49:48 -0700 (PDT) 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=fail header.i=@linutronix.de header.s=2020 header.b=vUnyyTQR; dkim=neutral (no key) header.i=@vger.kernel.org; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728528AbgG0Mql (ORCPT + 99 others); Mon, 27 Jul 2020 08:46:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728495AbgG0MqX (ORCPT ); Mon, 27 Jul 2020 08:46:23 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 931B2C061794; Mon, 27 Jul 2020 05:46:22 -0700 (PDT) Date: Mon, 27 Jul 2020 12:46:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1595853980; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zaloEFRTqoTP58E0zEf74QFtQaCoWtp3TL9B5Itjv9U=; b=vUnyyTQRM8mcfmW1fqsro1OjmXz4vT5EvBs0ppcNdOYvJDoSBtbdcyN5IAfG7bxoJPxqh1 S3KLddU4m2OP38D8GiZ69BNJOETMPgytjCHjJQ7aiPiWsIBZ7krqVrMdDPd7CcQn+iL2al 2iuxkUGcgCuKrqdFnWcfUL45lAvd4mniVHpyx5lmBZcy9o3AwNqC9BVWoAZfCTvgE4IizS gxmpj9Ew7GgVxEyz8rxL9+6BXse9mBiN6ISJayh0aOIAMSGtGt2WI2JXgAjJNKuQlltu0z cmwgpZJLbwnw5fUBcrpxbbKCUcnOdf8LoQU3xBR+IVMds5s8L1S0L3C7uXzyeg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1595853980; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zaloEFRTqoTP58E0zEf74QFtQaCoWtp3TL9B5Itjv9U=; b=5Vlu6OlzWRusdYSFX7h07Y10owcO8UdyBwUmxXq9Px6ljvz8K/XICgNFWOt0OhY6DLVlU8 HlCYNPCf4R6wWnCw== From: "tip-bot2 for Joerg Roedel" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/mm] x86/mm/64: Do not sync vmalloc/ioremap mappings Cc: Joerg Roedel , Ingo Molnar , Mike Rapoport , x86 , LKML In-Reply-To: <20200721095953.6218-3-joro@8bytes.org> References: <20200721095953.6218-3-joro@8bytes.org> MIME-Version: 1.0 Message-ID: <159585398003.4006.15699987838110302486.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/mm branch of tip: Commit-ID: 8bb9bf242d1fee925636353807c511d54fde8986 Gitweb: https://git.kernel.org/tip/8bb9bf242d1fee925636353807c511d54fde8986 Author: Joerg Roedel AuthorDate: Tue, 21 Jul 2020 11:59:52 +02:00 Committer: Ingo Molnar CommitterDate: Mon, 27 Jul 2020 12:32:29 +02:00 x86/mm/64: Do not sync vmalloc/ioremap mappings Remove the code to sync the vmalloc and ioremap ranges for x86-64. The page-table pages are all pre-allocated now so that synchronization is no longer necessary. Signed-off-by: Joerg Roedel Signed-off-by: Ingo Molnar Reviewed-by: Mike Rapoport Link: https://lore.kernel.org/r/20200721095953.6218-3-joro@8bytes.org --- arch/x86/include/asm/pgtable_64_types.h | 2 -- arch/x86/mm/init_64.c | 5 ----- 2 files changed, 7 deletions(-) diff --git a/arch/x86/include/asm/pgtable_64_types.h b/arch/x86/include/asm/pgtable_64_types.h index 8f63efb..52e5f5f 100644 --- a/arch/x86/include/asm/pgtable_64_types.h +++ b/arch/x86/include/asm/pgtable_64_types.h @@ -159,6 +159,4 @@ extern unsigned int ptrs_per_p4d; #define PGD_KERNEL_START ((PAGE_SIZE / 2) / sizeof(pgd_t)) -#define ARCH_PAGE_TABLE_SYNC_MASK (pgtable_l5_enabled() ? PGTBL_PGD_MODIFIED : PGTBL_P4D_MODIFIED) - #endif /* _ASM_X86_PGTABLE_64_DEFS_H */ diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index e76bdb0..e0cd2df 100644 --- a/arch/x86/mm/init_64.c +++ b/arch/x86/mm/init_64.c @@ -217,11 +217,6 @@ void sync_global_pgds(unsigned long start, unsigned long end) sync_global_pgds_l4(start, end); } -void arch_sync_kernel_mappings(unsigned long start, unsigned long end) -{ - sync_global_pgds(start, end); -} - /* * NOTE: This function is marked __ref because it calls __init function * (alloc_bootmem_pages). It's safe to do it ONLY when after_bootmem == 0.