Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5906137rwb; Wed, 7 Sep 2022 09:36:42 -0700 (PDT) X-Google-Smtp-Source: AA6agR7Xv1KL8OnHPVkBMpCpuknwCbaCUOjQLGl9nVPUK9lAvTEhmSCGOwATk1re0FtejfP5gFT3 X-Received: by 2002:a17:906:eeca:b0:730:6880:c398 with SMTP id wu10-20020a170906eeca00b007306880c398mr3027379ejb.706.1662568602100; Wed, 07 Sep 2022 09:36:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662568602; cv=none; d=google.com; s=arc-20160816; b=cO3mbuO0eAekWGqhg7f7xbAC+fi+J/bKxo7Zv1BPr5HGxAi57lFmAuGvH831iy57Oh EIgozp4b7jbIGNvn2IHV2wOOXuVgh0gkF/FR3ZjGyOq3tMBEN+sK8USbDx/8yom//xPS x9lQ7ddjsQkYQlNcwtrAScpONj22Xx2agb864C9ArN/Zbo16xewIcgNF9Ud+xh/k/rCa yVd0nywYR2n+J+f2awIWhBHMK46MqS9jhEcC+pI191A8jKNYjgncxhNn1sWYa1sILfnc 3u/Ax7XYbHqwwn8Fls5lEUPE8p4Q0ffCkNIQlBjoKFVLIf5jYAJ+TOat503uFrRYm/fq y43A== 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 :message-id:date:subject:cc:to:from; bh=oYnOnJtRnoAnUogEuAPDWB/mMP79p2ZAR+GSRcSKgnQ=; b=T6jiPIOrrH0R/zNDYJsfw7l7jfDDM7WTVmNmvGhJnXatm25Dqq+io5hd+nZFBdPss1 yYhle2W14+G9EXP9WV7TJfVc5LFq3dst4bZ3ukR4rKwCMvKm3isM74X4iTtCbBBothMC /SaOepffgjczK7rlTTs3Aw4IpPsPLvPbIUQOm5sJvk+S231z57hxwATlmwWjLRzb7+tI z6J5DQVob9FzP6CV6BwsTOr1v2KjbZoD6i1FpTYDqrqcNcywBUXCocGuh5YZG5dk5bBD PuHeNL6bi4qyHOkQQiguddOvzGOE+d21ANyMswAIdhzJLrjudJk4ksG9w67Bk44fhuCl yqsg== 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 b8-20020a50ccc8000000b0043a9bb390d3si11885761edj.278.2022.09.07.09.36.16; Wed, 07 Sep 2022 09:36:42 -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 S230095AbiIGPuH (ORCPT + 99 others); Wed, 7 Sep 2022 11:50:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230080AbiIGPt6 (ORCPT ); Wed, 7 Sep 2022 11:49:58 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0303226125 for ; Wed, 7 Sep 2022 08:49:53 -0700 (PDT) Received: from ip5b412258.dynamic.kabel-deutschland.de ([91.65.34.88] helo=phil.lan) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oVxJ6-0006xE-AF; Wed, 07 Sep 2022 17:49:40 +0200 From: Heiko Stuebner To: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu Cc: samuel@sholland.org, guoren@kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Heiko Stuebner , kernel test robot Subject: [PATCH] riscv: make t-head erratas depend on MMU Date: Wed, 7 Sep 2022 17:49:32 +0200 Message-Id: <20220907154932.2858518-1-heiko@sntech.de> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Both basic extensions of SVPBMT and ZICBOM depend on CONFIG_MMU. Make the T-Head errata implementations of the similar functionality also depend on it to prevent build errors. Fixes: a35707c3d850 ("riscv: add memory-type errata for T-Head") Fixes: d20ec7529236 ("riscv: implement cache-management errata for T-Head SoCs") Reported-by: kernel test robot Signed-off-by: Heiko Stuebner --- arch/riscv/Kconfig.erratas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/riscv/Kconfig.erratas b/arch/riscv/Kconfig.erratas index 6850e9389930..f3623df23b5f 100644 --- a/arch/riscv/Kconfig.erratas +++ b/arch/riscv/Kconfig.erratas @@ -46,7 +46,7 @@ config ERRATA_THEAD config ERRATA_THEAD_PBMT bool "Apply T-Head memory type errata" - depends on ERRATA_THEAD && 64BIT + depends on ERRATA_THEAD && 64BIT && MMU select RISCV_ALTERNATIVE_EARLY default y help @@ -57,7 +57,7 @@ config ERRATA_THEAD_PBMT config ERRATA_THEAD_CMO bool "Apply T-Head cache management errata" - depends on ERRATA_THEAD + depends on ERRATA_THEAD && MMU select RISCV_DMA_NONCOHERENT default y help -- 2.35.1