Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4215045pxb; Sun, 24 Oct 2021 23:09:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2gM2QGlj5GMmsBpD37sMvrUFNzQpCkKQtyuKl+aM6LN2TuOrAbzxqbcR6V2mmqEZB1PD5 X-Received: by 2002:a17:90a:6885:: with SMTP id a5mr3242994pjd.233.1635142199078; Sun, 24 Oct 2021 23:09:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635142199; cv=none; d=google.com; s=arc-20160816; b=dh7B7dyDStgW1rt/yMA4knL7IAvUKRbmtpaMKyr7uL6vwARJTi8tu4bNS3vAGpEXp4 I/fc8lEeO5Frc0C1aPLPwlg6sZ4nUBNNuRM9uPrcH9NI9hS8AhmVjXFFu92AC6XDAO0b B81fMxH2Ume5hBdnIZ+Fbo/5pA0e8Uv3gURx2vKtrwq1YgrgY/xM+k8QbS32COGlAPqV OqNIkBVgpQd8vrtsO55/IMApcytBJcqaPGfB4MXz0BcBzRZQwz5I/H6LKytzW5e6tSOm Ljk8awb2bZuGsZR84VgMmotgXLBKHZeYl4SRLFw1iNolm7MiOPY4KxfqKs/tKDIKda9z 9NEA== 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=bwc0ZNAIngKuJatPHCZNtPDEhr0MZGZH0rQT60yCKLE=; b=itY+NM349dXgpspwj0JZwmA2pMAk/q+dbd/2dvAlzW7KmjhL7QlcuusDvZBSfJn2FJ VWpPCwHbTetaf+WZFhVcAoYjTVsQD8Bzsa4BBU0ZFdDpFCm65qukuH71YHputa1Ev9eB n20XC/bJm8G13F/WeplZrDaTJhVEYtiiCFpEVcjsIBs50zFHZFOQxRJ7Q6AprQPJm1eF 3zbFl0MiPKksXypRYoXG9GO1jryHUKSBElK4i52g7cx0ZjjdJGoDynF94+zUZY+8cYQD W3k+7uAAxwmd4Qd+sBILDXt4iX3U+bARb+sedMaymj/Cc8R4Uj3K+zTLycMvgd9jjNIM /tAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="WrSz3/if"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e2si20242687pfi.307.2021.10.24.23.09.36; Sun, 24 Oct 2021 23:09:59 -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=@kernel.org header.s=k20201202 header.b="WrSz3/if"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229992AbhJYGDU (ORCPT + 99 others); Mon, 25 Oct 2021 02:03:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:38510 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229678AbhJYGDT (ORCPT ); Mon, 25 Oct 2021 02:03:19 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D886660F4F for ; Mon, 25 Oct 2021 06:00:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1635141657; bh=CuzeI+0Q9Euya1CQX3pyZPAzzTOCsyTDTkaMPkoJqGo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=WrSz3/ifZ7d1DGrKK1WtVRR5rvnOUBWmMlIiuLYv9vhe2ph5eVTbGNOUV3NnGlwqK I4sahrPfh3i9fWUdZ9iqMnHVcNLOIqrBePBRqzdpNkQ41raIAAYxdORgt0temM4Rca mNH9nuuGPyWFAvxaIQRCcdEMRzoLl2OAlKpaMV+p4rNL92aRPV8uFk/AVhQf5Scrtf SC8V7oKAOM+rGFFVSg3EOvgiCtUfl32zpvwBqsB/HobMgy24idQrlNVFIxE0060HQ8 lAkqHII3zAUjps+RVVb4K/lB290LF2bABjl4IISVMKidkPiJlI++iNKqh+k/K5fz9L Vgp4yASDVGJlw== Received: by mail-ua1-f54.google.com with SMTP id q13so19860789uaq.2 for ; Sun, 24 Oct 2021 23:00:57 -0700 (PDT) X-Gm-Message-State: AOAM533DWb1l1nT41Cacl4R05pjJTxt102g1Ke0UIKe6jisTqJFrTqEi zaE8VdI/DgH4o2hQHtw4oTx+z+310iDPCkn/8Y4= X-Received: by 2002:a67:fa93:: with SMTP id f19mr12463846vsq.43.1635141657031; Sun, 24 Oct 2021 23:00:57 -0700 (PDT) MIME-Version: 1.0 References: <20211025040607.92786-1-wefu@redhat.com> <20211025040607.92786-2-wefu@redhat.com> In-Reply-To: From: Guo Ren Date: Mon, 25 Oct 2021 14:00:46 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RESEND PATCH V3 1/2] dt-bindings: riscv: add mmu-supports-svpbmt for Svpbmt To: Anup Patel Cc: Wei Fu , Anup Patel , Atish Patra , Palmer Dabbelt , =?UTF-8?Q?Christoph_M=C3=BCllner?= , Philipp Tomsich , 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, 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; }; > > 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/