Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp437782pxb; Mon, 25 Oct 2021 11:10:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAZVOghRQz39O6KzQqXPQDliF5UR2SG9jM99wDkn98xL7ENs3bDZ6MT00Y8ba9kWa+9xIi X-Received: by 2002:a17:906:d0d8:: with SMTP id bq24mr24714298ejb.402.1635185456233; Mon, 25 Oct 2021 11:10:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635185456; cv=none; d=google.com; s=arc-20160816; b=L03V6OmkKGlng0Rx0qd+CpgZ8YgY32fUrs/FpBxrQdND6oRuFkIkXgcYmMFGNojp3K vFR571+hY+z8SimtCq4f/+z1f5slK7pmZT/ssfYhZq6z4g6/rze1d0t+z0nQ6rzaxoJ/ 6mM/h1Wdp+kzLpZhV7CBLYC8mZLPXVG0bWbjJNwo8wjPwZdGrWuVSA3T61zIAO3tp+/k fiQfm+42ssfItnqfDs6Ds706gQPwWgz9EBEVaBp9Qnga/OulZQ0QWrPTaSwMjq9QMyX+ 9dtJ5uEXt8fByGbbOtBCnRxPH2S9VVMA3xVokBiOSVBtqh6GV11y3U8nPwjF/Vrc5H4W aDig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=dHr5OHD5jpaUHwRPw9aH93bpMTz/ijSR6iNj3HeWX0s=; b=q8k9a0O2qNU//6fzpurNz0pNrbE7yF8YZcuyQhPYJjqV0n2q/5WV8jN/4LfJz4daaP nCReIQV6c/6So1jDR78BTwugfHZJ8P9yd2AHhK46ByZa97ViGWh+TSf2mA7t/6+lpyfa 1TGbsS1S+J2NZuYsEuoGhhmvIUH8we7rtawrKzb0pg/2iNFp7001JuOy2QM2HKhU2wMg 7sxYvoHYiAvur6iktjgaGLkJ/SGoq3DieTCJ2AcCeaZ+BcK6P6IRdyDgvo0jWt364Pyu iDH/s7I3m4MfGo1vz/aONb9cHr1jIkLOVlwQzPk82O2bk1WepDWjZANwFa6Bgx8PnA9I tDYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vrull-eu.20210112.gappssmtp.com header.s=20210112 header.b=dBywuSgi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ds5si33829340ejc.99.2021.10.25.11.10.30; Mon, 25 Oct 2021 11:10:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@vrull-eu.20210112.gappssmtp.com header.s=20210112 header.b=dBywuSgi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231231AbhJYNYb (ORCPT + 99 others); Mon, 25 Oct 2021 09:24:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230136AbhJYNYb (ORCPT ); Mon, 25 Oct 2021 09:24:31 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E7D6C061745 for ; Mon, 25 Oct 2021 06:22:08 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id d10so8734056wrb.1 for ; Mon, 25 Oct 2021 06:22:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vrull-eu.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dHr5OHD5jpaUHwRPw9aH93bpMTz/ijSR6iNj3HeWX0s=; b=dBywuSgiJPi0D1S2vr4DoJq7T77YxIGCJ4mMgfU1wZFg1NE4zAn8AmG4mPRPFf7+qc ZSJrUumbL0079syfoR2CyAKgq0q+MCS43Gx7PO5URbNHdhHO8GneCUDG1Emf/f0qNPv/ 5Z1Z3YVsJ4l/RG7K8OZ5BQkGwcdA5qFpwDMMqiFPs8Ecaxj+fd8D5EAxTblxG6n5tGh7 Ep/f7hyzQOg+IBVCR2VqteZC+cYAD35O3VSXUQIn8daTgVBg2706ggFDQwTt46LFT8vG z0ZrDRWWZb40w2oS1LN7rkqp5TC5HrQLvm42Fyk5y8oRZYeUsgrj6UHxG+300x8oz3QB /tEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dHr5OHD5jpaUHwRPw9aH93bpMTz/ijSR6iNj3HeWX0s=; b=N+kPdxRyQ38g8YaD6tS5fJ9q5LV/qqfTcnaJHW9LKPmC+AyGe+oJBmmBerwojFA7aF tVfO1R0J0Pa1bV/ezCvrFvotTukoQllsYgZBBKijvJpw2mBuKEFqoGO4+eFH7GkHXotQ l/Zos6PACCeZ0SdCX28/EhhQqJP2x2DBvnGXtGHZUJuNzcCLBonRLv+llzE2sz7Rasoo JXmACoBmpl8swHKbdWwqecsIGAUyEJsH6W6kPKCHMN8wXKrAHRL6tva4AF+lSwE9YuZs ZfpOSnfqizK0Dcj069wY9Yux9lDpSqPqWGx+Hs6AKmiCnOLVCo6ibSHiniVDq7iU/oSC mwnA== X-Gm-Message-State: AOAM531JCCMQrj+pIEjVRrN/H0DWPkvVXwyhsexvkcJJJDgNMruFAFlj O2itgSTI6xohyLn0ubXBGGhhAh9jZC4H+xVlMty9Bg== X-Received: by 2002:adf:c183:: with SMTP id x3mr21329364wre.90.1635168127135; Mon, 25 Oct 2021 06:22:07 -0700 (PDT) MIME-Version: 1.0 References: <20211025040607.92786-1-wefu@redhat.com> <20211025040607.92786-2-wefu@redhat.com> In-Reply-To: From: Philipp Tomsich Date: Mon, 25 Oct 2021 15:21:56 +0200 Message-ID: Subject: Re: [RESEND PATCH V3 1/2] dt-bindings: riscv: add mmu-supports-svpbmt for Svpbmt To: Anup Patel Cc: Guo Ren , Wei Fu , Anup Patel , Atish Patra , Palmer Dabbelt , =?UTF-8?Q?Christoph_M=C3=BCllner?= , Christoph Hellwig , liush , =?UTF-8?B?V2VpIFd1ICjlkLTkvJ8p?= , Drew Fustini , linux-riscv , "linux-kernel@vger.kernel.org List" , taiten.peng@canonical.com, Aniket Ponkshe , Heinrich Schuchardt , Gordan Markus , Guo Ren , Arnd Bergmann , Chen-Yu Tsai , Maxime Ripard , Daniel Lustig , Greg Favor , Andrea Mondelli , Jonathan Behrens , Xinhaoqu , Bill Huffman , Nick Kossifidis , Allen Baum , Josh Scheid , Richard Trauben , Palmer Dabbelt , Rob Herring Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 25 Oct 2021 at 08:08, Anup Patel wrote: > > On Mon, Oct 25, 2021 at 11:30 AM Guo Ren wrote: > > > > On Mon, Oct 25, 2021 at 12:17 PM Anup Patel wrote: > > > > > > On Mon, Oct 25, 2021 at 9:36 AM wrote: > > > > > > > > From: Wei Fu > > > > > > > > Previous patch has added svpbmt in arch/riscv and changed the > > > > DT mmu-type. Update dt-bindings related property here. > > > > > > > > Signed-off-by: Wei Fu > > > > Co-developed-by: Guo Ren > > > > Signed-off-by: Guo Ren > > > > Cc: Anup Patel > > > > Cc: Palmer Dabbelt > > > > Cc: Rob Herring > > > > --- > > > > Documentation/devicetree/bindings/riscv/cpus.yaml | 5 +++++ > > > > 1 file changed, 5 insertions(+) > > > > > > > > diff --git a/Documentation/devicetree/bindings/riscv/cpus.yaml b/Documentation/devicetree/bindings/riscv/cpus.yaml > > > > index e534f6a7cfa1..76f324d85e12 100644 > > > > --- a/Documentation/devicetree/bindings/riscv/cpus.yaml > > > > +++ b/Documentation/devicetree/bindings/riscv/cpus.yaml > > > > @@ -59,6 +59,11 @@ properties: > > > > - riscv,sv48 > > > > - riscv,none > > > > > > > > + mmu-supports-svpbmt: > > > > + description: > > > > + Describes the CPU's mmu-supports-svpbmt support > > > > + $ref: '/schemas/types.yaml#/definitions/phandle' > > > > > > There were various proposals from different folks in the previous > > > email threads. > > > > > > I think most of us were converging on: > > > 1) Don't modify "mmu-type" DT property for backward > > > compatibility > > I agree. FuWei has followed that in the patch. > > > > > 2) Add boolean DT property "riscv,svpmbt" under > > > "mmu" child DT node of each CPU DT node. Same will apply > > > to boolean DT property "riscv,svnapot" as well. > > We have various proposals here: > > @Philipp suggests firstly, but break the backward compatibility: > > cpu@0 { > > ... > > mmu { > > type = "riscv,sv39"; > > supports-svpbmt; > > supports-svnapot; > > }; > > > > @guoren suggests reusing the mmu-type, but seems not clean. > > cpu@0 { > > ... > > mmu-type = "riscv,sv39,svpbmt,svnapot"; > > > > > > @fuwei suggests simple name property in CPU section: > > cpu@0 { > > ... > > mmu-type = "riscv,sv39"; > > mmu-supports-svpbmt; > > mmu-supports-svnapot; > > > > @Anup suggests: > > cpu@0 { > > ... > > mmu-type = "riscv,sv39"; > > mmu { > > supports-svpbmt; > > supports-svnapot; > > }; > > > > Any other suggestions? Thx. > > > > > > > > We also have bitmanip and vector broken down into smaller > > > extensions so grouping related extensions as separate DT node > > > under each CPU node will be more readable and easy to parse. > > Do you mean combine mmu extensions with them together? > > cpu@0 { > > ... > > extensions { > > supports-svpbmt; > > supports-svnapot; > > supports-bitmanip; > > supports-vector-v0p7; > > }; > > I meant separate group nodes like this: > > cpu@0 { > ... > mmu-type = "riscv,sv39"; > mmu { /* Only considered when mmu-type is present and mmu-type != > "riscv,sv32" */ > riscv,svpmbt; > riscv,svnapot; > }; > > bitmanip { /* Only considered when "B" is present in the ISA string */ > ... > }; Please disregard this comment regarding bitmanip/B. The B bit in the misa CSR is not used for any signalling regarding Zb[abcs] (or the other Zb-extensions), so this entire node is not needed and B in the ISA string is not related to any of the Zb* extensions). All Zb* extensions are directly visible from the ISA string. > vector { /* Only considered when "V" is present in the ISA string */ > ... > }; > ... > }; > > Regards, > Anup > > > > > > > > > Regards, > > > Anup > > > > > > > + > > > > riscv,isa: > > > > description: > > > > Identifies the specific RISC-V instruction set architecture > > > > -- > > > > 2.25.4 > > > > > > > > > > > > -- > > Best Regards > > Guo Ren > > > > ML: https://lore.kernel.org/linux-csky/