Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp290393pxb; Thu, 31 Mar 2022 05:39:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXbdAqVoxlKD2kQxvCW+jWZsBj+k6/8kq5UGJdbIoEqRh3cte63/qiKkC+1/WgDqqOLVhd X-Received: by 2002:a17:902:e9d4:b0:153:bd06:859c with SMTP id 20-20020a170902e9d400b00153bd06859cmr4873548plk.8.1648730368400; Thu, 31 Mar 2022 05:39:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648730368; cv=none; d=google.com; s=arc-20160816; b=yeVle564FM7n8N3b9dt/fO5VUeb3z8/FormBfer+5s9CfLQNswUXtQG17Rq9/3NufP m/s3XexbkwtlMVxLBq076f6LpxlZ2Hpl/C4MDZoFxqXKKvr8Pj4lKTGDDu9pWuQgrH96 yo/9tbmOI68pdyObJUbM2P6WVPPNNBucWRYl+SWFoeEPMDlcntWREaE2kvjOx9ncZKoJ VvQ+EPZpBpC/xAwp7ofgDXtXO3nlldX/RIVe9ZN4ebJUi1S28r4RDFJKlOKO0m9w3ZeW JgiQ49HFQFAUl38V2Ai1ePlsaLlRJioTHD3tT6HRE3hWWgs3J4AmvAYy4iGBV1CwvKQm CV2w== 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=BNoOE+rqaXVO3e14hw1gxSAYGDMoOwWb1ct6fLgk8IM=; b=LX/XBXHnmcuwV1DKVwNlUKA3g+uD3DNzFl+YKj/+xrSyM8lvnHyj5Kz6BmpZnNPuqt V7jkS4B2Jzh6PenlXuhkzuds+/3x8hJM5FxnfuA2We7LZPRbNxomEyPN9o8gaNuKlLRb 0DdR4TG6K8Z3Wdw3xK1/h8bJokHvX+4FkhcoALLd0i7WdsQliYn9yw3+K3EkDjEG3YVO lidZW4zdfWeA+ab9bGJNGNRCq4eg1+62WCgLA29TPOK59ND3iKFZZpOu42DxAoztZIR9 7UnBBBJumPr0PO0SrhbjbBbkNOxu0jxG5IpIaBPIpAqrqviw2s9mNJ9mZ+SFXAENIuch Y98Q== 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 ob3-20020a17090b390300b001bf576ca141si3733366pjb.1.2022.03.31.05.39.15; Thu, 31 Mar 2022 05:39:28 -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 S234072AbiCaJz2 (ORCPT + 99 others); Thu, 31 Mar 2022 05:55:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231605AbiCaJz1 (ORCPT ); Thu, 31 Mar 2022 05:55:27 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3F73B1AB2 for ; Thu, 31 Mar 2022 02:53:40 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 4390E68B05; Thu, 31 Mar 2022 11:53:37 +0200 (CEST) Date: Thu, 31 Mar 2022 11:53:36 +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 Subject: Re: [PATCH v8 02/14] riscv: integrate alternatives better into the main architecture Message-ID: <20220331095336.GB23422@lst.de> References: <20220324000710.575331-1-heiko@sntech.de> <20220324000710.575331-3-heiko@sntech.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220324000710.575331-3-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 On Thu, Mar 24, 2022 at 01:06:58AM +0100, Heiko Stuebner wrote: > Right now the alternatives need to be explicitly enabled and > erratas are limited to SiFive ones. > > Over time with more SoCs and additional RiscV extensions, many more > erratas or other patch-worthy features will emerge, so it doesn't > really make sense to have the core alternatives able to get > deactivated. > > So make it part of the core RiscV kernel and drop the main > RISCV_ERRATA_ALTERNATIVES config symbol. > > This mimics how other architectures like for example arm64 handle > their alternatives implementation. For minimal kernels like the k210 it would be really good to be able to avoid any not strictly neeed code. So I'd much rather have the alternatives mechanism only built when it actually is needed, not (semi-)unconditional.