Message ID | 20240726202134.627514-8-ankur.a.arora@oracle.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 68F13C3DA4A for <linux-arm-kernel@archiver.kernel.org>; Fri, 26 Jul 2024 20:25:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=RNan28hZrueRUqN0lQfwdbjRDfPEGYlHsBOvYRqz08U=; b=XVCX0V3ot4v//l0ldrYWahFhbl kcODn+PfT7Uu//eX2x/iHCwS+WLx7pYjiCPcBFHOZEz36f0VLMnHJS0Uleu1fNo3+RA0ja9TRO1Xd uKaPo058ifm3Hbo7tjkuwaYCfR6UGqnuilu4Z3hVKPAimow/A6HIrJyTwo7wBddGVfD3KPUXu7WMU 69fAi6Im8tsAjjETg0ZmjIsxc2bF15JmY+mQBawFt/paB9+AvMeXtXaqmHHUoeoHEeaMrNJAq2pFF BBYo1kfuQR2hCYrtBypiKjnQa2VyEq/68U+iJ98QzY5HkPFZl8+q/3x6y39HpMIkOJMtWUkEhSVVO e3aUWvPQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sXRV9-00000004uPY-40MR; Fri, 26 Jul 2024 20:25:19 +0000 Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sXRSK-00000004tG9-0ei6 for linux-arm-kernel@lists.infradead.org; Fri, 26 Jul 2024 20:22:25 +0000 Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 46QI5Ws7013755; Fri, 26 Jul 2024 20:22:03 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 :content-transfer-encoding:content-type:mime-version; s= corp-2023-11-20; bh=RNan28hZrueRUqN0lQfwdbjRDfPEGYlHsBOvYRqz08U=; b= H4f4255HhHS+2cryxkTkzWhFXLbzQlkC8iI6A/yNfRsGI7aBW6KhZJlP9ZSqlYk6 RA0l4RIyVUObyUa84Gt7k0ICHhY2xlfogH/4869iG8knLfY70LZUYnQ60saqk7GM qAzcHVQJlB1WsWRjRzt3qK+A6WgPzdstZj+gbC3+Q5bhyV+GOvhEqLQs7mFjGsFq XBHMdZR+hg2UCTB8J/ZuOTOVDs8KzXAm468yIF07lanBETYHmZsn6LrJDPIeGXdU zVx0gwvZ1Iq7bwodUWm6ZbsxAKm5+zoxUf9LHLZCHxQwLPtOui6igDo7CxjWwdPR AXcrE2gd1B6wQ/LOaBh/2A== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 40k7yuvj6t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 26 Jul 2024 20:22:02 +0000 (GMT) Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 46QIZnkZ013528; Fri, 26 Jul 2024 20:22:02 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2100.outbound.protection.outlook.com [104.47.58.100]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 40h2a64dcq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 26 Jul 2024 20:22:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=oFV1FiTSmeRZm+axLo4G94clt6T++hmsWIQwzc4KabZtRCC8HNWw4Jm0hZdXAL9LDfqFph8txv2IOl+psesc92BOnXXRC8h3XkcFTqRlPtwDX+HxNPhnxuo/X8qnTH/n47no4NR+24x1J2K9123/J9LM/Tv4jL2GDxROQSJwL0j3HnhDgw5EclxBzOkn+a2MgyvEdfT4RYNBEoIo+cQ+GasGImwaoaUQWqMmpqGqDm7PGfUMd8fiTtdpNAkxY32hSNF9WLwygLtXHtNumy2svFQvmbPL5O71pUqlOIKfncRdzxSmkvk29KA73C2iVrN3LzweYRkd6Wj3AKvxjuGdtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=RNan28hZrueRUqN0lQfwdbjRDfPEGYlHsBOvYRqz08U=; b=Jw57y2zeC12jszBGwaxEjasr7LkRDfn0HwaJR0tsGzZGfY61QAjUQ0H0QKWlLnz0sKbGuhgjnv+b58tbVtEWrkxYY7HVGOA5UAi0jAZY75SI9oQHXxf57RAqfsjvD8IWzuPQ0WRhPhlG+eAS3K+Y/4zKZGAHjoJIlgIS8htPlyZ+3b3yO6m4tKnQui8G1eNHL0GtcrlEoxolvbqhrXzIQpdEL8ClyfeYP8/P8Ih6stTa59zqGFtJYBC+ZnCvt9r9G/pCdhBNVbL4yp1WMlpJI8SlkLBerPsAdS2gG8uP8p+3R3Xx+l9/00NrEMBb3qKg5dLW4XWiG4Bq2vEtg4x0Gw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RNan28hZrueRUqN0lQfwdbjRDfPEGYlHsBOvYRqz08U=; b=Gy2cTacvT/oS/tMQtnC+zQgpX90bN+fllpVc81lqV77HvcVPUELoyflXkNCVjAMbqbMtJPL6M/4lPOwkd6OcTdiqBz+b0x/JMNp/VZxGURgye9YgDrpaDWAnWOl/X75/h5KWsTdNzQzQdEQD8qr2gquW6fxCR1ZR63gpgpOmtXw= Received: from CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) by IA1PR10MB7485.namprd10.prod.outlook.com (2603:10b6:208:451::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.20; Fri, 26 Jul 2024 20:21:59 +0000 Received: from CO6PR10MB5409.namprd10.prod.outlook.com ([fe80::25a9:32c2:a7b0:de9e]) by CO6PR10MB5409.namprd10.prod.outlook.com ([fe80::25a9:32c2:a7b0:de9e%4]) with mapi id 15.20.7784.020; Fri, 26 Jul 2024 20:21:59 +0000 From: Ankur Arora <ankur.a.arora@oracle.com> To: linux-pm@vger.kernel.org, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: catalin.marinas@arm.com, will@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, pbonzini@redhat.com, wanpengli@tencent.com, vkuznets@redhat.com, rafael@kernel.org, daniel.lezcano@linaro.org, peterz@infradead.org, arnd@arndb.de, lenb@kernel.org, mark.rutland@arm.com, harisokn@amazon.com, mtosatti@redhat.com, sudeep.holla@arm.com, cl@gentwo.org, misono.tomohiro@fujitsu.com, joao.m.martins@oracle.com, boris.ostrovsky@oracle.com, konrad.wilk@oracle.com, ankur.a.arora@oracle.com Subject: [PATCH v6 10/10] cpuidle/poll_state: limit POLL_IDLE_RELAX_COUNT on arm64 Date: Fri, 26 Jul 2024 13:21:34 -0700 Message-Id: <20240726202134.627514-8-ankur.a.arora@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20240726202134.627514-1-ankur.a.arora@oracle.com> References: <20240726201332.626395-1-ankur.a.arora@oracle.com> <20240726202134.627514-1-ankur.a.arora@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: MW4P223CA0020.NAMP223.PROD.OUTLOOK.COM (2603:10b6:303:80::25) To CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR10MB5409:EE_|IA1PR10MB7485:EE_ X-MS-Office365-Filtering-Correlation-Id: 4cb70980-cab4-4aac-00a0-08dcadb09a40 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|1800799024|376014|366016; X-Microsoft-Antispam-Message-Info: CNc8g+aPhAhfjJ8HGg865vkx/Q9L1tqTJPhlNDj8JGufLzZX2LZb75MbtV173uynIqW2w1AzSO2O0pYne7BXbNTXPt1i2WeFuNj6Ax9S+Kqr3fLc/KXaTcpS1wq+UYmk57W/c3JTh1xEL/AViHb0J1ooTFfvb8UMyDb2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3c9S5NUZwJvDqf+WlDSlPTuL3Z9CAl3mpbs2G4cjmFobRbBNJyWnHV8gQKm/EKXmqDIaL6YYTV1w7iG3y+RDEFAveshzyNQE83LlUfzDjS6KpqnnElTWr8Q== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO6PR10MB5409.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(7416014)(1800799024)(376014)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: bJPbBKgc2S+bVPNm/vl5+V2NnePXqDdoM2f6cwSzZSOCoIzciJtJ0wans37ig2FxWBCM7OYxcfIrsQkeApjr8hVIHrupf3vfDvkEclRQy/54itabNqTVf1ni7NVpT7U6bfdJR6PcofWKOMYKmsu84lThC+YU34sHTXoUjQkEHKpyvRh76BzRvK+MDW+Yngz2SDUcvV352nSDr3WneH2xPasaWDWxWYRA6geWejC5S+pBRgtthqJiT2DRjUoFaOSHOqX7tg5bg4dc381+AUTiKbL6vSzZIxIXVPXXiU/87gvvavHpgsAFj+4XFdEru875uCfIV4mRnWrGsMQAa3dkrUeCxV92ng5GhCCENWL9vL74Iwhz5ACkzrRm26r9ao1csNQJzjL/iM7nKo9IWyLfBzu66fasKaJ9BLKlc7ejYSn/r+gCEG7Er+km17qR/AdpilaBVeZWQ0bruooWRImXrnUCvp5p7h3xucEqGRzcB5V4VYSuVbkOmbMxbEKPa9UAreP6WznBF41EGaoAOIxJx1bnuKpDbA2erFyD7gdWjNL2MhZ+cqF5EIlanLshwVCnfxI6SDmvM2dhxXx1ii54RZaLGLXlRqsiMdz1adr6+Qf7X8NPdNnmhEGd9cSgmK9uQ2pXPQuDa2ndgFWpcvoU0vGdO/tBAnqsitKvRobpRnzRQJQIhQVQwQ11WBfDJJT1fBpxKF+2/F6T9fEHe37aKMsn1TKgicVYZrHpxcbVWsxbOT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ir/9ih7STE+CXUJPhVGVusjlohoVH5cYfUIy5xYxCo8zkXs46DReR2MfFbx1l3at3uHz/YNBrD9NP3xp3+l2nz26k+3FQ9xB0lMbJ55MOdyWF9aNmkk7MHU/Q8gwdjCalkXnS7iWl1ZDrNTyd0w24morxS+XSisIFgQXtY2Li0akvFuL/OoBsP3gdDXE+s7NkDTQ333XZwfSQqKLfH0M9gCuMqEteMuK2u2RtR14ehpeeW7LG678qn4COcmVdT3a2BhLPDD7P6qe70S2u88ad5XsalcWj9ZbaxGlFbs9D6mv9tjMPzxC9Hp6THKh0nxZmGZGfJEb/5QahkfgZK27gBzAdJd6Xg7PzeDk0w9vQCP7vKlf4VFux/w85Zp9z7zHMCdZGlzFBiSJUQ+gX4fR2QvZMNz/X8pu9BhF+uA5gBHIvKSiOT21JD+AGx0EjRO6Z0CZaUawi0CiHtaVAeyD3IO+nTjfqfDSDIgbMcPb0= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4cb70980-cab4-4aac-00a0-08dcadb09a40 X-MS-Exchange-CrossTenant-AuthSource: CO6PR10MB5409.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jul 2024 20:21:59.5409 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: v1jxBKoiGlTYWdlDi3SJ/NIyrCCkZRfq5jxuJCZ3SQTggkZdLSogcGZLqiSeKVIbIasbkydD9r2P2Um4YZ/ne8F7qcNWwCyNtCf+ptvtbM4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR10MB7485 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-07-26_12,2024-07-26_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 bulkscore=0 spamscore=0 malwarescore=0 suspectscore=0 mlxscore=0 mlxlogscore=999 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2407110000 definitions=main-2407260138 X-Proofpoint-GUID: BrdyzMIRI4n0FY-6kuAmnN4GFVO_HxOw X-Proofpoint-ORIG-GUID: BrdyzMIRI4n0FY-6kuAmnN4GFVO_HxOw X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240726_132224_330426_2A04B644 X-CRM114-Status: GOOD ( 12.68 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Enable haltpoll on arm64
|
expand
|
diff --git a/drivers/cpuidle/poll_state.c b/drivers/cpuidle/poll_state.c index 532e4ed19e0f..b69fe7b67cb4 100644 --- a/drivers/cpuidle/poll_state.c +++ b/drivers/cpuidle/poll_state.c @@ -8,7 +8,18 @@ #include <linux/sched/clock.h> #include <linux/sched/idle.h> +#ifdef CONFIG_ARM64 +/* + * POLL_IDLE_RELAX_COUNT determines how often we check for timeout + * while polling for TIF_NEED_RESCHED in thread_info->flags. + * + * Set this to a low value since arm64, instead of polling, uses a + * event based mechanism. + */ +#define POLL_IDLE_RELAX_COUNT 1 +#else #define POLL_IDLE_RELAX_COUNT 200 +#endif static int __cpuidle poll_idle(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index)
smp_cond_load_relaxed(), in its generic polling variant, polls on the loop condition waiting for it to change, eventually exiting the loop if the time limit has been exceeded. To limit the frequency of the relatively expensive time check it is limited to once every POLL_IDLE_RELAX_COUNT iterations. arm64, however uses an event based mechanism, where instead of polling, we wait for store to a region. Limit the POLL_IDLE_RELAX_COUNT to 1 for that case. Suggested-by: Haris Okanovic <harisokn@amazon.com> Signed-off-by: Ankur Arora <ankur.a.arora@oracle.com> --- drivers/cpuidle/poll_state.c | 11 +++++++++++ 1 file changed, 11 insertions(+)