Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.kernel > #68047
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Salvatore Bonaccorso <carnil@debian.org> |
| Newsgroups | linux.debian.bugs.dist, linux.debian.kernel |
| Subject | Bug#964839: Debugging results |
| Date | Tue, 08 Sep 2020 06:40:01 +0200 |
| Message-ID | <AMDAd-6Lt-3@gated-at.bofh.it> (permalink) |
| References | <Ar9x7-5za-1@gated-at.bofh.it> <AMpGW-6Jk-7@gated-at.bofh.it> <Ar9x7-5za-1@gated-at.bofh.it> <AMvsZ-1Kh-1@gated-at.bofh.it> <Ar9x7-5za-1@gated-at.bofh.it> <AMvsZ-1Kh-1@gated-at.bofh.it> |
| X-Original-To | Felix Dörre <debian@felixdoerre.de> |
| X-Mailbox-Line | From debian-bugs-dist-request@lists.debian.org Tue Sep 8 04:33:08 2020 |
| Old-Return-Path | <debbugs@buxtehude.debian.org> |
| X-Spam-Flag | NO |
| X-Spam-Score | -4 |
| Reply-To | Salvatore Bonaccorso <carnil@debian.org>, 964839@bugs.debian.org |
| Original-Sender | Salvatore Bonaccorso <salvatore.bonaccorso@gmail.com> |
| Resent-To | debian-bugs-dist@lists.debian.org |
| Resent-Cc | Debian Kernel Team <debian-kernel@lists.debian.org> |
| X-Debian-Pr-Message | followup 964839 |
| X-Debian-Pr-Package | src:linux |
| X-Debian-Pr-Keywords | pending confirmed fixed-upstream upstream |
| X-Debian-Pr-Source | linux |
| X-Spam-Bayes | score:0.0000 Tokens: new, 18; hammy, 150; neutral, 168; spammy, 0. spammytokens: hammytokens:0.000-+--H*F:U*carnil, 0.000-+--H*RU:sk:lorien., 0.000-+--H*r:sk:lorien., 0.000-+--Hx-spam-relays-external:sk:lorien., 0.000-+--H*r:lorien |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=vJ2JyJ+84CB0vNTb8JW/7Y2ipuCx5xqHcde/q33265k=; b=O4ckmeYPEuhC/yNuRzjRfpaNOdPo5xP4iGEydojJgcpVIbisbRv6qtPX1dEKSVyXjQ kqhgw6R1SBAFFEWMr9V/ptKMGhI4FGQVtpZ+T2BqGHtBwYqEkJz52gc1+55sHALnZqLQ W0upJEyZPREynjg3vDKcSH2jZovgVbi0pf1RGWCq4Wl0SwDpgaQqLBKHDVG+tyjOuEtg 33DN9NI1Id5LPwEjSlDnhwxhBL9ZV0v6Y+5hU6jERwROgVWGOKoFq3MmKUnp4N85Kd/Q CdWtmTwz8kDu91HrDyYBR8u4VlbRdqJaVDpgh788aX6Pwz9+nc11cm/3inQV0uJzLgU7 JeSw== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=vJ2JyJ+84CB0vNTb8JW/7Y2ipuCx5xqHcde/q33265k=; b=E/UZ+GojLgr3Nca8ar9NaqHU9vWr36CoknhQABjLXSdVQG1pnpwXqI81UF4msCCids t+XaDjd6/B7Zq1D4B8+zAYF1EVG/ZOJi5/9tXJCD2o8ftZyxBJ7WeUMbIfWC8L7ZR7YY RywzRXNBhCArhZjaQ0codiOmA6sTYs3sdoV1GVxnefodcjvjGs/+FxDeh44N9QrmpQlH mQxwEhCKywvoTtsHq7ZFPjFrcxIx6sVI33nITgzpE97KSEOP0sS+LbXjPAotIv4sUuM/ 9YGqB76bIV1+PmqQV6Td2qo9RyZF4lIS2UT2iWLp3jM86hRwIK8DOi2ypC4CiOG4PUmZ v67Q== |
| X-Gm-Message-State | AOAM533dO4yuhr2HxfSY/wAHhBakzCySZaJ7KoJTNIw+kI8aUSpB6R1A fNkxriGzC/PDLvlhjBbAsN17q/uX1VrUzw== |
| X-Google-SMTP-Source | ABdhPJxd4YGi3UZfcZVuPu0b+bkQqk3UfxMfzpIBcOCH6pzZutMcamQEtjysYn9VRxdKvrHoGQAcfw== |
| X-Received | by 2002:a1c:408a:: with SMTP id n132mr2190714wma.45.1599539489264; Mon, 07 Sep 2020 21:31:29 -0700 (PDT) |
| Sender | robomod@news.nic.it |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=iso-8859-1 |
| Content-Disposition | inline |
| Content-Transfer-Encoding | 8bit |
| User-Agent | Mutt/1.10.1 (2018-07-13) |
| X-Debian-Message | from BTS |
| X-Mailing-List | <debian-bugs-dist@lists.debian.org> archive/latest/1621857 |
| List-ID | <debian-bugs-dist.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-bugs-dist/> |
| Approved | robomod@news.nic.it |
| Lines | 66 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | 964839@bugs.debian.org |
| X-Original-Date | Tue, 8 Sep 2020 06:31:26 +0200 |
| X-Original-Message-ID | <20200908043126.GA1928@lorien.valinor.li> |
| X-Original-References | <159441916965.56428.16845990399486424586.reportbug@localhost> <d07813e7-b239-6da9-5d5f-d47393372245@felixdoerre.de> <159441916965.56428.16845990399486424586.reportbug@localhost> <20200907195502.GA907581@eldamar.local> <159441916965.56428.16845990399486424586.reportbug@localhost> <20200907195502.GA907581@eldamar.local> |
| X-Original-Sender | Salvatore Bonaccorso <salvatore.bonaccorso@gmail.com> |
| Xref | csiph.com linux.debian.bugs.dist:1024215 linux.debian.kernel:68047 |
Cross-posted to 2 groups.
Show key headers only | View raw
Hi Felix, On Mon, Sep 07, 2020 at 09:55:02PM +0200, Salvatore Bonaccorso wrote: > Hi Felix, > > Many thanks for your debugging work! > > On Mon, Sep 07, 2020 at 03:39:25PM +0200, Felix Dörre wrote: > > Hi, > > > > Thanks for the notes. I did not install the 5.8.7-kernel because it did not > > automatically arrive via apt (and I am not sure which packages exactly I > > should install). So I went directly into trying to bisecting: > > > > Bisecting did not help at all. The first few kernels generated by the > > commits indicated by bisect did not boot at all (loading the initramfs > > hangs). So as I already had a linux kerrnel I tried compiling the versions > > that I tested previously (just to see if they would boot and show the same > > problem): 5.6.14 and 5.7.6. That worked. > > > > So I went with the 5.7.6-kernel and added printk-calls to understand what > > happens: > > > > The mechanism to send the notifications on PM_SUSPEND allows many modules to > > register handlers. Adding prints there showed, that the handler was not > > "completely" broken. Handlers from other modules were invoked. However the > > mechanism that allows handlers to "break" the notification-chain and > > preventing all subsequent handlers to be executed. This is done, by > > returning "NOTIFY_STOP" from the handler. Searching the diff between 5.6.14 > > and 5.7.6 for that constant showed a suspicious line at the end of > > hci_suspend_notifier in net/bluetooth/hci_core.c: > > > > return ret ? notifier_from_errno(-EBUSY) : NOTIFY_STOP; > > > > This line was introduced with 9952d90ea2885d7cbf80cd233f694f09a9c0eaec > > (which is in 5.7.6 and not in 5.6.14). > > > > The handler was modified and improved upon between 5.7.6 and 5.8.7, but is > > still present in 5.8.7, where the handler always returns NOTIFY_STOP. In > > master the bug seems resolved, as there the handler returns (correctly) > > NOTIFY_DONE. The fix was made in 24b065727ceba53cc5bec0e725672417154df24f. > > Currently that commit is only contained in the tags: v5.9-rc1, v5.9-rc2, > > v5.9-rc3. To verify that this is indeed the problem I took the 5.7.6-kernel > > and adjusted: > > > > return ret ? notifier_from_errno(-EBUSY) : NOTIFY_STOP; > > > > to > > > > > > return ret ? notifier_from_errno(-EBUSY) : NOTIFY_DONE; > > > > which gave me a working 5.7.6-kernel. > > > > Will you try to backport a fix or do I just need to wait until 5.9 for a > > kernel that might handle suspend properly again? > > I cherry-picked the commit and applied it to our packaging branch for > the next upload to unstable: > https://salsa.debian.org/kernel-team/linux/-/commit/a00d070d0498b28b5236420faf976d46fdb74362 It has additionally been queued for v5.8.y stable series: https://lore.kernel.org/stable/20200907222024.GP8670@sasha-vm/T/#t Regards, Salvatore
Back to linux.debian.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Bug#964839: Debugging results Felix Dörre <debian@felixdoerre.de> - 2020-09-07 15:50 +0200
Bug#964839: Debugging results Salvatore Bonaccorso <carnil@debian.org> - 2020-09-07 22:00 +0200
Bug#964839: Debugging results Salvatore Bonaccorso <carnil@debian.org> - 2020-09-08 06:40 +0200
csiph-web