Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp95935pxv; Wed, 30 Jun 2021 00:32:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtYEHHBjDIDhUrVswfQVM57sf+vrpmngMdwpAZCqVeoQFtc8reWpuM3jHM2X+ic8dTe1TN X-Received: by 2002:aa7:c70d:: with SMTP id i13mr45246387edq.249.1625038329572; Wed, 30 Jun 2021 00:32:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625038329; cv=none; d=google.com; s=arc-20160816; b=SwY1/LR2k3jZhwuxRmSeajeg/hbcZ0wKiIU6FlGkEqMr0wnilE0YThdlSbqVnyjcmE E+JHZoS0Hju9/Cc4+P8jtUHtBixaXLHScwwDbcJ8s8Wn9ARU2S2j+esw00guFIpdjH8D kEEGyDsLpx/Rs20XDthJieAXvnAtwqQq4Fcck9v2MtWRDBwHO9kfW5j8IImf9okFTJ6f iwniMh9mwlW4BgJlpVrJzy+C4Hk0YBmNFN5dyobfnppyS0FtSCDKN0JWxFv9X3TtVUBJ rDLygIcOL5GJCfEEUvB2hO/ebvzuHkdl7F8sQJpXarj+/wM69zf+igvVlWqhM/kOO9EV miMA== 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=LP6+kjIRg74lNJwq+lAgYynPEJ4TLnFOJgWcvFyG4Ao=; b=CbqLHnn3jSicCw89mUWu3iPAooCuAJRq1ww2lupGMJfiztOaasFQw8G3BhOPrDrFUx kbxt1cwbhr6KL4NQydfmR7h6TmDzNtaT5BAabmg9B90IdwqSoNzxb5vbfTrFH1Qqqp0N 2fmtLbN2S/8ZRHsSZhgSlKek5rCgG1gtyQo2IYQhTNnoM02Mtq9TM/AgmGnfl5k3ijNe pXgFGNjQ13QnYl9n/UcAoNK+PHJi8fvJjwO7shJflPxvsKBZ3nZFysDuildqfz6m+d81 WsGvEStF0wegqecslLcjSMWm2+KKI1OHIM15smbidSzw0WYsldj82yCoS510fUXfQqTi j+mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cbubElth; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s20si1459343edr.217.2021.06.30.00.31.44; Wed, 30 Jun 2021 00:32:09 -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=@kernel.org header.s=k20201202 header.b=cbubElth; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232845AbhF3Hcz (ORCPT + 99 others); Wed, 30 Jun 2021 03:32:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:55156 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232785AbhF3Hcy (ORCPT ); Wed, 30 Jun 2021 03:32:54 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E742361D0D; Wed, 30 Jun 2021 07:30:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625038225; bh=LgLwRlM2vgAjiWG1CvKhmKGXiZHELEvEd1+PAclEGZM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=cbubElthuvDlQB1LHWO6FW8GGsopz4SX7tKIdQK0TxDO74KeBFtcx0/DPVOwyYQDN 6qb8Mtw7D4qae4jShR9NApX3uTZoOyileMkHMDufA3sHz4RGhjJ+166IMMsRbDsvcn 3pQydfyZiKTr/Uzg+22NwSIz9uVBxlJuiA1XJYcE9JOE8IOY1BPgoAs3EmS/SbGJyu rS/UpDJjN9vsTtspBOy37QpJ+j8W8XsuHa1dca/JWKB9TUIie2tB++xh+VebD6ncoZ wHWGUGbqvHFJE3vQQrLZw72st6Bo3oqY45O4hCr5tgZ4ii6ZOBc1IWF0uIvtEAVRqn qy64a4TG0mRjA== Received: by mail-oi1-f180.google.com with SMTP id h9so2016368oih.4; Wed, 30 Jun 2021 00:30:25 -0700 (PDT) X-Gm-Message-State: AOAM530wvzLu0gj2DCmN07z9bIoRZdVi8RpcCPV6jTX0wT25QsOJ66Lc JeYwF9tS5neBYGrT7UTXw7s+ytsrp3gfbV0Et8c= X-Received: by 2002:aca:5a04:: with SMTP id o4mr24661915oib.33.1625038225214; Wed, 30 Jun 2021 00:30:25 -0700 (PDT) MIME-Version: 1.0 References: <20210629134018.62859-1-xypron.glpk@gmx.de> In-Reply-To: From: Ard Biesheuvel Date: Wed, 30 Jun 2021 09:30:14 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/1] RISC-V: load initrd wherever it fits into memory To: Atish Patra Cc: Heinrich Schuchardt , Andreas Schwab , Paul Walmsley , Palmer Dabbelt , Albert Ou , Atish Patra , linux-efi , linux-riscv , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 30 Jun 2021 at 00:56, Atish Patra wrote: > > 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 > Acked-by: Ard Biesheuvel Please take this via the RISC-V tree.