Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1664536pxb; Wed, 9 Feb 2022 01:35:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJy6V7u7BwHLV4k41WRvNLSH0UHvPTGbOVnHYA4zL0MYSebZRibfDStpBkCThtE420Xwbxij X-Received: by 2002:a05:6a00:1396:: with SMTP id t22mr1406952pfg.26.1644399330777; Wed, 09 Feb 2022 01:35:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644399330; cv=none; d=google.com; s=arc-20160816; b=iH8H0CmD37eBcbwKRgjXPimCYd367Q9GkPJeIYpbooLOV+antMNIHE+tRNZ5EGGZeD 5VD5BCQybVlDPLIB5Gj24a9u+mdtutP0vB4YXt/CkYS+dNIxlfG0I5Xi5/Du3jObNPwL ufHPS2AZz1nGAR9Jdqs73iKsdr5jMBpofaqI3RKauGm0jBzsTy+xrm6dHFYWyQUcYquu SB44fsTMiJcC5Ycg18lHmmqb2Qv3d6QXCHbSZOIMcPW3NJKfuNbpx65lwX8g8Ua/+e2u r9YRL/xYG6uid1M+wdeRpbNZBOo7xBHEUQUUUMKqOR/AzuAj/ORGYOc7M1akBKvK9kKp SUsw== 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=fb1AtO+tVVAS0HzK1UEvP+2JyANXluI3qjjSsoQmqdc=; b=tc1qfI9dl2qeqTrbeIyp8jAT1btZIAk1XD+sQPxSQ4ak6iAUJjndU9EIlVnZzIziAv uBFRTchYI40XvOcYB5RuUpF0yYsdSuVjZrhinbmyT6V9CkIVlUczmSqdUn+QuCe3M6jV f0sO770A7spK7Y2YwW1veiiSaTVPJrx9dYRh33FpbtLihUaDUj1EidDyTRW1tmVOK8Fg rqoC8dwyKsQGaZq/C//YtFOp4ZbHY9HC0DwbEXoPH8anKmJ2OpdIeQoNi4zU4E8U9Kgb ybJmF8V53WsRUx7zQnrweeMHqZM5TwvUzN8nhnh4osukEAezlX0X0acrdyBTi/hWpJx6 Czow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="T9v/Dz0S"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id y6si2252370plk.55.2022.02.09.01.35.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 01:35:30 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b="T9v/Dz0S"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 79E3BE02E501; Wed, 9 Feb 2022 01:01:04 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347281AbiBHG0d (ORCPT + 99 others); Tue, 8 Feb 2022 01:26:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230217AbiBHG0c (ORCPT ); Tue, 8 Feb 2022 01:26:32 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7200C0401DC; Mon, 7 Feb 2022 22:26:30 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 811F8B81854; Tue, 8 Feb 2022 06:26:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4CC76C340F2; Tue, 8 Feb 2022 06:26:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644301588; bh=HIuCEKBnx2neFGe2TzYeuJVUlLTSD+WZPGwlgjCCuXU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=T9v/Dz0S1HpzoAwIBZvdu5DREqs+MdQzq9y55DHTQDwk2sn3pmvKSlv+GpfgCVTvV WfRWeusIuQzCfT2yyD8t04yJ/s3vViOSbz0a9Z/f5ayoUux9/YwxA7AfmFvKsbIriM CUvjWc1SmMF2pjmXGoFdMzwGfgyxP41s59LNfmalvMXvTGHrB8IjXJaPwKpz3rODn2 WzkmTp8eIJmPjzo4yqOJPBsA8fAyVcKPNXUBBre2JNUrieVwuelVz/VrsbrB7pXbas HK9f03shLil5H84Uzil62wV17maN1jN99Fs7UheuvIyLIHRiwucQDztUqSCdWPvfBR 25twB4iSaCk5g== Received: by mail-vk1-f176.google.com with SMTP id k128so1531181vkk.10; Mon, 07 Feb 2022 22:26:28 -0800 (PST) X-Gm-Message-State: AOAM530Knta6VyWwbmofObf6JII5qEZPlOVu21XOt7xbouuMqTelGPBz 6CbQk3g1Knv4jN0dbte8Ll/ztzcfqOPsJAeXaRc= X-Received: by 2002:a05:6122:1c5:: with SMTP id h5mr1217423vko.2.1644301587245; Mon, 07 Feb 2022 22:26:27 -0800 (PST) MIME-Version: 1.0 References: <20220126114452.692512-1-apatel@ventanamicro.com> <20220126114452.692512-9-apatel@ventanamicro.com> In-Reply-To: <20220126114452.692512-9-apatel@ventanamicro.com> From: Guo Ren Date: Tue, 8 Feb 2022 14:26:16 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v10 8/8] RISC-V: Enable RISC-V SBI CPU Idle driver for QEMU virt machine To: Anup Patel Cc: Palmer Dabbelt , Paul Walmsley , Albert Ou , Daniel Lezcano , Ulf Hansson , "Rafael J . Wysocki" , Pavel Machek , Rob Herring , Sandeep Tripathy , Atish Patra , Alistair Francis , Liush , Anup Patel , devicetree , linux-riscv , Linux Kernel Mailing List , linux-pm@vger.kernel.org, Linux ARM , kvm-riscv@lists.infradead.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 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. > 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/