Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4729021rwr; Mon, 8 May 2023 11:45:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7PyoQacWLpGdPoRzIluBUA6N07ipsi9HvW4m5s1DzSRke2jSBnKaeAz7gC4CavhT3pPx8/ X-Received: by 2002:a17:90a:2b4a:b0:24e:49d4:bc42 with SMTP id y10-20020a17090a2b4a00b0024e49d4bc42mr11373514pjc.1.1683571544069; Mon, 08 May 2023 11:45:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683571544; cv=none; d=google.com; s=arc-20160816; b=k4CqiJYEvaiDEG4e2z7PNe4vzK3ibk+uPoVEp89clGgCFowODc7TCUuqpFgrXuIGSN 5ceW4lHhdsLWthNyMMVDQS31RQHaIqh9gWzlqNwoKvyhst6ezniKnTKS2iybPvERPKA2 pB4F3AtJlegK/AnAwQ7kQZihL1dAzzmNffjGyXa0Y0MewjCyHq94Wn672Xh1X2LLz0Uq 16BtEM7WsWTmmO6+W6hkeCchC9772yzaLUQDtyK6OctuQNv99JhZBmjBU8XYC8369J6P hx4heoz1YSLHaLumkrSGVVXdBJ+n76t1iUBpOxY6FxXq30Yhv/fkgSxdyJs+TuWqoKfX 5Ohg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=M25WATLyhzQhxEa9d8o7KkxKQW/wNscePwtVST5KSrQ=; b=dWbcQQUIMtHOSSleYlLjQb0cVilfiUYD4U0wGxv2XnkYDEM7CM4RK6QmZRwzW8nau0 jRYmPbfe17/ErrmCB5Y5iiVGtwwu8WcgKPE2ZXMUht/cS4kisJX3TVrpZwzz4OAqjDYm d/kPZtktjncHkEWvnq34n15S4uKY9LT8KnXkXZxLSmTuI4hm+C9+c9pQKxnmB8KCZnzX gvBq2qL2sfOjXPH47deeY8a22HSXmVuLz7aYCYlrexVeMQXDmwt/XcvCLIo6y/6+J42b LdU3/43B6KQCbE/c9ZpKxTaSjCebYCLmDquT0lBweX/xpBC+a8Rkheg2DiiY5vbVwxCB wevg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jrtc27.com header.s=gmail.jrtc27.user header.b=VE2s1Ssb; 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 t189-20020a6381c6000000b0050af2178284si8984158pgd.819.2023.05.08.11.45.29; Mon, 08 May 2023 11:45:44 -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=@jrtc27.com header.s=gmail.jrtc27.user header.b=VE2s1Ssb; 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 S234041AbjEHRiP (ORCPT + 99 others); Mon, 8 May 2023 13:38:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234030AbjEHRiO (ORCPT ); Mon, 8 May 2023 13:38:14 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A90C24491 for ; Mon, 8 May 2023 10:38:06 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-3078d1c8828so2034387f8f.3 for ; Mon, 08 May 2023 10:38:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jrtc27.com; s=gmail.jrtc27.user; t=1683567485; x=1686159485; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=M25WATLyhzQhxEa9d8o7KkxKQW/wNscePwtVST5KSrQ=; b=VE2s1SsbDx/aXrQS0NgPAk+WgOdHzf/3QqunudodyRdICX4j2qtYPKHQkGHIIrqlNx sx4mZcdMePOV2XyS4GUz43h30N5lR0N91qh2enquQDOHWMxCmhEogmN550EVNPOOajmC T0x2AFGIgbbpZS7DvVlBhuJ44DTjHR30UUw4NrL3yOb5M6b2+KA6kUoAsVoN1mQ1iyzl OVNvBRkmjh21X5KkqzBak91XB+t/0QQXsjirTPr/Q6+YcYKJ9HGxU2l1QjkwKW3s9zyq thAzQHhJR6/mHDxLulIlbitkOXbcetIB+3lFg17tvUW6gvs/DcD0KGz1MCjvPNuM/TFp AfDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683567485; x=1686159485; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=M25WATLyhzQhxEa9d8o7KkxKQW/wNscePwtVST5KSrQ=; b=b7zrUE7tLD8SQI/5J/TgIHBYvVo1lAI45rwBiz5/ciAmhZOKdItPsDaR/x4RrGvxPk lIwO+mmuF2K+eyFa2q0iUzZHvvreBrXpQ7FQui93u7/9X27KTg07SHXa3xIesSFEMif6 ocq4HY9fPpPrwYpEuAjF4BXddUiDH3pjZEWn6MA0BY/8LSE52yDU3H/z6qemDlfDQtnp cGUAvbdw+PfddULyhWzhpA1SdONCimv4lmGojSJZpnApn+rMlmuMeQEisVU6OewltT0k BogW/hPFZuUDYRDcN8eieoUhAO35FIXnEHp9HAcxYb2b8hrvWdbIY5voZB1t2Jqy6RNS zxXA== X-Gm-Message-State: AC+VfDxrChsHCnDrUeAZJAOtMw6SIVv48pcyHwzmTR67qY4x8uSvbTPv 8Ii6FfzpYzSvzCyiNmr1TC9Anw== X-Received: by 2002:a5d:470b:0:b0:306:2ddb:47ab with SMTP id y11-20020a5d470b000000b003062ddb47abmr8138690wrq.39.1683567485115; Mon, 08 May 2023 10:38:05 -0700 (PDT) Received: from smtpclient.apple ([131.111.5.246]) by smtp.gmail.com with ESMTPSA id z18-20020a1c4c12000000b003f188f608b9sm17420521wmf.8.2023.05.08.10.38.03 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 May 2023 10:38:04 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.3\)) Subject: Re: [PATCH 0/4] Expose the isa-string via the AT_BASE_PLATFORM aux vector From: Jessica Clarke In-Reply-To: Date: Mon, 8 May 2023 18:38:03 +0100 Cc: Evan Green , =?utf-8?Q?Heiko_St=C3=BCbner?= , Palmer Dabbelt , =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= , linux-riscv , Paul Walmsley , Kito Cheng , Conor Dooley , matthias.bgg@gmail.com, Heinrich Schuchardt , Greentime Hu , nick.knight@sifive.com, =?utf-8?Q?Christoph_M=C3=BCllner?= , Richard Henderson , Arnd Bergmann , linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <7F569E2F-EDE5-452D-91B8-3781B611E438@jrtc27.com> References: <4830085.8hb0ThOEGa@diego> To: Philipp Tomsich X-Mailer: Apple Mail (2.3696.120.41.1.3) 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 On 8 May 2023, at 18:34, Philipp Tomsich = wrote: >=20 > [Resend, as my mail client hadn't picked up that it should respond as > plain-text.] >=20 > On Mon, 8 May 2023 at 19:32, Philipp Tomsich = wrote: >>=20 >> Evan, >>=20 >> On Mon, 8 May 2023 at 18:50, Evan Green wrote: >>>=20 >>> On Wed, May 3, 2023 at 3:31=E2=80=AFAM Heiko St=C3=BCbner = wrote: >>>>=20 >>>> Hi, >>>>=20 >>>> 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 = wrote: >>>>>> On Tue, 2 May 2023 at 09:58, Bj=C3=B6rn T=C3=B6pel = wrote: >>>>>>>=20 >>>>>>> Philipp Tomsich writes: >>>>>>>=20 >>>>>>>> It is a pity that the current interface was designed without = involving >>>>>>>> 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 = have >>>>>>>> highlighted that a central registry (even if it is just a = kernel >>>>>>>> header) should be avoided. >>>>>>>=20 >>>>>>> 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 = upstream >>>>>>> kernel work. >>>>>>=20 >>>>>> Please don't put words into my mouth... >>>>>>=20 >>>>>> I was merely pointing out that there was no engagement by the RVI >>>>>> member companies (in regard to this mechanism) within RVI, which = would >>>>>> have prevented Jessica's issue. >>>>>> This would have also helped to address the concerns on = vendor-defined >>>>>> extensions. >>>>>>=20 >>>>>> 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 = the >>>>>> work and take it upstream. >>>>>=20 >>>>> 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. >>>>>=20 >>>>>>> Why didn't RVI get involved in the review of the series? The = expectation >>>>>>> cannot be that all open source projects go to RVI, but rather = the other >>>>>>> way around. >>>>>>=20 >>>>>> 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. >>>>>>=20 >>>>>>> Take a look at commit ea3de9ce8aa2 ("RISC-V: Add a syscall for = HW >>>>>>> probing"). Your team was very much involved in the review. >>>>>>=20 >>>>>> 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. >>>>>=20 >>>>> Maybe you should go talk to you team, then? Handling vendor = extensions >>>>> via hwprobe has been discussed, sounds like you're confused again. >>>>=20 >>>> 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 = morning >>>> combing through all the hwprobe iterations looking for it, but so = far >>>> have only found >>>>=20 >>>> = https://lore.kernel.org/lkml/CALs-HstoeoTWjTEZrLWouCgwq0t3tDB6uL=3DtB68RJD= s1ub4Frw@mail.gmail.com/ >>>>=20 >>>> I'm most likely just blind, but does someone have another pointer? >>>=20 >>> Hello! That's probably the only pointer. >>=20 >>=20 >> Thanks for following up, as we were debating internally if and what = discussions we had missed. >>=20 >>>=20 >>> 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. >>>=20 >>> 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. >>>=20 >>> 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. >>=20 >>=20 >> We generally try to treat vendor-extensions as "vendor-defined" and = not "vendor-specific". In other words, an implementor would be free to = implement XVentanaCondOp and XTHeadVDot. While we could simply alias = things into the implementor's "vendor"-space, I see some benefits to = having a unique id for every vendor-defined property=E2=80=A6 >>=20 >> Could we use ( 0x8000000000000000 | vendor-id << VENDOR_SHIFT | = key-in-vendor-space )? >> If so, do we have vendor-ids allocated today that we could use for = this purpose? The only somewhat useful one is mvendorid, but that=E2=80=99s a JEDEC = thing so if you=E2=80=99re an academic then yours will be 0 and we=E2=80=99re = back to a shared namespace. Jess >> Thanks, >> Philipp. >>=20 >>>=20 >>>=20 >>> -Evan