Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp638615lqp; Fri, 5 Apr 2024 04:49:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXI2w4RPXAIt/tkJAN798X47Bd/wNQ+pS/99b3HuAfm+iOwdITqrwk8u/DZuqVzMD2zSEmCxX69tZ+SBIDquDbxEtBuDDs3DEud9VMo0A== X-Google-Smtp-Source: AGHT+IETxSiyPPM/1/t4m9xLUH4L6AsV1eTRBG8ALKjyZdADLYHURb+Ilzuw2D2gKGpEF4GqENAZ X-Received: by 2002:a17:907:961a:b0:a51:98df:f664 with SMTP id gb26-20020a170907961a00b00a5198dff664mr1060006ejc.76.1712317765076; Fri, 05 Apr 2024 04:49:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712317765; cv=pass; d=google.com; s=arc-20160816; b=Y7qaWHRnQNb5WjsYHWWCkut3JcZ/0U0C8KfMSgKuLxExkz2sELryR9YW1IQYyi8LWb oup1x0/na53QGIuuZOul6TGs15G94waLFY1iuJX+fOxnQqrl8qwPTvPjcvhRUTcKrGmQ ptyZwlvXvncB6fD/JjXm8TUIz7/+cCrP6zn4YDw/SqC+nHKsmJTeJNdXuFmrGEhcs+tZ xj4VtKrBQ9h5NWUwmwi1QxMluR6RvhH9bUbX2uZty9QU11/GZk12aEAGLep8VzRh11dt LpKrKuQviPRRZ9cPAT4Fg/9PIXpu4o8AuD5vDw/XlL/2kL93bcz5YNXAlrOwsHMSbsGq WGlQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:to:from; bh=0CdihA5otbDbaFMV1/89YhAk32kcbg1eYzQ+SQIVy74=; fh=FSeZcAolZLMUZFJyIL5Mvb9APIN3M7F6DbF0u7PiW/w=; b=f6SKfwA+09xgmqLhhtYGNBgeaCTTFykxT0M2Q2ODFOSgvrc81gEepw+y2f4onvzd/j EQXX6FzKSo3Limdb4XqGG3OpAJtvXKJv2rmbZsgupI8CBwYftYiXYSQ0J6ohKxVYiYYJ dxGwN48HdXjHRYQHPkjraypwY0gZxJFwN1EI70TSGhe86s6skqq6R15rMDqdmBwDPek5 oqKGka30q6W40VmfSQGQ67JnTO9qe0LCChwZX2p1R9YK3/nd+9RrSZOe095ywmc849gr 5wQ6g29Jt7ag28dN8uArq5VJxz/66BvWikJZawkX6wfydACTEw2ozL2wuxfeBnDUlWuK dk+Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=lichtvoll.de); spf=pass (google.com: domain of linux-kernel+bounces-132924-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132924-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id h13-20020a1709063b4d00b00a519420028asi647317ejf.266.2024.04.05.04.49.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 04:49:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132924-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=lichtvoll.de); spf=pass (google.com: domain of linux-kernel+bounces-132924-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132924-linux.lists.archive=gmail.com@vger.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 am.mirrors.kernel.org (Postfix) with ESMTPS id C5DC91F238F6 for ; Fri, 5 Apr 2024 11:49:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B578816C6AF; Fri, 5 Apr 2024 11:49:15 +0000 (UTC) Received: from mail.lichtvoll.de (lichtvoll.de [89.58.27.11]) (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 AF7F016C696; Fri, 5 Apr 2024 11:49:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=89.58.27.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712317755; cv=none; b=NdAUdo5NPCgH+Co3HgXNyDjMVczhsRQZLxZ2VV9YLcuAJfd6YsTz3EIPIHvyLhUDNLO/IoP166WhV0lSQVgGrzGq5mVOyVbkWyzRR86hetXX3z/oXbDatgeDIKdygbuqxbrA04NHBzEMbXoUVGS7vvNd51/9imdj1FJupROvP5w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712317755; c=relaxed/simple; bh=1OjGkRdD/bYDsePiq+qSN6i3amCm1EPH02CPR05K2vM=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=kiL5yqvjfP82v0mQgbKnOZe8sdzqSGyKulNMBsuFlrsCuc2zXQF1v6F3rsIYpP3DTGfkPazKcMR+RLY3R9psbz/rffkjT5xyIWnZQBzizEs5tIDjoRmRvTu/cAOnLo9FsibNHGL3f6uBayHlBhY6niBFV1nYJd2LOr+Grt4lmVY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lichtvoll.de; spf=pass smtp.mailfrom=lichtvoll.de; arc=none smtp.client-ip=89.58.27.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lichtvoll.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lichtvoll.de Received: from 127.0.0.1 (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by mail.lichtvoll.de (Postfix) with ESMTPSA id 7EE44A155; Fri, 5 Apr 2024 11:49:04 +0000 (UTC) Authentication-Results: mail.lichtvoll.de; auth=pass smtp.auth=martin@lichtvoll.de smtp.mailfrom=martin@lichtvoll.de From: Martin Steigerwald To: linux-pm@vger.kernel.org, regressions@lists.linux.dev, linux-kernel@vger.kernel.org, Linux regressions mailing list Subject: Re: [regression] 6.8.1: fails to hibernate with pm_runtime_force_suspend+0x0/0x120 returns -16 Date: Fri, 05 Apr 2024 13:49:00 +0200 Message-ID: <6034738.lOV4Wx5bFT@lichtvoll.de> In-Reply-To: References: <2325246.ElGaqSPkdT@lichtvoll.de> <12401263.O9o76ZdvQC@lichtvoll.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Linux regression tracking (Thorsten Leemhuis) - 19.03.24, 09:40:06 CEST: > On 16.03.24 17:12, Martin Steigerwald wrote: > > Martin Steigerwald - 16.03.24, 17:02:44 CET: > >> ThinkPad T14 AMD Gen 1 fails to hibernate with self-compiled 6.8.1. > >> Hibernation works correctly with self-compiled 6.7.9. > >=20 > > Apparently 6.8.1 does not even reboot correctly anymore. runit on > > Devuan. It says it is doing the system reboot but then nothing > > happens. > >=20 > > As for hibernation the kernel cancels the attempt and returns back to > > user space desktop session. > >=20 > >> Trying to use "no_console_suspend" to debug next. Will not do bisect > >> between major kernel releases on a production machine. >=20 > FWIW, without a bisection I guess no developer will take a closer look > (but I might be wrong and you lucky here!), as any change in those > hundreds of drivers used on that machine can possibly lead to problems > like yours. So without a bisection we are likely stuck here, unless > someone else runs into the same problem and bisects or fixes it. Sorry, > but that's just how it is. The plot thickens, now 6.7.12 as compared to 6.7.11 which failed hibernation with busy work queues=B9 and 6.7.9 + bcachefs downgrade fixes fails hibernation with the same error message than 6.8.1: [ 74.330285] PM: hibernation: hibernation entry [ 74.617009] Filesystems sync: 0.097 seconds [ 74.617309] Freezing user space processes [ 74.620021] Freezing user space processes completed (elapsed 0.002 secon= ds) [ 74.620048] OOM killer disabled. [ 74.620250] PM: hibernation: Marking nosave pages: [mem 0x00000000-0x000= 00fff] [ 74.620253] PM: hibernation: Marking nosave pages: [mem 0x0009f000-0x000= fffff] [ 74.620256] PM: hibernation: Marking nosave pages: [mem 0x09c00000-0x09d= 00fff] [ 74.620261] PM: hibernation: Marking nosave pages: [mem 0x09f00000-0x09f= 0ffff] [ 74.620263] PM: hibernation: Marking nosave pages: [mem 0xa22b7000-0xa22= b7fff] [ 74.620264] PM: hibernation: Marking nosave pages: [mem 0xa22c4000-0xa22= c5fff] [ 74.620266] PM: hibernation: Marking nosave pages: [mem 0xa22d3000-0xa22= d4fff] [ 74.620267] PM: hibernation: Marking nosave pages: [mem 0xa22e5000-0xa22= e5fff] [ 74.620269] PM: hibernation: Marking nosave pages: [mem 0xb9533000-0xb95= c3fff] [ 74.620272] PM: hibernation: Marking nosave pages: [mem 0xbd9de000-0xcc3= fdfff] [ 74.620752] PM: hibernation: Marking nosave pages: [mem 0xce000000-0xfff= fffff] [ 74.622717] PM: hibernation: Basic memory bitmaps created [ 74.629269] PM: hibernation: Preallocating image memory [ 76.658495] PM: hibernation: Allocated 2042025 pages for snapshot [ 76.658875] PM: hibernation: Allocated 8168100 kbytes in 2.02 seconds (4= 043.61 MB/s) [ 76.658901] Freezing remaining freezable tasks [ 76.660457] Freezing remaining freezable tasks completed (elapsed 0.001 = seconds) [ 76.666115] port 0000:02:00.1:0.0: PM: dpm_run_callback(): pm_runtime_fo= rce_suspend+0x0/0x120 returns -16 [ 76.666255] port 0000:02:00.1:0.0: PM: failed to freeze: error -16 [ 78.616495] psmouse serio1: synaptics: queried max coordinates: x [..567= 8], y [..4694] [ 78.654349] psmouse serio1: synaptics: queried min coordinates: x [1266.= =2E], y [1162..] [ 79.106531] PM: hibernation: Basic memory bitmaps freed [ 79.106855] OOM killer enabled. [ 79.106873] Restarting tasks ... done. [ 79.111514] PM: hibernation: hibernation exit Not doing it today or probably the weekend, but now I have some actionable git bisect plan without bisecting between major kernel releases which as I have been told between 6.7 an 6.8-rc1 can lead to non working modeset graphics on AMD Ryzen in between. It seems now I only need to git bisect between 6.7.11 and 6.7.12 to find the patch that breaks hibernation on 6.8.1 as well. However first I will briefly check whether 6.8.4 hibernates okay. [1] * 6.7.11: Fails to hibernate - work queues still busy @ 2024-04-02 19:29 Martin Steigerwald https://lore.kernel.org/regressions/2ad93b57-8fdc-476e-83b7-2c0af1cfd41d@le= emhuis.info/T/#t Best, =2D-=20 Martin