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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 2E4EBC00140 for ; Mon, 15 Aug 2022 14:48:19 +0000 (UTC) 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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=C3XRpEjIU6V+0b3xrGvlJ4CkWmcJXWqjT42eQVZZ9tU=; b=4pELl3EYN0W3CF 40y61rWFHW8wAmCcpynFBBdO5GdEwqU59evklRDr0osaQ2QMZn+JM8GRmosF+XF+Ioe9rtnl43Km7 obWo2HXSmeSmvvDh88jrnXifW7dYNH8XMVNEXBgR1hNyDu5JC5VGHZpWVO/BQmZrIAT6H6vdZg2e9 xGR+eds4AJ7PlypbAs5LKGRmPDDEzHWE2xuSKXHlon/cA6TMJoU+KHC/C3OHpJuAprFmVTFDPVQmK UjnZvamCJeZBBePRQ15e1W5CoQI1XCSAyuWJcsl7NY7cvs7R+eHtYo6jp/0/RZbUQKh4JL4hAj5Gu 31dzJ6VSlbIQPGfwdazg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oNbMs-000KC6-6g; Mon, 15 Aug 2022 14:47:02 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oNb5S-0000Vs-L7 for linux-arm-kernel@lists.infradead.org; Mon, 15 Aug 2022 14:29:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=rrol4mSF7Nnsf28gO8HFhWrfxKvzGkMsN1RzKFQV41I=; b=0TNFRsFUVqV/9yIIAlvywx/s9X WTQhOV3ZYdwIiLaCIY1epnvrxsSwzhagucu7J3+G2mESjAyh5poJw5mpJmYAa3hRCs0pS1952SX/+ Ym76+IwEXdPFWYWt6SBXCVfhcGNISyLyZjCheOV44GdaE9cO9z6/1I8ppu32KnyPEgEIi99q306op b3Dyy9iQhwOC9Z1eoqfvACdgkOrpTSd/xH0IWtBEDFXEHywN0QinrMj/SbYHf02t61JxP9FdgFVYe NB5z0SzjtsRdp6+J7B/Fu5AtECcjV43luSZV/LSg8mdpLeGvJf2VA0dINGJbpxY0qok9TY0tTEbyH 13ATeRqA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:33798) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oNb5J-0003CR-3J; Mon, 15 Aug 2022 15:28:53 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1oNb5F-0003tz-UG; Mon, 15 Aug 2022 15:28:49 +0100 Date: Mon, 15 Aug 2022 15:28:49 +0100 From: "Russell King (Oracle)" To: Ard Biesheuvel Cc: linux-arm-kernel@lists.infradead.org, linus.walleij@linaro.org, thunder.leizhen@huawei.com Subject: Re: [PATCH] ARM: mm: shrink permanent FDT mapping to avoid mismatched attributes Message-ID: References: <20220815141027.780659-1-ardb@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220815141027.780659-1-ardb@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220815_072902_798141_F0EDCD32 X-CRM114-Status: GOOD ( 10.27 ) 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 On Mon, Aug 15, 2022 at 04:10:27PM +0200, Ard Biesheuvel wrote: > diff --git a/arch/arm/include/asm/memory.h b/arch/arm/include/asm/memory.h > index a55a9038abc8..aeb83eb5d251 100644 > --- a/arch/arm/include/asm/memory.h > +++ b/arch/arm/include/asm/memory.h > @@ -79,7 +79,6 @@ > #define XIP_VIRT_ADDR(physaddr) (MODULES_VADDR + ((physaddr) & 0x000fffff)) > > #define FDT_FIXED_BASE UL(0xff800000) > -#define FDT_FIXED_SIZE (2 * SECTION_SIZE) > #define FDT_VIRT_BASE(physbase) ((void *)(FDT_FIXED_BASE | (physbase) % SECTION_SIZE)) Should this now use PAGE_SIZE rather than SECTION_SIZE since we won't be using a section mapping? -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel