Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2926017pxb; Thu, 3 Feb 2022 18:51:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJzw9K8N5Uf41Nat1RTHHYGu6OcdT/FX4fcsWwXXX8/tjO55bybB3SpbCF8uR6MiRkrpzqBj X-Received: by 2002:a05:6402:c8f:: with SMTP id cm15mr1106455edb.142.1643943062484; Thu, 03 Feb 2022 18:51:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643943062; cv=none; d=google.com; s=arc-20160816; b=yyHoChzJ6YR7CocgH+B6Q5F69B+7RgMyksMcC177vhqziiLLfMSzDk8NHxO8KuX+ty BpIxBKYNxbEkF6wPnbVouCgrpLJrlQBmrP2X0bPfKj73/hI3hCn5L5iODmFqajyYvmzC jGqQ4TAN5XegpQkhw2vqVKTdPVzylZPaYiGj1+wyZ1t3a/xsirqKiWlvZetCPr3RKomZ KRTLfxfBVGhgKL8SdPJGH11XA6gh71doZ9HSN8AjacwRfAlx2LVTBDrDI/sWjnwVaccD bE5w1JqRaHnsflW1UPbMWwGWrJ69OzvO04WRUbRJauxwo9Zy2RTw6iJELjQW4y2IBseX SykQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=b0cdEdAHeED14hDSpC3Dk7gjWLqoDWf/TRqPqH6Kohk=; b=W5Bj5+gDkExtxgDicKAuTVex4ldOn+8zftA/Vt9KKNH/Ludxm7b4X3G2YWAD1DBtLF N9ryHa+W5+7zNNKIm/Z3q7MLRB8c9VLZiF69Hir4qnpmbbE75oLJOjfoUc7/FIJb3LRf 5VGFhj/hYv1aSbbS13m307mIaChYz5ePIkRKSL8ZVyasSfcGDZjYXlCE9nJTxAsGbgqH mwYAS2Ophm1lEXoYlzyqWwCJSaAiw86tTjjlUnF7loEUxv0mSvecQ6ac/erKRN0W/Y9F 9BAGKtqZC2KHHXrne8gQpBwAU82WCjU2Pn0GRID9wATYDpBlPn+4LCpx9QJGfzWjIJdB ARdA== ARC-Authentication-Results: i=1; mx.google.com; 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 dn2si462261ejc.927.2022.02.03.18.50.37; Thu, 03 Feb 2022 18:51:02 -0800 (PST) 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; 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 S1350926AbiBCN46 (ORCPT + 99 others); Thu, 3 Feb 2022 08:56:58 -0500 Received: from gloria.sntech.de ([185.11.138.130]:54912 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232957AbiBCN44 (ORCPT ); Thu, 3 Feb 2022 08:56:56 -0500 Received: from ip5b412258.dynamic.kabel-deutschland.de ([91.65.34.88] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nFcbM-0002C8-Tr; Thu, 03 Feb 2022 14:56:44 +0100 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Palmer Dabbelt , Tsukasa OI , linux-riscv@lists.infradead.org Cc: "linux-kernel@vger.kernel.org List" , Atish Patra , Albert Ou , Anup Patel , Damien Le Moal , devicetree , Jisheng Zhang , Krzysztof Kozlowski , linux-riscv , Paul Walmsley , Rob Herring , Atish Patra Subject: Re: [PATCH v1 0/2] Provide a fraemework for RISC-V ISA extensions Date: Thu, 03 Feb 2022 14:56:43 +0100 Message-ID: <1859467.Zi3Bu27KEa@diego> In-Reply-To: References: <20211224211632.1698523-1-atishp@rivosinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Atish, Am Samstag, 8. Januar 2022, 03:24:12 CET schrieb Atish Patra: > On Fri, Jan 7, 2022 at 1:58 PM Palmer Dabbelt wrote: > > > > On Fri, 24 Dec 2021 13:16:30 PST (-0800), atishp@atishpatra.org wrote: > > > This series implements a generic framework to parse multi-letter ISA > > > extensions. It introduces a new DT node that can be under /cpus or > > > individual cpu depends on the platforms with homogeneous or heterogeneous > > > harts. This version of the series only allows adds support for homogeneous > > > harts as there are no platforms with heterogeneous harts yet. However, > > > the DT binding allows both. > > > > > > The patch also indicates the user space about the available ISA extensions > > > via /proc/cpuinfo. > > > > > > Here is the example output of /proc/cpuinfo: > > > (with debug patches in Qemu and Linux kernel) > > > > > > / # cat /proc/cpuinfo > > > processor : 0 > > > hart : 0 > > > isa : rv64imafdcsu > > > isa-ext : sstc,sscofpmf > > > mmu : sv48 > > > > IMO this is the wrong way to go. I get that the ISA string is very > > complicated to parse, but we've tried to come up with other > > representations of this we've ended up having that interface break when > > the ISA string rules eventually change. We should just stick to the ISA > > string for these interfaces, as that's at least something everyone can > > agree on because they're defined by the spec. > > > > Fair enough. > > > That said, we should add the spec versions into this interface. At > > least the user spec version is relevant here, but given that we're > > passing through some other priv-level details we might as well pass that > > though too. > > > > Tsukasa already has a version that extends the isa string parsing for > multi-letter extensions > and versions parsing. We just need to add the ISA bitmap support on top of it. > > I will coordinate with Tsukasa to have a complete framework based on > string parsing. > It would be good to have this series asap as all other series (perf, > svpbmt) will rely on it. out of curiosity, did this go anywhere yet in terms of the coordinated approach you wrote about? Thanks Heiko