Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp507408pxb; Thu, 23 Sep 2021 05:09:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwldT/UdSvTCD6gVCxjD42qCdUj/7dwgle0PAeVjkZzT8XJPgfM3iX767oAaGdn5gcH5qmo X-Received: by 2002:a17:906:7716:: with SMTP id q22mr4714894ejm.457.1632398958460; Thu, 23 Sep 2021 05:09:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632398958; cv=none; d=google.com; s=arc-20160816; b=B3w0TD10fbk/OqY0tJXd/K+SYayFoeZYAlo+5ohi9Og8b2XlFa0w5aCI7nERnzLHy7 voGUAKIZCQ0+qAAmcyXerLopOHRO3nulubgfrHfk2CCMLsqraxK6PvGysMDoeIaJo6R5 /gWwKJq78OQnO2h1A9E/+HwrmZEvq33kyt7nf8yUGYR6WeIaL1BBSv7HMPiLCfh6RFFM 18SxPo9tjtSKhtHdh+Klexdyx8E0xmwlgZ4jZJED6Kdk947WghT/0Wwd1mX9vJEA6+IF 7OuGElh7j6K3vAivFAYLnk53yt8mTEJcV1NN8OlgHlgSM3sLIQdZOrVUR8qoeNnbzWi4 VlAQ== 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=rPN5T8McA7k2kKqTy/pX4dMxB3JbwuoA2CsK4OIX2IU=; b=r8vQqCFW6XgkbzOQNd48WW+z0OHgR7PYzOaX0LnmwevOcua945nuWQqRsV1+XLsQ6y KoVod2BrOgJj+Zs7xXuqBVAcoc4bj2rIUuT3oma+cjaeqzN9MN+ju6DMwH5gQ0hGJXx2 gTTzBqSHEu9KYyfmZAyDTN8yEjq88tKzcxcRGvUT3SX4j8rRpMawu/tH16+RTIhT8/YM ePxwaOLZHH/k8w4crw/tD52qhtRj3ymUhWhk+gwnsFAuKgq/fGEa/d4tGjKlg06/lrdZ ww0s9924/y/MR6jq6er157bpit9Kfmx1JmeTCBkdHGEu5+q1b+Aa++CvcU26WB9yK5h6 95iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b="b/i2Clm8"; 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 b4si2990075ejl.780.2021.09.23.05.08.38; Thu, 23 Sep 2021 05:09:17 -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=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b="b/i2Clm8"; 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 S240953AbhIWMIF (ORCPT + 99 others); Thu, 23 Sep 2021 08:08:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240858AbhIWMHh (ORCPT ); Thu, 23 Sep 2021 08:07:37 -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 2C65BC061757 for ; Thu, 23 Sep 2021 05:06:06 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id i24so586863wrc.9 for ; Thu, 23 Sep 2021 05:06:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=rPN5T8McA7k2kKqTy/pX4dMxB3JbwuoA2CsK4OIX2IU=; b=b/i2Clm8A/XY3P2W28k7FN2YuIBtKZ7tcWOwVYykFI9EdNgZjPR/Ivgd5zKs5gsI6E g1iO6MXP9quXi+Ekq/k/GGaKKCoLTafSgD1HaX5efKOAa3x1R9uuR3rdE9UsZMy+j3YI Gb6G2YdgHGmvhGWRuC/dRRcCXCdkXRRqMWbp6k1rEtJVtPZr0LcsqDG/lsP87YnbUZnG pQ2arww96S6GsmcZsT7bjvIZDq9xJ2YHXExnS8K9UM9mPT1ZzFo04qla3UCnG22JXacq MXvjr/A1IcK15HIQ7iq+4EHLfRgyXCO8JZRQULJ928R/hCaBqxaaRy2UiGRp8WSz1PvX SlqQ== 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:content-transfer-encoding; bh=rPN5T8McA7k2kKqTy/pX4dMxB3JbwuoA2CsK4OIX2IU=; b=t6ftMl3VKnXcGZDb2gwUyffxWYTOsZuDl2o+fCgV9mkMVGwfKhW+i3y1BLxDG0zlR8 0ahDQLflF6KkYEHX7/QD/f1DT9F3Hj2Yr87e4QqH+EHtxMKVgRVNQkus2zN1v+4cCr/T FHESU0JBILlGcdICygS2oV7BhYJ1oFtEVK4eiTurAI4qNfrELVilRIodypI7Ti9O73ui UiDGPvI/eFTmoaGLnw8MgkaBThGC1X7RRDPQ86/pB+3aBmfEBIhmiVDg3l5eh7NcxaRF T2P+w+llfq3CgZWyjwx0nGlF8xbBm7Xx7ZA5sjidRAoOZUSsMWrh43xua7TakNTEtc1t sJZQ== X-Gm-Message-State: AOAM533jHVhhLX39K+GRLineHEueDbCk993v7eFrzT/ER9yX1woRZFoq br8yWE485rJJa0lmBenEH0bQJS6p8vgdjEKksjUHKQ== X-Received: by 2002:a7b:c20f:: with SMTP id x15mr4163615wmi.59.1632398764412; Thu, 23 Sep 2021 05:06:04 -0700 (PDT) MIME-Version: 1.0 References: <20210923072716.913826-1-guoren@kernel.org> <6d7b1668c1f562a5ef426bb2519f9784@mailhost.ics.forth.gr> <0861cc74d3886e685e9aa5d13ddcd781@mailhost.ics.forth.gr> <16de95480d279b086cf0c612461e4235@mailhost.ics.forth.gr> <88696248a0c19a5dff660354b837514d@mailhost.ics.forth.gr> In-Reply-To: From: Anup Patel Date: Thu, 23 Sep 2021 17:35:52 +0530 Message-ID: Subject: Re: [PATCH] riscv: Add RISC-V svpbmt extension To: Alexandre Ghiti Cc: Nick Kossifidis , Philipp Tomsich , Guo Ren , Anup Patel , Atish Patra , Palmer Dabbelt , =?UTF-8?Q?Christoph_M=C3=BCllner?= , Christoph Hellwig , liush , wefu@redhat.com, =?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 , Allen Baum , Josh Scheid , Richard Trauben Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 23, 2021 at 5:21 PM Alexandre Ghiti wrote: > > On Thu, Sep 23, 2021 at 12:11 PM Nick Kossifidis wrot= e: > > > > =CE=A3=CF=84=CE=B9=CF=82 2021-09-23 13:04, Philipp Tomsich =CE=AD=CE=B3= =CF=81=CE=B1=CF=88=CE=B5: > > > > > > How if we expand this to a mmu subnode in cpu@x and add a booleans fo= r > > > adornments like svnapot and svpbmt? > > > The older mmu-type could then treated to indicate a mmu w/o any > > > adornments specified. I am aware that this generates an additional > > > parsing-path that will be maintained, but it will allow future > > > properties to be grouped. > > > > > > cpu@0 { > > > ... > > > mmu { > > > type =3D "riscv,sv39"; > > > supports-svpbmt; > > > } > > > ... > > > } > > > > I was about to propose the same thing, we can do this now without > > breaking backwards compatibility, we don't really use mmu-type property > > at this point, we are either sv39 or nommu. > > Indeed, this property is only informative and not useful since we can > directly "ask" the hw what it supports (cf sv48 patchset). And it > cannot actually be used to force a certain svXX since reading the > device tree happens way too late in the boot process (I have this > issue with my sv48 patchset where I used to read the device tree to > set the size of the address space, but it actually breaks KASAN). > > Isn't there a way to know if it supports svPBMT at runtime? Unfortunately, we can't detect Svpmbt through CSR read/write or traps. A DT property seems to be the only way for Svpmbt. Regards, Anup > > Alex > > > > > _______________________________________________ > > linux-riscv mailing list > > linux-riscv@lists.infradead.org > > http://lists.infradead.org/mailman/listinfo/linux-riscv