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=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 99ABAC433E6 for ; Mon, 11 Jan 2021 10:32:06 +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 3734222515 for ; Mon, 11 Jan 2021 10:32:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3734222515 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:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id: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=XvtkBiu47Pb6VvpUm9t6sbhVDbSxYa0zPYwTaNfpwIM=; b=uB2NgOlHOKXmFku+nLnUz3CrwB Pw+fxuoHP99QOOf0/xq9/xTKiJ1xFXLBI9Je3kIaCdPvfkB9yuAaN4ezOo/OpNUqNP/h9shW7ZBOv gVnYHzGsUWRO6lpblFk2yyt9CLQtRZ39giTnuWtVFCyx9cfR0e5Qw98WbRSRMCTdf/8JflM/yWt2o zE/3YsmqXNGxYvtQIjRPFhggjMvqumIbDArA04HM2uFOr5mebUbM2KgbhP6TArkAJsDuqtyleMIHR lIMQh+LwLpah/XgiXcTFWEiMomXzq6zUi6a1Slbsv8ZrAJA0lTfX3O8Dcd1yVRKlMSjBXkWvsNKpf Q9Wly5Lg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kyuTF-00078U-NP; Mon, 11 Jan 2021 10:30:45 +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 1kyuT4-000744-8Z for linux-arm-kernel@lists.infradead.org; Mon, 11 Jan 2021 10:30:40 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id DB3EC22515; Mon, 11 Jan 2021 10:30:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610361032; bh=9PNGR1FXZxGhqTb0VVkCYsbynbe3dSAXTzZHRfDkxeI=; h=From:To:Cc:Subject:Date:From; b=Cj3Uh0jfJqOMlptZ6P0Y+I6bR7ToFAK9+FS8MTDj5n2A4p4gouq4jTOxmMw8q4c/s IRmmdrJnYDubPF1wU4Qt+2m5KVmSkUfOCnjh0Hhzcg+RI+rU4wbg0l3D41cIzCBzpB 2BdE7ADribUfIyegU3XB/fUgrj0WWXhf5LOxLMmougK1LmzwirSyw4mBvxcOHjau4Q 9SV6IJMiRl9Z4QjGnqyMIl8zQlhe1CFosCDGCevcDaCAq6+3wS25EnkARkDGutQC8R Y7XW2h8bvi0/XA89Y0SOpjM3h0frNY/6v4pqjGZECr5re8+r5NrRGu02hDbEBkqWRa DAJH+BqiU5Nfw== From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 0/2] ARM: remove TEXT_OFFSET override for Axxia Date: Mon, 11 Jan 2021 11:30:18 +0100 Message-Id: <20210111103020.32372-1-ardb@kernel.org> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210111_053034_433248_BE9D6CA5 X-CRM114-Status: GOOD ( 13.41 ) 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: Arnd Bergmann , Geert Uytterhoeven , Linus Walleij , Russell King - ARM Linux , Alexander Sverdlin , Ard Biesheuvel MIME-Version: 1.0 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 Now that the minimum relative alignment of physical to linear virtual addresses has been reduced to 2 MiB (from 16 MiB), simply rounding up the lowest usable DRAM address is no longer as wasteful as before. Combined with Geert's DT memory discovery patch [0], we can now also cross reference the decompressor's intended load address against DT memory reservations, and override it if it points into a reserved area. By doing this, we remove the need for TEXT_OFFSET hacks that override the placement of the decompressed kernel on all platforms to accommodate a single platform that has decided to put reserved areas at the base of DRAM. As a first step, apply this change to mach-axxia, which is the only platform that increments TEXT_OFFSET by 3 MiB, and defines this memory reservation as a /memreserve/ entry. Future followup work could be done that takes the /reserved-memory node into account as well, which would allow us to remove another set of TEXT_OFFSET override hacks for a collection of Qualcomm platforms. [0] https://lore.kernel.org/linux-arm-kernel/20210104130111.1269694-1-geert+renesas@glider.be/ Cc: Arnd Bergmann Cc: Linus Walleij Cc: Russell King - ARM Linux Cc: Geert Uytterhoeven Cc: Alexander Sverdlin Ard Biesheuvel (2): ARM: take memreserve FDT entries into account when discovering base of RAM ARM: axxia: remove TEXT_OFFSET override hack arch/arm/Makefile | 1 - arch/arm/boot/compressed/Makefile | 2 ++ .../arm/boot/compressed/fdt_check_mem_start.c | 35 ++++++++++++++++++- 3 files changed, 36 insertions(+), 2 deletions(-) -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel