From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2064.outbound.protection.outlook.com [40.107.21.64]) (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 BF6A621D3F7; Mon, 10 Mar 2025 16:33:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.64 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741624421; cv=fail; b=XuXdKAVhg1T3gQ7dzN9U4kcMuoRCfWAk9rydeRQkHZF6HRSlABE4ZHRJBwvaWU4pEc/em8FSu0p5ft6vgg8//O2lPX3XRqM9P3l1IOKMtI1dCLTLVeID/pdB05X6s3tm/qLINhBxgOgB0eK0zubyP3WGnJndOANG9fR5FH3cNFE= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741624421; c=relaxed/simple; bh=ijKCGClfiAS5+88wFqdbJVEAmvI5F3tppGBCtj03otY=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=BRnIgmOjXLqeRjOMCKLqsNtwk6zDSHshmo+Dd7mILKKtoAAF24hkAGeOVRkiqRipMUIisYybg9qjAKVbzv5ZJavdZLoiKqBl9cmu3xXnmmRKByqCXsoPBiwndB06EIxsEjemRI5YJ8EgDtPo1twRAFjjcYNWZs+AIqPcQya1Ew4= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arri.de; spf=pass smtp.mailfrom=arri.de; dkim=pass (1024-bit key) header.d=arri.de header.i=@arri.de header.b=Bz5U7DLM; arc=fail smtp.client-ip=40.107.21.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arri.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arri.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arri.de header.i=@arri.de header.b="Bz5U7DLM" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=PQRbpGofTZaMZH1/VS2axhj4XhtyfxebEipm2VcQAE4cLEoDIqJ8snzKyYuRGkvxPcrcZI6mcBM7jwZkbxhwD29jd8cHGbVvPlprszSm5t0ip5qBs5hUMEw6f6Nr9BJw5Jt5/mvvZY6jmW1ECyBXF5n4tHGoXLdfG6xKZYJrbF4Zzrp0FLceqmbRGHH66kNmRw5a2xn06YuLInK//zAImHyAwiyd3K6KM/oZL9Khz8A8o/mFlmyxD/LsbwuJ9PO7sggJbq82Ria9I3KCezAGIvGbaw5HSvKLmDurnO8htgkcnSvvVKhVYFsgkqufdtT62MTP20RJkKD380mA4BuAEw== 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=KJljNFnePQ1d+UQoC1kOln3sAZXYHJ5qak5G1ThDCZA=; b=vXHTp+Nm0nCAXuChpQPTClqQqNnCV1glGdCcAmgQAeEs7SSc3e7KFiIb2UsE4l9oWZCxRMhGrS7iBTIrHVZGOtzrBnXA/DtoNahzWQWWQYtDwmVRdhO0ZxMYRLudIZqD2Iuoq7Rty8PI53yVA0AmC4ueOey2akvxuaTzp4bLwYc/ONfV8ppn4dkNyQ+kRNGGf+aCbu76HbKnD8V6GWyERNEwWGikCf33n5EJzotEFo0roqukkSV4kj8R8LwJTpkuhJkj4EGVwB6vF//aWwBJ5LElFovC9rHMO7U3laaS5y7uoI94ehgyqOyXLV6P3IeupXkrc/zzyvDzRYaJzzt1Vw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 217.111.95.7) smtp.rcpttodomain=gmail.com smtp.mailfrom=arri.de; dmarc=fail (p=none sp=none pct=100) action=none header.from=arri.de; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arri.de; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KJljNFnePQ1d+UQoC1kOln3sAZXYHJ5qak5G1ThDCZA=; b=Bz5U7DLM8Nn6rpHeXTPjzL6vQ7srmbfyw8EDGigAcCD78CQgnrDjF9/8z73nU6Cru9BQignbt29qaEdSPp2TZsnC/6eraDD/erErA3DpV+Wy+0fi07cKZ9TRPd3T0gPiM9+QGQ6B0FvfWbLXhQj7cVj8jRZVW7Tf0DMol9+32+E= Received: from DB8PR06CA0022.eurprd06.prod.outlook.com (2603:10a6:10:100::35) by PAWPR03MB9036.eurprd03.prod.outlook.com (2603:10a6:102:33c::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8511.27; Mon, 10 Mar 2025 16:33:31 +0000 Received: from DU6PEPF0000A7DD.eurprd02.prod.outlook.com (2603:10a6:10:100:cafe::17) by DB8PR06CA0022.outlook.office365.com (2603:10a6:10:100::35) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8511.26 via Frontend Transport; Mon, 10 Mar 2025 16:33:31 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 217.111.95.7) smtp.mailfrom=arri.de; dkim=none (message not signed) header.d=none;dmarc=fail action=none header.from=arri.de; Received-SPF: Fail (protection.outlook.com: domain of arri.de does not designate 217.111.95.7 as permitted sender) receiver=protection.outlook.com; client-ip=217.111.95.7; helo=mta.arri.de; Received: from mta.arri.de (217.111.95.7) by DU6PEPF0000A7DD.mail.protection.outlook.com (10.167.8.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8534.20 via Frontend Transport; Mon, 10 Mar 2025 16:33:31 +0000 Received: from N9W6SW14.arri.de (10.30.5.19) by mta.arri.de (10.10.18.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.38; Mon, 10 Mar 2025 17:33:30 +0100 From: Christian Eggers To: Liam Girdwood , Mark Brown , Douglas Anderson CC: , Christian Eggers , Subject: [PATCH 1/2] regulator: dummy: force synchronous probing Date: Mon, 10 Mar 2025 17:33:01 +0100 Message-ID: <20250310163302.15276-1-ceggers@arri.de> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU6PEPF0000A7DD:EE_|PAWPR03MB9036:EE_ X-MS-Office365-Filtering-Correlation-Id: cfa1bdf8-43df-4357-acf5-08dd5ff14b50 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|376014|36860700013|1800799024; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?uORcwLl23ti9Q/76RliHlGmgIpid730ffO39tvFHm7EdA6Ux5ylQovE8puOW?= =?us-ascii?Q?oeiIAqB8nugeCb5wYJS35uPc7NyLi5sBN4oIjfjtfe3zOntjGPkQeHhQ5UuV?= =?us-ascii?Q?+lqv3RCPGAkuWqQYzKFzWWFYqeLZcKJPqc24Ha+wwBlzWSaS9srfojW62VJB?= =?us-ascii?Q?RHTCIMhWgmcaVj7uXlRt12hZHVcQ7UVpomVT2XZLN+FLTcTNkfyA2HtilE43?= =?us-ascii?Q?32rRXuKJiIjm8npH2cCzVVrHXfCcxLLqNuyC5q2HKEE8yOhp+o10CPp5zSM4?= =?us-ascii?Q?sSSfM71IS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= =?us-ascii?Q?uLC9nILO/Z7ljXyNhB08hEoGnkUkwZZqYA0JjpEhDXgyRpNliLQpIJsWr34t?= =?us-ascii?Q?DpGskcO2WV/xkuemCnohyzaq1YYMw173bi1r+vcYrJrc5fYq9aJ+RPd6TPiI?= =?us-ascii?Q?zM1NFxPQ/pD2urBbR9lOP2XauMjok2oGUf/Df3dpe4EJ2kNap1jcn7hz1bU2?= =?us-ascii?Q?p7g4xUpDhAa0hQ0Baa5pamMKoczyI7X78ZQF1bw+7WDWLCl4uaM6nYWkWEgH?= =?us-ascii?Q?qS1YRnTAcOniIgot+7zyx3VIw4fUNc0/B/OQxZhCRq36jitepJwrqd5Uv/xV?= =?us-ascii?Q?6enrRdF6xEkQNHM=3D?= X-Forefront-Antispam-Report: CIP:217.111.95.7;CTRY:DE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mta.arri.de;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(82310400026)(376014)(36860700013)(1800799024);DIR:OUT;SFP:1101; X-OriginatorOrg: arri.de X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Mar 2025 16:33:31.1032 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cfa1bdf8-43df-4357-acf5-08dd5ff14b50 X-MS-Exchange-CrossTenant-Id: e6a73a5a-614d-4c51-b3e3-53b660a9433a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=e6a73a5a-614d-4c51-b3e3-53b660a9433a;Ip=[217.111.95.7];Helo=[mta.arri.de] X-MS-Exchange-CrossTenant-AuthSource: DU6PEPF0000A7DD.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR03MB9036 Sometimes I get a NULL pointer dereference at boot time in kobject_get() with the following call stack: anatop_regulator_probe() devm_regulator_register() regulator_register() regulator_resolve_supply() kobject_get() By placing some extra BUG_ON() statements I could verify that this is raised because probing of the 'dummy' regulator driver is not completed ('dummy_regulator_rdev' is still NULL). In the JTAG debugger I can see that dummy_regulator_probe() and anatop_regulator_probe() can be run by different kernel threads (kworker/u4:*). I haven't further investigated whether this can be changed or if there are other possibilities to force synchronization between these two probe routines. On the other hand I don't expect much boot time penalty by probing the 'dummy' regulator synchronously. Cc: stable@vger.kernel.org Fixes: 259b93b21a9f ("regulator: Set PROBE_PREFER_ASYNCHRONOUS for drivers that existed in 4.14") Signed-off-by: Christian Eggers --- drivers/regulator/dummy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/dummy.c b/drivers/regulator/dummy.c index 5b9b9e4e762d..9f59889129ab 100644 --- a/drivers/regulator/dummy.c +++ b/drivers/regulator/dummy.c @@ -60,7 +60,7 @@ static struct platform_driver dummy_regulator_driver = { .probe = dummy_regulator_probe, .driver = { .name = "reg-dummy", - .probe_type = PROBE_PREFER_ASYNCHRONOUS, + .probe_type = PROBE_FORCE_SYNCHRONOUS, }, }; -- 2.43.0