Message ID | 20210815181314.132330-11-marek.vasut+renesas@gmail.com |
---|---|
State | Changes Requested |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=BWc0XdJN; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Gnltf234Lz9sRN for <incoming@patchwork.ozlabs.org>; Mon, 16 Aug 2021 04:19:22 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 79A7D82F00; Sun, 15 Aug 2021 20:17:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="BWc0XdJN"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 97E7882959; Sun, 15 Aug 2021 20:17:31 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7A9E882E05 for <u-boot@lists.denx.de>; Sun, 15 Aug 2021 20:17:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=marek.vasut@gmail.com Received: by mail-wr1-x435.google.com with SMTP id x12so20500528wrr.11 for <u-boot@lists.denx.de>; Sun, 15 Aug 2021 11:17:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Nyaz39RLG+GSBWa51EC8LgSkgUPSOS6gUsV1SL3Kr7I=; b=BWc0XdJNhm9jcB6ajpMdI3lFZKorEAsZpQxz8rnu9I+dLg/nLsD8nYbfDEI8OhDOSK 4llrUcK3F0OKSsEmW02iJlY+1nmv3XfiP3QQB5zD8jLk17URcOkPf+7UlAmW51kvYNA5 +SjPDtXFEJ7Kb8IM6X8fhYzmhbeKvC/gYnXNoZsjre7Zu2iNK+jP2X0XHBnecZzPg4B1 Ro2dsyRsnjTX3x55SXgk6CacL/d7V0IKI9VfZ/a81/P1p1YAYYjHsA+UKnpeUvdtE8qz QYhUlLG3JXMKMTkHM2X+I+WVEzVDykfUyPpEf5dsW3uBGjCJLPhYoxiRIdIKaDKCP+c8 KZ0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Nyaz39RLG+GSBWa51EC8LgSkgUPSOS6gUsV1SL3Kr7I=; b=tDD1+JAjHIkxkUFZW8yT0gwKFr5tibgFm1e7+jrk5Tc1VOhD2Gv6kLLfyOrNlk4DMG vlrxCPY1AS+sDNmPalURnWdsvvfcJFk3UzVEicV/G004cX0OW3STUivkSg0LCtkThFz2 b/7R/Au8wAARGbaZ94ocjdVVpOGmjlCZ/8iYBK6dgH4JyB+tTvDKo/vajaz0G4rVd77/ BVgzS2x4JA5xmZldnwQRJgEx4ZdwoqCdJss6eaw56a3esysk0NlUKFKVMJYOU1SZuwsR HwAnhQn+bYp71JE2fZ6pLov7KA+Kb95VCmpKvc2ra3at+gTu0b2crYAQGzr/+ohQ24WX 9wzA== X-Gm-Message-State: AOAM5318lWElxgYoNMbM6mkxElEK+UqLvWtO0nal5oTPuKgudvBeGik7 fHByHNxWkibXg73uMS6DHe2larsQHCGQ/g== X-Google-Smtp-Source: ABdhPJwJNmEU+0UOo6gyMQrij7uxzFLlZEXeUI17HrZCVeD4+h5NJ95fsQ+22ePKBznQAye/he3LzQ== X-Received: by 2002:adf:ea49:: with SMTP id j9mr8211696wrn.340.1629051440052; Sun, 15 Aug 2021 11:17:20 -0700 (PDT) Received: from tr.lan (ip-89-176-112-137.net.upcbroadband.cz. [89.176.112.137]) by smtp.gmail.com with ESMTPSA id i8sm5920343wrv.70.2021.08.15.11.17.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Aug 2021 11:17:19 -0700 (PDT) From: Marek Vasut <marek.vasut@gmail.com> X-Google-Original-From: Marek Vasut <marek.vasut+renesas@gmail.com> To: u-boot@lists.denx.de Cc: Marek Vasut <marek.vasut+renesas@gmail.com>, Chris Zankel <chris@zankel.net>, Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>, Tom Rini <trini@konsulko.com> Subject: [PATCH 11/14] lmb: xtensa: Add arch_lmb_reserve() Date: Sun, 15 Aug 2021 20:13:11 +0200 Message-Id: <20210815181314.132330-11-marek.vasut+renesas@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210815181314.132330-1-marek.vasut+renesas@gmail.com> References: <20210815181314.132330-1-marek.vasut+renesas@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
[01/14] configs: Disable LMB and BDI for tools-only
|
expand
|
diff --git a/arch/xtensa/lib/bootm.c b/arch/xtensa/lib/bootm.c index bb1e2886ab..277af18168 100644 --- a/arch/xtensa/lib/bootm.c +++ b/arch/xtensa/lib/bootm.c @@ -197,3 +197,15 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images) return 1; } +static ulong get_sp(void) +{ + ulong ret; + + asm("mov %0, a1" : "=r"(ret) : ); + return ret; +} + +void arch_lmb_reserve(struct lmb *lmb) +{ + arch_lmb_reserve_generic(lmb, get_sp(), gd->ram_top, 4096); +}
Add arch_lmb_reserve() implemented using arch_lmb_reserve_generic(). It is rather likely this architecture also needs to cover U-Boot with LMB before booting Linux. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Chris Zankel <chris@zankel.net> Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> Cc: Tom Rini <trini@konsulko.com> --- arch/xtensa/lib/bootm.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)