From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.193.38 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796268151; b=E07xTg+4vrKKeJQhxlcK4U1TT0o97gsvc/d+vy1jM4376SsErcbHrtbWQUthFzg68P1v 474H7JkhfKeQip40hQiBXnf9M/Z/RTv30Ualaqr/sbyzDGuStQmnyComQpKpZdbP85VqH WHcCogiwbudBfP8oUPVw4s2DjXKYui+QM7binrOJZICpgmv+o1wIC5BDvmTMhRdO4beoO bgYBr4s8fkDM/95z8Xh6RpxjTsUUEZidAkGNJ3eSXTd2uU+VJQUlqlLiVhuCiFze2alv9 O6jNswK6aCrYrfZ4edbt1wdDoKnE+AuJX2MkKEcSO1nXo8/Savt4QeXlJfVDKu1+RVg== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796268151; h=DMARC-Filter:DKIM-Signature:Received:Received: X-MS-Exchange-Authentication-Results:Received-SPF:Received:Received: Received:Received:Message-ID:Date:MIME-Version:User-Agent:Subject:To: CC:References:Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:X-EOPAttributedMessage: X-MS-PublicTrafficType:X-MS-TrafficTypeDiagnostic: X-MS-Office365-Filtering-Correlation-Id:X-MS-Exchange-SenderADCheck: X-MS-Exchange-AntiSpam-Relay:X-Microsoft-Antispam: X-Microsoft-Antispam-Message-Info:X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-OriginatorOrg: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-Id: X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=ESUqJ/w2cIyUc6anaMYtnw+r2iPrF4qtmEhDHaMnvb0=; b=jUMNqpStw9V9JTW/JMdhbpfDVeBKowB8a/nxtg5b/vDDpf/SMrxsgaDGj8yIf+qERWPg uFgX3axTXY7m4lQ54FQ23+BlG0cCdLAK4tkfjsga1XgAg/N9JkLx8DHymP1FJfrI1KyyT +00uGlNHm9oX7Soutb6BDAiiwSYszRLXfMH6zBYz7yJN0mCAfvyxWx3ysMN6c4cyH/dA8 2JL3TmBdmJ+7GdOVc4wcFxK9SqXmQiAfNChyph62gwjjfM5jHFUNnYbluxwRWbWjL8Jfs Zo303I4nObnd00TTRAcmsDKDstidbi3OUW1JTcj2SxozjDXZGJ1ADCohWyxBcDix3aQ== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=KSoILS61; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.193.38 Received: from CH1PR05CU001.outbound.protection.outlook.com (mail-northcentralusazon11010038.outbound.protection.outlook.com [52.101.193.38]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DC406606A32C for ; Thu, 3 Dec 2026 03:22:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DC406606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=KSoILS61 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=KyTLKLQvfE10D4Uue1hvOOKVtGCK4dK8qQoELgSuZmpLzGLYavpn5d2w0LFrCznq3Je3IpGjCTkl6yt+FnAjuNybgaGnRNJcaLckyT+aq66P0ASP7p7Kdt/M8X8LZatDYQuVdm1/4fDC/uuIAhQuSh3lgxHoP88wNfFcTeh73aLmfJmEOCIGJsgHvP69us6x961WbvDwgnNYDzuw7/qe3kZkU15PyhoiWvOhv57amliUs7cqoaRTpgDrFFCMMprJQ6nqf3XiwJDtEcAuQrkB959YdA5DqrJyBh0sNk46+b4WLLlWhskFwryZeBH2PDkJArrHR2/mp60jlUpu6h60hg== 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=ESUqJ/w2cIyUc6anaMYtnw+r2iPrF4qtmEhDHaMnvb0=; b=UbGcB68mlTO6QmjIL8Q4nijJzgm8rJSocDL/3H7N4iAhOp+8/w5jJGkwsh6S9QXOr2/2fOrC0dSeXpuPPwabbIjfNEVRuDuI6QCJ1UlUomiN8SpA17EobodniigK4FPAnS1ZlITwQad2l0aZXrucMn/MEJAe/FexzKO+WCjBnu4jDzNNPv+Czgx64x1xTUT+kZqPd30C/fQ1klXz7LC1RATPHvkDfyibQvKeGj9abV+qRaXlZN4HPvBZa3+tKQD7F+wBLMvT2duj0635YgrtvhlA3Xd4XQmxPAVzYFREeaDT0L7zuaBGeGt/GNUn9j22WjSowMEafEdXDF7djnYLdQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=google.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ESUqJ/w2cIyUc6anaMYtnw+r2iPrF4qtmEhDHaMnvb0=; b=KSoILS61pZgzT36cZBzB3yBn24HVavRvWXp9IquhFtlpstlSwBmSn7zOX6MShxiF3ixwyu2MlOs5jYRIGKnXxdn9gCxXh2smCZPkXaq4jNrovbjDHk82+1UCMP6INbO3miLUk9hGED25JXoOh9R4vAYiVcv4Q8Kj33Rf4RVm6Fg= Received: from CH0PR03CA0109.namprd03.prod.outlook.com (2603:10b6:610:cd::24) by MW6PR12MB8914.namprd12.prod.outlook.com (2603:10b6:303:244::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.10; Thu, 3 Dec 2026 03:22:26 +0000 Received: from CH3PEPF0002457E.namprd04.prod.outlook.com (2603:10b6:610:cd:cafe::2b) by CH0PR03CA0109.outlook.office365.com (2603:10b6:610:cd::24) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.688.11 via Frontend Transport; Thu, 3 Dec 2026 03:22:26 +0000 X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=satlexmb08.amd.com; pr=C Received: from satlexmb08.amd.com (165.204.84.17) by CH3PEPF0002457E.mail.protection.outlook.com (10.167.252.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.5 via Frontend Transport; Thu, 3 Dec 2026 03:22:26 +0000 Received: from Satlexmb09.amd.com (10.181.42.218) by satlexmb08.amd.com (10.181.42.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Wed, 2 Dec 2026 21:22:25 -0600 Received: from satlexmb07.amd.com (10.181.42.216) by satlexmb09.amd.com (10.181.42.218) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Wed, 2 Dec 2026 21:22:25 -0600 Received: from [10.136.42.27] (10.180.168.240) by satlexmb07.amd.com (10.181.42.216) with Microsoft SMTP Server id 15.2.2562.57 via Frontend Transport; Wed, 2 Dec 2026 21:22:17 -0600 Message-ID: <26d5ca8a-be9f-490f-a109-5039a1c90dd6@amd.com> Date: Thu, 3 Dec 2026 08:52:11 +0530 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v34 08/14] sched/proxy: Invoke migrate_task_rq() on proxy-migration To: John Stultz CC: LKML , Yu-Ting Tseng , Peter Zijlstra , Ingo Molnar , Thomas Gleixner , Juri Lelli , Vincent Guittot , Valentin Schneider , Suleiman Souhlal , Andrea Righi , Johannes Weiner , Metin Kaya , Dietmar Eggemann , Steven Rostedt , "Zimuzo Ezeozue" , Waiman Long , Boqun Feng , "Paul E. McKenney" , "Joel Fernandes" , Qais Yousef , "Xuewen Yan" , kuyo chang , hupu , Zhan Xusheng , "zhidao su (Xiaomi)" , Hui Su , "Shubhang Kaushik (Ampere)" , References: <20261202035248.1210026-1-jstultz@google.com> <20261202035248.1210026-9-jstultz@google.com> <40553a43-a60a-45c0-bc36-68f6df72d33a@amd.com> Content-Language: en-US From: K Prateek Nayak In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH3PEPF0002457E:EE_|MW6PR12MB8914:EE_ X-MS-Office365-Filtering-Correlation-Id: 88ef588c-2af6-407d-8794-08df50eca785 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|23010399003|1800799024|7416014|376014|36860700016|11063799006|4143699003|18002099003|261009223027099003|22082099003|56012099006|10067099003|261021135927099003|261028144727099003|261102123227099003|261021121427099003|261026121527099003|261022105027099003|261026140227099003; X-Microsoft-Antispam-Message-Info: 95YB4Y8UeNesDuYu9wRlRG0KUBDq1xFGg3WbrH7nqT5kPP3+Qwq1ymcczKrpGFQtVxckQ6yjl8Klao4+DKdz6VFr8keTX7I/BNrBvQE1JB2QZ2LRb1P1HwQZ+G0O/SsMVOrd+qNHmLmp3+oh8En19KLVENXB8ohbC4HQo3i/FAxMVJs6ZAbQSfopWxcEjATfd+SzuzfqEsq0/VRseTubQXqbv9Vxxu2lP74kT3Ln1BMG5EsmK36YlGGPE/HCnMKIpCzsZYjv/b+tihNCiw666OZ2jxeQpzCwZWUHHXXE/YkaFEUWdbg7Z0pTVz7iHjDmklosw6QQfqfS92gpf58fnDnjTHZBi8cl0HsZHFv0qalch4D6hWrLdl9FtPC7baEBz5PXAOsi+OM82cFFMSQxlQRLlxQ4ofjADmOBrEAOWmZHFKYYwqH9gSbTJMO/fn/PFnljCJ67zK6FAFFZk6oswt1vSQkPnRKWrn4sbnCgeQe9bQuU4k8vb9botpg8ELVhOuOiFp0LsnKrLQThKUCKUmuWKBj+ZvrjpaRk1LFfuxq5nFiIfujHziazyBUbggBEnaTalAW9k4A9qTnUE9GzDf+5IPbtWWVwScTSiBEZYq079N3q6Y5GBR2Ofxxko5zuPhC79DrNHLF0w/YPZOmq21az8Lh+tNriHiY9768GnoXjj+c2R7d/w86eObwCfQab1Za6jFX8eHXn3YARvPBxRw== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:satlexmb08.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(82310400026)(23010399003)(1800799024)(7416014)(376014)(36860700016)(11063799006)(4143699003)(18002099003)(261009223027099003)(22082099003)(56012099006)(10067099003)(261021135927099003)(261028144727099003)(261102123227099003)(261021121427099003)(261026121527099003)(261022105027099003)(261026140227099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 8tQYpn2iB7mjFVioTvpelz12q49/rCEpZzUvxN0dbGehUfXryt9YLdvIOsFaPjKR1GbVsO6cPd0kXF92l3r55jYthzZFXirijzar+pO2N9HUOwLX9YhdIKa4AwMlqEmvlgDaO2fR6z9OO46YJLply6zGoA+v+jqduEwdTgutwFS95kcT/eDZQNU40m3CF6jOGuwxK73ksdnsWDIjX0Y5WnN2dBzSS+nT/oHLa7VjbDDDLy5pIBpyCmCgllGe6ALkNwBVGs/bcjdMhXqG+aACshpAhOCsP+LNLFB6+t8Bslx+b891YekTv7Y4BNuQU716PKCFpGBsMC3ES+3B/hEduNXdTBAR/6R1iX46EHeJU7PCFw9Byli81Bi7mO33bJ/G5af7gWnhPHKQ4yQhMiZ5XUduNW8LlLnAB8HePtEFbG5A44ZFJhLY5uMzvgfrBlL7 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Dec 2026 03:22:26.2391 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 88ef588c-2af6-407d-8794-08df50eca785 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[satlexmb08.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CH3PEPF0002457E.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW6PR12MB8914 Hello John, On 12/3/2026 3:21 AM, John Stultz wrote: >> Hrm. I guess my worry there was the trace event might not be wanted on >> proxy migrations, as existing tooling may not understand it, >> especially all the sleeping owner activations potentially bouncing >> things around. I do think it would be nice to trace it honestly to know if the waiters are following the owners or not. >> Otherwise, I guess it does look doable. I'll take a stab at it. > So, unfortunately (unless I'm missing another one of Andrea's > patches), we still hit the > WARN_ON_ONCE(state != TASK_RUNNING && state != TASK_WAKING && !p->on_rq); Checking ... && !p->on_rq && !task_is_blocked(p) at the end should be correct I feel if we can move proxy_set_task_cpu() into the blocked_lock critical section since "p->blocked_on" is stable then. Thoughts? > warnings on sleeping owner activations when using the full set_task_cpu() via: > try_to_wake_up() -> activate_blocked_waiters() -> > do_activate_blocked_waiter() -> proxy_set_task_cpu() -> set_task_cpu() > > I guess we could loosen that warning up as well? Any preferences? I don't have any strong preference - apart from the couple of possible races in the final patch, most of my suggestions are nitpicks. -- Thanks and Regards, Prateek