Message ID | 1691581193-8416-8-git-send-email-mihai.carabas@oracle.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2801680vqr; Wed, 9 Aug 2023 06:30:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH9+Te7tuBzoQARwAxBpApXTaVywu8c20r2WS9BangcdUa8oLxu8rbmEXwShybzxFT1prAM X-Received: by 2002:aa7:df03:0:b0:522:1d23:a1f8 with SMTP id c3-20020aa7df03000000b005221d23a1f8mr2090474edy.26.1691587811882; Wed, 09 Aug 2023 06:30:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691587811; cv=none; d=google.com; s=arc-20160816; b=ILMGzasmRrwS6U2B7YRA0PJP/Q8DvMD/5j5huVYYmJbHIGAyejlsGj78Okz85mGTxT 4e3fWtsQCchtYpoO2NIn/Zj/tgVfwo3CJApC277ZElK6Pm4e+GW8V1yzSP1FjF8CBWCR awIRya5Iz4c0cSssjKokCDV+dKVmJqbesf5dc56PMLDvUcDIumymKll9unQXcj8XZyGH 5M/e3oCvNwuUwGMR+QbPddtr3oHNDIPJmUS03Mah1Ee/KFqa4/TMUvflfLUR2e+atAJT yK+1A//vEAKwPIcAhLajKioXCa6gVpwY8PDoxvYSrfLD2OzxHKIVZh5C6WB9VjAOcplA lj0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:in-reply-to:message-id:date :subject:cc:from:dkim-signature; bh=hlNIjt1lJtZP47W7eO4KvEIII2+KWpAFpv+PlhUsURU=; fh=4Nw8JGbfaJjHaiuIE0mktwMXM0BfTCTfVI0T+Yeb3UU=; b=bYxMPjpWxPYC5XeUXn2Km0d7vJXXOokS4+4ctLYJ3Njtkrl5G+LwufdjdnIKsbGNfR hZ+ZpI2KWvlFjY2/TkhEuJqJLg7SiqiuqHuA6NfNkJdGaXpsAWgXUUMJEPFeFo9RDxLv udE7TCeMrjGtuZ7ccKHzzj7jJa8Yp2aAlDG5GGMd/M/ga6m2YQunorgA3sOrBU+uhAom A31aQTcuIrdzaX2BqgawEr01fF/DicO4e8TE2wJc1/Cx+ZdSVZJXhGiFqC8uo1rl9L/+ SagmXE/ALbHiCM2YLp9Mx+hAwfZk9k8EtsSD1RqJFDcw2vs2ECBqVuE1D9sng/BzLxAH P8uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@oracle.com header.s=corp-2023-03-30 header.b=ra4OJKLh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i25-20020a05640200d900b0052237dfa831si7690281edu.541.2023.08.09.06.29.47; Wed, 09 Aug 2023 06:30:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@oracle.com header.s=corp-2023-03-30 header.b=ra4OJKLh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231869AbjHIMzd (ORCPT <rfc822;aaronkmseo@gmail.com> + 99 others); Wed, 9 Aug 2023 08:55:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232789AbjHIMzY (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 9 Aug 2023 08:55:24 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 096C3211D; Wed, 9 Aug 2023 05:55:20 -0700 (PDT) Received: from pps.filterd (m0333520.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 379CraK3004191; Wed, 9 Aug 2023 12:54:33 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=corp-2023-03-30; bh=hlNIjt1lJtZP47W7eO4KvEIII2+KWpAFpv+PlhUsURU=; b=ra4OJKLhpHJPM4lDoVZ1x++5xNqRV0jNJBHJDNetEGjeSCwfAlqwHDRCQXrNYYNmsjaV dgfvwOhhQE+2XvGHAGaLJ6jLzIJWB9SzDYT2qNYzlYYzL43Ye7jrhvnJqEt2I7qsCjKd cKjzSLk+VNqg+Z26UYx9lrNLsfmEDKDwkXHKopbf82OzY/Nd2InyytWijbIGXuxIhjlZ SmcLn5/GIlCRpW3uL1f9ULwWj/I+2DsUNoG6OsAugbU43SLODqB7fMi2EfKpHPPZ0h/o magYESnikUhl4mJREOEGcY5V3kDQRxA3wfTEYsmi1IXT8ePLvWMau7/F5DpaFo3fP20X og== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3s9efd8mg5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 09 Aug 2023 12:54:33 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 379CpGXw021492; Wed, 9 Aug 2023 12:54:32 GMT Received: from pps.reinject (localhost [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3s9cvdyhjc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 09 Aug 2023 12:54:32 +0000 Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 379CqCGR027258; Wed, 9 Aug 2023 12:54:31 GMT Received: from mihai.localdomain (ban25x6uut25.us.oracle.com [10.153.73.25]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTP id 3s9cvdyf90-8; Wed, 09 Aug 2023 12:54:31 +0000 From: Mihai Carabas <mihai.carabas@oracle.com> Cc: Joao Martins <joao.m.martins@oracle.com>, Mihai Carabas <mihai.carabas@oracle.com>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>, Dave Hansen <dave.hansen@linux.intel.com>, x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>, Paolo Bonzini <pbonzini@redhat.com>, Wanpeng Li <wanpengli@tencent.com>, Vitaly Kuznetsov <vkuznets@redhat.com>, "Rafael J. Wysocki" <rafael@kernel.org>, Daniel Lezcano <daniel.lezcano@linaro.org>, Andrew Morton <akpm@linux-foundation.org>, Kees Cook <keescook@chromium.org>, Peter Zijlstra <peterz@infradead.org>, Petr Mladek <pmladek@suse.com>, Ard Biesheuvel <ardb@kernel.org>, Sami Tolvanen <samitolvanen@google.com>, Nicholas Piggin <npiggin@gmail.com>, Juerg Haefliger <juerg.haefliger@canonical.com>, =?utf-8?q?Micka=C3=ABl_Sal?= =?utf-8?q?a=C3=BCn?= <mic@digikod.net>, Arnd Bergmann <arnd@arndb.de>, Ankur Arora <ankur.a.arora@oracle.com>, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH 7/7] cpuidle-haltpoll: ARM64 support Date: Wed, 9 Aug 2023 14:39:41 +0300 Message-Id: <1691581193-8416-8-git-send-email-mihai.carabas@oracle.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691581193-8416-1-git-send-email-mihai.carabas@oracle.com> References: <1691581193-8416-1-git-send-email-mihai.carabas@oracle.com> X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-09_10,2023-08-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 malwarescore=0 spamscore=0 adultscore=0 mlxlogscore=999 bulkscore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2308090114 X-Proofpoint-GUID: TujCdh-4ZmyJLuERrr4PX2oao1-X7VtH X-Proofpoint-ORIG-GUID: TujCdh-4ZmyJLuERrr4PX2oao1-X7VtH X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773758381801758317 X-GMAIL-MSGID: 1773758381801758317 |
Series |
[1/7] cpuidle-haltpoll: Make boot_option_idle_override check X86 specific
|
|
Commit Message
Mihai Carabas
Aug. 9, 2023, 11:39 a.m. UTC
From: Joao Martins <joao.m.martins@oracle.com> To test whether it's a guest or not for the default cases, the haltpoll driver uses the kvm_para* helpers to find out if it's a guest or not. ARM64 doesn't have or defined any of these, so it remains disabled on the default. Although it allows to be force-loaded. Signed-off-by: Joao Martins <joao.m.martins@oracle.com> Signed-off-by: Mihai Carabas <mihai.carabas@oracle.com> --- drivers/cpuidle/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/cpuidle/Kconfig b/drivers/cpuidle/Kconfig index cac5997dca50..067927eda466 100644 --- a/drivers/cpuidle/Kconfig +++ b/drivers/cpuidle/Kconfig @@ -35,7 +35,7 @@ config CPU_IDLE_GOV_TEO config CPU_IDLE_GOV_HALTPOLL bool "Haltpoll governor (for virtualized systems)" - depends on KVM_GUEST + depends on (X86 && KVM_GUEST) || ARM64 help This governor implements haltpoll idle state selection, to be used in conjunction with the haltpoll cpuidle driver, allowing @@ -73,7 +73,7 @@ endmenu config HALTPOLL_CPUIDLE tristate "Halt poll cpuidle driver" - depends on X86 && KVM_GUEST + depends on (X86 && KVM_GUEST) || ARM64 select CPU_IDLE_GOV_HALTPOLL default y help