Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30228537rwd; Thu, 6 Jul 2023 02:51:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlF3fQNXfDCGQ49tgmRa/hrXeA6pjqzXnwO1Yr923DRsPRsJ4dqSmkFy7N25yflVichQVDih X-Received: by 2002:a17:90a:bc82:b0:263:70d1:ba84 with SMTP id x2-20020a17090abc8200b0026370d1ba84mr2375543pjr.18.1688637065231; Thu, 06 Jul 2023 02:51:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688637065; cv=none; d=google.com; s=arc-20160816; b=gey0PbLFyo63chjs4NLE9QF3fkeHH7XGfBGJtTfHnx0ouJKS0mG+ksW5vTqbcs6gap 1rOpJG3btXNR17+FUj+e5Kyw0UqN7UU+AoNaMbGGqABRbNQGcGDJkvwyMfQnEo48sV5M ezw3Odd/ir1TYS6CeJn6oUifJRKhpjnJ0sK1cHYcDldH+0puL1j8NH3IfBBiJEGTTNOv EsPgxziX4rA+T5SMLyjBzPZHfxZvJeS1nLx8P6XvWphIWytnChXGw6r1R97Ejo7Gvksm sajvSJTXPSl8Nt6QyS/mRI6S+S6YpXBAXQgOqAf2TDPcsqZXUYWalPsWNoU/dqSFpFoz 0LLw== 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:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=4SSpzQaXHWwq7CHYnnVMngGHdgnVNB/xn1DchdrUvnw=; fh=/lzZXZ4ZOeGpmJBnXXE6MUvknaGA7q6xyDfHyhN4WfY=; b=N8oPvXRNLviU7U0kwFZlUcR11zo7DQlRLbtFlNmmn1t1KMvQrzxRoKsoPOSXP89zI9 KpAUpT0l3r9kt2ANsoHK/0QCuXRd6i0MRn+Ol/SmIEnEcd5Lcxux6HkSxdgUtKcseDiM 9uZvyVUaFztG9lIxjJ4bhIultpCJM7A1QJuiyXUbna9k2tXaORvoToOONvYDz3oqXodd Rr9i3vf0lXvB2MJNxwlpjNXdL+uHqhJIXcdjfPFyfqIftfMcbwKOQSeXwBeENF/NSIpm L1F1GQQri1+l8V4gEly3/xVsLwgGrZdB+xIkvxPA1VRqZxpSHp/qyqFnXEHV8kMe7W7t FbhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nAAQ8I4u; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t7-20020a17090ad50700b00262e6b05c92si3462737pju.150.2023.07.06.02.50.49; Thu, 06 Jul 2023 02:51:05 -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=@kernel.org header.s=k20201202 header.b=nAAQ8I4u; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230504AbjGFIwV (ORCPT + 99 others); Thu, 6 Jul 2023 04:52:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230207AbjGFIwT (ORCPT ); Thu, 6 Jul 2023 04:52:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2EEF1BC2; Thu, 6 Jul 2023 01:52:17 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5FB8F61866; Thu, 6 Jul 2023 08:52:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F287C433C7; Thu, 6 Jul 2023 08:52:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688633536; bh=ggVTIl5Ohn7qil0HaYjyKOkRlN5j1S5LhF5oA/HxgDs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=nAAQ8I4u0oL9hHLlo/IXbbKw8j0UTDg3vzzcYaZRFuADEI3gURbH0O9DKjt8D1aKN kDmwv0Qr/cVFXAmFfR2dLyGi7A3EAi9ho2+uYSOLchmnNI+VfPy8UoyBkwrhMknQzM ZIdPoltZ082Zr/hs44C3Z3fGsQsv56AAbwypk7mR3iwPnR36pb5NhtacSgPio1lrB0 2yckYj+tMSfftDmbv8vlu3lPqihTDgTLHqJuPJ/KmvPVg3PjFpU+tHvdyTNqU+yLZL zbZ/Up0WYMimXJlNVEnnTSHAn9qv/eXnMpfjE6145ztLWg+JxbLtMpwOv4iboeVApW OB7BTLbhow/Qg== From: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= To: =?utf-8?B?6L+Q6L6J5bSU?= 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, graf@amazon.de Subject: Re: [External] [PATCH v2 1/3] riscv: obtain ACPI RSDP from FFI. In-Reply-To: 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> Date: Thu, 06 Jul 2023 10:52:14 +0200 Message-ID: <87sfa1toap.fsf@all.your.base.are.belong.to.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 =E8=BF=90=E8=BE=89=E5=B4=94 writes: > 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.1= 6-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 le= ast 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 = of ACPI, >> > what=E2=80=99s a bit of EFI (especially if you only go for a minimal o= ne 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. It clear that Coreboot doesn't support UEFI today. We're "arguing" that it's less work/verification adding the neccesary minimal UEFI plumbing for Coreboot, than jumping through hoops in the kernel to work around it. I'm getting some UEFI FUD vibes here. I also think that parts of UEFI is kind of ugly, but it's, as Jess says, *the* spec and honestly, a bit what's expected (Hi CXL). UEFI is a specification, and implementing the minimal requirements for UEFI is not that of a big deal. Look at Alex Graf's (et al) work on u-boot UEFI. U-boot is small/lean/open *and* manage to support enough UEFI for ACPI. The whole "Oh, UEFI is so bad, bloated, and closed" hand-wavery is a bit tiring. :-( ...these last four sections is more of a beer discussion. I'll take my "my FW is better than yours" rants elsewhere. ;-) Bj=C3=B6rn