Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3473187pxb; Mon, 4 Apr 2022 18:05:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxt7XZMtcFwF8bdKH0U+hAaIfYiiBrztHmDswpsALA1HDVtI2Ug0Xsl5vOnuFhd4ttcYgFd X-Received: by 2002:a17:902:cec2:b0:154:6df6:1e6a with SMTP id d2-20020a170902cec200b001546df61e6amr840949plg.58.1649120710268; Mon, 04 Apr 2022 18:05:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649120710; cv=none; d=google.com; s=arc-20160816; b=Km3J7TbWDlZUSS/tGbAl7fErxVUsUD7hv/LH73uYQr2FFjkV3GVNn9O+ng334aCOVA Hw/bScDxpL/hP5sGm3N/MjG9J+IMhONjpL4Tdu3K8shKU5B2uIBc5S2rP6+JPet4KBU6 E4nQo1HeFiXv90Fbrw946/ZpkTLU3xNMsG67uhEu7RwcjH2LdjxHFaIsY5XApbXbEj9V WAszfMy9PjHOcrtkXyH7qQfDLzgxaLx8auM53IKSdf+e47qShlZF3s+LZS6bEJ5pOBA4 SpCUCvcLbaFLRAtUPNIh2aIT4q+e7SmEFccCFZUPWCA8VGEUpCtrHFc/Azbbzns/paOt fvuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=U8/aVwpSbq6P9VWydiIc4i/5KLXIXBAm03QUmehMn90=; b=lTCjNuJAkQx/ckfQD4aZ5ddkSQpaY+FUZ+eRZV5NzHQQF74f7qEDeuqZR5JhhxNYlD JlFv90EDEKheU+eCQsnFX01NOwLBTWoLyWdlgygbLHWPfazLERSMvOnYbXJwl9zZG8Ld u7HmccnMi4OcRy+IbymAjFnNMOugMv3GRHDWUYkk4vDkZvNJBvfmJUmRAeoHKFJC4FCo WlmUsdCWQ9EJ9EmqJ0Q2G2FXibkJuwoskAzMjefGr9cgmZhJXdt0vlq0UMkEA5KVo4xf OufPfR9mUjiqxlZwvDgK71MuxPZijdCUJ/ixyXyn0WNc1tjFHMOHl1zAxunPcBQL2M05 O2WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b=lvqfyewA; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id bf19-20020a17090b0b1300b001befa3ba5ebsi702290pjb.17.2022.04.04.18.05.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 18:05:10 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b=lvqfyewA; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 081BE13367B; Mon, 4 Apr 2022 17:04:01 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348925AbiDDDle (ORCPT + 99 others); Sun, 3 Apr 2022 23:41:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233007AbiDDDlc (ORCPT ); Sun, 3 Apr 2022 23:41:32 -0400 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEE253981E for ; Sun, 3 Apr 2022 20:39:36 -0700 (PDT) Received: by mail-wr1-x432.google.com with SMTP id h4so12426590wrc.13 for ; Sun, 03 Apr 2022 20:39:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=U8/aVwpSbq6P9VWydiIc4i/5KLXIXBAm03QUmehMn90=; b=lvqfyewAeZVZqnq38NmTEFXQ21z8cKjlNzK3dv5woldXyrCqvq1J7jEQEA5dPfELwR DI8ctTyRcE/aoMdkRHYV0PCd0WM99O9wl2WEI7ZO613MqLOz7aXq8C/JTpJXdvL4piF5 BJTr6R9edkG1Aj9Yj9vLqS/hGQVmverEBL88kWQPvnGPhUFIF0VTDuZHXqjZhjfd10qy kgifni6hKujgSDPN3/ita0Px+guu9OHnsDxggxD9jXZqhEY4aUu9zYucgbed9Lnen2Cx JaqtT0skohJQtlUlwTjTLPPogHDPuS90d9c5XEoNzSL2sfknfpvo6smUyrBNJyXzBcJt UPlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=U8/aVwpSbq6P9VWydiIc4i/5KLXIXBAm03QUmehMn90=; b=19HuJui0bGBxIRBx/9zAvCPJRSCLJFSmJAIYmWgolV3eabVO8LToQ9edIsJZzj/mWc 0FMT0sYTrlWm05Q6JgwYm851Tm33xnjiDrvkp4GJa8FX6oiyHFkWATYb1OLV2vxiDTxV N/oedjO8mdw06k+cPlkZ0m0pvQDLks/RR+RzAgcLGUU6UK/cOBOgYoJF1NtHZnRptzHE QwbA7v1+6Xl1AnmAzADhB6Nq1Wbb85iMITpkfu57a8Sobfcjf9E+w9Y5ncjhsbEzkVA5 iUc7KWGxIf0lhYIr95OSLd1nFzmQUfiZLrAGK3M13B8GcHyQ5772I/7+HeKfSNPXRdXP S+Ug== X-Gm-Message-State: AOAM532zD+SiVoJE/026Qlj5zzB3mkzXK7/MH5GtIv0Mnoq9/oZ9hk0K C3FUu6KIaFoMd+7goM112EiF0D9WDp9SPTUh1BcmkQ== X-Received: by 2002:adf:db86:0:b0:205:bccf:8cbf with SMTP id u6-20020adfdb86000000b00205bccf8cbfmr15183666wri.346.1649043575307; Sun, 03 Apr 2022 20:39:35 -0700 (PDT) MIME-Version: 1.0 References: <20220403031355.20894-1-rdunlap@infradead.org> <61196f88-7306-058d-7b9b-21e32f1fca92@infradead.org> In-Reply-To: <61196f88-7306-058d-7b9b-21e32f1fca92@infradead.org> From: Anup Patel Date: Mon, 4 Apr 2022 09:08:25 +0530 Message-ID: Subject: Re: [PATCH -next] cpuidle: riscv: support non-SMP config To: Randy Dunlap Cc: "linux-kernel@vger.kernel.org List" , kernel test robot , Anup Patel , Atish Patra , Daniel Lezcano , "Rafael J. Wysocki" , "open list:THERMAL" , linux-riscv , Palmer Dabbelt , Paul Walmsley , Albert Ou Content-Type: text/plain; charset="UTF-8" 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,T_SCC_BODY_TEXT_LINE 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 Mon, Apr 4, 2022 at 9:07 AM Randy Dunlap wrote: > > > > On 4/3/22 20:05, Anup Patel wrote: > > (Removed my WDC email because it does not exist anymore) > > > > On Sun, Apr 3, 2022 at 8:44 AM Randy Dunlap wrote: > >> > >> Add for cpuid_to_hartid_map etc. > >> This is needed for both SMP and non-SMP builds, but not having it > >> causes a build error for non-SMP: > >> > >> drivers/cpuidle/cpuidle-riscv-sbi.c: In function 'sbi_cpuidle_init_cpu': > >> drivers/cpuidle/cpuidle-riscv-sbi.c:350:26: error: implicit declaration of function 'cpuid_to_hartid_map' [-Werror=implicit-function-declaration] > >> > >> Fixes: 6abf32f1d9c5 ("cpuidle: Add RISC-V SBI CPU idle driver") > >> Signed-off-by: Randy Dunlap > >> Reported-by: kernel test robot > >> Cc: Anup Patel > >> Cc: Anup Patel > >> Cc: Anup Patel > >> Cc: Atish Patra > >> Cc: Daniel Lezcano > >> Cc: "Rafael J. Wysocki" > >> Cc: linux-pm@vger.kernel.org > >> Cc: linux-riscv@lists.infradead.org > >> Cc: Palmer Dabbelt > >> Cc: Paul Walmsley > >> Cc: Albert Ou > >> --- > >> drivers/cpuidle/cpuidle-riscv-sbi.c | 1 + > >> 1 file changed, 1 insertion(+) > >> > >> --- linux-next-20220401.orig/drivers/cpuidle/cpuidle-riscv-sbi.c > >> +++ linux-next-20220401/drivers/cpuidle/cpuidle-riscv-sbi.c > >> @@ -22,6 +22,7 @@ > >> #include > >> #include > >> #include > >> +#include > > > > I suggest include linux/smp.h here instead of asm/smp.h > > > > Otherwise it looks good to me. > > > > Reviewed-by: Anup Patel > > > > Yeah, checkpatch also suggested that but it does not work. > Yes, I tested it. > > linux/smp.h only #includes if CONFIG_SMP is enabled, > and this patch needs for the non-SMP case. Okay, sounds good to me. No changes needed in this patch. Regards, Anup > > > > >> #include > >> > >> #include "dt_idle_states.h" > > thanks. > -- > ~Randy