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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CEF05C54EAA for ; Mon, 30 Jan 2023 23:28:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230337AbjA3X2N (ORCPT ); Mon, 30 Jan 2023 18:28:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230261AbjA3X2K (ORCPT ); Mon, 30 Jan 2023 18:28:10 -0500 Received: from mail-qv1-xf2e.google.com (mail-qv1-xf2e.google.com [IPv6:2607:f8b0:4864:20::f2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA2EB29E10 for ; Mon, 30 Jan 2023 15:28:07 -0800 (PST) Received: by mail-qv1-xf2e.google.com with SMTP id d13so10031600qvj.8 for ; Mon, 30 Jan 2023 15:28:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=bmBE85HsciAbIIMS0yOe3l7FgaHGQXtcytfZQJSmxO0=; b=S0uq6kVOcVxXjbSrSgERLfItROwiDvkdWRHnN2GdDsQRuqeyQ7177xQJhPsIKqho56 Fo1Vk4z/X8u/F+LOUPIlH1foeDJQ2GXsLkaBmL3O1iNPMD4oMIEcD4zl+NQq+gMUMYPa fHkd+/iDTKHlmDIC+7EkIojMdYdwlRGRfnBykTZzurvxQ27gj+7zPrxNUoK4OWgzJHdG i1IlkmiPLbqabThOF1jCgwfm4ba+p3F19MOMdmC32ITYqM00NXC231RnxO1VSA4h8c8j m4ToedpT1zsTm1gDtVZzhgSJ2xKLrGZ7baEd1OlZCAJm2EuAX9wCUpWP0yCZtfFBbtEb GW7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bmBE85HsciAbIIMS0yOe3l7FgaHGQXtcytfZQJSmxO0=; b=VuBzsgb1ERkcL+7PR+uF3YeaAp3VvRmJRAtp4sb6wsG7AoLVjDwL5QLLREcFUJHC9y a+Pq8WXNnrHqPqpmo/5KfT2Ii+qvXRR31QD57eQTG+y7fCrNtRAqqmstvtkYcM+VLUGK koRWmF+RDfjRM2AG8EtM2EFkFNB7bAt6+0FQUGHNCbnzx0GXKLp6lJsnbwrp3KX78Z47 lRHz+nUUO8fi6UjiRYJ8zfWqzpftkTpcn2h2VI0qObOvjpLkegYWhJpMEIOrGNXkJIsf FxQU9JTNjZoGRFfJTuZt38hXxZ1mrL3eyt9M8fR6hzsAqXMWliIORoHR82K7hRXPolvH qJ/g== X-Gm-Message-State: AO0yUKWyA611FZ99ABjfVRzsz/PnOEG7Zw+vVS1eXRcHGUX8SPLdqrnM xe6lc0MFN5mqWq+ySzf+nYWhPlzmphhkT/4YfMxC9QR21T8= X-Google-Smtp-Source: AK7set9or4XA7meh3Hg8ca4eIDcBBKeqU6thMY4tegDekaLTVqEMt8XXBu9cHQZoNCthUBN3zU2lm+DakWHrVo4U13s= X-Received: by 2002:a05:6214:11b0:b0:53b:f96b:4e20 with SMTP id u16-20020a05621411b000b0053bf96b4e20mr409435qvv.27.1675121287028; Mon, 30 Jan 2023 15:28:07 -0800 (PST) MIME-Version: 1.0 References: <3ab28896-70e9-6f90-5b97-e5397b06e715@googlemail.com> <1cdb84ac-f7a8-66ba-98fc-3db302b49a5a@googlemail.com> In-Reply-To: From: Ben Skeggs Date: Tue, 31 Jan 2023 09:27:54 +1000 Message-ID: Subject: Re: linux-6.2-rc4+ hangs on poweroff/reboot: Bisected To: Chris Clayton Cc: Linux regressions mailing list , bskeggs@redhat.com, Karol Herbst , Lyude Paul , ML nouveau , LKML , ML dri-devel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 31 Jan 2023 at 09:09, Chris Clayton wrote: > > Hi again. > > On 30/01/2023 20:19, Chris Clayton wrote: > > Thanks, Ben. > > > > >> Hey, > >> > >> This is a complete shot-in-the-dark, as I don't see this behaviour on > >> *any* of my boards. Could you try the attached patch please? > > > > Unfortunately, the patch made no difference. > > > > I've been looking at how the graphics on my laptop is set up, and have a bit of a worry about whether the firmware might > > be playing a part in this problem. In order to offload video decoding to the NVidia TU117 GPU, it seems the scrubber > > firmware must be available, but as far as I know,that has not been released by NVidia. To get it to work, I followed > > what ubuntu have done and the scrubber in /lib/firmware/nvidia/tu117/nvdec/ is a symlink to > > ../../tu116/nvdev/scrubber.bin. That, of course, means that some of the firmware loaded is for a different card is being > > loaded. I note that processing related to firmware is being changed in the patch. Might my set up be at the root of my > > problem? > > > > I'll have a fiddle an see what I can work out. > > > > Chris > > > >> > >> Thanks, > >> Ben. > >> > >>> > > Well, my fiddling has got my system rebooting and shutting down successfully again. I found that if I delete the symlink > to the scrubber firmware, reboot and shutdown work again. There are however, a number of other files in the tu117 > firmware directory tree that that are symlinks to actual files in its tu116 counterpart. So I deleted all of those too. > Unfortunately, the absence of one or more of those symlinks causes Xorg to fail to start. I've reinstated all the links > except scrubber and I now have a system that works as it did until I tried to run a kernel that includes the bad commit > I identified in my bisection. That includes offloading video decoding to the NVidia card, so what ever I read that said > the scrubber firmware was needed seems to have been wrong. I get a new message that (nouveau 0000:01:00.0: fb: VPR > locked, but no scrubber binary!), but, hey, we can't have everything. > > If you still want to get to the bottom of this, let me know what you need me to provide and I'll do my best. I suspect > you might want to because there will a n awful lot of Ubuntu-based systems out there with that scrubber.bin symlink in > place. On the other hand,m it could but quite a while before ubuntu are deploying 6.2 or later kernels. The symlinks are correct - whole groups of GPUs share the same FW, and we use symlinks in linux-firmware to represent this. I don't really have any ideas how/why this patch causes issues with shutdown - it's a path that only gets executed during initialisation. Can you try and capture the kernel log during shutdown ("dmesg -w" over ssh? netconsole?), and see if there's any relevant messages providing a hint at what's going on? Alternatively, you could try unloading the module (you will have to stop X/wayland/gdm/etc/etc first) and seeing if that hangs too. Ben. > > Thanks, > > Chris > >