Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1603196pxb; Tue, 8 Feb 2022 23:47:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJyoBIpUxChZZJn4xdSJojt/7k9lM2amAf2UZko5SghHTzhSVgKaPWW11r3UoeTNtm67htcM X-Received: by 2002:a17:90b:1c06:: with SMTP id oc6mr2039390pjb.213.1644392839073; Tue, 08 Feb 2022 23:47:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644392839; cv=none; d=google.com; s=arc-20160816; b=du2YmKD7N6Gl0Q/mkNf9lK0VrKcR2ND0lGViO2v7TXypj2xxe+bxvcARuXGZPHcFD1 B/jvq0VYsM672IjkYyetNTQDWUcCkbDAwUBk35L6hKLzBFNHjq0XdrPi6jLrrulv3xs+ 32gq2ereQxlsbkXspM7DBDkiPdE3YyZnK1WMFrIM6YkD8sACZnuVeKB+8JJ2xPKzX1ex J6MzmUJyJW3Uwf+DbU3ygG6CcAX1C0GiCMrdKnI2HQ6HDCTNLITkGyVZ0RV0uZ14iNLl omA5Pt8ofJLZx19sqhxEKco6VL4DHnongnA4QniQwnDbJIVIRBi0tnlFb5a90dhDZFsb MdZg== 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=EkVxK/LOYz0/eo5az4a2zVWUd5m6LEvFlEjayukrMYk=; b=muglXK22V+fYmes+/44BsuFdUjNdGdvjrjUu9+Tp1B0uOyAqzfjKLgtktKvWxVuLp/ Z/c3pWe8AF1CCcLYHoqD0tEfVX4Wi5Zt1oIoNawxU7obK/0uj+1ohlPESvvUNbyzLjPR b1l4hLejVp+Si7kSZnBAYBPb4e54PNw+QMWwVW+VRWnrm9M+hhvT636q/CnFopfCETQh k7jIv/cH8x65xrY6zH8AVBFhEQI8XSV86ccbSD9QlDMZV+O1sFPM6SVraek/QjRCOyAf wEdTBef+NaIwu40J2ElKodtI2VDvwg8UszarP+A5vkNBs39HnHpkPzHTXdkYgSxoq061 bR0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b=op64XUdg; 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 c11si16615273pfv.172.2022.02.08.23.47.06; Tue, 08 Feb 2022 23:47:19 -0800 (PST) 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; dkim=pass header.i=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b=op64XUdg; 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 S1350170AbiBHItH (ORCPT + 99 others); Tue, 8 Feb 2022 03:49:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349583AbiBHIsx (ORCPT ); Tue, 8 Feb 2022 03:48:53 -0500 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF198C03FEC3 for ; Tue, 8 Feb 2022 00:48:51 -0800 (PST) Received: by mail-wr1-x42b.google.com with SMTP id e3so15397948wra.0 for ; Tue, 08 Feb 2022 00:48:51 -0800 (PST) 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=EkVxK/LOYz0/eo5az4a2zVWUd5m6LEvFlEjayukrMYk=; b=op64XUdgnstjz6QFJUzFkyQ4kvy0o35NYrSG8sjVko8AfwvJWsZX2akrlJ6y8EGQ2e wWBJdZQ/tesItUNAXQhq6UMZSjC+HOYBqpC3eKF79QrR3n3MC2iNq/7IvhOYj1Z2uea1 tY5r5lV/2stL6vROHTELIfSmTXJHuMo+yDi910j2fFQlFc6qmbBoVmiykoU6jJ875/5d Z3UsB7FqwI31PKTcHz0xY00UJZoba83/zojhH3ni1KDI1L4I+Lf7wFi2CQr7KBKRatqG jqtcWLHmjx2+4Ad1YDmXlJYYJfWbMdIAIvgOj0tTEdyGg1Z07YptGVS00Fw2xCi4CIW+ JFVg== 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=EkVxK/LOYz0/eo5az4a2zVWUd5m6LEvFlEjayukrMYk=; b=v5F5GuHQUJoXsXhNJmpIAsMZw0rDTFbibRnAxjhIhkDo3uGWBFFfHDE+FTrjaerzxN KahJYETwl4txRsI5vqw+QUfSWy43r4+p8+4alS1LBOsBfyI2IZaJv66h/dlKpC/RGYdt dl08EoPGlgxAbCck0CT3/DYTCSokoLi860WtCssYB2uSfrmW8nDuEqq+TwYLSAzKA9hd rCHoZc9jq+KBRUzqyU56tGPELPwhZteyVlkCNer70jMeSPOZVpv9i9qmnhzkGG0lrIlz tkIDyiEoQ++SC8I7KQnwqCuYG2se4NrCMxAapFPDHLFmWwfk7x1imAEQI3c5XcW9JkaU wQ1g== X-Gm-Message-State: AOAM5307X39luOVxyTJqMW1M8sbmwtjvz3DyIALbVODtgGW7LJ/DZ/m/ JYsxJNRjylIWcAMBxGZzmbTYLENT3smHS6fSF6PhLA== X-Received: by 2002:a05:6000:1e0a:: with SMTP id bj10mr2564533wrb.313.1644310130417; Tue, 08 Feb 2022 00:48:50 -0800 (PST) MIME-Version: 1.0 References: <20220126114452.692512-1-apatel@ventanamicro.com> <20220126114452.692512-9-apatel@ventanamicro.com> In-Reply-To: From: Anup Patel Date: Tue, 8 Feb 2022 14:18:37 +0530 Message-ID: Subject: Re: [PATCH v10 8/8] RISC-V: Enable RISC-V SBI CPU Idle driver for QEMU virt machine To: Guo Ren Cc: Anup Patel , Palmer Dabbelt , Paul Walmsley , Albert Ou , Daniel Lezcano , Ulf Hansson , "Rafael J . Wysocki" , Pavel Machek , Rob Herring , Sandeep Tripathy , Atish Patra , Alistair Francis , Liush , devicetree , linux-riscv , Linux Kernel Mailing List , "open list:THERMAL" , Linux ARM , kvm-riscv@lists.infradead.org Content-Type: text/plain; charset="UTF-8" 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_NONE, T_SCC_BODY_TEXT_LINE 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, Feb 8, 2022 at 11:56 AM Guo Ren wrote: > > On Wed, Jan 26, 2022 at 7:51 PM Anup Patel wrote: > > > > From: Anup Patel > > > > We enable RISC-V SBI CPU Idle driver for QEMU virt machine to test > > SBI HSM Supend on QEMU. > > > > Signed-off-by: Anup Patel > > Signed-off-by: Anup Patel > > --- > > arch/riscv/Kconfig.socs | 3 +++ > > arch/riscv/configs/defconfig | 1 + > > arch/riscv/configs/rv32_defconfig | 1 + > > 3 files changed, 5 insertions(+) > > > > diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs > > index 6ec44a22278a..f4097a815201 100644 > > --- a/arch/riscv/Kconfig.socs > > +++ b/arch/riscv/Kconfig.socs > > @@ -36,6 +36,9 @@ config SOC_VIRT > > select GOLDFISH > > select RTC_DRV_GOLDFISH if RTC_CLASS > > select SIFIVE_PLIC > > + select PM_GENERIC_DOMAINS if PM > > + select PM_GENERIC_DOMAINS_OF if PM && OF > > + select RISCV_SBI_CPUIDLE if CPU_IDLE > > help > > This enables support for QEMU Virt Machine. > > > > diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig > > index a5e0482a4969..b8c882b70b02 100644 > > --- a/arch/riscv/configs/defconfig > > +++ b/arch/riscv/configs/defconfig > > @@ -20,6 +20,7 @@ CONFIG_SOC_SIFIVE=y > > CONFIG_SOC_VIRT=y > > CONFIG_SMP=y > > CONFIG_HOTPLUG_CPU=y > > +CONFIG_PM=y > > CONFIG_CPU_IDLE=y > > CONFIG_VIRTUALIZATION=y > > CONFIG_KVM=m > > diff --git a/arch/riscv/configs/rv32_defconfig b/arch/riscv/configs/rv32_defconfig > rv32_defconfig would be removed. I think you could delete this part. > https://lore.kernel.org/linux-riscv/20220201150545.1512822-9-guoren@kernel.org/T/#u > > I would Cc you in the patch, and you could track the progress. I am not sure in which order Palmer will merge these patches so I will let him take care of the conflicts in rv32_defconfig. Regards, Anup > > > index d1b87db54d68..6f9a7c89bff9 100644 > > --- a/arch/riscv/configs/rv32_defconfig > > +++ b/arch/riscv/configs/rv32_defconfig > > @@ -20,6 +20,7 @@ CONFIG_SOC_VIRT=y > > CONFIG_ARCH_RV32I=y > > CONFIG_SMP=y > > CONFIG_HOTPLUG_CPU=y > > +CONFIG_PM=y > > CONFIG_CPU_IDLE=y > > CONFIG_VIRTUALIZATION=y > > CONFIG_KVM=m > > -- > > 2.25.1 > > > > > > -- > > kvm-riscv mailing list > > kvm-riscv@lists.infradead.org > > http://lists.infradead.org/mailman/listinfo/kvm-riscv > > > > -- > Best Regards > Guo Ren > > ML: https://lore.kernel.org/linux-csky/