Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4661007rwr; Mon, 8 May 2023 10:42:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ75RZUPZq4+jwRht5ya07HE8KuHOYSEM4psBQ9pR1StQ6lVCezdQfPF6E4V07dMjRRLSBnR X-Received: by 2002:a17:902:ecc4:b0:1ac:8af0:10ad with SMTP id a4-20020a170902ecc400b001ac8af010admr1789353plh.61.1683567735367; Mon, 08 May 2023 10:42:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683567735; cv=none; d=google.com; s=arc-20160816; b=c3IIunfHW/qKscYtuzyTVQAtwsT3kS/kvXK6DtXHqwFVSNsYP0q+Uyh+Dx6HWj2kZZ zVc2xSezk8M4v9fgKhk0N6b0UUa32uejRrdhRffL6dkne0PFfZOY1aDZM9nyIkpBGbb/ F4Qo7TDyih7/Bsgc1PmbJqmqVUoBBFSc6Q755JUUSbyXcd/OdxiDLHQ6ViGi+is3643G jGRyANPGF4+9+8uRRa0D0UgMuqnSNyEC047qDgnR63VVDu++e55IIpog53FqJ5GUje71 mWu0UGCKm5oGh4oYGOzV2jNknrLWblQTmDz45LMH8PhJGyfj+U8uJFcweZ+hHsdme32T 7J2g== 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=x0ACKyHbkTPD2yxeJB4ltSLZhmTYJ+ogPwt0nvA0/JA=; b=eFocnMdP6yOUA5dGUK5RLgKbjpaFgVVW7YnQVlQl4n1cinOk0Mb8Sy6vt2o457OmjB j3vvqhGk3/CL2/VBorTwkvCxOWVjvYil76RanTsvekFojQWGltWyC7ZMqKtNv5EX5bOG gZsNi4i96QFFMNMcXgL0uJrMeEpaKzRCC5N01StTi7j3+jxILZa7hbzz4RUhYIsse/ux SIAf83a+jRG3vImEtdeqc1Vt+Bk9l9VK6R89onsvuDnqzgH82D7ISKk5sCIzK5rYOzMn OYrqwpTlQnZLIa3A7a1U3qHh+e8BMVyNij100vegYsd6hUM2OW9AkmMTgb5fO2zovbpP H7aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vrull.eu header.s=google header.b=UsXO3z6T; 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 jm21-20020a17090304d500b001ab0d0f6175si7940054plb.481.2023.05.08.10.42.00; Mon, 08 May 2023 10:42:15 -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=@vrull.eu header.s=google header.b=UsXO3z6T; 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 S229794AbjEHReY (ORCPT + 99 others); Mon, 8 May 2023 13:34:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbjEHReW (ORCPT ); Mon, 8 May 2023 13:34:22 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 985CB5BBA for ; Mon, 8 May 2023 10:34:20 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-50bdd7b229cso9142269a12.0 for ; Mon, 08 May 2023 10:34:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vrull.eu; s=google; t=1683567259; x=1686159259; 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=x0ACKyHbkTPD2yxeJB4ltSLZhmTYJ+ogPwt0nvA0/JA=; b=UsXO3z6T3+GWoAddjvibd65Ykan490NBq2LAUn1cOHoRrcJLoVmWV1qJHPlVfvbGWf xmaUeAnawFB+DBFV8UqgNkuXuxWn/M7Atu9iXvbHAH/GtNVVT8W3bj1PWFmQNHq2y3oJ IH+qpybYJ5jHnxyRNpSEqt7NbeMlcd8ghl6KUtFTXaCC+dPFMeclfHzXeEcGK+9xnIPa UAMcuzHZUbyGXMiJgtHfXblDXlK9cddv7Sqq77VZj6wrwaSDIgoZJwrBJZQ7n7T+4ABT RFq1vLu4HRX5qBL+bqKOgIVD2zu9m+64hqf8YT476AHQoTAumjWKViVu/6qJurugo2vi Fk4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683567259; x=1686159259; 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=x0ACKyHbkTPD2yxeJB4ltSLZhmTYJ+ogPwt0nvA0/JA=; b=Aly0TCEIhI0oZRsmLySCF6MSsHqiIoMoNfivgZQWTFu24iQ23k/G5VFAGvESttMQwW gCj8vK+7dc97yM2VGvMlE6C+/Z0C2Rqs60H+xf0TDbNIdpIca9DSTHMgI8DFsMDtPBvh usTvBx2oBBeDHoKyqB3/fqr8ELNdRMr7scOQoiH8DqdTfpNSco8VWdWwzElLYPKU7Qgj t+61JGyI0q5f9rDXfiUpOoBmkWpSsp5R50ehbhphANn+TDlIwQZf1EX5SNyw+D86hyLb NbLBL/muyaw33X9wMveZzGxI4NVIZwlwcVLWn8Zw2mb68Q6w7bzQxhsUeathuwhIKuf8 wUCA== X-Gm-Message-State: AC+VfDxVE8ALCjgUyXJlP4mRJkE2xAwEvb1V1IuOsp11PiTqm+HDzD/0 bKWIrR9t0D0LhKK+b+XynCiSgym1NkQQG4zy0sn1fQ== X-Received: by 2002:a17:907:26c2:b0:8b1:3467:d71b with SMTP id bp2-20020a17090726c200b008b13467d71bmr9594258ejc.48.1683567258828; Mon, 08 May 2023 10:34:18 -0700 (PDT) MIME-Version: 1.0 References: <4830085.8hb0ThOEGa@diego> In-Reply-To: From: Philipp Tomsich Date: Mon, 8 May 2023 19:34:07 +0200 Message-ID: Subject: Re: [PATCH 0/4] Expose the isa-string via the AT_BASE_PLATFORM aux vector To: Evan Green Cc: =?UTF-8?Q?Heiko_St=C3=BCbner?= , Palmer Dabbelt , bjorn@kernel.org, jrtc27@jrtc27.com, linux-riscv@lists.infradead.org, Paul Walmsley , kito.cheng@sifive.com, Conor Dooley , matthias.bgg@gmail.com, heinrich.schuchardt@canonical.com, greentime.hu@sifive.com, nick.knight@sifive.com, christoph.muellner@vrull.eu, Richard Henderson , Arnd Bergmann , linux-kernel@vger.kernel.org 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_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 [Resend, as my mail client hadn't picked up that it should respond as plain-text.] On Mon, 8 May 2023 at 19:32, Philipp Tomsich wro= te: > > Evan, > > On Mon, 8 May 2023 at 18:50, Evan Green wrote: >> >> On Wed, May 3, 2023 at 3:31=E2=80=AFAM Heiko St=C3=BCbner wrote: >> > >> > Hi, >> > >> > Am Dienstag, 2. Mai 2023, 19:15:29 CEST schrieb Palmer Dabbelt: >> > > On Tue, 02 May 2023 02:13:10 PDT (-0700), philipp.tomsich@vrull.eu w= rote: >> > > > On Tue, 2 May 2023 at 09:58, Bj=C3=B6rn T=C3=B6pel wrote: >> > > >> >> > > >> Philipp Tomsich writes: >> > > >> >> > > >> > It is a pity that the current interface was designed without in= volving >> > > >> > RVI (and that I had to ask my team to put together a patch set = for >> > > >> > further discussion, given that none of the other major vendors = in RVI >> > > >> > stepped forward). I guarantee that plenty of reviewers would h= ave >> > > >> > highlighted that a central registry (even if it is just a kerne= l >> > > >> > header) should be avoided. >> > > >> >> > > >> Are you claiming that the hwprobe work was not done in the open, = but >> > > >> secretly merged? That is not only incorrect, but rude to upstream= RISC-V >> > > >> Linux developers. I suggest you review how you interact with upst= ream >> > > >> kernel work. >> > > > >> > > > Please don't put words into my mouth... >> > > > >> > > > I was merely pointing out that there was no engagement by the RVI >> > > > member companies (in regard to this mechanism) within RVI, which w= ould >> > > > have prevented Jessica's issue. >> > > > This would have also helped to address the concerns on vendor-defi= ned >> > > > extensions. >> > > > >> > > > Also who do you refer to when you say "how _you_ interact"? If it= is >> > > > RVI that you refer to: it doesn't interact with upstream work >> > > > directly, as it doesn't own any engineering resources. >> > > > RVI provides a forum for member companies to come to an >> > > > understanding/design and then have the member companies perform th= e >> > > > work and take it upstream. >> > > >> > > I'm not even sure what you're looking for here: if RVI doesn't want = to >> > > work upstream, then complaining that RVI isn't part of upstream >> > > discussions is pretty pointless. >> > > >> > > >> Why didn't RVI get involved in the review of the series? The expe= ctation >> > > >> cannot be that all open source projects go to RVI, but rather the= other >> > > >> way around. >> > > > >> > > > That is exactly the point I was making and which you seem to miss:= RVI >> > > > does not own any engineering resources and depends solely on its >> > > > member companies to project into open source projects. >> > > > >> > > >> Take a look at commit ea3de9ce8aa2 ("RISC-V: Add a syscall for HW >> > > >> probing"). Your team was very much involved in the review. >> > > > >> > > > I am aware, as I had reviewed and commented on these are well. >> > > > And my only request (was and) is that we need to figure out a way = to >> > > > efficiently deal with vendor-defined extensions. >> > > >> > > Maybe you should go talk to you team, then? Handling vendor extensi= ons >> > > via hwprobe has been discussed, sounds like you're confused again. >> > >> > I too have this vague memory of us talking about vendor extensions, >> > but my memory is really bad for stuff like this, so I spent the mornin= g >> > combing through all the hwprobe iterations looking for it, but so far >> > have only found >> > >> > https://lore.kernel.org/lkml/CALs-HstoeoTWjTEZrLWouCgwq0t3tDB6uL=3DtB6= 8RJDs1ub4Frw@mail.gmail.com/ >> > >> > I'm most likely just blind, but does someone have another pointer? >> >> Hello! That's probably the only pointer. > > > Thanks for following up, as we were debating internally if and what discu= ssions we had missed. > >> >> Couldn't handling vendor extensions within the hwprobe framework be as >> straightforward as explicitly carving out a region for them? Say >> 0x8000000000000000+ belongs to the vendor? The layout of keys within >> the vendor hwprobe region then depends on the value in mvendorid (and >> if the vendor so chooses, archid and impid as well). Then vendors can >> expose keys to their hearts (avoiding the dumb pun there) content. >> >> We can probably skip caching the vendor keys in the vDSO for now. If >> it really needs to be done we can add it later. >> >> This would enforce that there's only one "vendor" at a time for a >> given hart, but I think that's reasonable. Let me know what you think. > > > We generally try to treat vendor-extensions as "vendor-defined" and not "= vendor-specific". In other words, an implementor would be free to implemen= t XVentanaCondOp and XTHeadVDot. While we could simply alias things into t= he implementor's "vendor"-space, I see some benefits to having a unique id = for every vendor-defined property=E2=80=A6 > > Could we use ( 0x8000000000000000 | vendor-id << VENDOR_SHIFT | key-in-ve= ndor-space )? > If so, do we have vendor-ids allocated today that we could use for this p= urpose? > > Thanks, > Philipp. > >> >> >> -Evan