Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3313994iob; Mon, 16 May 2022 19:05:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhVxN7YKp20Az55Ulgh2FoOudrWiafShUQwgFAmXOeNd2fzwlgv5mS21VTOfYiopZBf0Bx X-Received: by 2002:a05:6402:1151:b0:42a:be24:5529 with SMTP id g17-20020a056402115100b0042abe245529mr4405406edw.366.1652753122991; Mon, 16 May 2022 19:05:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652753122; cv=none; d=google.com; s=arc-20160816; b=YvC3b1wI+iJdadT49y3arzSZ5D4+FtJk5fdwlzM0G3PXJozEeft9JBIAuNW91J+A4F ddk+I5v01+1bZfZCdh4QFoiynZM68Jc5deQrmUXxkpmq4+sH2cUBJmWIdl78Ijou+Ou4 errxUV1qI/OBTQF6zK0gyV6e9XHY5uwUPYVoPV7rq6J1Je/H6yRmASL/aJ8xkQkzyPu6 QFMEM4nRkhJJZ4iQWQJIV1AgKotsuoor33W1XjsY1MNHlsOJmiXp+FlKP12H50zlF/Sq QTHiRFppsF/BBDZ7It7Dvr1wvtZeBhU1lGNf6ch1eaSsnjiRcxMJmNhWyu5TyC0cfj8H odwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=bZTvbF89/wAFCr/0aDlm0EbbUtP1mFGUZX8073o30NQ=; b=D0J9Qt0a17roh/GgkilzutKkqe5I66Cg+Z0Jv2cF4nZ4cZB3AhNgznJFcoL8mlY+qL 1dTkCt1yYEcns0UL7puIrw8+HgzMda543LE5ODCSE5VWztJLdKFAbjYElfSxWUKwXr2W djxnshf0aHxZIFGCxtvHsfRh2XynvFHP9g65uVRBPLg2i7ToLPdDCsYAnjiZ7kBRaBju qGjBXiKTESeXe7I6Ljjd7gnAFh+td90qIiR7WJdsN0o9yAG8D4y1ialNt5odO0rHiksX vdpOx4rvnlalsokjHX+Kws9G57u5XVk+PSgnZoNcSQ+aFbqOxK62tNh0pwAVXWsFgWTz +zSA== 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 qx9-20020a170906fcc900b006e893bdaefesi867069ejb.884.2022.05.16.19.04.57; Mon, 16 May 2022 19:05:22 -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; 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 S239873AbiEPGLx (ORCPT + 99 others); Mon, 16 May 2022 02:11:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240290AbiEPGLH (ORCPT ); Mon, 16 May 2022 02:11:07 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEB7F20F67 for ; Sun, 15 May 2022 23:11:03 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 9219A68B05; Mon, 16 May 2022 08:10:57 +0200 (CEST) Date: Mon, 16 May 2022 08:10:57 +0200 From: Christoph Hellwig To: Heiko Stuebner Cc: palmer@dabbelt.com, paul.walmsley@sifive.com, aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, wefu@redhat.com, liush@allwinnertech.com, guoren@kernel.org, atishp@atishpatra.org, anup@brainfault.org, drew@beagleboard.org, hch@lst.de, arnd@arndb.de, wens@csie.org, maxime@cerno.tech, gfavor@ventanamicro.com, andrea.mondelli@huawei.com, behrensj@mit.edu, xinhaoqu@huawei.com, mick@ics.forth.gr, allen.baum@esperantotech.com, jscheid@ventanamicro.com, rtrauben@gmail.com, samuel@sholland.org, cmuellner@linux.com, philipp.tomsich@vrull.eu, Wei Wu , Daniel Lustig , Bill Huffman Subject: Re: [PATCH 09/12] riscv: add RISC-V Svpbmt extension support Message-ID: <20220516061057.GL12339@lst.de> References: <20220511192921.2223629-1-heiko@sntech.de> <20220511192921.2223629-10-heiko@sntech.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220511192921.2223629-10-heiko@sntech.de> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,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 > +config RISCV_ISA_SVPBMT > + bool "SVPBMT extension support" I don't think this prompt is very useful as it doesn't describe what it does. But do we even want people to disable it as it is really essentially for a fully functioning kernel and a pity that it took RISC-V so long to get there? > + depends on 64BIT && MMU > + select RISCV_ALTERNATIVE > + default y > + help > + Adds support to dynamically detect the presence of the SVPBMT extension overly long line here. > index 5f1046e82d9f..dbfcd9b72bd8 100644 > --- a/arch/riscv/include/asm/errata_list.h > +++ b/arch/riscv/include/asm/errata_list.h > @@ -14,6 +14,9 @@ > #define ERRATA_SIFIVE_NUMBER 2 > #endif > > +#define CPUFEATURE_SVPBMT 0 > +#define CPUFEATURE_NUMBER 1 is errata_list.h really the right place for architectural features? Otherwise looks good: Reviewed-by: Christoph Hellwig