From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A1304C433EF for ; Sat, 4 Jun 2022 18:27:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C40416B0071; Sat, 4 Jun 2022 14:27:09 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BC8CA6B0073; Sat, 4 Jun 2022 14:27:09 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A6AD76B0074; Sat, 4 Jun 2022 14:27:09 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 917EE6B0071 for ; Sat, 4 Jun 2022 14:27:09 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay11.hostedemail.com (Postfix) with ESMTP id 6164E803A5 for ; Sat, 4 Jun 2022 18:27:09 +0000 (UTC) X-FDA: 79541385378.04.7399AF3 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf31.hostedemail.com (Postfix) with ESMTP id 03EEC20053 for ; Sat, 4 Jun 2022 18:26:24 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0DC7060ADC; Sat, 4 Jun 2022 18:27:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 429AAC385B8; Sat, 4 Jun 2022 18:27:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1654367227; bh=n5wrzypwtiothDEJzAJvNhUgxEw5FoexkeARf4RZRfg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=2VIhqIOQ0EI17/YNuL/3CoTZCZ2yesDRtu8jtu1Yd2rko4HtKcXdI36AosotqRb1A LPPzXzBjKGyiv+M32ABcUebOfcw327gCk0cIRBsCskyDszJBC15CCh7tqBIxX9LCWH oxpRQwKa/gHhF5JXb2nPAGXC37nifKayoiwmCHPw= Date: Sat, 4 Jun 2022 11:27:06 -0700 From: Andrew Morton To: gwhite@kupulau.com, Hailong Tu , SeongJae Park Cc: bugzilla-daemon@kernel.org, linux-mm@kvack.org Subject: Re: [Bug 216072] New: regression: ccccccgcdkgekhjervgbdfbhdjugcjkfdhiegeuugugtHang at boot when DAMON is enabled Message-Id: <20220604112706.d50208c3c15a748d1c04c584@linux-foundation.org> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 03EEC20053 X-Stat-Signature: bqjse1hd3fjpi81143c5nkfhoppi4neh X-Rspam-User: Authentication-Results: imf31.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=2VIhqIOQ; spf=pass (imf31.hostedemail.com: domain of akpm@linux-foundation.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none X-HE-Tag: 1654367184-957151 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: (switched to email. Please respond via emailed reply-to-all, not via the bugzilla web interface). On Sat, 04 Jun 2022 15:49:50 +0000 bugzilla-daemon@kernel.org wrote: > https://bugzilla.kernel.org/show_bug.cgi?id=216072 > > Bug ID: 216072 > Summary: regression: > ccccccgcdkgekhjervgbdfbhdjugcjkfdhiegeuugugtHang at > boot when DAMON is enabled > Product: Memory Management > Version: 2.5 > Kernel Version: 5.19 pre-rc1 > Hardware: All > OS: Linux > Tree: Mainline > Status: NEW > Severity: normal > Priority: P1 > Component: Other > Assignee: akpm@linux-foundation.org > Reporter: gwhite@kupulau.com > Regression: No > > I see a hang on boot whenever DAMON is enabled. The specific commit that > causes this is listed below. There is no printk / dmesg output, only the > message about an initrd being loaded by EFIStup. Then a hard hang. Removing > the commit below - or disabling DAMON entirely - fixes the issue. > > commit 059342d1dd4e01d634184793fa3f8437e62afaa1 > Author: Hailong Tu > Date: Fri Apr 29 14:37:00 2022 -0700 > > mm/damon/reclaim: fix the timer always stays active > > The timer stays active even if the reclaim mechanism is never enabled. It > is unnecessary overhead can be completely avoided by using > module_param_cb() for enabled flag. > > Link: > https://lkml.kernel.org/r/20220421125910.1052459-1-tuhailong@gmail.com > Signed-off-by: Hailong Tu > Reviewed-by: SeongJae Park > Signed-off-by: Andrew Morton > > ver_linux: > > If some fields are empty or look unusual you may have an old version. > Compare to the current minimal requirements in Documentation/Changes. > > Linux surprise 5.18.0-GTW1 #1285 SMP PREEMPT_DYNAMIC Sat Jun 4 11:40:01 EDT > 2022 x86_64 GNU/Linux > > GNU C 12.1.0 > GNU Make 4.3 > Binutils 2.38 > Util-linux 2.38 > Mount 2.38 > Module-init-tools 29 > E2fsprogs 1.46.5 > Jfsutils 1.1.15 > Reiserfsprogs 3.6.27 > Xfsprogs 5.18.0 > PPP 2.4.9 > Nfs-utils 2.6.1 > Bison 3.8.2 > Flex 2.6.4 > Linux C++ Library 6.0.30 > Dynamic linker (ldd) 2.35 > Procps 3.3.17 > Net-tools 2.10 > Kbd 2.5.0 > Console-tools 2.5.0 > Sh-utils 9.1 > Udev 251 > Wireless-tools 30 > > lspci: > > ~/linux  ⌂ v5.18 …  lspci > 00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Root > Complex > 00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Starship/Matisse IOMMU > 00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe > Dummy Host Bridge > 00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP > Bridge > 00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP > Bridge > 00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe > Dummy Host Bridge > 00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe > Dummy Host Bridge > 00:03.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP > Bridge > 00:03.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP > Bridge > 00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe > Dummy Host Bridge > 00:05.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe > Dummy Host Bridge > 00:07.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe > Dummy Host Bridge > 00:07.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse > Internal PCIe GPP Bridge 0 to bus[E:B] > 00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe > Dummy Host Bridge > 00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse > Internal PCIe GPP Bridge 0 to bus[E:B] > 00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 61) > 00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51) > 00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data > Fabric: Device 18h; Function 0 > 00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data > Fabric: Device 18h; Function 1 > 00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data > Fabric: Device 18h; Function 2 > 00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data > Fabric: Device 18h; Function 3 > 00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data > Fabric: Device 18h; Function 4 > 00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data > Fabric: Device 18h; Function 5 > 00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data > Fabric: Device 18h; Function 6 > 00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data > Fabric: Device 18h; Function 7 > 01:00.0 Non-Volatile memory controller: Sandisk Corp WD PC SN810 / Black SN850 > NVMe SSD (rev 01) > 02:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Matisse Switch Upstream > 03:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge > 03:01.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge > 03:03.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge > 03:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge > 03:05.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge > 03:08.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge > 03:09.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge > 03:0a.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge > 04:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD > Controller SM981/PM981/PM983 > 05:00.0 Non-Volatile memory controller: Sandisk Corp WD PC SN810 / Black SN850 > NVMe SSD (rev 01) > 06:00.0 Network controller: Intel Corporation Wi-Fi 6 AX200 (rev 1a) > 07:00.0 Ethernet controller: Intel Corporation I211 Gigabit Network Connection > (rev 03) > 08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE > Controller (rev 01) > 09:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. > [AMD] Starship/Matisse Reserved SPP > 09:00.1 USB controller: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host > Controller > 09:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host > Controller > 0a:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller > [AHCI mode] (rev 51) > 0b:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller > [AHCI mode] (rev 51) > 0c:00.0 Non-Volatile memory controller: Intel Corporation Optane SSD 900P > Series > 0d:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Upstream > Port of PCI Express Switch (rev c7) > 0e:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL > Downstream Port of PCI Express Switch > 0f:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi > 24 [Radeon RX 6400 / 6500 XT] (rev c7) > 0f:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21/23 HDMI/DP > Audio Controller > 10:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. > [AMD] Starship/Matisse PCIe Dummy Function > 11:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. > [AMD] Starship/Matisse Reserved SPP > 11:00.1 Encryption controller: Advanced Micro Devices, Inc. [AMD] > Starship/Matisse Cryptographic Coprocessor PSPCPP > 11:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host > Controller > 11:00.4 Audio device: Advanced Micro Devices, Inc. [AMD] Starship/Matisse HD > Audio Controller > > -- > You may reply to this email to add a comment. > > You are receiving this mail because: > You are the assignee for the bug.