Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30842259rwd; Thu, 6 Jul 2023 11:28:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlHJZLoI0htZwtBW/JYcYl6p2EWe4yIDh+n7EwsqN5A6/A+VcpYJvx7+T7QoBkn4p6DbWdAp X-Received: by 2002:a17:902:7893:b0:1ac:859a:5b5a with SMTP id q19-20020a170902789300b001ac859a5b5amr2041773pll.0.1688668110495; Thu, 06 Jul 2023 11:28:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688668110; cv=none; d=google.com; s=arc-20160816; b=J0l7ryQNNFp3BxWnUz4/q7OJJK9KfGd4zlvJlGJ4m+sntPFWmJGluX1KhK+dwlGfm1 4IOFVsWQ2+v7P+4lFu77ZZjrNpZbfVovYL2RUK+NW1SeGGzAgUwTpdQ4/wKwrpYEJNES yrpx5JEQhOvBODLIeMQgjeQO8LnrQVNrjMDIGwzt1Oy0dVIbs5tqEyXByKPdVxO/Dnwy cFjH0cP9Yd2ESsz8g+CJjSpi6ew6gb9mZuh1tI98dOPqzuM1kFeRXLeTBr9jQK7xNqQq np7FmVyjkgyBItnVBSozK/YxIIz/tSizDiW1i/K6U8AEknL13dbJB5stRgvVloQCUZg0 vq5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=xfYRKCkv+gbg/zmvX1wLdSt8ijBVRQ6VquwWC9KA3kQ=; fh=xbzWNfOqKSclmRqBN9n0gtz5SaY6xpyl6PjVyP+rxys=; b=IC4VozNNdCG7VVAYlQBPYUrMnFI7GBKQ6J0mhAPT1WeYQ9bofpP7dw9V8GZbhqf7Fq oB0ok9eayxQ+DOEtG5sNWE8402BOI5zSIVEy6d4p1mOAu3jFM7ZoMMwuoAxgeFa8D/NG XI5xhiLDw04KWv9sueLpz7WD/4yIJYP3W/R6JIRc6pssdXWCJFDLecFP1yt+mbTLW17k YR4177Q1NZDKDl00C1WOaCsrchmnad/AJpGIHx4kGoe3q6JkBBL12ikSBg9dPdQug7HW Vx7J+ZR7pp4PCjHXpAwTWCKXTgwHkoqhH6d8M3Aw9pUk27X//9Rtm1AcjTtwOhVwiwqg TDug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20221208.gappssmtp.com header.s=20221208 header.b=C4mwKsaM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e11-20020a17090301cb00b001b87070052csi1896464plh.140.2023.07.06.11.28.18; Thu, 06 Jul 2023 11:28:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@dabbelt-com.20221208.gappssmtp.com header.s=20221208 header.b=C4mwKsaM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232564AbjGFRou (ORCPT + 99 others); Thu, 6 Jul 2023 13:44:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232508AbjGFRor (ORCPT ); Thu, 6 Jul 2023 13:44:47 -0400 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51B92199F for ; Thu, 6 Jul 2023 10:44:46 -0700 (PDT) Received: by mail-pg1-x52b.google.com with SMTP id 41be03b00d2f7-55af0a816e4so584883a12.1 for ; Thu, 06 Jul 2023 10:44:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20221208.gappssmtp.com; s=20221208; t=1688665486; x=1691257486; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc:subject:date:message-id :reply-to; bh=xfYRKCkv+gbg/zmvX1wLdSt8ijBVRQ6VquwWC9KA3kQ=; b=C4mwKsaMcsbSZodT7VZnm8QwFrJs06bzy388YbWZdogdsmfGt5LNIkaHBuTsGvIzIn A/GSyopYeSjDGTSgvQRL11tq239hkjmi1X1howOZZarXqZRoKZ4hM4qWIZcbPqaJdGSj 7T40Z3nIvQobo8Ue2LW7YTfkLH+/YYbHgjHaGz3q6flKtnhcACoIDXKsgs15K71KP+Rv VbgjeQSk1F8SsiHUwET04wziTeKhZqGkj3O+SXuZHSH9hk3V5ZPf1e0hTqM9Js5Gt90x zrUXFsGhWjhm+0rGcLWpYTik0wLaW4W5JK763C7ajXyAJzviYKiljbnZIAkDLc83Duif RnDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688665486; x=1691257486; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=xfYRKCkv+gbg/zmvX1wLdSt8ijBVRQ6VquwWC9KA3kQ=; b=UXCaoHOqioPwAc1RkbC7OgcxrNnDIOtFhFXCBWgqcRgeeKBTecIka2IAlCgVM1yhZt tfpk5+t+bXUPrSJHg6n2tBznxH+jRGcCUbAcKCkqTT2vzZd00bE7VA2nv4r+dsb6HvQa ZcKpTRbzfm8GPYpLZNnnyU4TcOhHFOvnemI5GKO0Dlp5U2YWaPewnFPosp2FPNC1fmKL 0aYjxxu2intuRU0hNaviYIgGFgYO6K1zjZwt3Ng7r+Hr4dkIDMpgGiiJV7qtPWJgkVGa xq7yt3H021nJTNuRuk1b9KGavzqDO/XeLshnLTe2ZJ8gzbIb2J0F1zkp7nA7mHxyT1lJ c8gw== X-Gm-Message-State: ABy/qLbcOi8sIn4++B/6WgL8uI4rbffSQwtjdBKOPtaFohdmdE1cr68p vOBVx9wKjZJ5enZnzNYJEjVgqQ== X-Received: by 2002:a05:6a20:4284:b0:11e:e940:441e with SMTP id o4-20020a056a20428400b0011ee940441emr2424000pzj.25.1688665485725; Thu, 06 Jul 2023 10:44:45 -0700 (PDT) Received: from localhost ([50.221.140.188]) by smtp.gmail.com with ESMTPSA id j13-20020a170902c3cd00b001b86deba2f9sm1678817plj.284.2023.07.06.10.44.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jul 2023 10:44:44 -0700 (PDT) Date: Thu, 06 Jul 2023 10:44:44 -0700 (PDT) X-Google-Original-Date: Thu, 06 Jul 2023 10:43:52 PDT (-0700) Subject: Re: [PATCH v4 3/3] Documentation: riscv: Update boot image header since EFI stub is supported In-Reply-To: <20230626143626.106584-3-alexghiti@rivosinc.com> CC: corbet@lwn.net, Paul Walmsley , aou@eecs.berkeley.edu, Bjorn Topel , ajones@ventanamicro.com, Conor Dooley , sunilvl@ventanamicro.com, songshuaishuai@tinylab.org, linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, alexghiti@rivosinc.com, Atish Patra From: Palmer Dabbelt To: alexghiti@rivosinc.com Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 26 Jun 2023 07:36:26 PDT (-0700), alexghiti@rivosinc.com wrote: > The EFI stub is supported on RISC-V so update the documentation that > explains how the boot image header was reused to support it. > > Signed-off-by: Alexandre Ghiti > Reviewed-by: Atish Patra > Reviewed-by: Palmer Dabbelt > Acked-by: Palmer Dabbelt > --- > Documentation/riscv/boot-image-header.rst | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/Documentation/riscv/boot-image-header.rst b/Documentation/riscv/boot-image-header.rst > index a4a45310c4c4..df2ffc173e80 100644 > --- a/Documentation/riscv/boot-image-header.rst > +++ b/Documentation/riscv/boot-image-header.rst > @@ -28,11 +28,11 @@ header in future. > Notes > ===== > > -- This header can also be reused to support EFI stub for RISC-V in future. EFI > - specification needs PE/COFF image header in the beginning of the kernel image > - in order to load it as an EFI application. In order to support EFI stub, > - code0 should be replaced with "MZ" magic string and res3(at offset 0x3c) should > - point to the rest of the PE/COFF header. > +- This header is also reused to support EFI stub for RISC-V. EFI specification > + needs PE/COFF image header in the beginning of the kernel image in order to > + load it as an EFI application. In order to support EFI stub, code0 is replaced > + with "MZ" magic string and res3(at offset 0x3c) points to the rest of the > + PE/COFF header. > > - version field indicate header version number Acked-by: Palmer Dabbelt