Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29865347rwd; Wed, 5 Jul 2023 19:38:15 -0700 (PDT) X-Google-Smtp-Source: APBJJlFe0FM4uFpgUggOlB713dUzhMSveZi51LGZL/RqhG75adkJLVuTMAPc1EGWOyGJQ2JvkiVt X-Received: by 2002:a17:90a:8c98:b0:264:90e:3db1 with SMTP id b24-20020a17090a8c9800b00264090e3db1mr300831pjo.41.1688611094922; Wed, 05 Jul 2023 19:38:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688611094; cv=none; d=google.com; s=arc-20160816; b=zZI5IUDviDxeQs5FUeZtAkIpLhsaGzJwKylRwX7/8b47HFaW7F3u1VMl6aZKZhW/Qj F/rutq5D3rjMz4oQBfdNA6UZZchlP0UoiZJDXZAZ9o2+xYgD3FAyOk+6eZzJuPWqq+QW QIYmrqOHof7+eOlSD89bGLlc23nadxE8+yDFbLkRZ22AIXf7giHMoF73RTmmro93Cpln 6UzrToCoEDEmzgDsuqs5AvJgCGzeC8Ggu8a6/TP9mb+rknXvK0X2sX+QuyTfQc5OP9bV gtDrPGJ4yLqWGoKW93tf4WJEtoGQZHTqgCK0KKUWXy4LqiTXDewzQwAhx9c4hHrugkUI WXyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=1048vqlXkYGyF+XcnTYa3P+GBqsNCgfDORbZIMSrGAk=; fh=4u8O1g6bXdFzy+I46YoZUPqedmszx0aNtrHDfv4+cTw=; b=hO7fAo+e3N3D0/eWD/7UlrG8YsMsM2lerOVsbVNNyWkyIcyCQ9RFr8QMJc5khCttKd cF7uxXy1H3uLAOHOT8mtg97se9F2IXRSEJR/2uKtCJvRoQsWoZNo4/yrerhBSbYO+Opw d1YAsZVIAin2P1wxaTqcLZqddsDhkYV36vcehm1iMQ/tAyHjSJmbILSUIQnG/zQorDwW QgE/Nz18Dalz5E19Ui7M3VF5IHnGC7b7vFLv2fTZpP80SmhIhKDp7sS4T2v01gOiDxRL lhFXlSzK/R+FZ1Egl5/7XiHzhZfIOJpMre0UTfOgqqaTjZKGp/l7OR9tHaTTRW2lqres oewQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=DhyUYoEM; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l62-20020a638841000000b0053b8874cee6si479541pgd.358.2023.07.05.19.38.03; Wed, 05 Jul 2023 19:38:14 -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=@bytedance.com header.s=google header.b=DhyUYoEM; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232933AbjGFCZA (ORCPT + 99 others); Wed, 5 Jul 2023 22:25:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbjGFCY7 (ORCPT ); Wed, 5 Jul 2023 22:24:59 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 185861737 for ; Wed, 5 Jul 2023 19:24:58 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-3143b88faebso104168f8f.3 for ; Wed, 05 Jul 2023 19:24:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1688610296; x=1691202296; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=1048vqlXkYGyF+XcnTYa3P+GBqsNCgfDORbZIMSrGAk=; b=DhyUYoEM+lzL9QbERr02EhFFYHChXal8YDSzaYHUSk2Ze4dGQn7daxWPR8mVzEhTPw bqUAHq0nr9lozZZud75z0XJFitgtT8VeNRHP2MrFWyCIJnLlR4MgYuRxLk23gRD2QHl+ 6SMVGkEa1Q0/7DKUnQkPV27I0CnY13vJI/H3GdzDTUR4S244CJQ4Yo/skMG6F+wCEkvE kHugkL4HqAfhJ/R/bOQIrUki9lzCmpCfHQa4dsdLYGADc03tbh3r/JKR6SlMGMT8O8Cc LvVXIJGkKJJHXZIquYwvLD4uK4+EMyocJbcaNZMTMVwuQ8fRdi2CtVtryOMUDsGcXdgR 3abg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688610296; x=1691202296; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1048vqlXkYGyF+XcnTYa3P+GBqsNCgfDORbZIMSrGAk=; b=UWbxR0ND7Rvdb4dTalogPwuBZW3IAdZmWZKgNlLt8fSlBV8blPj0Yad7pA26RiBxRf O/BFCznKS6JyVSK4LhQ+zu3jqvsJKLEPFULMhQrGlRIicCFO9pszO1jaUkk3mJpwznHx 5oBBpsVli7HW+YOxf//rWSiP1M5G3ZL6s0LlNN0eXm60pLZhleAXhWm3Q+BzmXmmCDub H5mr1yOJzdmqIa+8HCh8N66bNfMlvhch8/G3vVeIOXGQ0g0a4g8p/rJCenRS6bYRObAE p+s/wfqsLel0nYNPOBljZcNxbSQhumFl8H+56Gpjm+2nBN022SaXVAP2Q0SElweHqJB5 imMw== X-Gm-Message-State: ABy/qLYRythgs7wI2v47aXvYQbObMiQKa3v9IWTgFjm/GL8Z6oJcQoK4 VMogErhQC0165csat2Ykn+SDqetgq3tRtMpGAWeQIA== X-Received: by 2002:adf:e310:0:b0:313:f371:aede with SMTP id b16-20020adfe310000000b00313f371aedemr450746wrj.1.1688610296508; Wed, 05 Jul 2023 19:24:56 -0700 (PDT) MIME-Version: 1.0 References: <20230702095735.860-1-cuiyunhui@bytedance.com> <20230703-71f67eb66a037f5c0fb825c6@orel> <50F3BD62-78F1-456E-A44A-0C7D9A2D4113@jrtc27.com> <87bkgql8rq.fsf@all.your.base.are.belong.to.us> In-Reply-To: <87bkgql8rq.fsf@all.your.base.are.belong.to.us> From: =?UTF-8?B?6L+Q6L6J5bSU?= Date: Thu, 6 Jul 2023 10:24:45 +0800 Message-ID: Subject: Re: [External] [PATCH v2 1/3] riscv: obtain ACPI RSDP from FFI. To: =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= Cc: Jessica Clarke , Emil Renner Berthing , Andrew Jones , Ard Biesheuvel , Palmer Dabbelt , Paul Walmsley , Albert Ou , linux-riscv , rminnich@gmail.com, Mark Rutland , Lorenzo Pieralisi , "Rafael J . Wysocki" , Len Brown , jdelvare@suse.com, yc.hung@mediatek.com, angelogioacchino.delregno@collabora.com, allen-kh.cheng@mediatek.com, pierre-louis.bossart@linux.intel.com, tinghan.shen@mediatek.com, linux-kernel , linux-acpi@vger.kernel.org, geshijian@bytedance.com, weidong.wd@bytedance.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,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 Hi Bj=C3=B6rn, On Wed, Jul 5, 2023 at 10:43=E2=80=AFPM Bj=C3=B6rn T=C3=B6pel wrote: > > Jessica Clarke writes: > > > On 3 Jul 2023, at 19:58, Emil Renner Berthing wrote: > >> > >> On Mon, 3 Jul 2023 at 15:33, =E8=BF=90=E8=BE=89=E5=B4=94 wrote: > >>> > >>> Hi drew, > >>> > >>> On Mon, Jul 3, 2023 at 9:01=E2=80=AFPM Andrew Jones wrote: > >>>> > >>>> > >>>> (This is a reply to a non-existent cover letter.) > >>> > >>> This has been discussed many times with Ard, Please refer to : > >>> https://patches.linaro.org/project/linux-acpi/patch/20230426034001.16= -1-cuiyunhui@bytedance.com/ > >> > >> Hi Yunhui, > >> > >> From that discussion it was mentioned that that arm supports 3 methods > >> of booting: > >> direct + devicetree > >> EFI + devicetree > >> EFI + ACPI > >> ..but not > >> direct + ACPI > >> > >> To me it isn't obvious from that or this thread, and since arm seems > >> to be doing fine without the 4th option I'm curious why that's > >> necessary on riscv? > > > > If anything we should be removing option 1, because that=E2=80=99s not = a > > cross-OS standard (though RISC-V=E2=80=99s SBI direct booting is at lea= st not > > tied to the OS). Any application-class platform spec is going to > > mandate EFI, because, whatever your thoughts of EFI are, that is *the* > > standard. And if you=E2=80=99re willing to pick up all the complexity o= f ACPI, > > what=E2=80=99s a bit of EFI (especially if you only go for a minimal on= e a la > > U-Boot)? > > Well said! > > Yunhui, why not simply add a minimal UEFI stub to Coreboot (like Jess > points out above)? In fact, in the v1 email, Coreboot's maintainer Ron has made it clear that Coreboot does not support EFI, and it is necessary to transmit firmware information through DTS on RISC-V. @Ron, can you help explain it to them? > IMO what U-boot (or > https://github.com/cloud-hypervisor/rust-hypervisor-firmware if you're > into Rust ;-)) is doing, and just having a small UEFI shim is the way to > go. Thanks, Yunhui