Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2125392rwe; Fri, 2 Sep 2022 08:53:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR4vebIBvlNM8bdrsY2ih62fN37bywlpMQJYvrvsKVduJ2DR+R8E//39tyzzH/cOMQs4gvZp X-Received: by 2002:a17:907:1b1a:b0:74a:18f7:7f63 with SMTP id mp26-20020a1709071b1a00b0074a18f77f63mr5253378ejc.28.1662134020661; Fri, 02 Sep 2022 08:53:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662134020; cv=none; d=google.com; s=arc-20160816; b=BTDS66Tw0SOsMGj4B0UG+UyoWglcp/hnR6Qiu1s/+wrEV/exrez7OSTCOLwZAfCcrC w7sw4zZKX7DVYWselSWCrqDs/YxArxmeWr8Sdj00yX6UE9JNz6GnaBtHSnZNj19xTMH/ GibeznPBPWl1oDU/2LkhGsNvfz9zmM9Ri2ET9eJSz1brAN/iH5REFWbrU0A6UE+ktX4N bYsUjdTnKvbzpZ9n6Xfq7VfoSvr/z3p22QKCfH6+FNc5fQbonlCyutLnZ3man3+ZYncO OWRaFToo15dXACLnzcNLiEPlUK7Rv7+u0t1VlOsPByjZ99YRJnDegkGOpYBRxki7aeBY MYiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=qH2FKxkIP51EgDaNJ4AqFKMWQ9tpnB+mnQg+R/JGuJk=; b=EfoWrLacufHkk2V6u3V4A7P5YoD5SElEP4XoUEldrvNUa01Wm6gvZXCo3BrllRoZXY 21+xIlsvx5399o8JXzgius1fdXIV/aIh7xYAqLYS2jmLTFGWz00GpntwiA6RfRm/vrWn cX/wYUXooNzpAUFm29X1ul5Hx47RUw5ZLlISeBlf3YwJzpSYEvc8U9u5Jj+cpeq5iiQD RaxKVrfWQ4tNZSIaFLcZh0OCFZ2fogd17aGhNn9xXXbDcMqgMME5z/nW4LjdWGSyKXuj PlVp1bx9hp6+gobJdKSvRXzDC2XONJEpn17/TN8uelkIGU1ZReYtpVteAM3fihmQLTO+ FLRg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l13-20020a170906794d00b0073d328f840fsi2254173ejo.51.2022.09.02.08.53.13; Fri, 02 Sep 2022 08:53:40 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236269AbiIBPeU (ORCPT + 99 others); Fri, 2 Sep 2022 11:34:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236314AbiIBPeC (ORCPT ); Fri, 2 Sep 2022 11:34:02 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB17C326D0 for ; Fri, 2 Sep 2022 08:17:16 -0700 (PDT) Received: from ip5b412258.dynamic.kabel-deutschland.de ([91.65.34.88] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oU8Pm-0004oN-52; Fri, 02 Sep 2022 17:17:02 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: guoren@kernel.org, Conor.Dooley@microchip.com Cc: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, 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 Date: Fri, 02 Sep 2022 17:17:01 +0200 Message-ID: <10808758.0AQdONaE2F@diego> In-Reply-To: <6865a605-2428-e6c2-09dc-aa2a66e48c55@microchip.com> References: <20220901222744.2210215-1-heiko@sntech.de> <6865a605-2428-e6c2-09dc-aa2a66e48c55@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS, T_SCC_BODY_TEXT_LINE,T_SPF_HELO_TEMPERROR 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 Am Freitag, 2. September 2022, 11:33:27 CEST schrieb Conor.Dooley@microchip.com: > On 02/09/2022 02:06, Guo Ren wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > > > Is it a Fixes? > > Looks like one to me, seems a fixes tag would be good to > have here... Either way: > Reviewed-by: Conor Dooley The alternative itself also is protected by the kconfig-option, so even if probe says "yes", nothing will be patched when CONFIG_ERRATA_THEAD_PBMT is not enabled. So for the memory-types it's more a change to keep it consistent with the other extensions. But I guess we can add the fixes-tag anyway, as it makes sure that doesn't get copy-pasted somewhere else :-) Heiko > > > > On Fri, Sep 2, 2022 at 6:28 AM 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 > >> > > > > > > -- > > Best Regards > > Guo Ren > >