From nobody Wed Nov 27 14:23:37 2024 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6211319D098 for ; Wed, 9 Oct 2024 16:54:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.165.32 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728492885; cv=fail; b=gFHJ9uZBaUgzuVctVUCpk3jgqbNtvX7FGbBTEu8wUoXMFmsVJgnjXZnhitx4y77e00bcsQz6s095kiOqVgH6QfPT29l8EtKJk4z4SFZJjj+XoKCP64zpCoyDGWIKBFVk/EUDdv4rzs1jKVYhM3vKMY/yA3Qu5AWbJEqAfGYE9XM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728492885; c=relaxed/simple; bh=XUqeMPJzU3Bc4Tp39E3UdBAwc89xMY4QH3GJjjfejKQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=PKalL7Y3z3TkV33kVuTi/18sut3sZtYt8wiB6HJkad8EbBKwqAA7b8o7y1+8yRVWD8JDtiDLO0fpsI5hQ11qVxeDA1FnDTxFFk83v8kniViscuGsqs4QVRnOma2q3EkEk3sFdKDryX6uB3KnduiAeGycEQI2LAWR3Jp3LD5RC2g= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=EdbW2LKm; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=I/96lvPa; arc=fail smtp.client-ip=205.220.165.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="EdbW2LKm"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="I/96lvPa" Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 499GBe1e008208; Wed, 9 Oct 2024 16:54:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= corp-2023-11-20; bh=PrGwhtw4KC/kNfwJa+ZoZwbOxPrK2qSFm0qrV9B+ufk=; b= EdbW2LKmVvammODyiMQorbCvmN9fXRVDzpoRgPX3tqshkGq06jIsIcsQEc/3owqu W1GR58iRPxBg5JFuule+NGC+8He38BFrTLRzKpAGyQcG6u5u9/+mwvk0HRl56SX8 d67Il31Ij7TuFmXKWQu0+IWlEYpebnsRDATslX+bFtqYvC52aMlyK45hPVGfNnv9 AGIbSTN9Sv+pcEpCLrmG8lAMfQhMmm0tJNfKZlc+aHb7yu0zm67/1KtY4JnU2931 Ha9/1cMcPc+U685sjSZREGAUxT65DnZ8UPFqjnU5wYLVOM+rmoAFLbLEQ0oLHzJA Bx6S1j3P6fD/O5G2q8H8zw== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 42308drt2f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 09 Oct 2024 16:54:23 +0000 (GMT) Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 499GqMuH022903; Wed, 9 Oct 2024 16:54:23 GMT Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2171.outbound.protection.outlook.com [104.47.56.171]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 422uw8vdt0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 09 Oct 2024 16:54:23 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Qg0WMWPON66KWOCdGVkM1FMy9mFqvzK1kWo3tDKMedMSZRkjC7mDmB9+gE6efopAABY2qnFZHdGigPGhywrvbRk2J0irNhvT/yMdfsVoerItNhg+awD/0oDaY9dTQOJSeVvMJYJ0jqi6R0jEFmuF1JtB69d7J18ACIk34Ahkjg+BnzWJSGo6vhh99MK+o5x5UQs2nkjkf0kFvQuVaRQhjM7NLTVny12dQooQYuxX886E4KWvSloDUraI+vk+yWsr0uzXX8PrGnOmzhInsBdil3RDrUhSgCNpmOoDVXOQO64vydXoCYDLm7gIBcRg5MQJow2QubfqhVVNkIFqFLetYA== 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=PrGwhtw4KC/kNfwJa+ZoZwbOxPrK2qSFm0qrV9B+ufk=; b=qsJFyYoETeHQeHAV/KmBuczBwatv/xOrzwdPsgK+KdMIFsY3mOGqquqGxFA3VBOg14m68lEz6syt0f0RG/FqZ7DY0xR4gcc5VHjL7prfLvk3ORDYPmBC+myJc+Smx8NsYmBVoVAiPf1DMwPGGBF2Pj/CrElUWWZc4lKQKntK7TgGMakRwt5yJSE3lUKxaWqsq/t8xB+SSkxpxwAR9ETxsPZ4BeXt0jShxO7QZIY/yfv9yNleIWbnfmQ6WA+4UZtVNQLMy7uD1al8nliQ12R041wbFb1pfrsYgwlD/1AmNiegXh5rtdLDajLS1+yZKRVCnK3IvSHM5iVAYrTd0P+Thg== 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=PrGwhtw4KC/kNfwJa+ZoZwbOxPrK2qSFm0qrV9B+ufk=; b=I/96lvPa7fWGBEcE+Zu5OjMDRw71gHwctio5OX+yvGcvLKn8Ys6Yq8WJYva2S7rRlJNC7d+p/rtgTLB/7aPnXj62HQiwapX/j89ZbSw6PqQmjM482u7BBeDzvGo7dQvbOBEMobnsIf0pf9Kp9sjagHZUPRTnkJInMQrzzmflN78= Received: from CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) by CY8PR10MB6585.namprd10.prod.outlook.com (2603:10b6:930:5a::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.23; Wed, 9 Oct 2024 16:54:16 +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.8026.020; Wed, 9 Oct 2024 16:54:15 +0000 From: Ankur Arora To: linux-kernel@vger.kernel.org Cc: peterz@infradead.org, tglx@linutronix.de, paulmck@kernel.org, mingo@kernel.org, bigeasy@linutronix.de, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, vschneid@redhat.com, frederic@kernel.org, ankur.a.arora@oracle.com, efault@gmx.de Subject: [PATCH 1/7] sched: warn for high latency with TIF_NEED_RESCHED_LAZY Date: Wed, 9 Oct 2024 09:54:05 -0700 Message-Id: <20241009165411.3426937-2-ankur.a.arora@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20241009165411.3426937-1-ankur.a.arora@oracle.com> References: <20241009165411.3426937-1-ankur.a.arora@oracle.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: SJ0PR13CA0128.namprd13.prod.outlook.com (2603:10b6:a03:2c6::13) To CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR10MB5409:EE_|CY8PR10MB6585:EE_ X-MS-Office365-Filtering-Correlation-Id: f52e8e15-dd13-45ba-da02-08dce8830255 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|7416014|376014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?zCZPPYHJysVyjiFwTBoUkNYPxFT7uuQVmbwcLedqCw3InSf63Nt3KQg/Wwgj?= =?us-ascii?Q?d8uxONkgKe8ShfMPvmxFH02FZPBrVf0DLD+kPhKl2szF+zBcZUApTfVp1cYr?= =?us-ascii?Q?jB/zHyVws5OhjKxhc5YnDZzi6adEOUQJ8XxTfuv98aLiv9Tk+tYtHok9lDqb?= =?us-ascii?Q?Lp9j6QdFN353Pmacu5Zqfqb5AXSq2+28dnjr3LxIJJoQP8U6XAH5+AwxsjKD?= =?us-ascii?Q?dogv4vgRTrG1mMCNEJVzKohwsmN2AwEnDMvHFm4a0FKMe8WvZ3555T7N/GFt?= =?us-ascii?Q?pURUSbDOCOH0QzIQfWC8xSqXOtauuzJS3ZqMx433jktdLt1Wary0Il9qQXdV?= =?us-ascii?Q?t5HP1STSbkzabmRArLk4LOQOLDpIJazUoxxthE9OgtSdrMhob5F9XiBuN/Jb?= =?us-ascii?Q?xRzzQNwVPeNyHuOKUvLWTRHwf4Nd8VACU/RU7XZjPnef6AKHn9Yf513NwvTo?= =?us-ascii?Q?tnx8FR81jgKwhybl10slz83+tbIaVTsh2ISKdJdAPFSVSzaT6Mlk9eUNikjv?= =?us-ascii?Q?09Cvsl6CaXXKyX+4L6ubu+5yIpxGS7pHbDpsX7jy93MHCPijUJPKU25Zbrwg?= =?us-ascii?Q?+Le9vk4RBdfhS7g7lTIDxog1OVFgyxiMs7qASoEN6xsWwpVvoqCecK69RcOI?= =?us-ascii?Q?NYsZ0Z8jR3yEOLiDqWFQu9gHUevtuAaic6zW/JmUpG9imtvPniRFYpviSzhO?= =?us-ascii?Q?nrZrO0938sof0S7kd61+Gu4w9N7EF9N8hXIHX9BVm2OS4ZN/Sd4D1D6BgamJ?= =?us-ascii?Q?FQjFUmD75t3NNTwf3Uq3S6sdFmZseqq/bH8YeRhP4UsY9qglFYMGG2myvR1g?= =?us-ascii?Q?oXH090oED8zBcj4GHWsZfA5GYzqyE5N1iBUftS1dHD51TuSkITzkD293fBP1?= =?us-ascii?Q?z2NaHedgToEfQnaDh7Uh0YhQLrRyOfa09jol6WB7Sux7saEX0rg1oF1BJhxf?= =?us-ascii?Q?vV1abDkOlWIfVsUG36r6J1l33CM5EErqv3+D/jUGAVNMKB7T6bEOIMC2csUb?= =?us-ascii?Q?RzDQPu6OM3LZ7+MYV/I9aGofpDOSLPL6Z05kqiQxwcdTruIaefZhj/Au6Tii?= =?us-ascii?Q?NNIodupEtzOF8uJE+6kOifwtJVuTvlmMys9GoQ0MCJgp2iejfJVxGH7wBtWk?= =?us-ascii?Q?pRrt+i4FPXpyURkCP5lDFxGOLQ7R7YJjvG0q5w5s88WQZLY8knLwBCd9JCnt?= =?us-ascii?Q?0LeNtoKbBDLhzfDkXk2m8AyQpFW92kqLeJVwNYNEVwwviIF3s2B3a0YHd11b?= =?us-ascii?Q?nLLuDebZWRC5zJ5mkZ4Aa8RhSAeatXmor+G0qhWkcA=3D=3D?= 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)(366016)(1800799024)(7416014)(376014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?JV3GxdKb7LosUJ5kPqLlHD4sFa61kP6fYFzB20tYZGhkxC4cJGKLExJ7pffn?= =?us-ascii?Q?JZuAiudXhCx/2Zhxb2TFDtDEajueTq1JI1KPhR+27B3fsDUG3y4MF9v5my+j?= =?us-ascii?Q?eVbuGk3JdBFjmIAiEpt6fB8BuBPB/vQKxkplnCCLHzf9AbkTA1MmkXVnAfZm?= =?us-ascii?Q?diRWHJUas+vZKnUDiRYn2Jrm69mY0AvYxx3YD4fIBVSxq/gyNZaDNS33exCp?= =?us-ascii?Q?ajTMuqAg0ZynFGfP7LqR62Zkp9o7MzvEw6IkQl/cDGUY/5fca9Vct+wS6tiU?= =?us-ascii?Q?9pAM984gMPauFI5KE42fuK6W88P9fda+XzaCOJGckC2Co/WzYUjfbEXpz56j?= =?us-ascii?Q?UG2YY9YyvS+6Dv3+r+4jj//1FEvrQER7mQVu6tfdCtk2gyiDognc2E5LnV6n?= =?us-ascii?Q?cctmxkp9dHzBy+Na1ymTF0UeF3JriYaTPvAyWKkDqVAMUZtg+nv4IC/F36DF?= =?us-ascii?Q?L84un2ns72sD8nLjRI4osKFcJaUsdOS9/szzrIKqg1m/31JuMvIGQJ9VW7VK?= =?us-ascii?Q?DTxbpOqmo2OTCnpK+W3LrdTTGwn3cmOjgsbAvPGDN2fFAP/xgi2KrH/hvUoj?= =?us-ascii?Q?hkjyTLF/ZO6X6Dw8r5ECv1Nair8XvxMhQEuAvutYnN3GJoe3ucAsLoBrr96p?= =?us-ascii?Q?Rm88QZrPEuT/9XxG0QQB164I0/i/uUUJDR/7Yx6T+ObnhqW7D1HxoYbPQmLC?= =?us-ascii?Q?06HVkjIvmOy35LOpjCqjUX48cQKm3oKgxncIX6sJORk5PKAdQy3FcUsFeEJY?= =?us-ascii?Q?Vtd1/uPEeHtQXcBd7YAFImIdQ0WXDQb5h/f0Ns6vJqY7ZEDF1H4puioe8Q17?= =?us-ascii?Q?Y7P2iandRvC9GuIfhhBY/Uc+nr+i932KBgQswM4nf3Wb8e8BmWuFCHMzne3r?= =?us-ascii?Q?03KVjYo/0Ti+ap5LPC87FhoCefqryrtgHPTjxuOcDbxSr/TxrpgYHNIVqvc5?= =?us-ascii?Q?nO0rDbza6bPLv/VYCXAr1MUlqTdkx+ObkcWqlMCBO9INJuoddDTsAqk6Lvbr?= =?us-ascii?Q?opODpVcBqNsanjjfVtmuAeQuyRXLYuppGif+TjZyNWof/P1kXxIjRwkpE2M1?= =?us-ascii?Q?TTDQoirPdDahmUdgJ9eAWElljQaxvb0e3KPJjeSS1eB20xiAkdmdEjsP1y4r?= =?us-ascii?Q?IIQ11Lu9vuvNDPHtBHeKw9XVlJ7mYB66UowqACdNtysYf7DC9H4TAawTzyef?= =?us-ascii?Q?TIQx1C5bEoXqolIonb6MnqfH88wCIm+jN/J3KnSYBGUCCdcWNpRKIaBLXJTR?= =?us-ascii?Q?Jv66/EyZzlrGmOmoJ+K+qnt/yuafPR3yDP9a7x160zGPHWVuhN7jHqunngaS?= =?us-ascii?Q?6SRV2geg3GpoKbxmaMR+WpccTWq78oZnB25AYz99xi94tpnoaRSlm178RnFi?= =?us-ascii?Q?CrGG1nUcmVfiQEFqOoPxHf3Zbr+G1xVCAgOobXUpjyYq8CJXScn20oVrqE+s?= =?us-ascii?Q?KrsD79JSrxxHSBhOYYnIBYmf25Rogwhoop5n3FKfw6shjsIEsa2De9SHqkXW?= =?us-ascii?Q?pCL0Rgo5ZVZipZA7E4HzsQHNB6CHSLcYZMnYk5Fl+AzcEGZbe1L1522AW7oO?= =?us-ascii?Q?iyay9CkXQx1N+fx3gqUyN/E9a9xcp5XOEPPD1TSKh3rIzfdJPmhIzb6+8zmq?= =?us-ascii?Q?pw=3D=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: Epw0cqrEWo3rGbLYytO5tSSnrCsZnPHJjHLe8Mirn8Fv6uenvAb8Vf+PmeYnxocU9oD8LNLaAbvW1G48bUVehZ3GuWv/g1YZjzLyNV/miG9ZpZZwDpCx7TxaC8USfRvBg5/upeimE6VdP/85GKkxugiZ+LNFYRGzkUp3ALymq6uqrEs0DRibbIIhWnZCBQIpfncSA2hj2Uz9ehTnd2i/BcmXvCBkIdtAVnw19rH2EO/axA54pa8nrcI9W5zvwsA5HWlv84G9m+ZZFgwkbQkJIOVw8PFJEu4+0My+7CpH0Kr3D0vO8kmZRCAOxEcdfRvFqZx2vUFf/hz++e2P6M0mVv090QI/5DhRFG4cFZFBFIQFdy/EvDNPCI+R2Wjtz/LqV59lLdSNeCag1dn9xgKh/2lK9LFOm1jAmn1UvhIC8UOQauVq7zT45+d0Oha4HX4hlBMeCWzyHQDWLVDZOBajFI1383usHrn+GA9zucJ8Kj2nC0MLtCcj9BI5zFrPvDW3pkIe1RTz7dgNVbMdjDCAVB0Q6ONOUZhMx9fr8iv7jKUMj3Cn6d6L2G3uOM/jeZgOWF7i30JTZZhQel6lm7TyjrksyA8r/Dg/FwwYz0xU0FY= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: f52e8e15-dd13-45ba-da02-08dce8830255 X-MS-Exchange-CrossTenant-AuthSource: CO6PR10MB5409.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Oct 2024 16:54:15.8303 (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: +jJPmzKrPF75hMBgmdPA77TbTPk6smTMaE7W4oMtA5u9MpiFnL6gkGkD2HojtLRGqJUoLv9bPf5IzsD0qOt/3KeahfDMsKBbD8cBYiw18hA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR10MB6585 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-10-09_14,2024-10-09_02,2024-09-30_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 adultscore=0 mlxscore=0 spamscore=0 phishscore=0 bulkscore=0 suspectscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2409260000 definitions=main-2410090101 X-Proofpoint-ORIG-GUID: TJ45H-ZcQq7RkHscMWGQh2d4ahVeFApZ X-Proofpoint-GUID: TJ45H-ZcQq7RkHscMWGQh2d4ahVeFApZ Content-Type: text/plain; charset="utf-8" resched_latency_warn() now also warns if TIF_NEED_RESCHED_LAZY is set without rescheduling for more than the latency_warn_ms period. Cc: Ingo Molnar Cc: Peter Ziljstra Cc: Juri Lelli Cc: Vincent Guittot Signed-off-by: Ankur Arora --- kernel/sched/core.c | 2 +- kernel/sched/debug.c | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 694bfcf153cb..1229766b704e 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -5571,7 +5571,7 @@ static u64 cpu_resched_latency(struct rq *rq) if (sysctl_resched_latency_warn_once && warned_once) return 0; =20 - if (!need_resched() || !latency_warn_ms) + if ((!need_resched() && !tif_need_resched_lazy()) || !latency_warn_ms) return 0; =20 if (system_state =3D=3D SYSTEM_BOOTING) diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index 9abcc6ead11b..f0d551ba64bb 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c @@ -1293,9 +1293,12 @@ void proc_sched_set_task(struct task_struct *p) void resched_latency_warn(int cpu, u64 latency) { static DEFINE_RATELIMIT_STATE(latency_check_ratelimit, 60 * 60 * HZ, 1); + char *nr; + + nr =3D tif_need_resched() ? "need_resched" : "need_resched_lazy"; =20 WARN(__ratelimit(&latency_check_ratelimit), - "sched: CPU %d need_resched set for > %llu ns (%d ticks) " + "sched: CPU %d %s set for > %llu ns (%d ticks) " "without schedule\n", - cpu, latency, cpu_rq(cpu)->ticks_without_resched); + cpu, nr, latency, cpu_rq(cpu)->ticks_without_resched); } --=20 2.43.5 From nobody Wed Nov 27 14:23:37 2024 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 620CE19CC3E for ; Wed, 9 Oct 2024 16:54:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.165.32 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728492885; cv=fail; b=TzTfS3v28Kxi+oHD8XB79xMZIt80Wf57S5TbgTE4P3+owOQ9ziX/fZFNJZVgKitX9j3VJlKztT57/b0+dmSfzWhz/zB6BLKwDXL93oe4KyJeGJlfauusAoFO+edxx0lYQ7X4NUeCQSjjQc9M1tXf6OolmE9CihqRO68gK9o/NIM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728492885; c=relaxed/simple; bh=RJkbHfrS1G/TSSznA1a1AB3oViVqepg4+epkEf3q+B8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=si2+FYx8j/653qqn8lsuqaz4J7iC4bB19uhNkmKbOgflp5Pva4sqZmztbYRdDlGIGGH8BwIg80WIqgqymVntWCXtEuKpYPNXJlIZtkYfSBDYTc2l8vqYVyTx2xjgflTJw+9m5mmpw0q+WzL/Loq3R/juudo5UL/J4Rrxa6FaUa4= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=Eecx3HRN; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=oIy553NZ; arc=fail smtp.client-ip=205.220.165.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="Eecx3HRN"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="oIy553NZ" Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 499GBboP017444; Wed, 9 Oct 2024 16:54:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= corp-2023-11-20; bh=AAW4gIG0qYgTUYEAtE2qco7tyQ0umIMEtJ0iXaHI+GM=; b= Eecx3HRNGPA85ya9dkrKkzYDhD8KRrBV2dJKcRzht4Vr74leQvcpjUw5LW30SkQU S3RJNACbVG3OwpL/vfiUyM2LMRLwk7BNPduL87koCYLWpQ8Gfwys7dSfMWfjow5L HLDj1XbWw9IdyiiQq3nE+8vekR0K/b7FVeH8P2Ih/ukw+hN0cyh+iOFcPT+52nyK EVYIF1IqgHGglmAvNKqX63pt1M1DC4BvO0ZI6utVaXrb/lRaWTgl3l32z2YaYvfl zJ9ShQsWHKn8M/4O6PeM8R1usXy2pllLxo1TzzowmHJ54iFTbzHigMVL+0zSqHCX VzTtIGNhrTo0bBCATX6uHA== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 42303ygst3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 09 Oct 2024 16:54:24 +0000 (GMT) Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 499GqMuI022903; Wed, 9 Oct 2024 16:54:23 GMT Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2171.outbound.protection.outlook.com [104.47.56.171]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 422uw8vdt0-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 09 Oct 2024 16:54:23 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=fdjINULjkn0B14Bs4BhS9gUb1xcMMOpBVg5qiArLHtbnv8laSoBlbEwu9CH7uGZDfSKqw67QbMTBOwf8NqpVKMbJ8nmXSL3cJqg5GU2Q4Vk80nwCSYlBnh5rB/OYqZDgsGuW3GrS2naDpfeAObe7Td9urXbP+wT/5hTmoWHi17hISKgokqmFTp0CD4w+9J8aDCAdtRR6b3inU33j7M4Jy/fqXq1ltV4WKFkbSU6KCdfcmq62bVHzq8/tDFS5BBHV/b87ERhC0VaFpnvTwDUHt/Zc0szXOb0Ak9/Bh1/Tj6N6LCfiRz1Wbul8b7fveBrbpLJA7hG9DnSwhXf+8dz2fg== 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=AAW4gIG0qYgTUYEAtE2qco7tyQ0umIMEtJ0iXaHI+GM=; b=vwa5JNpn9vB/QQMWEk+2MIQjyIKMaa7pFB2McHBXkqAm69fgIgTadoB5HZ3dh+ZrtEgZNsIz3dkNPcBpguuq896bAZV8mJGGVp2BtiR/AXrGx5v5Aod1vnv94pSINVdBiMPbalhbRNilBqdPdJOqpVHoxoGwf5FEL4AX+97emBjGnSIEda2EdO6Cb5XIiIzXoj5X/yAji66+r52LOpdh4SDKYKvZBXscF82JXIKq8qssQyFDxUrVneoxU0G0h/3VUsi8orbNRNyOYvbh/NeL+WYqnlPezQn3xZwtNSg9O+F4GB4X5jL5Cy3S59sKYpC9IRSeggpi7cNh9dPHs13QVA== 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=AAW4gIG0qYgTUYEAtE2qco7tyQ0umIMEtJ0iXaHI+GM=; b=oIy553NZyX9e+ZmT3srn2jIYndZ0VZflGN9FLr+izEAy8mKcnponANVZM1XhEsX18aSjIw15Dw5TjD/pfqTg2PMf88oAFzeIuL14Xtlb2ocJtW/Q9MaRfb8s7CgVsv6Qc+l+prKEmAppbpVbOsG2Yzv+URS7k+K2PBWXeZ4z7Xw= Received: from CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) by CY8PR10MB6585.namprd10.prod.outlook.com (2603:10b6:930:5a::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.23; Wed, 9 Oct 2024 16:54:17 +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.8026.020; Wed, 9 Oct 2024 16:54:17 +0000 From: Ankur Arora To: linux-kernel@vger.kernel.org Cc: peterz@infradead.org, tglx@linutronix.de, paulmck@kernel.org, mingo@kernel.org, bigeasy@linutronix.de, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, vschneid@redhat.com, frederic@kernel.org, ankur.a.arora@oracle.com, efault@gmx.de Subject: [PATCH 2/7] rcu: limit PREEMPT_RCU configurations Date: Wed, 9 Oct 2024 09:54:06 -0700 Message-Id: <20241009165411.3426937-3-ankur.a.arora@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20241009165411.3426937-1-ankur.a.arora@oracle.com> References: <20241009165411.3426937-1-ankur.a.arora@oracle.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: SJ0PR13CA0145.namprd13.prod.outlook.com (2603:10b6:a03:2c6::30) To CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR10MB5409:EE_|CY8PR10MB6585:EE_ X-MS-Office365-Filtering-Correlation-Id: ef938b00-6522-4758-799e-08dce883035e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|7416014|376014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?ivA42kzOthI067pSJgzPLndWE3hj8lUMNoT7UGow2wHZsOQpcZg2Jag/H9uI?= =?us-ascii?Q?hXPZgBc99I5ZEV8BVdkGfMp8cizHmPJzpiAyNfdKG/nowJMEDodZHn/hnwsJ?= =?us-ascii?Q?rjuLf3tXwf/7DUph08WLTuLG2wtNxKNo3WgQbHtw8PDQCuR885PMx17hcBVF?= =?us-ascii?Q?V7Q2Hm/0It6/iwh5f0hnAEWOt7aDfvZFnm7YVoAVIMUmI/3yadPuoM1OqB97?= =?us-ascii?Q?Wcf7pdfYeproFV+4PeijXhAhzhLwsQfIXlLtU1P5jE5vaG5R1qDwHCw6aJal?= =?us-ascii?Q?4yLds8OBktBOzSZLWO4qJENwowVtLgSgqvOZj/p/JuTNI4ZtOVRaJf8HiZ+h?= =?us-ascii?Q?VbCqxILB1rQxKWm1uFZwpWqxhJzW3+9X+S2i1T0mNmMgGH9etTTXFmo8NVkv?= =?us-ascii?Q?v/iSCXJkFb0uh9CViTleA1jZmAYYs5kdIw+dIRRmYABr1wYPZWswQosRoq4n?= =?us-ascii?Q?RZOtQuni6mphdyUUs9GakjJZipVnP1AVnSPgoTS3ZpQpsj/MdE4iOFT95eg+?= =?us-ascii?Q?BANp6XHhYYbvFbvBs9W6Cio2tb9y31GoYQUg/zn9aGwOXk7Wb1UkemAAFZer?= =?us-ascii?Q?oDN3BkFmV3boNxvCwU3QYwdsIin+QkGN5uAcdER2EVRutmtA9mhbMRjeRnkB?= =?us-ascii?Q?vNH48Y8ti6MmoE2YwAi7g1afx4IgtFaYlEVM9j+TmImWHg/XFLcezlDwgUTl?= =?us-ascii?Q?5/1EpDSP91AiH09I6MsDiWC/q7piEq//7PivwsLi8YgoAfBD4tI26YmYQhom?= =?us-ascii?Q?d8H90SwkY523qrc3kUXQv1J3q5ghRJ+2bDJHcLzHldd7t1nfSK2bA3fSLwh6?= =?us-ascii?Q?cRQNSmRaC33xF4QjUmpeX+3r/fbxBCHsDUcW8wwtK41QreplHq0BLFgfBkPJ?= =?us-ascii?Q?Fe/+wynqWRABC2Al5LrncS80wGAP4qP0SqO2vpfvBMW1VX6ZfR9uvF8wmcGH?= =?us-ascii?Q?jXXUr4t4WKJZgZ+n7Xc43m6FNjcOvynVg5wilztjnUfhMypL+2s1ixMTAAhW?= =?us-ascii?Q?9cITX1Q8XjiKnaUrIHBlFYREb25hwj/PCv/cC2F+uppZgxpI/2AnJOq6yPh7?= =?us-ascii?Q?CQd6TfU7qznnHRI1M4BImyk0GP7lErfUgfb5PLwMWSKuHusDCImNirIA1kvS?= =?us-ascii?Q?rm3GjxYPJ8wg0Gcupap0G+toIJ9D2JtnkMRXs3E/j5jc6cVh3KeToy3e9Yva?= =?us-ascii?Q?GapgHdYEBsnxjiv02uDwVr37EjFHf28TN5opVw3fjrA8b8fq4VN/CwXS9Cmj?= =?us-ascii?Q?F60CMuMIHyN2VBxi5N48av9MABHlCRqz3dFq94LWmQ=3D=3D?= 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)(366016)(1800799024)(7416014)(376014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?CsHLMsOeA/d7x8r9/tK3Gz/+WROLTXMJ/8ROGNCwNuBexdAAnB0gPLizH+cw?= =?us-ascii?Q?m1epbZRNhIGVG/maoHJwUj2f4lbjbZfiW7+4B2ySrhFkccs6GlGbCxbrARJj?= =?us-ascii?Q?1qr7nuBCCFm53i7p+o/+A3ZO/6KTP6aH45eDZ2JAX04yEVzX8aoGeVzrFLGt?= =?us-ascii?Q?+Q03IuHq6vWK1QhiYrfUxcM3fuWUQag5veS8P95/gI3Xm+SrNmH+9Ms+SbJ5?= =?us-ascii?Q?R8VsnRyj+u99EpEymenSylGHV2lDmkxvBU2/De62S0fqpO02p+kYqlr99GaW?= =?us-ascii?Q?Z1jhAnyCeC94orux5t1W4ARR2g3mzthWXFb9OFdgw0DBrXMWTYRZS0+u9Nf0?= =?us-ascii?Q?efIhGS+qN59vSVcIm3i2h414PCu6CR/0lSGiz1igruc4lzYrWMSFhl39O4p1?= =?us-ascii?Q?2oc6WJrXZ1hsCoHPgvM6m85edwhc9YyFVyF5WYLSiaQhUa92tYPRKs+f6t+7?= =?us-ascii?Q?YESxovR6k8vs8QBs0MQNXT2mhyJ8g42NWYyXhD0S3iX2/oGJPnLk1Jg/dS+2?= =?us-ascii?Q?O+3QgltoCuBEHpx5i+LgvyWcZNG+iD1QnFpFVi4bRRBSXNfOfbrVEINPwYWV?= =?us-ascii?Q?4eotZINaH1AK7y/QmtXbLMU48g70yuGuQwe9CLIR5cB4Iqualg/9cYJnoDsu?= =?us-ascii?Q?yjVeSC7HUAg8Gwkm9BfNxjB6meLZgZAnT9/XLN+7YSvoLyIHLJaWNr8f6RIn?= =?us-ascii?Q?+xeqp6idTLzCtrT//wMh+JtGh9ERsE07AjOcvMRxYIEXLaom85tPQd/xcQHl?= =?us-ascii?Q?Ia9ZPjiZZVEveymTSButAqY03wm5Pwee6d0l8Ubl3ZJIyJnS/xlm5hpdlsr/?= =?us-ascii?Q?KJOBE+cULvbg87m7DpTT6OzwABH2mv0WQKV+P5jZQJYbxQOekfUYeRmMyJFm?= =?us-ascii?Q?YH7x9TRQK3EhxBlxUH+JMR8Fsa3QlnyQsNhGr6Rh81qiJ3PYSqh8vAPwhxyM?= =?us-ascii?Q?ZC5lAFbQdidtnnBTZrGmOg/usJsCHeDrs1UhsD7rR+N/cuXpvY+03Qmw4hbC?= =?us-ascii?Q?X5Y0nUeK9RK8kHwmKh0SEjgJPEfM7fP7htFgsEXcoD+Zm5Wlm9kv+i4qr0rd?= =?us-ascii?Q?yGXRoJbeOZykz8AChw3/FkeKao1oHazZXJbsTaXJAvIdQESsGaP2vlrVkwrR?= =?us-ascii?Q?d6tC+rMXmV56aTKu5XjRjpUCr4kH+MJDlOtFa7EKisR90Tgu0jOGsdTOAlPE?= =?us-ascii?Q?gn3mMbIiZWocH3849hGs3IJ0ldZTFeG4oPuxhn/CSDi7+qQlh8YDIh7MyHz6?= =?us-ascii?Q?WSAEolROJo4xctd8v6EdQFE6ul6ptfKLEEyQhFlp9yHiC1xM/HUag8Qp4io/?= =?us-ascii?Q?x6EFIHs2It8GiCcgnY/T5NIaW91y/Kj4QAzpFdpr1etfCkHxW+xaCDaf1AS1?= =?us-ascii?Q?EnHtoZDle4BLFwFblg5zUawlGf+49MXOr+Mo/JUydIunuu9anSatrJl616de?= =?us-ascii?Q?QyHOOBjK7I+cltPr7z1Lv776DSjBLmhciXCAOpgA0xJxenqX7NjkhAfw6KHL?= =?us-ascii?Q?vQJiMtL7/3wde9Rg9Am9DrDJMgyBmrznH+CnapTc+7jMtof17x+3ogKPnUEN?= =?us-ascii?Q?vDNml5I5qjdWxBV7CSlX+XYh89Z44YUi9xBi6ABxVOtA8bGG9+tk+S2NqFD2?= =?us-ascii?Q?Rg=3D=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: 9Wye9Fn9ivgXR3D6O5yqGpRGygS4bKtLcX99A6y2Te4d7nGwvuHdCQ138U7ZCswBCz1j/xmmKHgzbHEYMCzHIvyC7zfPXgeF78m8Uo7kxYr6cw7zDQBwATlDEMhoRpFIRUg9+KLwwFg0azOPDUyEfnWjPvc0UvXjE8A8Dw0obIieN1aXu/hGpMTKTmtsytjgT51K4RCoh92ff0eWI/bS0SRw3GCqXwv0mH9gBKWG/lpyRxpKF+/WtOecg0g1ctxoD+uoyHJoujbkaSCvmDJQ0EsgmrgSwcmgeIQd3js3CWUvd23OBUs1o2q4TSyBSxvxX/vlC17JFClPUUVUMPfr6CBfONK08GTIvtQ+11FLwTML2ZnhEE1VQRaxwjDyuQ4X+6O84JWbzhNtGM0LNP4sVE5JYbuI8inbGdlR70I18eE4PjkKbHipq1UjanE5AxzK9S4CuljfD7sSF3WHinYBl5nNe1RdCbYGy01UxPN3+kZtouvsSsMudh9d9LjiYJOt5lfyBikM71GANRnM5OCZpQhWwjlpWuebpJb4PhEWgo58LqShUYTu2fjJblzSZ8iQMLXbvL8hZKwntlbX3YLDNIqiMkaXV3B2LRJ9v3XlawA= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: ef938b00-6522-4758-799e-08dce883035e X-MS-Exchange-CrossTenant-AuthSource: CO6PR10MB5409.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Oct 2024 16:54:17.5759 (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: 2ZOzkYCogpuhLffXtJTMSBknEf1XbL4Cqqa8zz6PT22vU7yMh02ghecX2uJW2+rwJwYqvuDrbXUHyTYdXgaxqHRe9qjW2UU++7gaPxWBdng= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR10MB6585 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-10-09_14,2024-10-09_02,2024-09-30_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 adultscore=0 mlxscore=0 spamscore=0 phishscore=0 bulkscore=0 suspectscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2409260000 definitions=main-2410090101 X-Proofpoint-ORIG-GUID: 5V6dw8--_akcrOaHWbshektB9lEjMuCv X-Proofpoint-GUID: 5V6dw8--_akcrOaHWbshektB9lEjMuCv Content-Type: text/plain; charset="utf-8" PREEMPT_LAZY can be enabled stand-alone or alongside PREEMPT_DYNAMIC which allows for dynamic switching of preemption models. The choice of preemptible RCU or not, however, is fixed at compile time. Given the trade-offs made to have a preemptible RCU, some configurations which have limited preemption might prefer the stronger forward-progress guarantees of PREEMPT_RCU=3Dn. Accordingly, explicitly limit PREEMPT_RCU=3Dy to PREEMPT_DYNAMIC, PREEMPT, PREEMPT_RT. This means that (PREEMPT_LAZY=3Dy, PREEMPT_DYNAMIC=3Dn), which selects PREEMPTION will run with PREEMPT_RCU=3Dn. The combination (PREEMPT_LAZY=3Dy, PREEMPT_DYNAMIC=3Dy), will run with PREEMPT_RCU=3Dy. Cc: Paul E. McKenney Cc: Peter Zijlstra Signed-off-by: Ankur Arora --- kernel/rcu/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/rcu/Kconfig b/kernel/rcu/Kconfig index 3e079de0f5b4..1bfe7016724f 100644 --- a/kernel/rcu/Kconfig +++ b/kernel/rcu/Kconfig @@ -18,7 +18,7 @@ config TREE_RCU =20 config PREEMPT_RCU bool - default y if PREEMPTION + default y if (PREEMPT || PREEMPT_RT || PREEMPT_DYNAMIC) select TREE_RCU help This option selects the RCU implementation that is --=20 2.43.5 From nobody Wed Nov 27 14:23:37 2024 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F10D51922FD for ; Wed, 9 Oct 2024 16:54:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.177.32 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728492897; cv=fail; b=Dd2eZ6BYmg9bleEzZRh/6w20GLAOx69rYBR6qf++Jc+ruhArGjvuQCR/ztwv/nvOF32waj1QIvE1nwhVMk67Z7CsUnx26/Su1dVhUlS8zDet5CpTbaqXPCB6rsEwHRc0YF7Ol91i2IPjlV5l6t2ngGgGFKhk4dQqYcxF55EkIz4= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728492897; c=relaxed/simple; bh=XkDLi5ol59gRERPDVk3D5C+wdBJEZPFArCBZTwoj2Os=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=GZvVGj6xO2mmybZa3itc/xJpJtwY1OEBRH0+1SGrfpl/jOBodKnaq+0zhV79zD/8n3MxgWdN8twlsVoDpLBcntP7axN5m4riIsz+pei5nNrC6fLZgz5GqHq/2xs/DzXHJxaYJnLcx3aMY1s6w9+oqg1XlcTfPrZqvKoBiktYA1s= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=b5VmEmXf; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=uq6dezTE; arc=fail smtp.client-ip=205.220.177.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="b5VmEmXf"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="uq6dezTE" Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 499GBdna027293; Wed, 9 Oct 2024 16:54:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= corp-2023-11-20; bh=DePIVHClCjpAOXGADN2fMS/sfjzxG63DBLHmmkjwoGA=; b= b5VmEmXfmVDuQ34FuVUaqI5kCojG1PNtIHs7pZ3vrnKbp2pCnyECgSWuH91PFmad Uonp76qNwvUSHv+mRpFoSBbh659hCe4HhKjNTVn5PrvQDJK93aU7tX9WFA53s/OB eNTJTO/cBv8ToPZc+CeHw1fd24FBRD2kJizCk/ju6NvxFmH36PvdMI2KsSXJdpzq dMvt6mflfe24zXzLhoq0lqLImq82toaWs2n3N8R+T4/LooOoTQ/9vC94XUaT5FYM /8qu+dzINQd/Xla5UJGQh2jQbgmyMqcnbowFnty9vtFE7Y0xKbvPs3Xc1QG+YbsD QjzKgJdGsWvz81hqx6KfrA== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 423063rsq9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 09 Oct 2024 16:54:30 +0000 (GMT) Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 499FMRtU022992; Wed, 9 Oct 2024 16:54:29 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2176.outbound.protection.outlook.com [104.47.59.176]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 422uw8vdwq-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 09 Oct 2024 16:54:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=FIteo8q6E/FvLRv21sTX/TjRv6IT+PBIQPVYm3R5wUnrvfUoEIZd92Smi07IFRNN7tj6j+YA62RzwUgHfnQ7u6Tgj8RYpHcnHIcuORbDjDPk2xsj232kZKfJQjtPV2M+c9SOepExf9H8mAcG9v5LNh7A0uz+KVP4A01BMzYzaJp0iZLMGlf7M3kNzHHLvTsreesC+cLBYgWoAPaEa3Dwf9G+tCs7wD7GhxV8UvxQz5kULQAlzL4YRsNER5O7aEfdBWzePloByVkZg4XBhDGTZOjGYkZZBcRNhxstEA3ShSQSddqW2wgSq/aG0pDWQ6X+fSGMlTsEWNHMxQCiR3bVIg== 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=DePIVHClCjpAOXGADN2fMS/sfjzxG63DBLHmmkjwoGA=; b=qYCx9QfJauYobJmCCe6TGHP1d7mMSSjIf6E0KbeA1OvZP5QROX7VAidfxpnWUlEh8z8gGj98kbxEpYhCLtMyDlvrD0EJGuG5jlYZi76MXyW3jRW0gDASvGvlB0nak60bGZTvCLwl9OX0r+7jYSfIlXzMyKkadl5owlWj2JtXMadVSlsXNn7J5UsjUNg0CzD2e5E3VPvYE2WLcy+/NkslaaMZkUNib5uN6np1fQK9c7gqisFTtwwuHFymA6xtaZjKIlTMB9Wx1fn5k5FJMqUTMP/OcMHzzmEr4bBp/3cGhaG7zizIl4221DOPPmDPQ3TgGsPy7q/syRtsalc/eYz64Q== 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=DePIVHClCjpAOXGADN2fMS/sfjzxG63DBLHmmkjwoGA=; b=uq6dezTEcQRkegXBUROiDnKHmpPtXulyIZiO3+UlxSG8e1UEvRnlRnQpwzugMPLXUAB+3xxokFezh1ZnO4B1XRVqnwawQ5ugu+2XnSDnv8txGi2XUM/596ROg0ZBGP/7MZwGOoFPPrGUwUFyydIqyjRhrBg3zC0Khm5y0DyMKYo= Received: from CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) by BL3PR10MB6044.namprd10.prod.outlook.com (2603:10b6:208:3b4::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.23; Wed, 9 Oct 2024 16:54:23 +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.8026.020; Wed, 9 Oct 2024 16:54:22 +0000 From: Ankur Arora To: linux-kernel@vger.kernel.org Cc: peterz@infradead.org, tglx@linutronix.de, paulmck@kernel.org, mingo@kernel.org, bigeasy@linutronix.de, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, vschneid@redhat.com, frederic@kernel.org, ankur.a.arora@oracle.com, efault@gmx.de Subject: [PATCH 3/7] rcu: fix header guard for rcu_all_qs() Date: Wed, 9 Oct 2024 09:54:07 -0700 Message-Id: <20241009165411.3426937-4-ankur.a.arora@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20241009165411.3426937-1-ankur.a.arora@oracle.com> References: <20241009165411.3426937-1-ankur.a.arora@oracle.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: SJ0PR13CA0007.namprd13.prod.outlook.com (2603:10b6:a03:2c0::12) To CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR10MB5409:EE_|BL3PR10MB6044:EE_ X-MS-Office365-Filtering-Correlation-Id: 963bf54c-4964-484e-448a-08dce883062f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|7416014|1800799024; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?yXZarYYENE23ViQv6fgAShVhmx74buB+PNsyPu8pApKxZAAYk5Zsj7QG6yVw?= =?us-ascii?Q?9iIrVU1Cdnkua3zbVnRrfqa7/ACMG955EnANZR2n8ywkeq1JT7N4fZTMjuQz?= =?us-ascii?Q?fErd+OsoaTSBBgrZjcLCnG0lwhYZw8dpW05w34GHXN93OzS2BEdbP3YAIVh2?= =?us-ascii?Q?Qmkh2Ne5wcWqdBjRc8uSuwL+TlWJm5MPh5g9OLnMa/wNQ/XolI7fsbm066kE?= =?us-ascii?Q?Sdk+VIs96eBCSv6Z/22K8+/8pOmNQgiCWsr531e/E4EIbUyNe2ruGWySqy/Z?= =?us-ascii?Q?OngGI3DmUjY7j4z5vOAivzBN3f0iDe8vq8s6fUWBSDKa66Jj9Zu7xAy+0LbO?= =?us-ascii?Q?JXYa60UH89kl31lcSVBugXNx4ttfrJt2mD/Xi1SoBvVpJuvj4p1IVmXbp827?= =?us-ascii?Q?M/04j0npKmxG7nedw+skNgD48ckFxEMGZAGrEZ66iUKgbRFDYxX9HbgqMAdB?= =?us-ascii?Q?vsVXGVLyuL9w0IQ6dDSGFBcbZQXhDo3368iHcwOxxptuAZ1UaiDqJ21DJBl4?= =?us-ascii?Q?o/CT6W+8jNJ0lgPRpLlPXmeLTWqFcDtEqNUCKNkTZ65FWUQ6gmucIr9HCWLM?= =?us-ascii?Q?yM+YfaBKGGIYZX9E43GkQSCRfyeyYp+30SFkeh4dlTNGHQ7QWcEqLBJ3wm84?= =?us-ascii?Q?gB6NbsMKVZcWXLvqLFz46LUhQS36v6wXP6yZgw7tMiQDe8Ds3sxwPpWwSVKD?= =?us-ascii?Q?ZEWZPaD3/64Mm5pSOIHCLroSF+PRN5NW6xFunbO4WEq1IFiYEHOPeGMq5p6n?= =?us-ascii?Q?lEC0NAqCrZDPFIfmfZWm+Slz+0K5ZNXqwfCSqp6kgbe8IqnqlQkRyBBSJZT9?= =?us-ascii?Q?0a/OrpLCOJYnSbh/36IkCo9vFjay7FjWJQYqlcRVm98a2GWp7VzWNlngsNws?= =?us-ascii?Q?GzUVk1adGdApd35zYXd69jD2hZrLndlVObzsRYWKjYsAJEEvcTrIpt4p1GrK?= =?us-ascii?Q?wV60WFphHJ7oSI8lsQzrHKZirfezf1Od4Xjfm/k56/llDag+sJResCg+vqUO?= =?us-ascii?Q?8LrZu5KsbVQODK+UsMV33mTlhU/6sf6OKaw/ZG8dI/EiN+RVvzTZbYRLGgrl?= =?us-ascii?Q?JW7U4JespU24UtzRR9kiQuPI2Qlgm3fiqa6uiQOvmDGneQyNYvEyqCSFHJp+?= =?us-ascii?Q?jg+wdDeJb0hqC81s7z1AqUrGV/MjkyclR2p8vFlv1GGNrDEBbuMrSOCQ+ZZA?= =?us-ascii?Q?2ZCBXP79T9awNwTlF3AoKZKPKiD7DI816dW3vLBpuy0fPBqC1RHcAzOluIPg?= =?us-ascii?Q?L0OK6ALdJivfZGueMhusj6UM6NWdjQCPIkL9xk533g=3D=3D?= 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)(366016)(376014)(7416014)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?tQG0NfG8BGkoXFSk1oRG4oDjpXi8DNsqR25SmY6GT9s20vcQninOe1KJ/ZmI?= =?us-ascii?Q?vZLhWmYCj3tzBdDaFTKNpYXBknSvnRyGYf5gqw5yfruGH+38tzyZ7El+8CYa?= =?us-ascii?Q?higFC1/7HCf6eFsUmr+HR/8CLAaPatFGLTP0IQzUuTHxOGx0b5HUwAFDdowb?= =?us-ascii?Q?Ci7W/XX3MkyiHQpih6I57RHWweldnTMlAOFlEpMJ5u0/hi7tr50qSmaeqIEt?= =?us-ascii?Q?sFXS3isQIP81ZlMZfRejCssPG6g0i3yphKBreCWhL/pOkwLUQw3VbFN1XTep?= =?us-ascii?Q?AcQRyhNET6OsBDnOqSmw7o3cKnBrY8vQfGS940Ocl7A39L0pp6pDl16WDSd0?= =?us-ascii?Q?E4hd+/lIw0neZDQprkCtafAT+58AdBpt5dYbNP0i8sRmK4n1ZHM74Nk5GlTB?= =?us-ascii?Q?MHHK8rFzrgPaVo+EaoZ07sT1ISYtQH51WsBh+vV1QSeU8BFaJKuyW5b6lvUc?= =?us-ascii?Q?ufneyGGJDxWTzKyNzD0bUyfBdKOt0s7LnG7xrRodsGGaMakoZb199LYzjgfc?= =?us-ascii?Q?kVlBd8NWUuwbDNj9J2m+E7cbkPbelV9lyqCde6afBEfMiHDSWdox8aeRsIkv?= =?us-ascii?Q?hvySr+neEQSYQFfReSvZkqW9mghquhRym2LfUxP+6olBZOmmDNu2kMizkb1K?= =?us-ascii?Q?NyBlbHRujRUvWlYiw3SGPJDgI9IxLeYaVA2heUdcSURRBfo82oJqRJgI0Xry?= =?us-ascii?Q?SZa3wgH1F4lY1HgFYn39//f1+X+THcK6zjJ4tnDC9KMsNKlHxTbnOAFklJk0?= =?us-ascii?Q?CBKSjO2V3LkaHp66woItK7ckw2G8mljRm9VSUw1YmF18ZhsqziuVBwI7mIfX?= =?us-ascii?Q?TNTjIL6WbQG/XNzkBtUYtQ924/0moGiALF17RU9OH5Qj7sndjQ2J+wBcu1Ou?= =?us-ascii?Q?T8KInVjIAv5+w1K/h17km87tZy7feCEc9Ew+Q84waC7b6SelK/SdmMIZVDB5?= =?us-ascii?Q?xNUfWDjWfVbuxJvuUzSYSvzuS0wf6qUVE3kGvbghNrozTk16j0Wz8oPBBf+1?= =?us-ascii?Q?fEFOeK9LeYIJIDFghk+VT0HR+EGyrU5WHeQkq+fxI/FJW13xdPZRG22VwMBn?= =?us-ascii?Q?2benAVht6n62RW71wImVxKsk3SVqzVurRB0XzMFUFKgIQlxVFxHc+L2g02Sg?= =?us-ascii?Q?zSI8mMfop8qRyCwEAE9URbuzN0pjir7Zp7UJb0Qq0bMLMNrPoY1SJP/4prtQ?= =?us-ascii?Q?Gu/O+sAmXNxvamONXBdCBMCz7G/NpLLNIaYsNy9KNljK5men2b6tSwSI5E6t?= =?us-ascii?Q?dUcwqnnxV3Bb7o45gKe422bVX+imuE2iQkrz90TqURv6Rq27y2OTRN4Fctyb?= =?us-ascii?Q?d5Bz6vl1H1lqxqpHvpmRteV8OhxYhfvMRrK/YaK79LRNvV1pW48g1fWusCyS?= =?us-ascii?Q?E0fpy7Nk9VqIl8XC4IjjEnb0SbsxQJFjNG/y4w3iC1yk+Xr8X9xz/qiDfzXn?= =?us-ascii?Q?FSfZWkbRCrtfPS20WpvvpcFsMpCeywoHuPgiD4XeVDwFOzs17tRalrGhM3sO?= =?us-ascii?Q?Q5c9SmrcCs9g9urBnT1DICpYFPEd7Lxt2vzRZEAQT8FFQnYSsZHhWw21nRsL?= =?us-ascii?Q?/1uJx5q+jlkDwiPboyimiad35SCzL36rOGHxtfm4V7nRMZfxIZuPH/7PCqq5?= =?us-ascii?Q?Mw=3D=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: z9ws8K9jSSHdk2YfvyE8la7nCktzsho3V4s6tbNnVK90VzSTAjiXvFliUrlYDR+aXyG/kokl7HZM1vCn2Ihg1sc9sZDSy9wb8J3I9JXIf4gXDTKHl2R+ZSt2ijzNu5e9NXyItZjjxpxkId71MRdtDdfF9q4itmlhW0LVv6Z0m0lApBY4gLYfTgX7emBWDzoPuhHmCQx2UhwqzEtzCmhB6qAjkCf7/8MJsHj4dncJCOizI36PB3lSRl9w/Bf7NYMeJ3hYgfrWyGtF4Iph5xYwS+YDfmu26qMy3fzD8WV8t8ql7h1L/Mph5dw4ioyAVP81Bj0yBunwD0GKPhmT2ix9h4z9CFJSBygxfaTAbLFyTH+mPG0Vny/PUlqVNShIko574NQCa6OPa7p99yB8NVYvBaJT//TyWS4mk+rE4x7TPGPRLNh4DmuZXiIzlIQqSMnvTszEpOmEMxh6Dy2vD/GHCjIGicMOcV1HkKguoe2C80UOoBAaeWdRs/IodWpClxr4PjL0RZNtKo3oWQ6q7AKaGn2ggOc34fQ2dnh7h8fmO2wn3MzyuA9xvdmm7hzt6x1chGM+6kfry7LASpiYvI1C6JFnThh4br8+Xsul66iqpWc= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 963bf54c-4964-484e-448a-08dce883062f X-MS-Exchange-CrossTenant-AuthSource: CO6PR10MB5409.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Oct 2024 16:54:22.2952 (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: 4dpwC0SmzihiaHcyv5slnp1zxZ1uKc8Pzw96kGwMWQn6RgclnELK9I+Q/awgm9yqSVk06ydhpSxwHccQCW7InY1RFpTaO0iZl0dXJQyNqOw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR10MB6044 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-10-09_14,2024-10-09_02,2024-09-30_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 adultscore=0 mlxscore=0 spamscore=0 phishscore=0 bulkscore=0 suspectscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2409260000 definitions=main-2410090101 X-Proofpoint-ORIG-GUID: fUKFlr4Mq6bzmDd0BSxEludXvx4MWwah X-Proofpoint-GUID: fUKFlr4Mq6bzmDd0BSxEludXvx4MWwah Content-Type: text/plain; charset="utf-8" rcu_all_qs() is defined for !CONFIG_PREEMPT_RCU but the declaration is conditioned on CONFIG_PREEMPTION. With CONFIG_PREEMPT_LAZY, CONFIG_PREEMPTION=3Dy does not imply CONFIG_PREEMPT_RCU=3Dy. Decouple the two. Cc: Paul E. McKenney Signed-off-by: Ankur Arora --- include/linux/rcutree.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/rcutree.h b/include/linux/rcutree.h index 90a684f94776..ae8b5cb475a3 100644 --- a/include/linux/rcutree.h +++ b/include/linux/rcutree.h @@ -104,7 +104,7 @@ extern int rcu_scheduler_active; void rcu_end_inkernel_boot(void); bool rcu_inkernel_boot_has_ended(void); bool rcu_is_watching(void); -#ifndef CONFIG_PREEMPTION +#ifndef CONFIG_PREEMPT_RCU void rcu_all_qs(void); #endif =20 --=20 2.43.5 From nobody Wed Nov 27 14:23:37 2024 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 592F41991B6 for ; Wed, 9 Oct 2024 16:54:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.177.32 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728492898; cv=fail; b=qyeGZvs6fzNx960oF475WaPVgBJzma4QiGzGWL4Zoidpa1vIqoNeSTygVLJUqEMEg84B8KPLs/EKQOHbmUV4rq4DO6ajhiCuU1DPVDJ2JRDa+OdSDufszg+cT5ZdSHaTk6oJnUay2Wa+6j+iUwX/dgoC6FBe/nhEtnMqqnjiV8E= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728492898; c=relaxed/simple; bh=toR+bl5Qq7yfvtID2hgsQR98EUl89J8AuDRcftuC+Xc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=AAnAeqIhIFwcRg5CNvQ2b5IRRpT8XqSsvKXznxghWptv52lpdbKD8iR4NUUrJEHKUJUhJtUCn/hUAB/emnaTkl0wI9DAFdo652XopbjgygPj89OoEPYKvCbsH3fGtMAadmYGfzCULGM3IajGdI6y4KulDcHzOesJzNSQdewit+U= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=aIOtzKt0; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=mdSdMzgE; arc=fail smtp.client-ip=205.220.177.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="aIOtzKt0"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="mdSdMzgE" Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 499GBddK013574; Wed, 9 Oct 2024 16:54:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= corp-2023-11-20; bh=qFWAOT83sccsIUzYCey1DvxJ5ag5g5q6b7wWaxbW3uQ=; b= aIOtzKt0PWQZvG6+i6ysvwwRZ8I4DkHywBSeaBK7ermgviA3YfKXAs64XxDPPHVD 8rA5zQS0o8khX57Y2JE5FydPrFwNZsURLtWfg8rcmUy516vPQFOemiQsEqfG8I1a NagcGml9SOg20eNrlYCoy/aowZwso61BdFF7/4Y1kwMazBF3icRvA7K/TqbZtKsU V7I9V6H2OAkSUMOUV9TvPZ/F4q/FX2XWHYwiT3AXmfaeD+OH1+8e2ihrFGkC2tVI x2pPya+Kk39tVvwFsnKSq3WdPag2aKL6I7d7cRKGyp61UqA71q64D871wLJksAXQ COZlPnfF2wlX0yUefsOjPQ== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 42300e0w6v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 09 Oct 2024 16:54:30 +0000 (GMT) Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 499FMRtT022992; Wed, 9 Oct 2024 16:54:29 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2176.outbound.protection.outlook.com [104.47.59.176]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 422uw8vdwq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 09 Oct 2024 16:54:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=fpWhNq7uo7SVgdPP2D8Q/lJmdlJXLjEv3oLvBC40ewfaIApzOuCKrA8GE1k/9+URlBWYQLaP0F0zdXQ5HFPUCkUZ5NdV79Uwc9k9Ury1eJV61Qh+8lzL6qyUa707RiNlG6gSsgjUBMKjpdHytX+prk9K8CxRuNJCYtVePFmVM1IdGuU7lJMtBDOOb4gKPyrLwT/ed2veDNJ92q9IERrEp0yHxMHMM65rccyaQuBASsFCnkUXtDwtXYKeM0fxnbygIuZHflu88J+qCuJfY7XMprw0WCdyIzFxCvuu+4VPBPCYyfC8SqP/1Et0MvbOwZHZpTg+iR6PrW1aILzanAeyXQ== 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=qFWAOT83sccsIUzYCey1DvxJ5ag5g5q6b7wWaxbW3uQ=; b=fuJsIpRD8LigvgHdz6x3Y7KL2cNhG6zW+fh0oTqh/iwXS420xiZCzoAlxQegi6OOeFqVi11LTyvnBG6VaSo1sjFFI5LQnXWiWbEPI5xHI8UKFx+AOUo7MRT8aqvyQxzrDdekEjCdC8LrhX4ym8qiRb8eb+u8nkwbekFT4w/2McqpZ1+8nGUDPq6nwXFXu6X3hS7snPiMcuo6BpPj/RaUM2QcMr2RiJ6jold8bd4WYS5KknYMbvJNd/0gzbSt7+AjzqZg5MBpyEPXWxyEk3phXoPGjm/UCvDyN+VraC6UBe5w/tPGv2LXmH2iBxUaZuYZn1pR7aShMWcDf2nhU37UNg== 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=qFWAOT83sccsIUzYCey1DvxJ5ag5g5q6b7wWaxbW3uQ=; b=mdSdMzgE2rkf7o9B4rfrXAsElYVXE7eneY2dbOFrUWcOGHfRwlmWQX2Th6HSxcdlvlEAjNGirHUFdrRHsvf1aNZtF+NIBg0iVYAwXkzIVWox1v9HqfoKhlMjCGBobs3zv2cwcUxwFomIPQ7VrHEdJZYasKxMBvVxsSN7rbIT/hk= Received: from CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) by BL3PR10MB6044.namprd10.prod.outlook.com (2603:10b6:208:3b4::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.23; Wed, 9 Oct 2024 16:54:25 +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.8026.020; Wed, 9 Oct 2024 16:54:24 +0000 From: Ankur Arora To: linux-kernel@vger.kernel.org Cc: peterz@infradead.org, tglx@linutronix.de, paulmck@kernel.org, mingo@kernel.org, bigeasy@linutronix.de, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, vschneid@redhat.com, frederic@kernel.org, ankur.a.arora@oracle.com, efault@gmx.de Subject: [PATCH 4/7] rcu: handle quiescent states for PREEMPT_RCU=n, PREEMPT_COUNT=y Date: Wed, 9 Oct 2024 09:54:08 -0700 Message-Id: <20241009165411.3426937-5-ankur.a.arora@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20241009165411.3426937-1-ankur.a.arora@oracle.com> References: <20241009165411.3426937-1-ankur.a.arora@oracle.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: SJ0PR05CA0193.namprd05.prod.outlook.com (2603:10b6:a03:330::18) To CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR10MB5409:EE_|BL3PR10MB6044:EE_ X-MS-Office365-Filtering-Correlation-Id: f3289a95-d118-483b-7cd8-08dce8830775 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|7416014|1800799024; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?8mwlTXIvubWjQtg9Ai7OXvzrfEc4KlSmkuLLf0gEtC69aAQrWlycgS1Esur+?= =?us-ascii?Q?zqCzJ8jRwVClcCf+2MbUANQ6TefUIg9CzWF4TGcUs/9FJH32QqeXIRlJ7hJO?= =?us-ascii?Q?sQ14oNtkHfa6IZDkIxLFt/pCTPYBfVgmpJiFWjJ/F/0/y6qVNYKW3JNZxQyI?= =?us-ascii?Q?aLxHlThl80Ww4DHd7W/ujow8Sn2v4FB0rhoAmz5+SjmCx6KXII8e0bVI3vL6?= =?us-ascii?Q?LIfM4ppS7+tP215FXbZGKQsxcK2oDYlRrmT6TCdeUHBtCdaMhngSVi3vp0Gz?= =?us-ascii?Q?rH59k0cGEsGkaw6GtjMZpZzZwnR1T1BXfaRNJs9sU53/PAbYLG6qcIhgixmU?= =?us-ascii?Q?o5yK9tcnoGVA8r/fqoHY4tk1Ts6FvzuqgH6iYxGrGRtgqgL5ha+DvNbsL4qg?= =?us-ascii?Q?Vpukn46uihkauw2nPvJMDuxTHDUVAKHUceXjO2oqOMe5Ifr/3KGG4QrLi3OL?= =?us-ascii?Q?T/IB/+P6YD2VBIgMqS3JxzmNEjZUE4hMDcA9aRt8zYNh/8IbKsFo4dMmajft?= =?us-ascii?Q?mFPfpefAS7X6rmerbFLG7Jn3pwIC4ifb9OQLwnjMtp8G5vm0B/G7IfpOQsrN?= =?us-ascii?Q?rfrFdh3tPhkSt38mJvk+qc5tw8Kg/LILQmUemoU11VsfAYvCXP3MV93HFfwR?= =?us-ascii?Q?vevo96vgv/ycMXe208m2fC7MQ0mQdKd0Z5DKApIVkRqyWXPlWoZ+4LjtYUNt?= =?us-ascii?Q?nRSritpyBZhHA2wnoiPrPJlcKJh0qMKHs6leQm+dJ+oyQhSUx6U+z9eyMXwK?= =?us-ascii?Q?IwGHAYAlD9fncOiaPyj7futNtVdXQ3ojKbJcxvafwbON0ugrTBsfKIsKh6r3?= =?us-ascii?Q?jGsJfQGnoN9OnCeSgoNQKEPfruW7FRzH489UyfUSsm16y8zy+oeUUDvGKukf?= =?us-ascii?Q?/235CBstXs22PDl+kSB27ijMJifgA/0i/IhPt2dMZbVkmSnbgYo0pZcrs90Y?= =?us-ascii?Q?MgqNsbnoZUtyZJDGvd5xir7+5PY3eWKduPntEh+9LCnThnqyZAjSLAZyuT8y?= =?us-ascii?Q?6GMAw57VmTRBdGawEgQX3xr227zJ8nm+NtU6tUVSv5nQZNL4F67qbUKRNnBs?= =?us-ascii?Q?Rd03DZgnKDlncyXgbB58hOMPtefX25AOBkDMVlfnVO4hvKU2KW7UBJ/e1NxN?= =?us-ascii?Q?U3NnBWnMMjrS8aErRzwqO+eMV6MfjPU9KN0c4r6FeViqrWrLOngEddrEgEK0?= =?us-ascii?Q?uaaPiPqeZN5b/HSKEFoiowgO6fK0RABiOmwp2CFS2dGprR07LTLRYbwPuDRQ?= =?us-ascii?Q?jR9907dQdwnz9upXr3w+abiGXXlKK/LIgIPb/DtfdA=3D=3D?= 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)(366016)(376014)(7416014)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?FUboAMXjM/9o1CFeuEPmHgScnQA2fOWl03LmU/3H+I2LZG+e5Cmz5gvYkDu0?= =?us-ascii?Q?itfbZc0+XswI3xjZwnxIB0A5v56zDbhAwPcGI1dH2dHM3RutVAAV4YG/PCj0?= =?us-ascii?Q?3903z+qcaD4Es3zQu3aDwT9Cf8WYiB5YuwNfEZfeoyTO1T07VIEBxNR3JK6t?= =?us-ascii?Q?USGjkP8ErUpWSt7Qx65F1+L5x2r9CaM8ZZIROl/YhG53vQKlrUU68uiSLwc0?= =?us-ascii?Q?j/qacpJyv1ETdyJQXBghDigIkBmVNSTiJlACyjX3q32m6UdT3XcwLi2OfVCE?= =?us-ascii?Q?GFbrJx+vuttNoIM/Z86Xd0C+t12opqJ0KyTN6C7+8PUYoMDnTdGQcs0Lp+f7?= =?us-ascii?Q?fqirL1g+E1IxcuKl9BNhV2FwbzDHtPA3C1tRrbl+VT/2mDh/ku0EDl3U+lVl?= =?us-ascii?Q?M5TaQIGrJCUy7pc4BFEyP2eY+ImqmXs/w14YOU9r+38cawwavY01iVqi7aeB?= =?us-ascii?Q?SK7qtjlcpYPI+CzzpAIy0stlfJ3qBZungMH09vMgBoIHkiWiCU0Jf3UObulH?= =?us-ascii?Q?pP9lmDnkabNGNaglkiH5OLcjK7KnYnpnso7J8POhXjgKttCNkPqvEdPA8RA0?= =?us-ascii?Q?7+NSnV0Z3KdK5XHbQgrj06925Vq88xFIqGVGZMCvTQ0wLTeSuD3UDc5HJdjl?= =?us-ascii?Q?yBq77IwWcRCOwZcw2CN8tsuFr2W5HxxH9/KV6VJ+vcnpmDxPhJBbyes13S6C?= =?us-ascii?Q?luwhwUI96+Y0Ws65q2xm+Ig9oQwasKO1SM3+29I2ZYRE3r6D6POSnINl6IhB?= =?us-ascii?Q?PYyE7Bxy5lj0O4vgD/SSBzyOEewy5vgGYdRTN9XMhNANfcElokGmQTmKJMIg?= =?us-ascii?Q?Wt7v9moJfEER1QwquOeGTpbPdfdbYPo1OA8DmuDEN/k1rjJaKz5JuAn16sUl?= =?us-ascii?Q?QZjakzAfWKJZKqr7iffGozkj1W9C1qSNvl5Mc7brhnDHCDD6UVSj/9MIgN5P?= =?us-ascii?Q?AOlgBiYBnX21rXsRMeMqGOK4lbrDdRRuLMLOUtTBcR7+vIggwfnIF9N6ER5s?= =?us-ascii?Q?Ub9NAqWWUiBbzx+FSqtaI4yvZm/fvhwqr3CoM8WUxIXRyz8zZXNf8k670R7f?= =?us-ascii?Q?LM8vNj4/DYavfZ8CXIpv08v9ce711J0r7GsNsUjpNo67SuKs4ykq7EEjx0Z6?= =?us-ascii?Q?TNkDTn5HNYuubidugaPQhD81EDAld2Zm22xWKRogmgIcIdbnwkpma7YoVU7o?= =?us-ascii?Q?LeXPboVT3WkeMubXnrmKX/nV0aKjiMTTm/3zs14F9R1mt4R2RmjgV59l0oqv?= =?us-ascii?Q?2Szb4IeVP/B/vQWMrAW3zUhFtdgZYjCOqzYRNhBPmlixHxY8gubKk/e/5VCU?= =?us-ascii?Q?AjNIeu9v5CCE+5V1iyobKdAD1wkxFeu7LOBMDhF10kDVXba8T3AtAtYWo2qs?= =?us-ascii?Q?dBCy0leoRXe4usY2j59qA5bUMRcMws0rnRer2IIoeifi+DnvAvSHnNHls8ET?= =?us-ascii?Q?npYORanJpkMC0ZLOH01yE6q/Mb4lYd24I01RnAANgYwKyJ0tx8amoo0/Jagp?= =?us-ascii?Q?k/gRkaUXYRWnInQkuS9afev5A0YRn/QPbSEgQaS0qo+C/Ow6Rivx/tADFW+H?= =?us-ascii?Q?CbObLAxTlLvGvIzjMuqAhNkkkpuPI9LY1lXVUA6aHfJetzLqRJipq5fD7J++?= =?us-ascii?Q?2g=3D=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: jZ1GpdOKscQyiaUdpc31eIXA677+wd4IK5bMteenL5G8KscEo8ZgVs6zckqKLZHBFlfQdOnsrOD2qO1H+EihYjbfSkhhi25Ba+5CeNsw9SvGNEqN7UVhxfFN9/v/WVAdUbJLUMGqKUUJKDMWXsI80sAxJUvNuyHzfYssx0mG5ghOmLcLDWSMHqmrs91sEiP/mGAZ2trgBis0KVk78wkl1ier68N5RkEI3Jk43+fsbYbY6SdhyvYXRur2zoRn24pER+eSSdKgsCtu3IA2SI3wYUEt4iPPR/QjADkFm5jEBdnRHQl5GDvyL/+2C1DXjHIuPBrS9q09/603nxlFU6t7jFHbgO3U4GdCdIuEbTjADr3u5pmDkk6n8IvYZ6hoU8hVH0knxTlkLKs+o/K0wSPZyD+nztIQTun+UQnjwGvmogtN6pYnpAoz7Ui8S44fZx/pGZ9tVyhjLIS/zF87QN1jSRKGIiO496u6/uaNus5YqWNTyI76t2ZFuHcf1rh9D7WxOPAEqs0R5U4eU1ekUQGRf/cRJ9FA2kgZ5HJplLqthIEbq33fUx9csK8+1XKauF5Bi9adjpfLwuUK+HYBMt7/oZpBV/OINO4VoJXQJXPTocA= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: f3289a95-d118-483b-7cd8-08dce8830775 X-MS-Exchange-CrossTenant-AuthSource: CO6PR10MB5409.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Oct 2024 16:54:24.4453 (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: Qy2nSsjLexaY5nFeloatVeLonRvIpm0EydxRZZTJpq+7NycXllR7tfpf41m2Pc1okWeTklk+OyKFnRbSdI0gEOcbKvaZ1vpHKDhP3bHMMHM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR10MB6044 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-10-09_14,2024-10-09_02,2024-09-30_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 adultscore=0 mlxscore=0 spamscore=0 phishscore=0 bulkscore=0 suspectscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2409260000 definitions=main-2410090101 X-Proofpoint-GUID: v-eIZZqU-rKs1AhjIBRykxjsVY5cad67 X-Proofpoint-ORIG-GUID: v-eIZZqU-rKs1AhjIBRykxjsVY5cad67 Content-Type: text/plain; charset="utf-8" With PREEMPT_RCU=3Dn, cond_resched() provides urgently needed quiescent states for read-side critical sections via rcu_all_qs(). One reason why this was needed, was lacking preempt-count, the tick handler has no way of knowing whether it is executing in a read-side critical section or not. With PREEMPT_LAZY=3Dy, there can be configurations with PREEMPT_COUNT=3Dy, PREEMPT_RCU=3Dn, where cond_resched() is a stub that does not provide quiescent states via rcu_all_qs(). So, use the availability of preempt_count() to report quiescent states in rcu_flavor_sched_clock_irq(). Suggested-by: Paul E. McKenney Signed-off-by: Ankur Arora --- kernel/rcu/tree_plugin.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h index 1c7cbd145d5e..da324d66034b 100644 --- a/kernel/rcu/tree_plugin.h +++ b/kernel/rcu/tree_plugin.h @@ -974,13 +974,16 @@ static void rcu_preempt_check_blocked_tasks(struct rc= u_node *rnp) */ static void rcu_flavor_sched_clock_irq(int user) { - if (user || rcu_is_cpu_rrupt_from_idle()) { + if (user || rcu_is_cpu_rrupt_from_idle() || + (IS_ENABLED(CONFIG_PREEMPT_COUNT) && + !(preempt_count() & (PREEMPT_MASK | SOFTIRQ_MASK)))) { =20 /* * Get here if this CPU took its interrupt from user - * mode or from the idle loop, and if this is not a - * nested interrupt. In this case, the CPU is in - * a quiescent state, so note it. + * mode, from the idle loop without this being a nested + * interrupt, or while not holding a preempt count (but + * with PREEMPT_COUNT=3Dy. In this case, the CPU is in a + * quiescent state, so note it. * * No memory barrier is required here because rcu_qs() * references only CPU-local variables that other CPUs --=20 2.43.5 From nobody Wed Nov 27 14:23:37 2024 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3FA051974FA for ; Wed, 9 Oct 2024 16:54:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.177.32 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728492898; cv=fail; b=E+/sDQSyb3rAO9Pv+MPmB2Z8Ail5u3UJWmy/DzIvvd/pTXZqZ/8VDlbozuA6FffMrzrewPCOmuTFqWY06mf4Fs4ytUmSFN2TGJHbfVpcTMIpOHMgSEoIk4GzCtG3s1/SlfUzmu6ndCT2broN8sRGfSPPnZD+LI5eutuFcSCZ06I= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728492898; c=relaxed/simple; bh=c/1eVAbupJtRXu4RcJxi+9MpewfZhwByuoXzkX2Sh4A=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=XnPahGGXI/Qk3KipTkvcSAZVs6F2mKnn+Dll+WpuoDPK3oIfhd3KiDbVhrvxZc+ZpMckM/fbfE04oiBviaqS501G2qNECfuDmkHu28JwPXk75OSvsMEGGlOCZlHP1rQZqQGuYyeimuszWtztfSCvat/bLSXY97Bkm5MBtiN2BmE= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=l7aTmpXW; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=ft50wGWw; arc=fail smtp.client-ip=205.220.177.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="l7aTmpXW"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="ft50wGWw" Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 499GBaf0013514; Wed, 9 Oct 2024 16:54:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= corp-2023-11-20; bh=rRAQgfg5a1tyY8ds0elwW6Xnqn5KrklfeoY5dztdxeo=; b= l7aTmpXWa4ezS/SYvI19nsvffhNDEwKfq4iXeUIKCZfcD5ErseCEUvBRVV9U19JX nmri4T+XcvZ1sjJCs8YRgC31fcVJ9vJDggseGYsy/l3IpGFk6MEjgusQympl3MLz K7ibrvA0chZB7tM2bU8ZqDDbjtuMHaeiai2d3IdHGfu11Z0pp+A0Zx8NJRBcrjSE 0XvWedQUzPepLt02uoLRzLKdRg7xd7bBxgKVLinoxNKuc7T60VpOOYQDWMBh1ySv ys23trrRsNRUePrQB3ffWDeYggxcEasP9pJxyAzL1w5lg8a7ZAtlSB43X+4jLOzA ITxtU18qgzPXsshsUeowYg== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 42300e0w6w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 09 Oct 2024 16:54:31 +0000 (GMT) Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 499FMRtV022992; Wed, 9 Oct 2024 16:54:30 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2176.outbound.protection.outlook.com [104.47.59.176]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 422uw8vdwq-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 09 Oct 2024 16:54:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Fir0cLzmW5YY0icYp4hUfHLDgwouks/O/3TfEinMfCpbZKPARrCYj/RM+5TjuouScZSgmjazQzyu5oj1XpuZRI1poCaYObtcSeN1hxon8Ocd4tRAHA8YMZlLxiKxSBGH7VONBdshJq1Zh2XFTexN+yK0bXbk+36WrNXKsqjUxBXHdkW1X52k3yAWakjHhiYWTqWzi4AJSwRzrui6Ga+t8KxulS/n8qAHjy3GavqtwAiP9ts7UP8n+YFdVYVuYEXmjTL0/9sBaieuEZ3zytZV4Q/CoFQyP4aVVzAUtaWLBNm77/09b8buamo8lURMse1ETkR6Q0lcR+F0A3n3fiVlCQ== 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=rRAQgfg5a1tyY8ds0elwW6Xnqn5KrklfeoY5dztdxeo=; b=KVuWhPD0iKqx0XD9LsaP+MVCYr7vpnmTnYNySPJS6wap8nM1mmomxCKdnph/tmw4UvpzpPCOoeHQeqLIvYH1kUKa7+BZqeYcqqH6pUHzmtcoAdvWHZFBawf/KaVpuzpU09B9Vc8kVvAHs/69q228fcHH7oF1RfudbD4aXVf5zK6or1vCYiGRrW8aSKC7qYQ+nZ36gKWY7mVeOxOC+Rt6Qpv52ku8GwJ1GAYRPXLLXnh6bhuZ8Ta+6rECgCi+8UdgX8hEJZfVpD9P20H9IMWTo6wHnIEv5vMB/cNvAVdhHWoDps6Gdh2PdjfOzJv70UpHAXcBJn5TuVSGFyzlkYiYqw== 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=rRAQgfg5a1tyY8ds0elwW6Xnqn5KrklfeoY5dztdxeo=; b=ft50wGWwI86LUMHy3k1Fh656FxL1EAUVFCiLHKeWgoqjBkPWC2xtUOW/sphzlsmYN6zI8G+D6bC3ASP4XdhAlLhewxd0DbIC3bE6k1T8JGoQca7QP8iaqMCoxiclOMNQ7PCE9MwSVwTT3fGGZRNx1yziJr5ti9IABHX3Ih5I/s4= Received: from CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) by BL3PR10MB6044.namprd10.prod.outlook.com (2603:10b6:208:3b4::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.23; Wed, 9 Oct 2024 16:54:26 +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.8026.020; Wed, 9 Oct 2024 16:54:26 +0000 From: Ankur Arora To: linux-kernel@vger.kernel.org Cc: peterz@infradead.org, tglx@linutronix.de, paulmck@kernel.org, mingo@kernel.org, bigeasy@linutronix.de, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, vschneid@redhat.com, frederic@kernel.org, ankur.a.arora@oracle.com, efault@gmx.de Subject: [PATCH 5/7] rcu: rename PREEMPT_AUTO to PREEMPT_LAZY Date: Wed, 9 Oct 2024 09:54:09 -0700 Message-Id: <20241009165411.3426937-6-ankur.a.arora@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20241009165411.3426937-1-ankur.a.arora@oracle.com> References: <20241009165411.3426937-1-ankur.a.arora@oracle.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: SJ0PR05CA0210.namprd05.prod.outlook.com (2603:10b6:a03:330::35) To CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR10MB5409:EE_|BL3PR10MB6044:EE_ X-MS-Office365-Filtering-Correlation-Id: 0897d4ff-f2d2-4e15-44c9-08dce88308dd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|7416014|1800799024; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?PTdjP+dl55Cw9o5s44MWDk+8vgKjbXwIl/HzLXbS2ofdfhYR/5MsKu2eAnfv?= =?us-ascii?Q?G/5b4eo5uf5CHYbQkBDAdBUvXm69N5AHocADSrUwsCiL8rINOuWvUS9Ur3Un?= =?us-ascii?Q?dMnE2bsvNTk7AOgZolAMQPyDLQTIy/w9TDiATXa0KVVRIMsckPzA60n1Sajy?= =?us-ascii?Q?69ltnaPQkEzldCuffCP4wFeyTOdmC6th/TrNF5cpFlT+ZE/NPf9EPW42nx6d?= =?us-ascii?Q?AfjGT17pd58L4IyW+MVnYGpOVPozfz1xNRMj62wKqI4VdLkulx5nF+fOB29q?= =?us-ascii?Q?kEwFIIuhiE2tVYQOZVPSVaZeCa4G+ROmJirfgFzDQSiEZ8ie+NN4le+v518v?= =?us-ascii?Q?gAd7gRTEE9ZAlToWClYFzZmaLM0sLGWf/bFYPmsOUrmcofF1Devofy4/DJun?= =?us-ascii?Q?LBdTBYugY62+Le4LBd8kfP8ohG9DBzQ2vsKSjorppxGE0NbOV0eR7wewE9qf?= =?us-ascii?Q?GDTpsrGIDdNsh7KZSREp/BtA227DlycYYleeUcN5hjyvVm9qiDKHwjwa6Udb?= =?us-ascii?Q?N3r5fKpa+C7qVyLDALpW86r8EAYSl1rz+fvUrGRa6qIL9auozxgOrKk0Y057?= =?us-ascii?Q?ui4cypY7Wdqy4w7dYTDubVnpCr61zZmmDJoeSany7EjTybeyjz0Qji7Tc/rD?= =?us-ascii?Q?BR6D5365UnztGeLLP8/Kzlo6/bRhC6081YDVulrycCCjjtMbrISrr1EimT9q?= =?us-ascii?Q?4aQzJ0YCcT1OxopuBl1FZumloTRAQTjWvBgoOQerXopMuDXyDm2ivK5Jj13+?= =?us-ascii?Q?Fwx42Kfupz4HRD8xlA0bpprc6OcGSffeD9eUTaOObomJj7vMwjbIrmNCH+lU?= =?us-ascii?Q?oSirCUXSFUC+auZeHK13UN8BWOkR+VmTX6cXX4wTTY5M1OUmGrT7L4fXkjuL?= =?us-ascii?Q?G/snV71M7/ZzvDwcGTCl/RzS94yfTAmnnWoccwZFK5luMZZF4FvH+Q8u31+2?= =?us-ascii?Q?q06rHKOdf8Hh9BiaGXqdeXedrQx1oW7XOM/C+/wY+Ba+0a7s2Aex7ZFhxkO5?= =?us-ascii?Q?MzzTANyWKqLvdrPnZZY6+Ou9kwl6VwE1w7JfWJ5+uokBCTnw2Sg/bWmwrFIJ?= =?us-ascii?Q?o7MxHqUErP+VNDS4M3zEGLRO+mnO7QmR89XpVkUNmMdyn6T6gF4P0TpHJyG+?= =?us-ascii?Q?4gh2WeE06qduvG2+PFynF12+J6wxbA8hbWkvmI89Y1pl3Uipc/jSe4sMlLw/?= =?us-ascii?Q?31SQisDFNAPYv4EtPM+wdjnMAQksrXUiDafVWGpJuQTRG4xhbs3/hT0C/U0X?= =?us-ascii?Q?LZDoLY92YkNbhkffUJOBzLabEEsl9nFUQ5pRbKhqmw=3D=3D?= 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)(366016)(376014)(7416014)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?zlX9fHI6PobPLzvlwNeasir/XkZrpHLOQKQ0xh9t+ZmgfKNHl5KV/IkThgb2?= =?us-ascii?Q?A0xXhkdksvnf0THKMakbzwUcMj024njSOflxhEGinq0RaTo6u6MYga0CgSJI?= =?us-ascii?Q?/2lA68yi9etCHO8De8yarNsUFbfEAhMUo9nWvJrd8an2E+AqxY7rKIUaKlx+?= =?us-ascii?Q?IA4By77rnqQFyGygnSt8D3YhcV+CqflGM/bGPcFg6Sq3aVF7aZd5sNJLkLps?= =?us-ascii?Q?AsHB5VXIVnmsPmBddA9ahiQ9UPyszOhBKacNMCfj+nFawEJeZkoy6VMGiP3S?= =?us-ascii?Q?OybFpopQEoC+FH+A1kTnqWxWnGm0OSEgzNC9oieWiTgvoO0nqc2PhJaPBavt?= =?us-ascii?Q?ZrsSeyFlar/vguoLXJ9AEdf4TR8q9hlcBDsAO7T3/PJlCHxuRi/0IMk4a14Y?= =?us-ascii?Q?ozxDrTHs/9JUlCTHGu6H8H+F3MgZhutxuiuNMslP5tP2PbykqLPxqyOPhMEa?= =?us-ascii?Q?l0WEIoycgIq4/NJl5kIZLFF4lLPuwd8Szpa9U1mRjyUo+cV2vF2EDtTnFyyT?= =?us-ascii?Q?/IGNh9hvrpkr/YcNQZDnbr72J307EyTAlYbDMA0zAgOUoUMj+tfXnBu44uSd?= =?us-ascii?Q?8pdTApsrzKGc8Uv0zL5HMV5C9vmle405JGUHcVKOor2KKK8VFLoj3+N2dr/D?= =?us-ascii?Q?FoAwOzmxiOuiH5AHbM83+pALOtEQfWcMgJWQgLJKnXunx3xBQbxwyLPYv/gZ?= =?us-ascii?Q?dZiIpDuGqQQwahU82UAp+rg83IGayrgMM+rWghqrwLbX9AfHChtRgu3CzRva?= =?us-ascii?Q?2doxSX18PNJs/vSeybCIzXEXD9YrT0pyh+pS+7ZgmIcKhTASeVd+dzpToCm4?= =?us-ascii?Q?idfYa/mxNbBazPnydt+jhOsieW/yqtZzb+NlvEkrTj9QX4H2MbITwwRwHTXk?= =?us-ascii?Q?50JGVWpJgbD9amBs0EsWnIezXGMcUA56rYG79q1vg1ONvlYv1mNXJNcKXktr?= =?us-ascii?Q?l01UmkRtfGSdCZ/NryWnfYGiTh/soJGTOr5v5pyOtl7qzEFS/pW+3l3Vg9O2?= =?us-ascii?Q?Cbo0M7uasY9Pt/IflVd5G2La9oMFq6UCS8CDFMAe3ZqQpbP06PrkGtPx0c+x?= =?us-ascii?Q?zGHDkk6zSGNGxp40thawlGT9g2/yHtjG4EZ8pyid2wiZtxPU0bK3VSSac5+k?= =?us-ascii?Q?RwidE4FWGxaAJ69dA4/DLFTBQwmhW5ceRFNUZbYx6M/rCqn/w5S15R7zOemG?= =?us-ascii?Q?XjukjOyq4G5XTmeBknJeTVgOA1fdDWBC2G25MbaR+JsSDzD1LK0WlFfjzA1d?= =?us-ascii?Q?95yd3cWXJCI71kzPTTLRQqbqvWiTeNpGaPh+aNR6/CdlCwutfJV0qK5UN+V+?= =?us-ascii?Q?CvK5VcwGEyV0OxxZiNkcNVGIBw6Fp21JPAPeIOsNQOM0xojoH7IAWF171cwN?= =?us-ascii?Q?SDZeplxmncJbnSPKm95izw48l0Q9ykzYfc7Xs4Ih/momId0G0pSRK+4FfY/n?= =?us-ascii?Q?GZxUvJu14aUHh099a+4EqmxUsJf4WCJP0IrF2IxY7k1tFiQidaFVkqDkrKjQ?= =?us-ascii?Q?xKwuHRejezOM8kE/FBaOB6/g03xjJ0jrNu6+Z3lDC7BrprNBo2ysKNJ1sBg2?= =?us-ascii?Q?FLfO5o5jCXrNQ5XI369ItuJD67tflXbsFByfPW8grPvvdw1/4KwO8HHPa0AK?= =?us-ascii?Q?mw=3D=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: P7cTQ+HGfYOeAM+WROH668oA2PXxyUj/PMPKnr1Oo7ydvEk0XnGvPymjEbmKIARtBpH0kjerFEGjJGqgtXoyfGbFwfZRYtxaOzBipxZa+ouBtApB9sb8rlZQMQeWaK9uPnpU+ReCVBA+K59V//IwUl5VY0s/Zel1TU3zPTXShtBKDn7tv1kgYJdo/+VQtsRCrrhe9eeKyDITdgH1Vmwm08fbXX/g4QwgqpWdS5HDVb97aB9myoeX/1zSISCI4j93PfRuFKNB45QG4pQFoP1splQ9PSNwjgK35uomiC0Ea3QNEPw8+7WO/3/Oe2v254urXqf4dW3KP2sEvGifBbnX98jDJBWP1sIT2g1FyJ/V+6y7v8mDZdqWAikcnWk/m6ojMcchHhinGGAfN0ibczEXGmD1fYKcOiuq9SzGmfDHl8ZSjQX68x+VJa5YEWe8VqZR3DzFHAfjktoZn+546FA5rud7RIv2aC6kD9EUs3qmflkPBK8XVHYMAGsijP5iu7e9uvWhasH4iQhTdiFyNvKtvz3fxwqBJg8j1r0rlXZtQ1YCMSAboq8hxTmoZncyugDOR/TBP3f5qJLv2Z9Dob6ifdMEJSL52OX+wAb5+wPPENM= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0897d4ff-f2d2-4e15-44c9-08dce88308dd X-MS-Exchange-CrossTenant-AuthSource: CO6PR10MB5409.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Oct 2024 16:54:26.8742 (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: nTYLNf+l3Xqp7J3c221ryqjWsNEjGy2G/fJ0hRGV1D9mdjoGotmm66I22DLGwzLS4+ABa9DVs3MXDphK5EIx04pmyoaSuQQz3YM0pSOA4BE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR10MB6044 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-10-09_14,2024-10-09_02,2024-09-30_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 adultscore=0 mlxscore=0 spamscore=0 phishscore=0 bulkscore=0 suspectscore=0 mlxlogscore=989 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2409260000 definitions=main-2410090101 X-Proofpoint-GUID: JjcbrITbjAmQ2UjrdhH3JgYO0_MHBSyf X-Proofpoint-ORIG-GUID: JjcbrITbjAmQ2UjrdhH3JgYO0_MHBSyf Content-Type: text/plain; charset="utf-8" CC: Paul E. McKenney Signed-off-by: Ankur Arora --- include/linux/srcutiny.h | 2 +- kernel/rcu/Kconfig | 2 +- kernel/rcu/srcutiny.c | 14 +++++++------- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/include/linux/srcutiny.h b/include/linux/srcutiny.h index 4d96bbdb45f0..1635c5e2662f 100644 --- a/include/linux/srcutiny.h +++ b/include/linux/srcutiny.h @@ -64,7 +64,7 @@ static inline int __srcu_read_lock(struct srcu_struct *ss= p) { int idx; =20 - preempt_disable(); // Needed for PREEMPT_AUTO + preempt_disable(); // Needed for PREEMPT_LAZY idx =3D ((READ_ONCE(ssp->srcu_idx) + 1) & 0x2) >> 1; WRITE_ONCE(ssp->srcu_lock_nesting[idx], READ_ONCE(ssp->srcu_lock_nesting[= idx]) + 1); preempt_enable(); diff --git a/kernel/rcu/Kconfig b/kernel/rcu/Kconfig index 1bfe7016724f..cd3148fb566a 100644 --- a/kernel/rcu/Kconfig +++ b/kernel/rcu/Kconfig @@ -91,7 +91,7 @@ config NEED_TASKS_RCU =20 config TASKS_RCU bool - default NEED_TASKS_RCU && (PREEMPTION || PREEMPT_AUTO) + default NEED_TASKS_RCU && (PREEMPTION || PREEMPT_LAZY) select IRQ_WORK =20 config FORCE_TASKS_RUDE_RCU diff --git a/kernel/rcu/srcutiny.c b/kernel/rcu/srcutiny.c index 549c03336ee9..8a662d911abd 100644 --- a/kernel/rcu/srcutiny.c +++ b/kernel/rcu/srcutiny.c @@ -98,7 +98,7 @@ void __srcu_read_unlock(struct srcu_struct *ssp, int idx) { int newval; =20 - preempt_disable(); // Needed for PREEMPT_AUTO + preempt_disable(); // Needed for PREEMPT_LAZY newval =3D READ_ONCE(ssp->srcu_lock_nesting[idx]) - 1; WRITE_ONCE(ssp->srcu_lock_nesting[idx], newval); preempt_enable(); @@ -120,7 +120,7 @@ void srcu_drive_gp(struct work_struct *wp) struct srcu_struct *ssp; =20 ssp =3D container_of(wp, struct srcu_struct, srcu_work); - preempt_disable(); // Needed for PREEMPT_AUTO + preempt_disable(); // Needed for PREEMPT_LAZY if (ssp->srcu_gp_running || ULONG_CMP_GE(ssp->srcu_idx, READ_ONCE(ssp->sr= cu_idx_max))) { return; /* Already running or nothing to do. */ preempt_enable(); @@ -138,7 +138,7 @@ void srcu_drive_gp(struct work_struct *wp) WRITE_ONCE(ssp->srcu_gp_waiting, true); /* srcu_read_unlock() wakes! */ preempt_enable(); swait_event_exclusive(ssp->srcu_wq, !READ_ONCE(ssp->srcu_lock_nesting[idx= ])); - preempt_disable(); // Needed for PREEMPT_AUTO + preempt_disable(); // Needed for PREEMPT_LAZY WRITE_ONCE(ssp->srcu_gp_waiting, false); /* srcu_read_unlock() cheap. */ WRITE_ONCE(ssp->srcu_idx, ssp->srcu_idx + 1); preempt_enable(); @@ -159,7 +159,7 @@ void srcu_drive_gp(struct work_struct *wp) * at interrupt level, but the ->srcu_gp_running checks will * straighten that out. */ - preempt_disable(); // Needed for PREEMPT_AUTO + preempt_disable(); // Needed for PREEMPT_LAZY WRITE_ONCE(ssp->srcu_gp_running, false); idx =3D ULONG_CMP_LT(ssp->srcu_idx, READ_ONCE(ssp->srcu_idx_max)); preempt_enable(); @@ -172,7 +172,7 @@ static void srcu_gp_start_if_needed(struct srcu_struct = *ssp) { unsigned long cookie; =20 - preempt_disable(); // Needed for PREEMPT_AUTO + preempt_disable(); // Needed for PREEMPT_LAZY cookie =3D get_state_synchronize_srcu(ssp); if (ULONG_CMP_GE(READ_ONCE(ssp->srcu_idx_max), cookie)) { preempt_enable(); @@ -199,7 +199,7 @@ void call_srcu(struct srcu_struct *ssp, struct rcu_head= *rhp, =20 rhp->func =3D func; rhp->next =3D NULL; - preempt_disable(); // Needed for PREEMPT_AUTO + preempt_disable(); // Needed for PREEMPT_LAZY local_irq_save(flags); *ssp->srcu_cb_tail =3D rhp; ssp->srcu_cb_tail =3D &rhp->next; @@ -261,7 +261,7 @@ unsigned long start_poll_synchronize_srcu(struct srcu_s= truct *ssp) { unsigned long ret; =20 - preempt_disable(); // Needed for PREEMPT_AUTO + preempt_disable(); // Needed for PREEMPT_LAZY ret =3D get_state_synchronize_srcu(ssp); srcu_gp_start_if_needed(ssp); preempt_enable(); --=20 2.43.5 From nobody Wed Nov 27 14:23:37 2024 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 72CF41E0083 for ; Wed, 9 Oct 2024 16:55:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.177.32 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728492903; cv=fail; b=jYGPuGs9XqYdDDQ55Obc8JDF4gJ5mp+HuSXGC+utwQwuqTtJhiwwKSsfY97k4WQyZUEIRm+om7QbAuNuMPvPViEMdV4I7DE7pUQrPv84m6i4ZJUJrUtxyFbhoW4c1/h7Pv3hA9x06TaOh8lBEG9mVNB6qgsvXYSi100uruoF3lk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728492903; c=relaxed/simple; bh=Y0P3ZuCmfVs1LGk6YGRo/53CfYDQ11BB4V9FM6GHbYQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=gtmWpLwZwjd4GUOdIZqSQ/MJZ+q8jX+vtotdOJKq9iMHAuvW9wjjnSycGv7Ay01UfUpxnnqPLMyGkhCEq6Ort/5VBI/uk2u6Rsiv2EGOKjpmv/VoOr+3JiZNh61azZeHpz2zN1kz2JhckjbyEEsDdpKfeAXQfHR5ZaRbU3jrtNA= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=T8OZAbqj; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=BfX+KVM7; arc=fail smtp.client-ip=205.220.177.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="T8OZAbqj"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="BfX+KVM7" Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 499GBZX5013489; Wed, 9 Oct 2024 16:54:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= corp-2023-11-20; bh=R3I47lHBInlJHDZ+/y8tvLiaCauJr76ohni1ibbPLuI=; b= T8OZAbqj0zqLnVkKNKf24MevEree8dlSZ7iOC9dPUIdUvfrMQblhs+CF+h0ekGBP bjMbNKDR2kfqKQScC3JNWa6Tawc+Eh+7LPBcf5tJrZcPuIcIUTgNcjEwzQfW5s0P vZ4glOZYZNaBcLRGeVSmFaEosPJk/j5u6aMtp/sASephlLwMR348EBVaYXXQjyjj huM8lVsmIO5DHG6VP46vqiq8CY7ohJ+6ui7VQunkOYvkiTCGGfZ4hIVVdwTVzBKq H8QqhXLCZTmqOlKCsEPC+R5FhuI0sYO+wy42XQhNuCzJ3/qStXKQIs3aeFh0TpJh bFqoiv+SHAj+gD4F08kRYA== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 42300e0w73-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 09 Oct 2024 16:54:35 +0000 (GMT) Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 499FedFR022916; Wed, 9 Oct 2024 16:54:34 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2172.outbound.protection.outlook.com [104.47.59.172]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 422uw8ve1j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 09 Oct 2024 16:54:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=UeTgBKEJYyHBNHDiJ3bgJZ8PWDlJ7vPrGlrAv8vPaQyyAG+Qgfv7Mc8I4BOcjxxEp2iUX9j7itFJWmSB50TFRN4zURt6Glr+tQTl3noYHBjAoMmnVlVTPh7veWdqOGCs5ClV6MHQlvpEbsw2CIXX2GJvhJFeubNx9hvhUJbnWmlhBhVHzEiu24m7+qAlksPL9ftWsFDhQ7pR7LMfdt439zPXpn7ZO8ZLd8dfQN3L8ZSiSD1cMSkueXSgtYnUHR9MiAlEzj8hei0FZJaiZx6tkQhow5W2sWDhGlH0u8Ba0t0m7kQX91SsU9iIZF4LMHRglc+Tkoekn7CRJIs+RjSIvA== 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=R3I47lHBInlJHDZ+/y8tvLiaCauJr76ohni1ibbPLuI=; b=jawfpqCmWo4xz4W1dai/gUne+5C1scwbfhmMgBQqquo3N4h/pIlM9dMpiO0RepMOGxOaaxPlyajaQE/7RVmkLBaVOX/KeZS/vY8CKgDYenNN4aS1LQNSTpF0YAqn4z0KXVEHqpiQF6revLo4wOgLVBmoRtZST51BzUFU8QpFFWRtCIjlZZlcd72AzethxmK/F56FVGtTB/coU81GKZLGAH05yfy2bhM9BTdRF1GoSpdJnmmgBxpRJKtzZkeg5AakmyR4/uRpwHANRcbmnR9ll3yhoyP7kaLH3gjbM5bhdZV0c2I4y62WwXR/auuzTfSH1n2VFWwQLtzlAKioTKbRYw== 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=R3I47lHBInlJHDZ+/y8tvLiaCauJr76ohni1ibbPLuI=; b=BfX+KVM7gPScrOMXnJXS2D7evjok8V2wts4BZCAxmBXuw42fYMRegJFdbUO+zMR+u3NX/AeExH6nDTT2GBNqpGrTpCdoHCvj9mZzZArZhaW3xPOO1SLVY95vGakiw/bh2BXIIcfWgeHrbOoAwMthtgD10VC5FMfpdEfEjc/gxms= Received: from CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) by BL3PR10MB6044.namprd10.prod.outlook.com (2603:10b6:208:3b4::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.23; Wed, 9 Oct 2024 16:54:31 +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.8026.020; Wed, 9 Oct 2024 16:54:31 +0000 From: Ankur Arora To: linux-kernel@vger.kernel.org Cc: peterz@infradead.org, tglx@linutronix.de, paulmck@kernel.org, mingo@kernel.org, bigeasy@linutronix.de, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, vschneid@redhat.com, frederic@kernel.org, ankur.a.arora@oracle.com, efault@gmx.de Subject: [PATCH 6/7] osnoise: handle quiescent states for PREEMPT_RCU=n, PREEMPTION=y Date: Wed, 9 Oct 2024 09:54:10 -0700 Message-Id: <20241009165411.3426937-7-ankur.a.arora@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20241009165411.3426937-1-ankur.a.arora@oracle.com> References: <20241009165411.3426937-1-ankur.a.arora@oracle.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: MW4PR03CA0213.namprd03.prod.outlook.com (2603:10b6:303:b9::8) To CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR10MB5409:EE_|BL3PR10MB6044:EE_ X-MS-Office365-Filtering-Correlation-Id: d29f0e0e-c8ee-4520-e284-08dce8830bba X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|7416014|1800799024; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?wvCuVFLOSzBlbAAGGqfuT0VTmqqaxSbZb8yScJzbzyAYWwDdk4vZ8e/xOrrv?= =?us-ascii?Q?yyvJzWts4KwY2IxqOes+d0Q4UlsbY5A9IHcCsih4ZpUA/sIDo4ELpM7QA3zf?= =?us-ascii?Q?WTZxTcsxnEswnQG7+TSnAdBMINRtrEIE0OugIE84Vu+BBoCTcRadnIDc5DrJ?= =?us-ascii?Q?gSu0rTKgyWXTOVP7gbqZ1ero4X7qnApaCnmjSOWKr9zoWZzAUgsyZYAFHmrE?= =?us-ascii?Q?bQgAnZa8a+nzwepVO9En52UF9tUXMFa1INH0Py568i78vtjf92vfKH3C5GYE?= =?us-ascii?Q?T0ax/HkUoLkxrcwpmJpymU5B8fO0QW3PQx1SSe7voT782sQrkiFDA2Z/olNq?= =?us-ascii?Q?/OP+GdgyOEekewltqABN8EuPBvgpRYqkZOxUNOF6ETTi/uaZfx1IYhPFhLUp?= =?us-ascii?Q?u8F1dZ6niWfXvRDAxSW4zprsK4Hy963wOYxn8vNfovmcf4AciYWmBGpiy50c?= =?us-ascii?Q?QV/srRo3/YxOmlHzANiWuC5DFsN8sTWjdtauyt+Fml/p0QgY3SoirTUkHmVJ?= =?us-ascii?Q?4vS5V51kjxwI9PQEsQ/9GDAsGpjqAzSbdwtxu1+slnMTbWQB0X+Pr1KEC57i?= =?us-ascii?Q?WPSap2ZCriLJbnfqJ+UrcTzozYoS9ii2boI3x7Iv1E3Hd9bdtlZYKgxPmaq7?= =?us-ascii?Q?ZjnOjUONDX/R1BdtU9FR18mJwY0OwtukJg1fls5h0G5zp/LZ6cw4Hg6zGPz9?= =?us-ascii?Q?8x+A4zwihaDLGy2un109ODToXeCjFPVzcWfK4ZtTJyhShiZbHRbW0UR77u2W?= =?us-ascii?Q?LCAuREv47NtdjbS0msMWVoKqqjRnsrLMfUPqsjvY3eZIrecQzhI2KoHW0YE9?= =?us-ascii?Q?iXI9ZSW4Jvutftjj7zJPwJsN84mdwBGhdcxCpK+CQT8upI9mVpeneWZXvrKW?= =?us-ascii?Q?IzYdE0Qf3GHJe2vgMEobJZAifE/sk0eMZMZyUxtfdSEgxw2+nhErnSzhUSD/?= =?us-ascii?Q?qvknXmPQRQsZEBzyA0MWCgBu4ko6S2SHSxzFCiqNMFOclqkABppKpgwFaLqr?= =?us-ascii?Q?p6dB1ic2aii69DgBu+QC8QWYAMAhXz3IOiTJWe23Src69tdxaUXSuIdf6K6h?= =?us-ascii?Q?q2jKnOiPlan6oSBplZkl5wOWMxhCXSA/RGLVIVIKXHbfjqQqo/P98Mhw/70r?= =?us-ascii?Q?Je6mCzVOngkZ2pvi3r89nIhrTSTW3I6Wl0lvZzsPXt6STwgMCHSmR7uUmMt3?= =?us-ascii?Q?jb+XPB8N0iikp5NqVYbggxnmFmyXUE06j1OoNcK+areY0dy5eWhPuLlA0dCV?= =?us-ascii?Q?4JsLno48D8EAwfcyprYrHPiJsIhebZvxnZ0sFlkNYQ=3D=3D?= 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)(366016)(376014)(7416014)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?/ajbGf2rkip6BNmGmr5bYRGLpfRm5fFFGPNslf+Faea4zVvK93pdzxBlEknY?= =?us-ascii?Q?xtek04HHtFE4Mekhrp+Sd/bsRhdzAGZNduAITXYHsXVk+9X3O5iH2bDOHIek?= =?us-ascii?Q?VwcrVK4hi/1sP2K6KGBUH36MSYlGxXBbg5dZ3Hi/rqUy6iFLbN4Yu8UXBp0t?= =?us-ascii?Q?wHhkF0grNgEd5czoKSawygUYdR8Z5mqq4qN/6YbzX6AJfVVmqzbRhL0fmPsg?= =?us-ascii?Q?NyZv4VIyx455k2HNMoEfoQ8syB7k9CLGv7OuPz9K2k39vu7s1bFN/nXUIX3P?= =?us-ascii?Q?533xUZEQVhm/HrcF2c48FL7yOsa8kGb8VgqJWe1HGWWeSEIu58HgYqZbF87P?= =?us-ascii?Q?WtGwNCI2e7rZoSVj/aTuyrYG3S6BKZdsury9TV36telTg8boyOFlERj5odlk?= =?us-ascii?Q?GrKkMfJutg+NlB2X17qI1lbA/oi6mf3N7rWaD9CJjGRCFBYlDaEB/BddcLjo?= =?us-ascii?Q?apiNSJ5YkH1E0XyKzuw5Afg8O+XmPsE3Hjb904mO4YKLabOg22bT/4LxciJK?= =?us-ascii?Q?WgBxqYFfDH9W3a2aVMHxRhT1UZGQ850FSKcuhH37T5j3zahOf61VwJSoMxj3?= =?us-ascii?Q?Lj1Nb1n9YtdtnESsRYo0XckDYOXE5/Y/zn5g8CYpfg8HWSwQnKMetSyRbe8u?= =?us-ascii?Q?V94wmFOFLiFCveahOoROZS+OGJXo/aPuYTOy5zTiYE0iMAKDKPrXxhRe74XF?= =?us-ascii?Q?u02vbI1PUXN/nyeJQJ+rkby2wWB3Nz1c0Co8tB7U+Hf6b9r9yOYPdjIq1yXd?= =?us-ascii?Q?wGV++pO7HZrUTHyJ2AmY6WfyFWScXa++bId02BtZDoCuhzij0djfxXkgRCzJ?= =?us-ascii?Q?nicpTjQn2waiUkwvN7uavUS8brvH+EXYgq9c4GPBML468xqNbelBoZE3K85S?= =?us-ascii?Q?lC1yKo1fqd2Uc1mvISGhBYd8IlOwANCyic4gNTD0iKLkR/O824a7Ht4FVOVb?= =?us-ascii?Q?7SkvfrqFKHd2fg7PZNOtztkjIFSVG8f5jxl8RVMHxHr42Y+j+8MD/c0RHMsE?= =?us-ascii?Q?AyT3tb1w+1A2N5vPWcnaUENe6gW7o+Q/VpUi1r24zsR2Xc6ACx0cfKv7ThdA?= =?us-ascii?Q?TVCJrvCl/oIYTDGkD0d/6NObhfMVu0uMtcJ5JrwCaERjFV8Ckz75LRMfXtKY?= =?us-ascii?Q?pwhO1nmZcTqaEpW8ywt467taqdiOCCo2kX6hgJNj6w54MJgjU76n36Nqq7y6?= =?us-ascii?Q?FbCf/2QEz3CduHYWuHBoEYtSWEkDk/KrkvdyfbqYgl9SxiTEVOa/3GsFejQq?= =?us-ascii?Q?carpPi7u18KQZsU3rWzYo/ufsGa9UxZ3w+o1vmB4wx2Bkq3b8Xtcd452aqRm?= =?us-ascii?Q?nFyiNABo+u94zBubhq1NwK2ua74xxgYcfC4AKj3PRYhFAonHkpfeXyJR15wP?= =?us-ascii?Q?McU77a89m6cWptoXiwwnudqBGAHC08PXYuP541ZaK9LXhNvFZXthecd2f5DD?= =?us-ascii?Q?K6zFyJdGvI6AOST2S/oOijqbaJ+4JI8bWo6eAZZfGg3TTHxYlr1/VzM3zzSL?= =?us-ascii?Q?POnN/jv2DzIYInwqSDmwgeiTI4LjLoxl07jSLNqadnO89NhrJSn5UDTYSLNm?= =?us-ascii?Q?PryrJ2z98dEvpx8TwraGozyXJHGGv8cPlpGwXT27vBDTzCdGM47ntReaeIJp?= =?us-ascii?Q?0g=3D=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: YgHl7x71S6uZYkH+AqIIg9hajlAgFriEU+Viy+h/kxSClnbSM9hMbmN/TsG34UNw60jg5EQZVZAXMZjPmgghnxJrYtNpMGdh/RPDFD8Df58BltO0QBveovsz6IhfM9PTKPs7a+xGLu4S5Xauzey/zaxIIzCePfTkOf+vgIfGURqxOt4JSrxK59exCCQpGoxVTheKpAoF9tBawHipTo2Ywkgn0UhXZOO1zSrZUenCSL8MKaAYbkFTe8hf82hJq6FKI3XgPP2f0Q1ZL5lffpMIvaO0x9v73MfbEbmIRSLyY6Y5DNKB0OVtqcwRSilLCuAEs2fjVMu+bVhAMRnCKALhXo1TQge+RUgDwTh2QD3MmJRacNlcZbH5erXk5SHWj2IepkPw6brp2vvW+z29mPXNbKxg0aldGcshco1CBo3KCrQv40i2+siSS1n2UCObur+JWKf6ALO07lsTc8VxxhGxulcW11cYpD6UTY9vuqAots1SMqtmdbTJlJ+UXwc14p191cww5Ox2PFuJfb17CtjpUxYWJd9eEuHZDgGWlBNyY6TX1e0ey0KB4LazSWRELXawenaYyDzFS4qk5KjpnjsY+utFbPhYt8Khw/rC5aitH+M= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: d29f0e0e-c8ee-4520-e284-08dce8830bba X-MS-Exchange-CrossTenant-AuthSource: CO6PR10MB5409.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Oct 2024 16:54:31.6052 (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: E/2C5BOCK9JkibWW+O6ulytN+UzaUes8m+bSEhTbRW/VRGExHpHRdlk2dT/7ZOP03imqFP9J+wGANsB7AIB1838o1qXLTGKCzd5Mjfroi5g= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR10MB6044 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-10-09_14,2024-10-09_02,2024-09-30_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 adultscore=0 mlxscore=0 spamscore=0 phishscore=0 bulkscore=0 suspectscore=0 mlxlogscore=964 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2409260000 definitions=main-2410090101 X-Proofpoint-GUID: bIKX-hNc0Dh-n-9CNF4EvkZKhHBlvBdJ X-Proofpoint-ORIG-GUID: bIKX-hNc0Dh-n-9CNF4EvkZKhHBlvBdJ Content-Type: text/plain; charset="utf-8" To reduce RCU noise for nohz_full configurations, osnoise depends on cond_resched() providing quiescent states for PREEMPT_RCU=3Dn configurations. And, for PREEMPT_RCU=3Dy configurations does this by directly calling rcu_momentary_eqs(). With PREEMPT_LAZY=3Dy, however, we can have configurations with (PREEMPTION=3Dy, PREEMPT_RCU=3Dn), which means neither of the above can help. Handle that by fallback to the explicit quiescent states via rcu_momentary_eqs(). Cc: Paul E. McKenney Cc: Daniel Bristot de Oliveira Cc: Steven Rostedt Suggested-by: Paul E. McKenney Acked-by: Daniel Bristot de Oliveira Signed-off-by: Ankur Arora --- kernel/trace/trace_osnoise.c | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/kernel/trace/trace_osnoise.c b/kernel/trace/trace_osnoise.c index 1439064f65d6..4f4ebf3f15f0 100644 --- a/kernel/trace/trace_osnoise.c +++ b/kernel/trace/trace_osnoise.c @@ -1538,18 +1538,20 @@ static int run_osnoise(void) /* * In some cases, notably when running on a nohz_full CPU with * a stopped tick PREEMPT_RCU has no way to account for QSs. - * This will eventually cause unwarranted noise as PREEMPT_RCU - * will force preemption as the means of ending the current - * grace period. We avoid this problem by calling - * rcu_momentary_eqs(), which performs a zero duration - * EQS allowing PREEMPT_RCU to end the current grace period. - * This call shouldn't be wrapped inside an RCU critical - * section. + * This will eventually cause unwarranted noise as RCU forces + * preemption as the means of ending the current grace period. + * We avoid this by calling rcu_momentary_eqs(), which performs + * a zero duration EQS allowing RCU to end the current grace + * period. This call shouldn't be wrapped inside an RCU + * critical section. * - * Note that in non PREEMPT_RCU kernels QSs are handled through - * cond_resched() + * For non-PREEMPT_RCU kernels with cond_resched() (non- + * PREEMPT_LAZY configurations), QSs are handled through + * cond_resched(). For PREEMPT_LAZY kernels, we fallback to + * the zero duration QS via rcu_momentary_eqs(). */ - if (IS_ENABLED(CONFIG_PREEMPT_RCU)) { + if (IS_ENABLED(CONFIG_PREEMPT_RCU) || + (!IS_ENABLED(CONFIG_PREEMPT_RCU) && IS_ENABLED(CONFIG_PREEMPTION))) { if (!disable_irq) local_irq_disable(); =20 --=20 2.43.5 From nobody Wed Nov 27 14:23:37 2024 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8AA7B1E008C for ; Wed, 9 Oct 2024 16:55:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.177.32 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728492903; cv=fail; b=cYAySvHLE2pon2Dmg6ldyfzrVwim3Lo3krVHu7lz/UjxS71HFpZeoezIsWamiSMlinqkg4MI8E7isgRX1psZD4LHPm0tfuhlP9inC1KMunywxpIXFHBB7J0LarqRfAs3/dsZ4zZXEEhp/kfn1VJkOV5O1O3C7cIavCJWqb5G7TY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728492903; c=relaxed/simple; bh=1YbLz2fypZqGXkATx2cckN6wu2rN4AkDYvJUBA0h9JQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=fmckSq5tLOOkydoySoNFWGiy8fmv8mm8F+i+JR36/3n2t7DOs/x0oSj+UUk5MpX3Qg2n2vsGV+H143a+DTl46Ubl0negp0nYkGDV38M6rANMuJa+8zBw1/dm0csQ0nfGSL/DX38utLsv7uOC4CalucoQwJodPb79PukOSYyvCVM= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=Mzdv9wSb; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=GR1ZJxt6; arc=fail smtp.client-ip=205.220.177.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="Mzdv9wSb"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="GR1ZJxt6" Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 499GBZaI013508; Wed, 9 Oct 2024 16:54:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= corp-2023-11-20; bh=unuUoaUpkVYJi0lH9537P+r5+dXAKp+PWiwYPTCN6UA=; b= Mzdv9wSbc1e/ATSR38D5g+8HCA7Lrusn1H8x/lbaE11aj7hAA6hTp43/TGWto3HN 3ffev6mY5mpiWTqKjUogugUqVBG5LmPGWvnu0nF3uQK3zhIvzZCZkXOwA2PJP+Oq yoj3D8RTPsdEio5c56fW9KCaMzFsKua6OQNzZza9Jvja8e62Ow0E1JtSGu9NDDgy sEzaQrNNRdW/ZGpkLmQmncZ8agfr9xoYIsjLQebJnwRastNiPVlM5wmaWyBRysMb EOhrRaeIJgKVC//FoOv36WFnN1ShWnwepvOIikOWDYcXYE2PGl+lau3gRFQK93xs /yDM0OXelKTen3rG9ZcKMQ== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 42300e0w75-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 09 Oct 2024 16:54:36 +0000 (GMT) Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 499FedFS022916; Wed, 9 Oct 2024 16:54:35 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2172.outbound.protection.outlook.com [104.47.59.172]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 422uw8ve1j-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 09 Oct 2024 16:54:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=oyNOV8ztWH246TxWapU8h4DwI7/mQxDq4OuFuqluflwgV66FEQtZCbCnT7tHl3a+WNBLqCRfJQC66ps4zkjOJ8DgbNLPfrC5KtIdwyr7xvgcd4lxxHquwry6zBSYmDHclh90H54x4Ot9NrL458b1i+o6S8N9tJDRZKo8L3Tz560TDZYofYL8hZWYnbjcG3fkIlhHjbcD1X6d6j5BUPnb/GZn+6YUtUvY7Uc2Chhhe0C+GzdfTL8zrQok3x9hP0cbjHF6Vh0mJUSrpqSxqc2XIXjJ3XfUrI2uzOUHcE9wj07ItQGZ08D+d0uREN6UIFezPuEuyX+IpUHXxb6EDTzBCw== 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=unuUoaUpkVYJi0lH9537P+r5+dXAKp+PWiwYPTCN6UA=; b=xl7zbIOcjD81PKgIUJhhqm15qpB75t/jcKDZdyIelFIgOAZO2JPNOiqnlaEkf/byn5xu0xTz4h2L90PFadqhhqK22vJTBMDgf4X1RzgvmZBnq5yf3gDYJG+g/d60dnKYqb7pWSpQv3NYBU1vPe0TqcPGKuN/bSn/a8eL8Ne2Z94D6nMUq0M1qd5NQh2brHglk3quQSbkcWW2G2TbQ9w+x+b/IVfdekaurm4jOZNYjsap9+zHYZSVO3/20ONPeHpoV4FNk2ELP7rnf3UXZa13OaPeGBOaCnsyR0kqQUE+PrGMSjSw/dXpqRW891uVTiCt+Xq/xLef8NRsS7CEw/0gEA== 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=unuUoaUpkVYJi0lH9537P+r5+dXAKp+PWiwYPTCN6UA=; b=GR1ZJxt6Z6Z6/XzQUD3VxCV+CeVGug6lIBIz3ropN9cAeUwPJmWmLfwq6SsuBsuT+zSLd9GYivFBBn0akd4XvV86XYW2bQAXylOz1DyTAusN+L6HdPAqwK8snVB6XabRnixD5Yp/XETnn8OoEOwBVQqAP+0O5fw5XUUFslG9+wI= Received: from CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) by BL3PR10MB6044.namprd10.prod.outlook.com (2603:10b6:208:3b4::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.23; Wed, 9 Oct 2024 16:54:33 +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.8026.020; Wed, 9 Oct 2024 16:54:33 +0000 From: Ankur Arora To: linux-kernel@vger.kernel.org Cc: peterz@infradead.org, tglx@linutronix.de, paulmck@kernel.org, mingo@kernel.org, bigeasy@linutronix.de, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, vschneid@redhat.com, frederic@kernel.org, ankur.a.arora@oracle.com, efault@gmx.de Subject: [PATCH 7/7] powerpc: add support for PREEMPT_LAZY Date: Wed, 9 Oct 2024 09:54:11 -0700 Message-Id: <20241009165411.3426937-8-ankur.a.arora@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20241009165411.3426937-1-ankur.a.arora@oracle.com> References: <20241009165411.3426937-1-ankur.a.arora@oracle.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: MW4PR03CA0234.namprd03.prod.outlook.com (2603:10b6:303:b9::29) To CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR10MB5409:EE_|BL3PR10MB6044:EE_ X-MS-Office365-Filtering-Correlation-Id: e28a837b-5985-411b-d73b-08dce8830cc5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|7416014|1800799024; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?qgcjEIT5N7xMkOvGdqDwj+hOOQLNoBdNgCCHuu/XMXCBs+sgX8Gakt0D+Spe?= =?us-ascii?Q?PklygFTHhzfM5yv/uMRjQ9oyj3ABBeGMwJ8/fKraPM7YtLpmAfyzj1m34tty?= =?us-ascii?Q?Vt/m2NTaFOaWYwxJC4VTho8IPK+h8y6NIUaAf8fHxV9Gng2Lj8Tf02QHhmkr?= =?us-ascii?Q?665xnQpZRBSlanPEaSCgdGzONI0S80ELDWXla9kkxYSWric72jkxXaWJhzf9?= =?us-ascii?Q?FgrDPMmiqzPkfjeQCwGzB5v9X7vLoAQhu2B5DgXekGfFfQgrM1/o7mlA/3XU?= =?us-ascii?Q?iLXOeZU4ETTVDBN1BvBpIUPv1lk9HMXbYxzfvCovru8wIm98cT7ouk0+3gw2?= =?us-ascii?Q?UFPimw3uCAgIKKmitS+L+L6ZQUofVYak4xf1k/Ge5IP8P/AogvsORq2dhntw?= =?us-ascii?Q?Iwce8tPF9KtvVX9VSGRT7r7vfGtFNbF5Nz9A9EWEn77f6DyT+KTJKfW+dYuS?= =?us-ascii?Q?I/8Y1sqz/8XSUDNnaeVg6yBy/ugcJl3G+i1LtMChwkZgHs+B4xJ0jPdyYBMI?= =?us-ascii?Q?nmITzICKvFggYeSEkDomI1OfvZKN9zBZBJv0DFUC4ndqZPX/RipfBiXcQYBZ?= =?us-ascii?Q?cn8ZSuqMlu26Ijf+SAjFXtsRFXlc/ezWHtHa0kgMl3TqyKx9x1B2wC/IxB/5?= =?us-ascii?Q?8p7cHpQEZ1ZgeppIXypika534gNyup+A6VaX6sG/SkYITYdEXFTYLbEZy5i8?= =?us-ascii?Q?S6x1DYcLFVVwVL+QWhWW1i4TIZB44rrlYvqbXsBfMSlAX8JyTbCYX7ouKiP5?= =?us-ascii?Q?8SrNYsS0909f8Gdoi5EX6FfQGiYK72xwR6teDnRBEPtYJjyGLzrdv+dDmmLi?= =?us-ascii?Q?bb3tnlLOiKFYFweG3Iu1tRXTvEvdPXqq+tAXwQj6eDD7m/KvEBTkyJIHSNDH?= =?us-ascii?Q?x+KeCJoRxkiq+Fyxc1gZpTnR7sZtnAa1ehIA8vqk20SZ9ewF/eOCdY4yiIS1?= =?us-ascii?Q?/GXA4w4JK8LxU8Vr7mrcAatSt2xm83daXrUzaSsd2yQthvFvrUuI3K5B/iVk?= =?us-ascii?Q?I8+hN8Ahl6yl3udzLEhCEUpsHmQQbSxk7VQAgc8KvM8fDWNZyOMTEmdAIc6R?= =?us-ascii?Q?ncpVEHW6QNjS61e1sTkpxApQErcSMx1QVlN/bBUcvW1PFMVsBdi75jKuMaDM?= =?us-ascii?Q?Cl+sCJmFG3I+ZCz8IK0opxEQ7pdqsk2G9k8mmAD34JIAr8jJL1SEQhm3NX6U?= =?us-ascii?Q?DnK61jurDTG1GkjV44jQA0VNAjp03YKYuD7QBeEOKiHnYDBNJDu8IW2b09RF?= =?us-ascii?Q?5J7mkbEtqa5BwbFJiEO7/PGmHvuybVu4HjV6KstpOg=3D=3D?= 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)(366016)(376014)(7416014)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?iGV8RHHzZ5FDjgky6MkQTcWGu+Ib5g2yM9/mwyq7mcA+0XdQ+zrCrw4v0Zfu?= =?us-ascii?Q?DM8eavxuDvL8JvA5VDFSjE8AFWgWyVc0p+bvWDjHOt+l35OK0HhTTK9ayv06?= =?us-ascii?Q?8z62SgJE0WDdxZN0uPjol81mTMt3NOSZS7L4qi2rvBdNyGFP00ZtNQ/OaABs?= =?us-ascii?Q?PRwjfCTXYJXhrT/QYEXG5yFHr9Gtrp0I60OXV6hVBGfK7+QUhqVuCTboF9Bf?= =?us-ascii?Q?2OW3oSIifIbUB4ygiXk2yj3bLwFacN8pxjqMRqYyMyqnOljOtSYHj5qj0E/x?= =?us-ascii?Q?jqJW30DfdB2GtQfzvlSKt/2RzE7o0tzuBIi0l6sAfNfs16UvXUtUkof3QCdi?= =?us-ascii?Q?VlUAYWPx+warbqlHcApE24IT6CSV32BOVMthbXY90z9ML6VCVGvioDW07jbx?= =?us-ascii?Q?93ycFgkn8j5BY0uCLu2DcnYLCz1D2hd2wCH3AL0e+qKS937RutIj1xL3YpmW?= =?us-ascii?Q?bvgZgzNMZaiaemrTDasFRgH2J4Is/FVC/NLjZ8dvdjBp8bsTmeC/gcVSmY8A?= =?us-ascii?Q?fFnBW1I70ADyiel/JPnSj5fe6VvwA/zoTwX3pFKI4YF3QbcvfIQSB+H9yIEf?= =?us-ascii?Q?3Cc3wkXIUROjConFDbdZFp10b8Y+4uCq80M7bQQxDBNJhGqoPZY0tXiSf3nK?= =?us-ascii?Q?DU3zti36KP0th1nh9rdR6W8JSBeYImLZJgQGD+7aNt8atzdebaPd2LTDMzG4?= =?us-ascii?Q?/o7AFez28IHkiOcLp6uOCayTNQIdk0wvNdFxpHVruEjrqsuXa0pf7+cdC+9N?= =?us-ascii?Q?p685xtaGHWPwvU1r4xjgq0k5IPg7Rg/ctvwykzZT6VdR1t5uelN7eyZ+1Ol5?= =?us-ascii?Q?qfpZXy3jjZRnJDE8plutPQxGGJwiDkY8ckimFIQxk2QTLo14fyIlHB+2dqXM?= =?us-ascii?Q?Wgrjm/334hMzRe8XNS9OZXAMbML2+n6ggKMK70hj6nlnLvJhS0M+I30MOtd+?= =?us-ascii?Q?Id2GK4i73FyGjBHAPD6V4DjPBdK6NQubuC0Y3ULqwXzwzYDTGGWX+i7NFfzR?= =?us-ascii?Q?owRwLY2ugc6O0w2LQgEuhqmYAiQhq3595TfCF2E1Mf6q2B5kMrt9gWDfv/XP?= =?us-ascii?Q?wvylzU5sYPNpY1odyPO+xSmIEJu8hUqACH9qzAhDSuKPyuyYmcVqzFYHCVCj?= =?us-ascii?Q?H0vX29ggImCv7yPPuPCpkVZa56U021Y27XhhWMHH+4uid66e/DN+cVK491TN?= =?us-ascii?Q?gLIjUM9SscJw1tCCRFvUfZya8JV89xmCuJtLpQB8RAuc+RBQXEbQ6KhZSZiF?= =?us-ascii?Q?AvBb+DZ5yeuDE0pIEdaKXiJ2b5wN8swc55ab2CYFLCpimj+XWq3b+1K4/8X/?= =?us-ascii?Q?3crP+A3BVmLzFENruQtcFEOMydtFMJs4ucZuiiIjHCXKd0XFaj+h5b0No2rm?= =?us-ascii?Q?R3kGnr7UspEcu0Ta4fIwUwbgZMND9Dy6/WZ/EwsvuRcaRBd8cJVcxjw01GUJ?= =?us-ascii?Q?GdE3hmw7jfzEt5FUNoJ2LZm+Y1m6WjXySYctAb7Bkhp62/8Yb/abqREf14Bq?= =?us-ascii?Q?BU1p3YScHxa0fOdNtR5k27t87Hg72NLmPuo2qMQlqvbOZ0qgIH1EKiQTUBmy?= =?us-ascii?Q?X9i2BFs6onejBPAgulorfevFpJkfRu9jImSq7yI/h0C3sJs0Kzzch1Ph0gbE?= =?us-ascii?Q?/Q=3D=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: ctlzRu2P+d7fEhElTpcpNw2/ITSKe4R2BWUp9IBcPxb2MoA2DIOhy0YrYl8cWj/YYnvDafxxL3mWkp0pic2GBrsfecPyfAGxnT9o1mWg0Ki+RxwhpiHxcCHnKckbVAPIfgIbT7ScS0RZZsuB4+VKFnRoZqtPKGxYdlqIC97D6lJIuXTkFPM/lIP5lc5WdJVyqNgHXJK3nX8ZQmT+igDxMoWRooKyeykI733PJdiOwumWbH+/uhd68MIrFA89H2CUv0oAWCjoDM+VPmBKuA+T57wm11FWeWKXqD6mQ+g1FhAOm5RbvB96vLrxBdVR8JOmmCqi9zmm2bcHaIbWN1kKIYillOVm3E9g9iKPfvYlYDkLS98rBheXowzlTO204/y4b9cARK/m7H+RI1xoisrVU/zzkyfuZ4edQ0oL/XIxSlCAoKQxR1xDyxm7tR/YZDoWbLPWpxzBtOehFSCmsuAJq6f6Dga/0UovRRM/VXyb7IhMPF8tQzBXTYkTwJVdC04DOtLUuno2/OsAnicLktsPwGOJsieGdvYTdg9HDoxyT+DLlFfbUEdXy7clvQpwtgcGBqF/0CDsHPgMv4Txor399di6Z3972Om3KBq/fUJMWrg= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: e28a837b-5985-411b-d73b-08dce8830cc5 X-MS-Exchange-CrossTenant-AuthSource: CO6PR10MB5409.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Oct 2024 16:54:33.3560 (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: M+vZTizKsSLjfpMl1D/gI0D+uwSoVACWfRhdRJJMJ2f75xCYF41AGkh95EuEAPEPEUOiYLFzdKvxQlhmpZKa4hX8ANggSfSXFkyjz6SWHls= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR10MB6044 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-10-09_14,2024-10-09_02,2024-09-30_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 adultscore=0 mlxscore=0 spamscore=0 phishscore=0 bulkscore=0 suspectscore=0 mlxlogscore=775 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2409260000 definitions=main-2410090101 X-Proofpoint-GUID: s-WOBoIYDGRgydoS06Dnzhirnrq-nmPQ X-Proofpoint-ORIG-GUID: s-WOBoIYDGRgydoS06Dnzhirnrq-nmPQ Content-Type: text/plain; charset="utf-8" From: Shrikanth Hegde Add PowerPC arch support for PREEMPT_LAZY by defining LAZY bits. Since PowerPC doesn't use generic exit to functions, check for NEED_RESCHED_LAZY when exiting to user or to the kernel from interrupt routines. Signed-off-by: Shrikanth Hegde [ Changed TIF_NEED_RESCHED_LAZY to now be defined unconditionally. ] Signed-off-by: Ankur Arora --- arch/powerpc/Kconfig | 1 + arch/powerpc/include/asm/thread_info.h | 5 ++++- arch/powerpc/kernel/interrupt.c | 5 +++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 8094a01974cc..593a1d60d443 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -270,6 +270,7 @@ config PPC select HAVE_PERF_REGS select HAVE_PERF_USER_STACK_DUMP select HAVE_RETHOOK if KPROBES + select ARCH_HAS_PREEMPT_LAZY select HAVE_REGS_AND_STACK_ACCESS_API select HAVE_RELIABLE_STACKTRACE select HAVE_RSEQ diff --git a/arch/powerpc/include/asm/thread_info.h b/arch/powerpc/include/= asm/thread_info.h index 6ebca2996f18..ae7793dae763 100644 --- a/arch/powerpc/include/asm/thread_info.h +++ b/arch/powerpc/include/asm/thread_info.h @@ -117,11 +117,14 @@ void arch_setup_new_exec(void); #endif #define TIF_POLLING_NRFLAG 19 /* true if poll_idle() is polling TIF_NEED_R= ESCHED */ #define TIF_32BIT 20 /* 32 bit binary */ +#define TIF_NEED_RESCHED_LAZY 21 /* Lazy rescheduling */ =20 /* as above, but as bit values */ #define _TIF_SYSCALL_TRACE (1<msr & MSR_EE)); again: - if (IS_ENABLED(CONFIG_PREEMPT)) { + + if (IS_ENABLED(CONFIG_PREEMPTION)) { /* Return to preemptible kernel context */ if (unlikely(read_thread_flags() & _TIF_NEED_RESCHED)) { if (preempt_count() =3D=3D 0) --=20 2.43.5