Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4786079pxv; Tue, 29 Jun 2021 15:59:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwad1Fmx+haHmYuUyobFQm+QmFO/GymHd8YzGUWm8OkqemA9TQ94LW7ZJAYYOWGH7VLc0Bv X-Received: by 2002:a50:fe8d:: with SMTP id d13mr42916253edt.14.1625007559867; Tue, 29 Jun 2021 15:59:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625007559; cv=none; d=google.com; s=arc-20160816; b=w4vXDSDNxgU4LSCgcN+anGHwSNo5o6FrkHcAeVGpYewBQxogEyoW/WzR/P2DXSFnR1 GLjArkkbemWNIN5j/1Y77P7iZkNW+8qXXlW7geJKq4nH6/vJCnfj8CVkAKHmGAKBlz1N MQ0LINk59DWGLzgrNMjNSBvVmc3qAFvqRcWTN5PlAA40Bgm8q8zU8FQ/Afd/mqFcU40i Q/5hEGQlwleFLJLMC4HhfaczqA/+ORVuRUEik2SggbkCzGAIAYhT5buoTgdeMifTCd88 dTZgxHfHQFireqMGYFcQ6efVAPkI8Z7UcnCAJ6d6TEuRmdx7Fhmk/WnxCacnFJxabvWr 836w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=XCtwoOT/gDcMzaHNoMO9WyHOwg6yfJH1zJcW1hYKrHY=; b=zNUzNi0HHNQBmTYj3NBBmWzho3fPrl99xP5NFave1P3PkzOKMH3thIU+Ah471mbDwJ khcxFVPfKEEIHKgOjQNyRQOV147GQVcYtXL+2BtoLVvuHED15AepqQOa3pSGxtsG0Mxd 0ZgVhoJq/zmnR7LFGTq9CNvkF2RPRj+lELEoasmZ4O3tYJY6x7ZCV0pA/O2Uxrcxa2KT H1YA4euekfo5vYlOdqrX2e6P7H4EzpS/kcff0jotkoRzGTarlxd6N1BSAn/QrCeXHMZ2 5TvdX7B//0vH3eotbzC3L7+VcAvx0edYZDAhpGBbtKcxfeqLT8mbUxWcmfimcZjDQQTy 7M7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@atishpatra.org header.s=google header.b=I1saaJtd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u19si19598307edo.143.2021.06.29.15.58.56; Tue, 29 Jun 2021 15:59:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@atishpatra.org header.s=google header.b=I1saaJtd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235537AbhF2W6z (ORCPT + 99 others); Tue, 29 Jun 2021 18:58:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235506AbhF2W6z (ORCPT ); Tue, 29 Jun 2021 18:58:55 -0400 Received: from mail-yb1-xb2f.google.com (mail-yb1-xb2f.google.com [IPv6:2607:f8b0:4864:20::b2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57974C061760 for ; Tue, 29 Jun 2021 15:56:26 -0700 (PDT) Received: by mail-yb1-xb2f.google.com with SMTP id m9so1624616ybp.8 for ; Tue, 29 Jun 2021 15:56:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atishpatra.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XCtwoOT/gDcMzaHNoMO9WyHOwg6yfJH1zJcW1hYKrHY=; b=I1saaJtdLgSOlHpzEgzntpt8NBggCFBbOpKnGTQ2TP41LkoltDKckTr8Kzz7VLNYKi llXELWkSWMjC1DBe0jj8zIxjwk8bE9r5M+6oc7WPlqnW/UI8Ww0TSqKJEWcKQz09oipR zKRNJjNNFp0Zl7dbjT5hw7pril0Y1uasrZeaM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XCtwoOT/gDcMzaHNoMO9WyHOwg6yfJH1zJcW1hYKrHY=; b=tuzUwN9IpvuLGXNRazurirGnxL7TmtH7QX3ErfIg2wwZy4f72giNM1nS6MoxZHYsZG dMXmfJqHAGDihJ4/3UN3Tq3edRhkChHqAbx/HGNC96XFdHSeBxXRHuzH6pRVjy7WnkAB 4GMq8OQf6kMNjcfzHgkjjkOHUAk9TbTbRyg1O2/12rE4Cmn/RuEiS+Ama+ZKaZL72zjw CCocs8lqO+rTj/bSqUgYRR+XL88ZOHTwf/3lunAjqX/+ZgIGi2efJmiKNkXPa3+IWezB iw1NKYiYnMLKrF7CltPO2EMfUeAPkRZ3YrvX+JK4vAThB5kHQ8jjepMnAkG5EFxPohQu POpQ== X-Gm-Message-State: AOAM531GOYtuY1GBHfvvwuTO1AphKAQBR6u05abC+L4fwnohsDRHVpHH OAsF7N3s+TZN3yViQdE0J1O5rxKT8+FkMe7HPln6 X-Received: by 2002:a25:d015:: with SMTP id h21mr6968289ybg.202.1625007385657; Tue, 29 Jun 2021 15:56:25 -0700 (PDT) MIME-Version: 1.0 References: <20210629134018.62859-1-xypron.glpk@gmx.de> In-Reply-To: <20210629134018.62859-1-xypron.glpk@gmx.de> From: Atish Patra Date: Tue, 29 Jun 2021 15:56:14 -0700 Message-ID: Subject: Re: [PATCH 1/1] RISC-V: load initrd wherever it fits into memory To: Heinrich Schuchardt Cc: Ard Biesheuvel , Andreas Schwab , Paul Walmsley , Palmer Dabbelt , Albert Ou , Atish Patra , linux-efi@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 29, 2021 at 6:40 AM Heinrich Schuchardt wrote: > > Requiring that initrd is loaded below RAM start + 256 MiB led to failure > to boot SUSE Linux with GRUB on QEMU, cf. > https://lists.gnu.org/archive/html/grub-devel/2021-06/msg00037.html > > Remove the constraint. > > Reported-by: Andreas Schwab > Signed-off-by: Heinrich Schuchardt > --- > arch/riscv/include/asm/efi.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/riscv/include/asm/efi.h b/arch/riscv/include/asm/efi.h > index 7542282f1141..649ab513dc99 100644 > --- a/arch/riscv/include/asm/efi.h > +++ b/arch/riscv/include/asm/efi.h > @@ -33,10 +33,10 @@ static inline unsigned long efi_get_max_fdt_addr(unsigned long image_addr) > > #define ARCH_EFI_IRQ_FLAGS_MASK (SR_IE | SR_SPIE) > > -/* Load initrd at enough distance from DRAM start */ > +/* Load initrd anywhere in system RAM */ > static inline unsigned long efi_get_max_initrd_addr(unsigned long image_addr) > { > - return image_addr + SZ_256M; > + return ULONG_MAX; > } > > #define alloc_screen_info(x...) (&screen_info) > -- > 2.30.2 > LGTM Reviewed-by: Atish Patra -- Regards, Atish