Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp336989ybl; Tue, 20 Aug 2019 21:16:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1fvQZ4VKWkV4tQeuhvWU/0qfOwIDR2jAJUPzU/r/G6vnQagaHUqSMbWt9Dt7JNb/dNXNf X-Received: by 2002:a17:902:aa03:: with SMTP id be3mr31927278plb.240.1566361019065; Tue, 20 Aug 2019 21:16:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566361019; cv=none; d=google.com; s=arc-20160816; b=LFulDJh/u2uszKhmMZgjlxgQQd23f3vReT1NSO0xnxHoayUYahhEqK4r7jJ28faqy8 mADFLgSQuQ3XzGjBnmm3AkUV3oXmDAnoavh++ixGM2Zj4yElXDciDtbA69ZxvSdnFSCu /oET3xHNkUnWv/mAQCMRPTs3MgYzDuew8Ly28Lw9R23UlsvOgL23TdEF1MaGGCshVhBl vibLIP2gOLmGznBeVBBiM4gZx4oSI1bos0HGi+lFoNLWETq/ob2XaifUdnfdKbtKtfh6 x2gBHgZ2HjXRmLZS6T+x0IbL/7zcVqK9AQiSzE85qZzFoMbQdgbNyCD5Be4GJkt+mcvm 4PhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=Ct/vcfqX294xnImjewrmDMG+pNu8phs+mheV9IoXqXA=; b=a58uXtufWXj7JrCNSja/xdWKWqwaalmroEcLvHuyNSjgF1OF+2J0KA3tNgtnUye2od nJmvuz8a6YYd4Y9oh3g7qEh7wH+CQrlQ1cbqAGgA6Yjv6Ai9a3b6ATTWD2vzaEfKeeW7 JJ/6UrMumeD8x9A/4zCjTCU6Upqkwdn6L5eX5PxDmKun7LcxBny1+Qs1P35NoX7Qwopz WXOYMghB9PIzpU1RzfsMVO6tmGLiBJmKDbfTzH16esUxEFM1mRZjfvUqPyLGtcifziii qVbwp/cuK2uI1Hx31xq9ARZfAIeEhM6tJ0JVios20s7fINtA6Y5N83IROPPDXnHCWRXl MnUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=DrmJcYu9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a59si13914992plc.319.2019.08.20.21.16.44; Tue, 20 Aug 2019 21:16:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=DrmJcYu9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727633AbfHUEOr (ORCPT + 99 others); Wed, 21 Aug 2019 00:14:47 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:45856 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726906AbfHUEOq (ORCPT ); Wed, 21 Aug 2019 00:14:46 -0400 Received: by mail-pf1-f196.google.com with SMTP id w26so513208pfq.12 for ; Tue, 20 Aug 2019 21:14:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Ct/vcfqX294xnImjewrmDMG+pNu8phs+mheV9IoXqXA=; b=DrmJcYu9mQkQ+5oXyRM9YqgXYA0IMMSiWznW5HVNzzMJ7ZV0GEzazOoMN6L5eiLmcJ cYAa9F/vsLCVlLq75If9r/eW75gmVC5de/ALXLQHXE5wAgEmN2+EanhC5XNg9Yyd44w7 D5nqrXJeT1pbW9bi9iEn0ISOPHcFxNde3UV/dmGNpgE0GFhQVYQ5Y4sWjzHth8/dYrxh kk4jdkPx4SF+lRqREUhytqk6W6orEntQWFKrvd7DnmuGzYew2VX4icnkCrgwsKYsoXuq h/24DG9iI62yoeJ6AQ+P3YVuOZb5PJTUYw4y/9aQYmI+CHlmQ7qpwNFf+K1GnCvE1bZz LKGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Ct/vcfqX294xnImjewrmDMG+pNu8phs+mheV9IoXqXA=; b=rMLdK1Q1eEGz6rv8GkPvWBvJlSdQYf6bfpehZ5fZ8aSql5WiV+/uw7cHk79yNPxnGE 6Yr2gXrKWtBnlV14IRYg5HeGTcss93TxDCL38rDWVYRg1q+mMV67q+L6CkNntnfgHqK2 /Kk0WW30s05P0FMSKJQBISsGwDIAptXBI2nSDqVodWM4iZBkRImz8SfHDrOMxj1l8JuV SpqN/8UUVdSluN5Vopv+cEqvceNCQEqIPmEQtI5dW+loRCuLC8QGEYUZEoiIonO1O7/s RqBMzAClR7yljcyETMKBLNVUFGOREy6d+eB/O7lpTYbkDa1EtWcViN9hcHBhrrHpAOjm Rd6A== X-Gm-Message-State: APjAAAXo6Te2eS7z8h3GdCjK1z06kyWHlQxQ0TraG0E0hVLtPz8o+PuQ +22pOgYQ4ADFlvXgkgGqQH7yE/CZDWQ= X-Received: by 2002:a62:dbc6:: with SMTP id f189mr4364709pfg.237.1566360885909; Tue, 20 Aug 2019 21:14:45 -0700 (PDT) Received: from [172.20.2.243] (64-71-28-71.static.wiline.com. [64.71.28.71]) by smtp.gmail.com with ESMTPSA id p3sm1336423pjo.3.2019.08.20.21.14.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Aug 2019 21:14:45 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: [PATCH 15/15] riscv: disable the EFI PECOFF header for M-mode From: Troy Benjegerdes In-Reply-To: <20190813154747.24256-16-hch@lst.de> Date: Tue, 20 Aug 2019 21:14:41 -0700 Cc: Palmer Dabbelt , Paul Walmsley , Damien Le Moal , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <3BF39A0F-558D-40E0-880D-27829486F9F0@sifive.com> References: <20190813154747.24256-1-hch@lst.de> <20190813154747.24256-16-hch@lst.de> To: Christoph Hellwig X-Mailer: Apple Mail (2.3445.9.1) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Aug 13, 2019, at 8:47 AM, Christoph Hellwig wrote: >=20 > No point in bloating the kernel image with a bootloader header if > we run bare metal. I would say the same for S-mode. EFI booting should be an option, not a requirement. I have M-mode U-boot working with bootelf to start BBL, and at some point, I=E2=80=99m hoping we can have a M-mode linux kernel = be the SBI provider for S-mode kernels, which seem most logical to me to start using the vmlinux elf binaries using something like kexec() >=20 > Signed-off-by: Christoph Hellwig > --- > arch/riscv/kernel/head.S | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/arch/riscv/kernel/head.S b/arch/riscv/kernel/head.S > index 670e5cacb24e..09fcf3d000c0 100644 > --- a/arch/riscv/kernel/head.S > +++ b/arch/riscv/kernel/head.S > @@ -16,6 +16,7 @@ >=20 > __INIT > ENTRY(_start) > +#ifndef CONFIG_M_MODE > /* > * Image header expected by Linux boot-loaders. The image header = data > * structure is described in asm/image.h. > @@ -47,6 +48,7 @@ ENTRY(_start) >=20 > .global _start_kernel > _start_kernel: > +#endif /* CONFIG_M_MODE */ > /* Mask all interrupts */ > csrw CSR_XIE, zero > csrw CSR_XIP, zero > --=20 > 2.20.1 >=20 >=20 > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv