Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1193542rwn; Thu, 15 Sep 2022 11:52:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5AnonnsZ+QFZrctXyUp/rxeOd6bdr1S6bmz3WbFr7pBTKE1WFmHHjUhE2H5z6hcONsMwon X-Received: by 2002:a17:906:9bd3:b0:76f:8cce:7a61 with SMTP id de19-20020a1709069bd300b0076f8cce7a61mr897374ejc.345.1663267973915; Thu, 15 Sep 2022 11:52:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663267973; cv=none; d=google.com; s=arc-20160816; b=A6+vUkOKmb4gvWS9jngM/TdCdxNVrpd7ZxGTPrLohRmLmezGgKuTw+QgSawEUi6r/6 afJwR8Puv6kHQG94sM8q/2Af33bEcQXwL5hIbDBeH0UvO5vigzjU2L9PFUqU8zY1AB0R tvIV22r4FMz3t7Q9N6ZkukL+r5IecizMCh+CT2Ah7BFV9INZXRNIuf4getLoZLPsBhWK qUKX/6I4W7nAYTGSkBYOGePdm2gG4a+Pb2XcNbrpoMAWjKUAVxHwmCWIg8L/1GWpfa4D Pqe0T9LyDs+J3TluBzaeGiUpvsp/4djTGVY4sej0g7Gfg+juW1txILWWfAtPa4gS5Tva GsXA== 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:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=4V4RnQIqXfObgERFxnXO9I4wxN/7f6punHSf5ZIJLT4=; b=RxyVV5pUcmiJVEYkbz2KKIeKKzK/NMn87RDwBNbIZnzaWcNlnF5/NVc/wyS204ZIgY 40d4sKtFcFDpq5086nw1VBmtBG/RHl58Y88K1Y2eJh+Uog8pW1MT9dDtlME4YyoW3nM6 L0n70wiUf3QwdvWxgidFNrjVRXdGzZc5T+iCaTl6uMCojohMk4dMQtcYvv425Ynq4VXq A/07yuRAI0DV5S9IiemmcDB5CJmy3q+Vj3FfxXRG9tlN2xDsh3ypuHE9E5M2L5U0TK3u 9+2bIIPAVGIsy8IqI9doIwCNjtBlSiSJDUiYTZyDgkQrzWJoX66dTAmljLxpDqeRVl7R 1DUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20210112.gappssmtp.com header.s=20210112 header.b=kEU2PZdb; 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 ne12-20020a1709077b8c00b0077cc3f49b8dsi12881284ejc.133.2022.09.15.11.52.28; Thu, 15 Sep 2022 11:52:53 -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=@dabbelt-com.20210112.gappssmtp.com header.s=20210112 header.b=kEU2PZdb; 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 S229648AbiIOSsV (ORCPT + 99 others); Thu, 15 Sep 2022 14:48:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229663AbiIOSsR (ORCPT ); Thu, 15 Sep 2022 14:48:17 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9913F9AFAD for ; Thu, 15 Sep 2022 11:48:11 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id s14-20020a17090a6e4e00b0020057c70943so23289689pjm.1 for ; Thu, 15 Sep 2022 11:48:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc:subject:date; bh=4V4RnQIqXfObgERFxnXO9I4wxN/7f6punHSf5ZIJLT4=; b=kEU2PZdbKL5Q4rNVJReJDPmAkSzXWOnQac5Qkc/oC3r76O30/K3sa0VN5xLZKbl6NY U0qr8f/9292y72fzItvB828icVflSNIevAEgyXdof/IrWnT7rzOk5TYHolCjji2/ViwQ NC5Sa2BDIlML5YVLOPh/cupHrLBS8ArzWAeROg+BB2G1KM3vgC5Hh6jXYVY52soT6EeO lEqDYJwYk0+3gcjPjnxm20orMM7zwuhFU3anaK2YhEGgqMnVdTr7h18mp1ANf+F5xk/n m0OWYCeCSD8P+KPUYj9K0VEJe1DF3yFhCGXXq0l4Plhyu9tbQFIUHycZfILo/qXngNwB M+5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc:subject:date; bh=4V4RnQIqXfObgERFxnXO9I4wxN/7f6punHSf5ZIJLT4=; b=bfiiSd0z6vyG5Ox25HZq9lhsJAjXhVRnVFMMAX+lloT3Zi+mPWk8XSzReLESSjRyPE SzqVAioJabIFx+ExmHRaZy5ui155uMGIDTtcvUNy+rngmLVxRuAlzT8/QAFzuLosm2iQ jS3MrRoQXzFl7M2e6foSu9g7iXpSkRaEXhMiG7qSxWDLygbmrb9+SQoRckGhHGuq1DNK K1aT91jBgCf9HTW6jo0y1t/70UjimPZQeU/GTaVIzT/9GitT2+ncUizGsph0sfnYMgwx 6lrbG0F1VYXhlEpZFsCEQi3MMEJnRkytOcJW41+lnzY48QYhPv+K1vIuFSz2oYAnNCc3 76uw== X-Gm-Message-State: ACrzQf1dBhAzR65Pqy5EL7gncsYhD+YRJI7MZAIhfgLyBQ0anDeER3sN 14nYij1XajHjUqbkD/UzXJaPaBMSW7MGQ3y+yt7IlA== X-Received: by 2002:a17:903:41c8:b0:178:3128:b58a with SMTP id u8-20020a17090341c800b001783128b58amr817759ple.118.1663267690635; Thu, 15 Sep 2022 11:48:10 -0700 (PDT) Received: from localhost ([172.58.176.196]) by smtp.gmail.com with ESMTPSA id o4-20020a170902bcc400b00177ee563b6dsm13278432pls.33.2022.09.15.11.48.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Sep 2022 11:48:10 -0700 (PDT) Date: Thu, 15 Sep 2022 11:48:10 -0700 (PDT) X-Google-Original-Date: Thu, 15 Sep 2022 11:14:55 PDT (-0700) Subject: Re: [PATCH] riscv: fix RISCV_ISA_SVPBMT kconfig dependency warning In-Reply-To: <3122575.5fSG56mABF@phil> CC: linux-kernel@vger.kernel.org, rdunlap@infradead.org, rdunlap@infradead.org, wefu@redhat.com, liush@allwinnertech.com, guoren@kernel.org, Paul Walmsley , aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org From: Palmer Dabbelt To: heiko@sntech.de Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Tue, 13 Sep 2022 05:00:08 PDT (-0700), heiko@sntech.de wrote: > Hi Palmer, > > Am Samstag, 9. Juli 2022, 03:49:29 CEST schrieb Randy Dunlap: >> RISCV_ISA_SVPBMT selects RISCV_ALTERNATIVE which depends on !XIP_KERNEL. >> Therefore RISCV_ISA_SVPBMT should also depend on !XIP_KERNEL so >> quieten this kconfig warning: >> >> WARNING: unmet direct dependencies detected for RISCV_ALTERNATIVE >> Depends on [n]: !XIP_KERNEL [=y] >> Selected by [y]: >> - RISCV_ISA_SVPBMT [=y] && 64BIT [=y] && MMU [=y] >> >> Fixes: ff689fd21cb1 ("riscv: add RISC-V Svpbmt extension support") >> Signed-off-by: Randy Dunlap > > I think this should also be applied as fix? Thanks, the original seems to have gotten lost somewhere but I've picked this up from lore. > > Thanks > Heiko > > >> Cc: Wei Fu >> Cc: Liu Shaohua >> Cc: Guo Ren >> Cc: Heiko Stuebner >> Cc: Paul Walmsley >> Cc: Palmer Dabbelt >> Cc: Albert Ou >> Cc: linux-riscv@lists.infradead.org >> --- >> arch/riscv/Kconfig | 1 + >> 1 file changed, 1 insertion(+) >> >> --- a/arch/riscv/Kconfig >> +++ b/arch/riscv/Kconfig >> @@ -362,6 +362,7 @@ config RISCV_ISA_C >> config RISCV_ISA_SVPBMT >> bool "SVPBMT extension support" >> depends on 64BIT && MMU >> + depends on !XIP_KERNEL >> select RISCV_ALTERNATIVE >> default y >> help >>