Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1141606lqo; Fri, 17 May 2024 11:59:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWN+otsD6mixq1z2yMYznr+Bkzle11ElXPJKUMq5sZzpsFWxoQY5ODz8C5xbiDwpHw2qwo7wDX+Y7IvMgM+cmjZMwNuDz/XR97Mo0gjMg== X-Google-Smtp-Source: AGHT+IG/2Y7pkHZ9TFCQU2hEdP8mIe6aNIExacYSjIZf52u/RaMG1NDKPqh/DO9H8qn91Nt/nK47 X-Received: by 2002:a05:6a00:2404:b0:6f4:5531:7ce4 with SMTP id d2e1a72fcca58-6f4e03bd5afmr25732135b3a.33.1715972355816; Fri, 17 May 2024 11:59:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715972355; cv=pass; d=google.com; s=arc-20160816; b=ymRP3sZOL4DSHM7p35TavwJt0HKB4PdGPm9LqmJav98c1eJNdqfiyf+Ni0BWbcpAbq 32icdssbpzgFvutxyKhS9NaO9XJnravDK2/WCK4fI9/5UCr3VmWSQYhoLmestUnSAUwD klnqi91hpW9daYY2pdCGD0DahcNLzIOIuaASySWFvEfUpKFw2hLTHzSPJoOTDz4qRRyM 8bJYah/W/iKUKygAN/iiVJDnsTvV6mUrNFnnNmThTwVfWCBgwFKC1Qu/J15khscl+MaZ cwZTsdqNaYKY/i/r9CAtl+6WDGuAEASjJ/w6WomTR8LEpap52jtjoUjq8h+F3nfsoBiH R1Cw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=ZDm6NUrX+I1tJUakC6kx7W78Pcka1Rdrg5WVUeQ+iDI=; fh=4WbAqchmdfmQMJA/eEH4pUFZKRUIFG2hKiynall3wNY=; b=h3V3xNXwt25ss4aOSR1ti9nWHNAeJFXKlzsqRF+ERL0TZDu4Lcvi6Gwmlg34uaw0Ld oDcKEaC9nGjk683t5fg66gFnLpPdwzshDydnehHjB7L5donXwzEPFfw0raUZ8ptfrmFL N5bz793gjrJDrfOPbfwc6tg9ghvBV3PZ8VO7zidyxIKj0SNrMi1Q/cwvrd6FQtKurl1B URsDQAIL5/E6sUw/ztrIUMo0qiMmxheJEo1V0zFiz0s2pRylubLyU+UyCPRMOeRC1547 wS3E9iBS5/+NyxUz5o9HZMrc1ZjZgmjN7rysQmRXVj2X2+/UOUBJM1kR6v9hmEK7VEOz cROA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Msol5c2e; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-182528-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182528-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2b1ba25si17652752b3a.275.2024.05.17.11.59.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 11:59:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-182528-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Msol5c2e; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-182528-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182528-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 01FA2B2262E for ; Fri, 17 May 2024 18:59:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C28E13E3E2; Fri, 17 May 2024 18:59:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Msol5c2e" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 889BC13D8B7; Fri, 17 May 2024 18:59:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715972344; cv=none; b=gnTi8Bgk0XbIkhphw7EflmiRgHwBzzbEwABUVQ7RrL++vlTP5FMG7uClkRDF2EbGfxqQpHf1xO92aTzX0YuLIXUWX8bycAiMHnmBGCVxCQhxUWncjbsVU1mO5v33jPhwlPtBJ8VAnlXZGsf/Hsc/0NQNhkB3wil5iYtLeO/Iin0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715972344; c=relaxed/simple; bh=Yt8hIwKuHi9fG/9C0XoO9CSfPV78OHT2fV6rHiD0uYI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=n+TRPPv2uaZzjwIzfDSb+XhvkmNR0Izje86P+5342srqbd49W3bI2cLG8wfpA3O3O+XaR0KZRltck60Eh7J7ji3wuRb43hkWTFd9Lb2Al4xK621SQAipuiYDXXntke2wsGkK/5ooN8uP/HftFg3IwLL+HwBAM2lcqqmPHR1d+GA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Msol5c2e; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CB882C2BD10; Fri, 17 May 2024 18:59:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715972344; bh=Yt8hIwKuHi9fG/9C0XoO9CSfPV78OHT2fV6rHiD0uYI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Msol5c2ebRtlfXBEfaKTuTEYF9et2HbfZPrSs7cuyhrUp6ZdcBfPnH6QTWFWxdBXX RkRExgHpaW/S+elCa/4Etqz/2axIs9mSFQwNntRuEmLZHOGihOBs+vfriP5pwUs5J+ CsiHQYfUVWeUV3eEuZhCUaTGG0kXzM/Q1hG/IPlO92hXK/N9xKB+q5oLHVW2TlenD7 Fw8BdkRi1XMjdaVaqO007x5upNqb/RtykzuWuje/Fs6kAFcugeHnWL5uY7jJa6K4/1 j1qiC+4UYuGtFKbxo0ItOd6WQS+wnu2JSJeN7hiC9i2h6QWJhqgzuby39NoeHMuNBP buFIehWpX0Hag== From: Kalle Valo To: Dave Hansen Cc: Borislav Petkov , Pawan Gupta , Thomas Gleixner , Ingo Molnar , Dave Hansen , "Rafael J. Wysocki" , x86@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, regressions@lists.linux.dev, Jeff Johnson Subject: Re: [regression] suspend stress test stalls within 30 minutes References: <87o79cjjik.fsf@kernel.org> <20240511184847.GCZj-9j2sh1Akpt9iS@fat_crate.local> <20240511184945.GDZj-9yaOEWqf1ng8u@fat_crate.local> <87h6f4jdrq.fsf@kernel.org> <878r0djxgc.fsf@kernel.org> <874jb0jzx5.fsf@kernel.org> <20240514160555.GCZkOL41oB3hBt45eO@fat_crate.local> <87msoofjg1.fsf@kernel.org> <35086bb6-ee11-4ac6-b8ba-5fab20065b54@intel.com> <871q60ffnr.fsf@kernel.org> <7813dff5-b140-48c4-bc15-ed25c7a07591@intel.com> Date: Fri, 17 May 2024 21:58:59 +0300 In-Reply-To: <7813dff5-b140-48c4-bc15-ed25c7a07591@intel.com> (Dave Hansen's message of "Fri, 17 May 2024 11:48:44 -0700") Message-ID: <87eda0cljg.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Dave Hansen writes: > On 5/17/24 11:37, Kalle Valo wrote: >> While writing this email I found another way to continue the suspend >> after a stall: terminate rtcwake with CTRL-C in the ssh session running >> the for loop. That explains why 'sudo shutdown -h now' makes the suspend >> go forward, it most likely kills the stalled rtcwake process. > > Could we try and figure out what rtcwake is doing during its stall? A > couple of ideas: > > You could strace it to see if it's hung in the kernel: > > strace -o strace.log rtcwake ... > > You could look at its stack in /proc, like this: > > # cat /proc/`pidof sleep`/stack > [<0>] hrtimer_nanosleep+0xb5/0x190 > [<0>] common_nsleep+0x44/0x50 > [<0>] __x64_sys_clock_nanosleep+0xcb/0x140 > [<0>] do_syscall_64+0x65/0x140 > [<0>] entry_SYSCALL_64_after_hwframe+0x6e/0x76 > > Or you can use sysrq: > > echo t > /proc/sysrq-trigger > > to get *all* tasks' stacks dumped out to dmesg. > > I'd probably do all three in that order. > > Getting a function-graph trace of rtcwake during the stall would also be > nice, but that's a lot of data so let's try the easier things first. I can do all that but most probably not this week. Luckily it's quite easy to reproduce the bug, one time I even saw it in the first iteration and usually within 15 minutes or so. And do let me know if there's anything else I should try. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches