Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1918546pxb; Mon, 11 Oct 2021 16:22:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9X/nsnECuF8S9L29IbG111LXuq3OX6OHsFcWzc1euh/M2J5ZlBCuSj4wdVI+T7R1Qig+G X-Received: by 2002:a17:906:1289:: with SMTP id k9mr29528775ejb.2.1633994557469; Mon, 11 Oct 2021 16:22:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633994557; cv=none; d=google.com; s=arc-20160816; b=CieODrErQtvSKCJnJcQuecNqHIjiYeVnSBo/7GamXalbvaElK+pVL+xjOv7IYYO9K+ qBfIjTVlFA0XcCBW0tsXAjWlMfo6B5I65GooVGiNHBZvpPcWGMnaV9+DbO9hh7w5m5v3 axuu5tcGT2TlGGCu1YD4eGz3Y+Ft0eP9hoxBvEcyj9fZTGU6lHIbKSgukSJGPXAhoccc Y0pe+n05jvVaNLnoSYJS1fUAzVIH5wgcUCOYATQ+LiCUVk2alN9dvS+frpCZmdqj4S73 pI2GB9Neln1cVoxjvF3GdyOZOfn/Br4THFAOZ681HO9pb5YtN3iyXV9N2z3PQnmzQKai QHtQ== 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=T0Yed3Z8YOsGex6XNg41cT+VXeBj6mV027RL4AOjj+s=; b=UGHaMzPTNcTMQujNSn9kbvn838kT60nFxQZZagmCXbW8eWBtDBUmGJtk96WsLei1St a8pxILlEm9/G5gtKTuWa6Az8+zsMsPlEAsLg+mXIc0CPBss3IeIWwLOmkiVE8I4+Rm8J gn9ITBxl/fepIS+/EK72LELYKJKsb4mCS1r5hAmr4vg6b0Y5Lv6Yn8LdH75zIHQNJfKd bCu4VN+SmPABmsDTI11Ex5AgeHv4AQofMeFYA7cxoTpW6G9J55qSN6BMp2Y2s0SalvDg cKNwr6UmQZnWo86LwafG2TELAXgpjN4V75CgZfsVueB8ZP+f6LrtkbX/IrI0W9tQ4vHS SWlw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u13si6690475edp.551.2021.10.11.16.22.06; Mon, 11 Oct 2021 16:22:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230047AbhJKXS6 (ORCPT + 99 others); Mon, 11 Oct 2021 19:18:58 -0400 Received: from gloria.sntech.de ([185.11.138.130]:59528 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229771AbhJKXSz (ORCPT ); Mon, 11 Oct 2021 19:18:55 -0400 Received: from ip5f5a6e92.dynamic.kabel-deutschland.de ([95.90.110.146] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ma4XD-0001SF-O2; Tue, 12 Oct 2021 01:16:43 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Palmer Dabbelt , Palmer Dabbelt , Paul Walmsley , Albert Ou , Daniel Lezcano , Ulf Hansson , "Rafael J . Wysocki" , Pavel Machek , Rob Herring , linux-riscv@lists.infradead.org Cc: Sandeep Tripathy , Atish Patra , Alistair Francis , Liush , Anup Patel , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Anup Patel , Anup Patel Subject: Re: [PATCH v8 1/8] RISC-V: Enable CPU_IDLE drivers Date: Tue, 12 Oct 2021 01:16:42 +0200 Message-ID: <4300884.9bbH7Ay9ha@diego> In-Reply-To: <20211011081820.1135261-2-anup.patel@wdc.com> References: <20211011081820.1135261-1-anup.patel@wdc.com> <20211011081820.1135261-2-anup.patel@wdc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Anup, Am Montag, 11. Oktober 2021, 10:18:13 CEST schrieb Anup Patel: > We force select CPU_PM and provide asm/cpuidle.h so that we can > use CPU IDLE drivers for Linux RISC-V kernel. > > Signed-off-by: Anup Patel > --- > arch/riscv/Kconfig | 7 +++++++ > arch/riscv/configs/defconfig | 1 + > arch/riscv/configs/rv32_defconfig | 1 + > arch/riscv/include/asm/cpuidle.h | 24 ++++++++++++++++++++++++ > arch/riscv/kernel/process.c | 3 ++- > 5 files changed, 35 insertions(+), 1 deletion(-) > create mode 100644 arch/riscv/include/asm/cpuidle.h > > diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig > index 8de2afb460f7..d02f1f5a2431 100644 > --- a/arch/riscv/Kconfig > +++ b/arch/riscv/Kconfig > @@ -46,6 +46,7 @@ config RISCV > select CLONE_BACKWARDS > select CLINT_TIMER if !MMU > select COMMON_CLK > + select CPU_PM if CPU_IDLE > select EDAC_SUPPORT > select GENERIC_ARCH_TOPOLOGY if SMP > select GENERIC_ATOMIC64 if !64BIT > @@ -564,5 +565,11 @@ source "kernel/power/Kconfig" > > endmenu > > +menu "CPU Power Management" > + > +source "drivers/cpuidle/Kconfig" > + > +endmenu > + > source "arch/riscv/kvm/Kconfig" > source "drivers/firmware/Kconfig" another issue, the "arch/riscv/kvm/Kconfig" line above comes from a commit that is not in the riscv-tree at all but in the kvm-tree [0], making this patch fail to apply onto riscv/for-next alone. If you have multiple independent patch series in flight, like shown in the github branch you references, it might be easier to base each on top of the relevant branch cleanly and after one gets applied rebase the other ones. That way you're not dependent on the others going in first and also people can test patch series individually without too much hassle. Thanks Heiko [0] https://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux.git/commit/?h=next&id=99cdc6c18c2d815e940e81b9b477d469bdd41788