Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1758038rwe; Fri, 2 Sep 2022 03:24:50 -0700 (PDT) X-Google-Smtp-Source: AA6agR5Dk17lpwfggcTeOflEj89E6sKbv+9oy16M+SE+y4m2tk8MqPP0Xxkhl4Pmo0W8DcAfhoJV X-Received: by 2002:a17:907:a412:b0:731:6cc2:adfe with SMTP id sg18-20020a170907a41200b007316cc2adfemr26835200ejc.74.1662114290415; Fri, 02 Sep 2022 03:24:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662114290; cv=none; d=google.com; s=arc-20160816; b=E63FX/IIzkX9Qp4H6cEorsoV/elnxxUE0TY93PII05uI45qPaj6NvTe5tULUqie70v XcyeQ+xxK0QuPe8MUHb102cX1hnZQozKfpb/1m1mk8BBt4rh9YCGyUNTUBwBxkmH3fjM /M9L6mSrO/yf9GmleI9BgjRrStWFP/8Olh393IISKyWz/MB1FzDIg+w4WrnzGDxjRGRG IMsrqayZGQ/MxgiDj7l4Lix5uQrdQp0Bx1TjO35n2W39tgw8VSHbWXr9UgCv86K6lJl0 Wlj3hcrsfQMnKp/hqa53THaQckhuD51WHZmGZYFTEBJ89SC/mDrsFx5AZTyQvfkDGqSn 5a4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=p4BB5HEEv1U/G1XcV5dDRUGXUnKJI96ERgbfE9BkLC4=; b=IA11jeLjum8Xllp9VgwTvtp1aGZ0wqp0IwPcrWz0LY9nDCJum0z3p/2jbaMoAovx5c eu0IXEk9WKtgvhF0VbZApEUZIsmtczQMLR5+sk00gF4jQFLW4sLlqTZEbuDCsSh+z+sh Zd4pzoU5to097A40p7e+PMGUzo6l+a4Kmlnc5LbFEOj9TJgw9OXZ5ELIjtga2B3OxvBf YlMQI3hQM++onbise3yj/spLopw4u3XIpiIe5v+zJaM2/fzxkP1C/RXe29wyB6pAm33l 4GwbxQ15fJJn5TBAsdyxdlJ5SAltFWvGrf5f4uGlRB395SRPOrbH8AGeWW8kEAH7tJko BVqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=CId7laYp; 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 g12-20020a056402090c00b00446eaa6faddsi1798585edz.445.2022.09.02.03.24.20; Fri, 02 Sep 2022 03:24:50 -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; dkim=pass header.i=@ventanamicro.com header.s=google header.b=CId7laYp; 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 S235884AbiIBJul (ORCPT + 99 others); Fri, 2 Sep 2022 05:50:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235838AbiIBJuY (ORCPT ); Fri, 2 Sep 2022 05:50:24 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7075B24095 for ; Fri, 2 Sep 2022 02:50:19 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id h204-20020a1c21d5000000b003a5b467c3abso2998317wmh.5 for ; Fri, 02 Sep 2022 02:50:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=p4BB5HEEv1U/G1XcV5dDRUGXUnKJI96ERgbfE9BkLC4=; b=CId7laYpem0t29xNQrxbDN5uajUvv7J674hYRhjHIwRot2NzlduoZrqIn4bGMjRLt4 NCaB736C61TkkRqP9Z7EaqQiLBmIoyLxqTsJUyMlYzwGuqhg1ePaFAf9vG4IZTKLaoX2 IjlalDqUjpjXElJ3dgiyMyHuPGC2VvtEcIBzy658aV0fSXbiImi45F+dQdNc7KOhJfgf 89dvPtQOnTE96qMrm6wM9AtcrqGhEAyb1T93vGuSf1YbSkoNkhN1weAEHK00sSU77IZr 77GT7gDAe3lkkrEm7xxsHZBdsIjoNJyhM6Jetufw0NuXWgwx0L4jWpukn9wQ8d4DcObc wl1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=p4BB5HEEv1U/G1XcV5dDRUGXUnKJI96ERgbfE9BkLC4=; b=7J30ii8QMg1tqkE96ItlXy2xW0OZx2M4p6zse8EWbtfjRPcoAph1xHo7+gr4+IOcoK +yQynpjYeuCAgJ6JugPRTXut06++3OcoN+wF7fqUioNyQmNfIO9fExANpGtRzSGpAL2P R+lmTRfdRd0HVLsoNfk0ZZtgirK4txx/AlKRZ2U3CrHyjY+LdxzNVcfErf19YnZeY9j+ Uj4KQ9kpt6sGieKV3+eeWpOacI6tfYCJ+5ab2I0RrNjiTE3L0qMlpbFRwxfsxunwlSLh 9cbVp/+9UKj6e6h/jn+ENF3Idgq+cHslZutOVno+WtfUTmMbeDpo1jvWfrunzUYBNNYW bemQ== X-Gm-Message-State: ACgBeo3upbX4kmwqBTTiZCiTVe9kdGai0kMKBu6UEFeQDokU7Cd3lHoX fz0j0QKptuHRnrF9IaTk63UmxQ== X-Received: by 2002:a05:600c:4f89:b0:3a6:243d:3bbe with SMTP id n9-20020a05600c4f8900b003a6243d3bbemr2231447wmq.16.1662112217766; Fri, 02 Sep 2022 02:50:17 -0700 (PDT) Received: from localhost (cst2-173-67.cust.vodafone.cz. [31.30.173.67]) by smtp.gmail.com with ESMTPSA id d6-20020a5d6446000000b00224f5bfa890sm1067036wrw.97.2022.09.02.02.50.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Sep 2022 02:50:17 -0700 (PDT) Date: Fri, 2 Sep 2022 11:50:16 +0200 From: Andrew Jones To: Heiko Stuebner Cc: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, conor.dooley@microchip.com, guoren@kernel.org, apatel@ventanamicro.com, atishp@rivosinc.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/4] riscv: check for kernel config option in t-head memory types errata Message-ID: <20220902095016.bc3bttpdnla6swsk@kamzik> References: <20220901222744.2210215-1-heiko@sntech.de> <20220901222744.2210215-4-heiko@sntech.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220901222744.2210215-4-heiko@sntech.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,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 Fri, Sep 02, 2022 at 12:27:44AM +0200, Heiko Stuebner wrote: > The t-head variant of page-based memory types should also check first > for the enabled kernel config option. > > Signed-off-by: Heiko Stuebner > --- > arch/riscv/errata/thead/errata.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/arch/riscv/errata/thead/errata.c b/arch/riscv/errata/thead/errata.c > index a6f4bd8ccf3f..902e12452821 100644 > --- a/arch/riscv/errata/thead/errata.c > +++ b/arch/riscv/errata/thead/errata.c > @@ -17,6 +17,9 @@ > static bool errata_probe_pbmt(unsigned int stage, > unsigned long arch_id, unsigned long impid) > { > + if (!IS_ENABLED(CONFIG_ERRATA_THEAD_PBMT)) > + return false; > + > if (arch_id != 0 || impid != 0) > return false; > > -- > 2.35.1 > Reviewed-by: Andrew Jones