Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp934510pxb; Fri, 22 Apr 2022 14:44:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxITR2fFud80aML4g4mroBCwI/KQkpFdmoAjbWRp6Gr9gbg0GPYuI73kTjD6fgZ57Nf+U3m X-Received: by 2002:a05:6a00:21c6:b0:4fa:914c:2c2b with SMTP id t6-20020a056a0021c600b004fa914c2c2bmr7009622pfj.56.1650663878236; Fri, 22 Apr 2022 14:44:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650663878; cv=none; d=google.com; s=arc-20160816; b=TlSSdyZYa+875f94Sxwlis6Tdo/qwoZ4APIkX0cBUIKxOLJBCj9oGA5E8EzYA5lCIN wcSBQi/yvFRVxghZpjT/FP+7COvEiu6BczDdiJ+qDSPyAgJO9NOGOl8jqcYpcPrEWCZn 1xtPwsuBXnS2eEeBw8VUASWoIonGuj924f3aGknjxE4KYJkrCp1YA+15poz3Uj/ZHC5V 0QgzRftJ/xY3i8hqb2uw1OjixnLfcP7TUqqut0V3WzWxqI2W68bmmFAZ95z2uQgMWuVf aRz3cHMroJykfHUIt9EnMSzLy+YMfQErV5bQFKACcYC2iTaSeqrN5bmhXQm1bJDEIAc0 +EWg== 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=Z/WL4sEfilsdTNMCzpQ4AUYKUU/6fA7UgWxPOldA7e0=; b=BJoroLeZ63PpxTVsf8fxdscG1gcXjTuI5wG2qv7UTtuNIeoahKaks16Qz5IoSLA9sX UjHALVCNAeeY+ZBaBLXHnBmUUvL+1ZNJdSE0+gKroYv+9byr9sxS9/OQwZH6pS8yEw54 kgnIh5w2GurSwlF8od1BUHsu3QFZWB0LXx4NqzvkbPIZSr2JMIRacJ4j7J+bMMwcsKuG elp51r29XlUu3pNqz8ZrY+s6IW8ezYgeoJzXDCrMJ27ulXOQRkiVJNGhmXUUFT2WS4Aw U/2FCG/0nf4/dme18mgsBTnKmtPc+u5RFq068zzHy9YyE7OvLxE1AsN/w114CqbpeEbh nEtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20210112.gappssmtp.com header.s=20210112 header.b=DCXNDtgE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id a11-20020a634d0b000000b003aa3c16c224si8724173pgb.675.2022.04.22.14.44.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 14:44:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@dabbelt-com.20210112.gappssmtp.com header.s=20210112 header.b=DCXNDtgE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A45632DD7FC; Fri, 22 Apr 2022 12:52:26 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442472AbiDUWbW (ORCPT + 99 others); Thu, 21 Apr 2022 18:31:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344390AbiDUWbT (ORCPT ); Thu, 21 Apr 2022 18:31:19 -0400 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C9A44B1DE for ; Thu, 21 Apr 2022 15:28:27 -0700 (PDT) Received: by mail-pg1-x529.google.com with SMTP id s137so5817460pgs.5 for ; Thu, 21 Apr 2022 15:28:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20210112.gappssmtp.com; s=20210112; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=Z/WL4sEfilsdTNMCzpQ4AUYKUU/6fA7UgWxPOldA7e0=; b=DCXNDtgEIbQlslJM2sme6aHreWG5byjxFkM19clb/BPTLe3LO+1bN8luGxz7gcFLH2 V8TxBt5zvjxtLWo6QtqGc5jeNy0BsSR5R0xNy7AKvReXzahuYaLSPkLjTf+Ue/17I5wx 81dsfmAdQFC3P71z0Hb0cx1qBab0qVQ1xwNEVrEENevqHC9SLaPohX4yodxTix65LSOl 7yS8Ug1GH6K7lJA9I6nbv9VQ3sst2BzrsWmk6t61DZfbBJaKHohxxlxgehgkJfsXuvCo nytHu38tVwNI+SN18mZjCgcA3niWmlGT1Ly3o9boYquSP/NMt820jyG6cGjK8q6VheRE vdug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=Z/WL4sEfilsdTNMCzpQ4AUYKUU/6fA7UgWxPOldA7e0=; b=21M1RBZhW9iaPNZztMNokP2Z7aeX8G958I/ylAD/nNSI6y0pZR5x8S7xowkQJoI+N+ wTJITn/3ivpDx8PR4ZcsQVwnMNDRZgJ32FZsjBmfkQQhyxeP69HFJAdUUKg79VggcnJK bNZBEuBupbNBxQY3S8EAO/sxRhI9BehQH53XxKo3124Mn43LWmwEOMEA/GVd/KfCfI20 sVm7OHRvMhGHBqEne0ReguAQhLEm2prwdc4cjx8Z6yf9HY2B0Zxh1zmf5FMgzp1+buwI 6+KRh/xLLHKNrS6nrnGJkkdzVeJ77YossuajiHUwxdMfMqRE96XOJ6CIigu+ZSKtIZ73 CP3Q== X-Gm-Message-State: AOAM5322lsJrBBjnclHx6Zc4Q+zlDR4BAcVIQkfHrqIIY2Z8/Ez1nJQT FUGJ3EWuPsIkT4tu3oBDewkhj3toZrJuhg== X-Received: by 2002:a05:6a00:2343:b0:50a:7852:902f with SMTP id j3-20020a056a00234300b0050a7852902fmr1657232pfj.5.1650580106441; Thu, 21 Apr 2022 15:28:26 -0700 (PDT) Received: from localhost ([12.3.194.138]) by smtp.gmail.com with ESMTPSA id a38-20020a056a001d2600b004fae885424dsm131962pfx.72.2022.04.21.15.28.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Apr 2022 15:28:25 -0700 (PDT) Date: Thu, 21 Apr 2022 15:28:25 -0700 (PDT) X-Google-Original-Date: Thu, 21 Apr 2022 15:28:23 PDT (-0700) Subject: Re: [PATCH] RISC-V: cpuidle: fix Kconfig select for RISCV_SBI_CPUIDLE In-Reply-To: <20220409225317.14332-1-rdunlap@infradead.org> CC: linux-kernel@vger.kernel.org, rdunlap@infradead.org, lkp@intel.com, anup@brainfault.org, apatel@ventanamicro.com, anup@brainfault.org, linux-pm@vger.kernel.org, linux-riscv@lists.infradead.org, Paul Walmsley , aou@eecs.berkeley.edu From: Palmer Dabbelt To: rdunlap@infradead.org 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,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE autolearn=no 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 Sat, 09 Apr 2022 15:53:17 PDT (-0700), rdunlap@infradead.org wrote: > There can be lots of build errors when building cpuidle-riscv-sbi.o. > They are all caused by a kconfig problem with this warning: > > WARNING: unmet direct dependencies detected for RISCV_SBI_CPUIDLE > Depends on [n]: CPU_IDLE [=y] && RISCV [=y] && RISCV_SBI [=n] > Selected by [y]: > - SOC_VIRT [=y] && CPU_IDLE [=y] > > so make the 'select' of RISCV_SBI_CPUIDLE also depend on RISCV_SBI. > > Fixes: c5179ef1ca0c ("RISC-V: Enable RISC-V SBI CPU Idle driver for QEMU virt machine") > Signed-off-by: Randy Dunlap > Reported-by: kernel test robot > Cc: Anup Patel > Cc: Anup Patel > Cc: Anup Patel > Cc: Palmer Dabbelt > Cc: linux-pm@vger.kernel.org > Cc: linux-riscv@lists.infradead.org > Cc: Paul Walmsley > Cc: Palmer Dabbelt > Cc: Albert Ou > --- > arch/riscv/Kconfig.socs | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- a/arch/riscv/Kconfig.socs > +++ b/arch/riscv/Kconfig.socs > @@ -38,7 +38,7 @@ config SOC_VIRT > select SIFIVE_PLIC > select PM_GENERIC_DOMAINS if PM > select PM_GENERIC_DOMAINS_OF if PM && OF > - select RISCV_SBI_CPUIDLE if CPU_IDLE > + select RISCV_SBI_CPUIDLE if CPU_IDLE && RISCV_SBI > help > This enables support for QEMU Virt Machine. Sorry to be slow here, I seem to remember having written this before but I must have just gotted pulled into something else. IMO the real bug here is that Kconfig.socs is poorly designed: I misunderstood how select works at the time, we should really clean all this up (or maybe just remove it entirely?) so we don't have to duplicate all these dependencies. That's a bigger project, though so this is on fixes -- it's way better to have the build work. Thanks!