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 28DBBC5478A for ; Wed, 21 Feb 2024 16:57:25 +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: Subject:To:From:Date:Message-ID:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=NrgiJGhVENye4MKvzPJSNBtPX883joi28K/TmRq2RHM=; b=XSY+oQNm/6v5E5 ZEUYQSW1cmIbWh/cTpOUN3nHF9+xzIkBAK4HfodjzRUKoRIEZkpzXG93DZw747JqwmwxSjqNPydGP Fvn6eGlDU30BTKXIfpfouNGbQrlD7LQP6VfJEpUCTILqj+Uhzo8Uy3YWv5bUy0nkm/oXHlD8sNm+w qLVcBI9dcArf07lbyuTNA4o6sc+Yw2TSpkJ5QktvGYD7OG7dzngbZk1MslnlWBXzuRvYmi3iETiZZ /R86w2PJ67qY2mkUvqdIZxf/Q4t/chmRqXM2on+UT0BYXU92tLnQIHYwSWwxFlg6IphUYogV2vmjI 2971I21+2LLn3C2vlFFg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rcpuB-00000001oX4-0YzT; Wed, 21 Feb 2024 16:57:11 +0000 Received: from mail-qk1-x735.google.com ([2607:f8b0:4864:20::735]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rcpu8-00000001oUq-0aRu for linux-arm-kernel@lists.infradead.org; Wed, 21 Feb 2024 16:57:09 +0000 Received: by mail-qk1-x735.google.com with SMTP id af79cd13be357-787953bdf55so1074385a.3 for ; Wed, 21 Feb 2024 08:57:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708534625; x=1709139425; darn=lists.infradead.org; h=in-reply-to:content-disposition:mime-version:references:subject:to :from:date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=EjEx5GdMf18n+MVcK0OG2gI0zxVtTpHLxuGAPIBqzlA=; b=K6ko4zQRPHkC8IHGw2A+v0TI1zuqLcOw1dJ0sGj1fH9ajIP00/zfDhaqlfTaYiOcOu mZPtvLgsBNM6ruK2N6O+IFyycGOhwqXHfyvF04XZbciBfoMgRZwSGyTg/RCfu96D6cyk adoRqII+7/HOlYekTnxtHDuTHewDkQHwoVd70OGAn8vRBZnbZqD0PaMLidxBfTUjV8dQ VC+BMTXWCL6qXn71zNkNuw0OAOFGOTnA+s3M+ggKUWylQtFKzP6IByxFh2Qn2g1HIi8l d4pnvMmwFgEPYHWh9z3sdc++Itn/DuI3Sq0H8KPkw+uF3YsBy13cO7ZFOOJRrMKojqzH Du4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708534625; x=1709139425; h=in-reply-to:content-disposition:mime-version:references:subject:to :from:date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=EjEx5GdMf18n+MVcK0OG2gI0zxVtTpHLxuGAPIBqzlA=; b=hBTEOxLax8BqQVazB0biYQSLp5Ijt0AYyzDg7tq0cZwe5w8o698k+h+lhdztKnfNFW W2i8BaUoLd/XlSO3B3g9OXnLmgRl6uJhrgvB2cfbjIa8o0QqUgtra46r/3Z7D6IrXQWe eAZS/TycigDcgcvdd2ytw150IscIzhR7TWAmeyZqHGa6E2yFaUEbaeJe+8WmMDgje8K6 m4r6QYwUr6rmmW64ARDKOnkwoxvZxQ0+OdtVLtxx8cQlKAunvuFRl33erDohMvfeF3RJ 6toPXUmRG/BtQeFkZ38S/+v4aqzpZCszxPhLWqWmNfM3dAeSyK6ue1nm31XPnvmC+wO3 2ilA== X-Forwarded-Encrypted: i=1; AJvYcCXs70bRRqKbe/pCTJ/4rqjUbLAxFf3MpwFrwQGL6b1aErRRvxV5aqV2Za10ihtb28zWNPioR5dowHV3vxkD86Q+8slxHeb2sETwbjmjtxErkBoXNB4= X-Gm-Message-State: AOJu0YyH3tjYk9mbGhLTYT6bNqEZua6jjMilDiXuJv/x8TFNJggOdq7f wzMRdJvusTlPsmZrKD8tgRNJ1ASUKVB2c4dvFWYQCajMh75f3o2s X-Google-Smtp-Source: AGHT+IGUX8Pf3qFKmT8HFC1cYqwmlRIY6B8oBVLzt8R7MtzZiDl4O99UQOHB0WFLKn6zfQwLYQ1zWQ== X-Received: by 2002:a05:620a:16b6:b0:787:7f9f:d5ed with SMTP id s22-20020a05620a16b600b007877f9fd5edmr4526752qkj.6.1708534624770; Wed, 21 Feb 2024 08:57:04 -0800 (PST) Received: from Ansuel-XPS. (93-34-89-13.ip49.fastwebnet.it. [93.34.89.13]) by smtp.gmail.com with ESMTPSA id os38-20020a05620a812600b0078722793b6csm4477618qkn.48.2024.02.21.08.57.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 08:57:04 -0800 (PST) Message-ID: <65d62b60.050a0220.c7b96.614e@mx.google.com> X-Google-Original-Message-ID: Date: Wed, 21 Feb 2024 17:57:00 +0100 From: Christian Marangi To: Russell King , Arnd Bergmann , Andrew Morton , Geert Uytterhoeven , Linus Walleij , "Kirill A. Shutemov" , Thomas Gleixner , Jonathan Corbet , Marc Zyngier , "Mike Rapoport (IBM)" , Eric DeVolder , Nathan Chancellor , Kees Cook , "Russell King (Oracle)" , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio , John Crispin Subject: Re: [PATCH v2 0/2] ARM: decompressor: support AUTO_ZRELADDR and appended DTB References: <20240121203009.9257-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240121203009.9257-1-ansuelsmth@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240221_085708_203570_9C2197AC X-CRM114-Status: GOOD ( 28.01 ) 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 Sun, Jan 21, 2024 at 09:29:32PM +0100, Christian Marangi wrote: > This series try to address a long lasting problem with legacy device > that require an appended DTB and the use of AUTO_ZRELADDR. > > With these device AUTO_ZRELADDR is not possible if for some reason at > the start of the RAM it's needed to reserve some space. (example qcom SoC > that allocate reserved space for SMEM) > > In the current implementation with appended DTB and AUTO_ZRELADDR, > the memory start is only derived from the PC register and it can't be > changed by declaring additional info in the DTS. > > In a normal setup, we have an intentional undocumented chosen property > to handle this and the memory node to declare the start of the memory. > > With this applied and ARM_ATAG_DTB_COMPAT_IGNORE_MEM enabled (more > info in the related patch) ipq806x can boot right away with AUTO_ZRELADDR > enabled and a correct memory node defined in DTS. > > It's needed to ignore MEM ATAGs as most of the time the values from the > bootloader are hardcoded and OEM didn't care to actually provide them > resulting in funny situation where a Netgear R7800 with 512Mb of RAM > have Uboot passing 1.7GB of RAM with ATAGS. > > While MEM ATAG may be broken, other ATAG like serial number or bootargs > might still be useful for partition declaration (cmdlinepart) or other > info hence DTB_COMPAT is still needed in these case and can't be > disabled. > > I'm open to any suggestion on how this can be improved and I would love > some additional testing on other legacy platform but I assume this will > permit many legacy device to be correctly supported without having to > hardcode address. > > Changes v2: > - Add Review and Ack Tags > - Use IS_ENABLED instead of global variable > > Christian Marangi (2): > ARM: decompressor: support memory start validation for appended DTB > ARM: decompressor: add option to ignore MEM ATAGs > > arch/arm/Kconfig | 12 ++++++++++++ > arch/arm/boot/compressed/atags_to_fdt.c | 4 ++++ > arch/arm/boot/compressed/head.S | 22 ++++++++++++++++++++++ > 3 files changed, 38 insertions(+) > > Any news for this? -- Ansuel _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel