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.4 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=ham 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 AAB7DC4707F for ; Thu, 27 May 2021 11:06:12 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 6D46E60241 for ; Thu, 27 May 2021 11:06:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6D46E60241 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=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :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=tErSvHm6FEe6yIdOo5/3jmaMbZcqGaKzRXlFog0/tMc=; b=Rm8DiX/+u1XT+E Y2/EqVZNlXvOBU2SP0RBL/J5jAYg3EmaJ6f49hv7VxazHFyiirqeNFM5JsNRxUgAEwMqIc5nzbjgP Ii982VUr7IG7VbLtcjcMzWi3nqBlOmcvvRPIWEFIVgXSJiAFoqqfYLDlMEYqXwb2SNzZDc6ZayvUs ezNjmdsxleqUaoCD2iZp5xhpYZhCsjldSUbsb7jgHtDeOVsAzm04RrkLe802WwbKBJMPuGnlnZwV9 02jEnA51BuB8J4SKLGAx6uU9ieYipjhFbFXBVQJ+OzDZXqfm0L0r4lwBqS0uHDQ4TJoUQT8tu4Qv4 GyqONh+V/uqKFCqlfZiA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lmDnl-0053ss-7B; Thu, 27 May 2021 11:03:45 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lmDnR-0053l0-60 for linux-arm-kernel@lists.infradead.org; Thu, 27 May 2021 11:03:26 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2D919613D3; Thu, 27 May 2021 11:03:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622113404; bh=LoAEVtVrzox/Ki40BNLVt5e4sQ0kA0tG5UxU5WbINq8=; h=From:To:Cc:Subject:Date:From; b=kp6KfSrs+5HgipQLaiDrlh454oKrmJhknW7ClaTAhrVAYczGD7N1vXvi1aeHInRz5 StJogJwOLY8Mv2jJpVTmqphlCtAF/NejCTVfuPY2G4ktZmPdyEQP1jyDBToBWAp42M K//2hpfKgcql78r6GSXqaid5PPtj8XgvGHNGKQ/BHYMdl/cSlPAbloqLsmEkTGRO+G lPhMDTlCd6V22xqXMVXvSqnhjmEksRy6m3hSVGMQmPpnAXgbJbidDF0W+23EtzbuPa CNhTDJHkgGZ7bmajiJ0osQSfV689gIvWl36RXFDXtxJPb2/5QNACgU0njV1sAqiS+a ryTV+42UeS07g== From: Will Deacon To: linux-arm-kernel@lists.infradead.org Cc: kernel-team@android.com, Will Deacon , Christoph Hellwig , Catalin Marinas , Ard Biesheuvel , Lorenzo Pieralisi , Mark Rutland Subject: [PATCH v2 0/3] Free up a couple of MAIRs Date: Thu, 27 May 2021 12:03:16 +0100 Message-Id: <20210527110319.22157-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-20210527_040325_289687_A03E854D X-CRM114-Status: GOOD ( 11.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 folks, This is version two of the patches I previously posted here: v1: https://lore.kernel.org/r/20210506095034.15246-1-will@kernel.org Changes since v1 include: * Only consider EFI_MEMORY_WT as a last resort * Emit warning when using Normal-NC for EFI_MEMORY_WT * Added acks * Rebased onto -rc3 Catalin pointed out that the Device-GRE memory type is unused, despite having a MAIR allocation. In removing that, I noticed that we also allocate Normal-WT despite it only being used for EFI_MEMORY_WT mappings, which is unheard of in isolation. With these changes, we free up a couple of MAIR entries for more interesting things (e.g. outer cacheability attributes if we need them in future for the SLC). Cheers, Will Cc: Christoph Hellwig Cc: Catalin Marinas Cc: Ard Biesheuvel Cc: Lorenzo Pieralisi Cc: Mark Rutland --->8 Will Deacon (3): arm64: mm: Remove unused support for Device-GRE memory type arm64: acpi: Map EFI_MEMORY_WT memory as Normal-NC arm64: mm: Remove unused support for Normal-WT memory type arch/arm64/include/asm/memory.h | 6 ++---- arch/arm64/include/asm/pgtable-prot.h | 1 - arch/arm64/include/asm/sysreg.h | 2 -- arch/arm64/kernel/acpi.c | 22 +++++++++++++++++----- arch/arm64/mm/proc.S | 2 -- arch/arm64/mm/ptdump.c | 4 ---- 6 files changed, 19 insertions(+), 18 deletions(-) -- 2.31.1.818.g46aad6cb9e-goog _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel