From patchwork Thu Dec 6 18:21:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 153058 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp10860269ljp; Thu, 6 Dec 2018 10:21:42 -0800 (PST) X-Google-Smtp-Source: AFSGD/UbkUUMt96i73UpEvSTVuv0nr8StqWAIyUtsUgyir1N7AMpO3u9wtnY/0uZPwkc64twd3GT X-Received: by 2002:a17:902:280b:: with SMTP id e11mr29412221plb.269.1544120502126; Thu, 06 Dec 2018 10:21:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544120502; cv=none; d=google.com; s=arc-20160816; b=geZ3eXPE8+BlznMmtOhXpq0mQsNxkY6W8nI88R9CsgKSnaYaKyDQfJGQrGnCJjXUEK 8PESXpiilRqtHFOuEXlVIEnuMRX/SeOJqwG3WqZCk1dDI76fdlfISLUOuj09tWocPs/X HVL1rAuLk9hepjKDRy0FUFhnZz0oc1QbfeslG7p8dmlfbL0YVbYwhohQ+0nYmOAin7WW AYeFvqmDJdK4bf0A6qY4tLISDG8s7D03ih1m4rgjeSs2Sn6J6AWHudVfvSWVEE1cryMB jfyCa75uuc+igu8q4ANC0zjKrlNgYEuUJ22gbyCtb9X4okDKm+Aw3dDcDfBy+s7UzCU2 MibA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=xqJcLAFPjNdnSOSIlm+J7oUoqJkLNFSDOb4wFQmLsbg=; b=EAUu3aLeUYMEUQXX/GYGzWKR8BXQZVwxJVzsRaiPCC+v657UtFHIi58oJziZU6ixye 7mKCEvg839NDojP/B2DBKrEIHYt6K/x+UohL054tjIPeAO7NfNYCH2xDFjX7TjpbKzKv PkY2VbXiiRI2+dlWCQh+qRFP+GXG0kBgGzICCpTp2HdlmSAiXkt12rPV4iheUuAyYCmA telqiEehm+DHOKn/IIDqgLUnacRVGCIxjm7l0ZRSErMNEJCz/fX0u/PQx7uGe4n78J1k mj/y7MlC8NLSM1ngTugfuJkeB5SrlHPNaAde2SyUOmKHNA+RWaliVhc68uYujPuTuNLb Zyrg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h13si700592pgs.17.2018.12.06.10.21.41; Thu, 06 Dec 2018 10:21:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726043AbeLFSVQ (ORCPT + 31 others); Thu, 6 Dec 2018 13:21:16 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:57818 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725898AbeLFSVP (ORCPT ); Thu, 6 Dec 2018 13:21:15 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7E45180D; Thu, 6 Dec 2018 10:21:15 -0800 (PST) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 4D4B33F5AF; Thu, 6 Dec 2018 10:21:15 -0800 (PST) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 6AEE51AE0BDD; Thu, 6 Dec 2018 18:21:36 +0000 (GMT) From: Will Deacon To: akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, cpandya@codeaurora.org, toshi.kani@hpe.com, tglx@linutronix.de, mhocko@suse.com, sean.j.christopherson@intel.com, Will Deacon Subject: [RESEND PATCH v4 0/5] Clean up huge vmap and ioremap code Date: Thu, 6 Dec 2018 18:21:30 +0000 Message-Id: <1544120495-17438-1-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 2.1.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, This is a resend of version four of the patches I previously posted here: v1: http://lkml.kernel.org/r/1536747974-25875-1-git-send-email-will.deacon@arm.com v2: http://lkml.kernel.org/r/1538478363-16255-1-git-send-email-will.deacon@arm.com v3: http://lkml.kernel.org/r/1539188584-15819-1-git-send-email-will.deacon@arm.com v4: http://lkml.kernel.org/r/1543252067-30831-1-git-send-email-will.deacon@arm.com The only difference from v4 is that I have added Sean's Reviewed-by to the core change. Andrew, please can you take this via your tree for 4.21? Thanks, Will --->8 Will Deacon (5): ioremap: Rework pXd_free_pYd_page() API arm64: mmu: Drop pXd_present() checks from pXd_free_pYd_table() x86/pgtable: Drop pXd_none() checks from pXd_free_pYd_table() lib/ioremap: Ensure phys_addr actually corresponds to a physical address lib/ioremap: Ensure break-before-make is used for huge p4d mappings arch/arm64/mm/mmu.c | 13 +++--- arch/x86/mm/pgtable.c | 14 +++--- include/asm-generic/pgtable.h | 5 ++ lib/ioremap.c | 103 +++++++++++++++++++++++++++++------------- 4 files changed, 91 insertions(+), 44 deletions(-) -- 2.1.4