From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 27 May 2026 17:08:57 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wSFsO-004QUh-3C for lore@lore.pengutronix.de; Wed, 27 May 2026 17:08:57 +0200 Received: from bombadil.infradead.org ([2607:7c80:54:3::133]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1wSFsO-0006fG-CC for lore@pengutronix.de; Wed, 27 May 2026 17:08:56 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=2/ydgYqAHhLxpRKmLuQIlx2u215VPKJsiViJ7JYV80o=; b=Z01t0YMSwBUL4YuA2OExSJcB+f JavIqQnvgh/y8jlNq1RBr0zlj1Ki9OE74NTzV3DCK7lAc9JX7TvjkuCS2zPJOQl5AY4e8RWANN1h7 rkTbcAiR2ap35wDHeV9KAQurFrj+SzRqXoWKkRPUdCBOVhqkqiP65xD04CvjOKC92eo9RUPUUatN0 kpwEjlTpJCZxfwWMnE1CBXKPARAfeI9wzKIp8z+leY6BjYnM/uL2ZOA5vkf3OmxKqjsrYnG+lNmq8 pOtkHV6DXjOYOj11UPK5cPUDh3jclv2Zpf+W5Uizip7gPgJlM55iKFF5PF/pGl3OeXx+Ox3DjbMwT cr1uX7cw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wSDI4-0000000454x-0vYS; Wed, 27 May 2026 12:23:16 +0000 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wSDI1-0000000454E-0cgU for barebox@lists.infradead.org; Wed, 27 May 2026 12:23:14 +0000 Received: from ptz.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::77] helo=[127.0.0.1]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1wSDHz-0002JC-Lz; Wed, 27 May 2026 14:23:11 +0200 Message-ID: <0a9c9c04-554b-43eb-b0f5-ed95c8b2b1ed@pengutronix.de> Date: Wed, 27 May 2026 14:23:11 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: Alexander Shiyan , Sascha Hauer Cc: Barebox List References: <20260521091727.3229229-1-s.hauer@pengutronix.de> From: Ahmad Fatoum Content-Language: en-US, de-DE, de-BE In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260527_052313_191520_A4A50914 X-CRM114-Status: GOOD ( 17.51 ) X-BeenThere: barebox@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "barebox" X-SA-Exim-Connect-IP: 2607:7c80:54:3::133 X-SA-Exim-Mail-From: barebox-bounces+lore=pengutronix.de@lists.infradead.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-5.2 required=4.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Subject: Re: [PATCH] ARM: rockchip: atf: move PBL malloc space away from OP-TEE memory X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on metis.whiteo.stw.pengutronix.de) Hi, On 5/26/26 8:40 PM, Alexander Shiyan wrote: > Ping See the series I should Cc'd you on. Would be cool if you could test master with it applied. Given that June is right around the corner, we would aim for an early june release that contains the fix. Cheers, Ahmad > > чт, 21 мая 2026 г. в 12:17, Sascha Hauer : >> >> We recently introduced initializing the PBL early memory pool which >> might be needed for decompressing the BL31/BL32 firmware files. We >> used the end of the first DRAM region for the pool and with this we >> ended up exactly in the default OP-TEE memory region which is mapped >> as faulting. Move the pool directly beneath the OP-TEE memory. >> >> Fixes: 76b1f31275 ("ARM: rockchip: initialize PBL malloc") >> Signed-off-by: Sascha Hauer >> --- >> arch/arm/mach-rockchip/atf.c | 3 ++- >> 1 file changed, 2 insertions(+), 1 deletion(-) >> >> diff --git a/arch/arm/mach-rockchip/atf.c b/arch/arm/mach-rockchip/atf.c >> index 14797a1e06..96a891847b 100644 >> --- a/arch/arm/mach-rockchip/atf.c >> +++ b/arch/arm/mach-rockchip/atf.c >> @@ -173,7 +173,8 @@ static void rockchip_atf_load_bl31(void *fdt) >> unsigned long bl31_ep; >> >> mmu_early_enable(membase[0], memsize[0]); >> - pbl_malloc_init(membase[0] + memsize[0] - PBL_MALLOC_SIZE, PBL_MALLOC_SIZE); >> + pbl_malloc_init(membase[0] + memsize[0] - OPTEE_SIZE - PBL_MALLOC_SIZE, >> + PBL_MALLOC_SIZE); >> >> bl31_ep = load_elf64_image_phdr(&bl31); >> >> -- >> 2.47.3 >> > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |