Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1348833lql; Tue, 12 Mar 2024 14:34:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWoAJKLRuXxG/Z22xqm1n9KhYqJcEzeDGbhktfMe09uzm8UQnXM3foSGdbpyDrcbTbSHWKlcETVK/XsgvBP77D3ahagEF8Iqh64Gtf9ig== X-Google-Smtp-Source: AGHT+IGtBRoXdbOQFRKBaarpHIeCG0IzBvvlZ5c9km4ttuyjmKjcjR4bCTp943/dHg2Stg4GcfvD X-Received: by 2002:a17:903:1111:b0:1dd:75b6:222d with SMTP id n17-20020a170903111100b001dd75b6222dmr4507559plh.26.1710279284624; Tue, 12 Mar 2024 14:34:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710279284; cv=pass; d=google.com; s=arc-20160816; b=QaY7mwjFQ0aabwNKq6K37vacdHC3ikQQilXDYOEFJqqXx+rk6TFI7yCDv1+wUarEdB /YEDzq0u4J1SLcL9zaVcP/dj22Jm9ostbYWGWkfKyGC+ktK22NHlXkLMFWhRnTCZJUKu bdqGtfScnEso6xQWUJHqe9xvdFx00WajhJX0yPena62F/1lSnyD3HhVKlvq0bLcMDGFX oyzGPIl58zjM9wyTygdJ94NhnG+9YYdOi6HCt1L03Xxy13p9zPSgN7wuIlPnbkWi9OTK DE0d9n136+dTSqwnHHT7WBxKTFswp7LfG6UKhYqR7rlYRn9QJOnwpIIU6FMsiKmZwr/B 6Ysw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=GCudM8ZtMIW67UvoP6AuDrXeLE5sRAx6WLMUwr1J0BE=; fh=8me9QPO9dwPRH3znu0WlBSy1ei8FwMDhrn9mKu8Bh4U=; b=j4DH1P5rht1uxuuMF9gj7luFHgIQzxxpH1gjiEGs8LoOOv6amkgMsYuiSimWDIAIDs zNO2gkUPSyXoK4GIOntaMnxB7/IOJA+l/pcB9BKCBadf5h+sMSMvvHD0ffT1corCRJtj Y0aiH9UuK45nYLOE/s11t1EgpH98xksASumniQg3BggA4swL1V+iORymsnV4Qy4bGBcq 3hGCqPDnroxnQXvSBKvoEOScnTkHhtpOtPQssMY1Cgn/iaxo5oD1n/VUImRZdTcZTfO+ AeE6MKbjG/Mc83eJ8GBDMMhh3vJIp+299UcFL08URjp7mhspGrTPOKHCldDQ1V9lotD5 bxYw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NBQLXa6B; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-100810-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100810-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q15-20020a170902a3cf00b001d74670ffbcsi7501649plb.290.2024.03.12.14.34.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 14:34:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-100810-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NBQLXa6B; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-100810-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100810-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id EA063282025 for ; Tue, 12 Mar 2024 21:34:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BEABB14373A; Tue, 12 Mar 2024 21:34:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NBQLXa6B" Received: from mail-qk1-f181.google.com (mail-qk1-f181.google.com [209.85.222.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5E1C4142636; Tue, 12 Mar 2024 21:34:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710279275; cv=none; b=sMlQL+6FsBLLQdc7QiW/bCRhSXcWsePHrWy1RCH6QBydTB5RNoSZfkRInk28KhQPbfb8KXVWucASWR4tO+UGMhfiTyURM+JW+9J3ksfF/3VkOXz9lzjdThdDwpxzmEvisaUKOdz2R2qAWSMjkzD0TvxoZfi55HhFH/4KTyGi/2s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710279275; c=relaxed/simple; bh=5/wmLAHrNeE9hx434xthwOeHWChqxB0kDiERSOp8o0I=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=cK1/0yYBsLFzNS4PmtdbQmD6I9HnVGOvllqnuAQ51gY1vvruoCUajMYZWLgkmCSxyYBTAYqqajWJSR4R+3VNA79N3O4Zt6EhCYrCaNF0ggcHgdiqRJHWwxyBZ1uD45mm6z/NaFs/O76KZssgmBvwGx3OVuyTJTS2GWn/iVOOVn4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=NBQLXa6B; arc=none smtp.client-ip=209.85.222.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qk1-f181.google.com with SMTP id af79cd13be357-788598094c4so18957285a.0; Tue, 12 Mar 2024 14:34:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710279273; x=1710884073; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=GCudM8ZtMIW67UvoP6AuDrXeLE5sRAx6WLMUwr1J0BE=; b=NBQLXa6B2/uksXznlJmuZvLPXqYyGIrHA76G4zDsEtwJ//aIGZ5iSqOOX3SDemLdmk NJcaOVFqVtJBsB6bgS7LccWqzBYeNlW8ZnAItrgfQgIZCxktd0PBvh1xNfKyAVY6qwx5 FtDGwdPMxbFRccLSytRefiAEzfbFlW8Q4nteSj2mRqYA/2Lui58Zm2jEFYtUfJv2vbx0 oa4Jel3TAclSo2apzckvIwmqwreBbyb+rNeKzFo3/sUc4qtDlpyQg2qvTU33xur4aOJX M3XxlkIqoGh+FteNTm94bg9rKoVVds3glJlx/jeUuMxlvmXobLEXatSbzkYMsSllisck E4fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710279273; x=1710884073; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GCudM8ZtMIW67UvoP6AuDrXeLE5sRAx6WLMUwr1J0BE=; b=A3RxGOyajktTC8T3A62YUakIhn8GAM1fCGP9wNZJhOWSGeBaRD1cuvmdcrN/JwFzqn /zaqmHOyDapY0MV4qw7Ck2+t2tUxeYLQ6vZFkkZPGirJzl3pLwRIVVp4VloBfBNsLapT SZnaLDqtV6vcqx8Q4xD+WAvjCNOPlWxJ6mBOOPKizCUKjP3P5OqtSf1oFyRKRaIfIb4b RasmQJxNGaxq/QiyVzPt/LMoTjaKRDzGjvDnyNU5dZcnMBLT5qAlLogRV14gOpEsWaVT tKJb1INQV2mjgaTHViVxRqTru+Zwdd9uc+fC158v590kevg4esI6vByQc9occLc6a8M9 zkwg== X-Forwarded-Encrypted: i=1; AJvYcCV9jRadppoI9mzgN+mxG8SoO22vuMm4l61S9x5U+Y7tdA9lRvmZTsDSKhpc7rMAKfUnTyIjkt0icFyFOXXr1KoV21dhaN1+szpMWsWStpdm6US3fhxVgKRIU7h+p+GwiBhb X-Gm-Message-State: AOJu0YwDxkRdmBpOpyfljCXsv5S9tJQQ4fMd8APDipX/cAZpyiibixJM cgmVwnPsDU/2y1T13WW7S5RXpjsA+Ma7a8qXwVCjF9M8w9mOXZ45 X-Received: by 2002:a05:620a:a43:b0:788:6221:85c4 with SMTP id j3-20020a05620a0a4300b00788622185c4mr4498433qka.20.1710279273092; Tue, 12 Mar 2024 14:34:33 -0700 (PDT) Received: from [10.67.48.245] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id q6-20020a05620a0c8600b00787f42e6299sm4042468qki.113.2024.03.12.14.34.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 Mar 2024 14:34:32 -0700 (PDT) Message-ID: Date: Tue, 12 Mar 2024 14:34:29 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Unexplained long boot delays [Was Re: [GIT PULL] RCU changes for v6.9] Content-Language: en-US To: Boqun Feng Cc: torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, kernel-team@meta.com, paulmck@kernel.org, mingo@kernel.org, tglx@linutronix.de, rcu@vger.kernel.org, joel@joelfernandes.org, neeraj.upadhyay@amd.com, urezki@gmail.com, qiang.zhang1211@gmail.com, frederic@kernel.org, bigeasy@linutronix.de, anna-maria@linutronix.de, chenzhongjin@huawei.com, yangjihong1@huawei.com, rostedt@goodmis.org References: <4274be61-60bd-4e1e-9c16-26e6e5e06f65@gmail.com> From: Florian Fainelli In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 3/12/24 14:07, Boqun Feng wrote: > On Tue, Mar 12, 2024 at 01:32:03PM -0700, Florian Fainelli wrote: >> Hi Boqun, >> >> On 3/8/24 09:15, Boqun Feng wrote: >>> Hi Linus, >>> >>> Please pull this for the RCU changes of v6.9: >>> >>> The following changes since commit 41bccc98fb7931d63d03f326a746ac4d429c1dd3: >>> >>> Linux 6.8-rc2 (2024-01-28 17:01:12 -0800) >>> >>> are available in the Git repository at: >>> >>> git://git.kernel.org/pub/scm/linux/kernel/git/boqun/linux.git tags/rcu.next.v6.9 >>> >>> for you to fetch changes up to 3add00be5fe5810d7aa5ec3af8b6a245ef33144b: >>> >>> Merge branches 'rcu-doc.2024.02.14a', 'rcu-nocb.2024.02.14a', 'rcu-exp.2024.02.14a', 'rcu-tasks.2024.02.26a' and 'rcu-misc.2024.02.14a' into rcu.2024.02.26a (2024-02-26 17:37:25 -0800) >>> >>> >>> Two merge conflicts were detected by linux-next: >>> >>> * https://lore.kernel.org/lkml/20240226135745.12ac854d@canb.auug.org.au/ >>> * https://lore.kernel.org/lkml/20240227125522.2bdbe6be@canb.auug.org.au/ >>> >>> These conflict resolutions from linux-next look good to me, plus I made >>> my own resolutions at branch merge/rcu.2024.02.27a for your reference. >>> >>> >>> Some highlights of the changes: >>> >>> * Eliminates deadlocks involving do_exit() and RCU tasks, by Paul: >>> Instead of SRCU read side critical sections, now a percpu list is used >>> in do_exit() for scaning yet-to-exit tasks. >>> >>> * Fixes a deadlock due to the dependency between workqueue and RCU >>> expedited grace period, reported by Anna-Maria Behnsen and Thomas >>> Gleixner and fixed by Frederic: Now RCU expedited always uses its own >>> kthread worker instead of a workqueue. >> >> At least one device in my test farm (ARM 32-bit) has consistently shown a >> very long boot, and some others are intermittently affected. This >> consistently looks like this on most of my devices: >> >> [ 2.450351] bcmgenet f0480000.ethernet: GENET 5.0 EPHY: 0x0000 >> [ 2.547562] ata1: SATA link down (SStatus 0 SControl 300) >> [ 162.107264] unimac-mdio unimac-mdio.0: Broadcom UniMAC MDIO bus >> >> this gets flagged by my boot script as a boot failure since we exceeded the >> 30 seconds timeout given to boot a kernel to a prompt. >> >> It has been somewhat difficult to get a reliable bisection going on, but >> what I am sure of is that e5a3878c947ceef7b6ab68fdc093f3848059842c~1 does >> not expose the problem for 10 consecutive boots, while I *might* see it at >> e5a3878c947ceef7b6ab68fdc093f3848059842c and beyond. >> >> Any clues what is going on here? >> > > Could you share the config file and your kernel parameters? Also could > you share the whole log? Thanks! Here is the configuration file: https://gist.github.com/ffainelli/f3fd38752a186cee0cb8719089c0b6b8 and here is a log where this fails: https://gist.github.com/ffainelli/ed08a2b3e853f59343786ebd20364fc8 -- Florian