Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1431087pxb; Thu, 28 Jan 2021 16:58:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJw7sEDTROCtHOuvtdm2GGiyMiORho8TqVUGMQ4iwyEIstbK+9ZpZDEeXQO7Gtlj9xCm3EN7 X-Received: by 2002:a17:906:7d09:: with SMTP id u9mr2064577ejo.380.1611881907753; Thu, 28 Jan 2021 16:58:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611881907; cv=none; d=google.com; s=arc-20160816; b=Vf4RdLPw5ux9eRqycUNemfVYcFr+49OYQn8NIydx8IlL+mbeo7rcni5VfWrGqGOj0B x3/ZtYjPMAM9G+CBq1K2f3HFQELm4qlJ+X3N9mTXRfFzD92/3Vgw+2PSyeqTJrTx38HX by2YNsu0nW+b9N1LUQO3ppBT3Ndx4/VvNjLnT+1/+rTlja/Oo1RnntsNWG5+1+/BT62O XEknwoAeIvUjnRv+y5nekIgtecuC7penh4jpLbGQbxzND2MIY7To/eqotHpB2KPSjIEn BtHz03bRYXm8k+RKQDB2YRlAufNoTJtaIRN7+fvks5iA+xO4y3btieS6j4SBvxaNrNj8 SgHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date; bh=72bHzHAgJbIkhvQytsapjeZRaJ1o/v3TvuLszx/L3cM=; b=Wz3HpIEfq0J4cfnnIBFUgVjbEdD+eBHZ+4JQ6itAY4HQhdbr6HJw8xR8eM3CtorV1f 29urnTSOVfHQUgNEALmdrmfrH7Xp5JOJ88dxsf7lVevyA5uzR+1lD9z4RpNhBRcD2H4P 7LCA0tJ8CuvLEnDRkaRjiuYR4ry2EX/q1ryIYAFPfaYb6VFdh/pOJRsBozivCr/4zY9s kBSjkDwserH76I7iM6T0IJlCQPlbstWdNIu4/80gZHbUL3aXTURb3KVVHkZ8QXdlfnwq K0RHZgM/pe5j67o0Wp/c80z6Xmi3Omk2eG/sSeBeVcz9AouJOMOCxhoExhC7t0bZIrCv UGrA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t8si3665556ejr.334.2021.01.28.16.58.03; Thu, 28 Jan 2021 16:58:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231287AbhA2A5J (ORCPT + 99 others); Thu, 28 Jan 2021 19:57:09 -0500 Received: from magic.merlins.org ([209.81.13.136]:38518 "EHLO mail1.merlins.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229627AbhA2A5J (ORCPT ); Thu, 28 Jan 2021 19:57:09 -0500 Received: from [204.250.24.206] (port=54620 helo=sauron.svh.merlins.org) by mail1.merlins.org with esmtpsa (Cipher TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92 #3) id 1l5I5K-0000Av-Lm by authid with srv_auth_plain; Thu, 28 Jan 2021 16:56:26 -0800 Received: from merlin by sauron.svh.merlins.org with local (Exim 4.92) (envelope-from ) id 1l5I5K-0008IY-7Q; Thu, 28 Jan 2021 16:56:26 -0800 Date: Thu, 28 Jan 2021 16:56:26 -0800 From: Marc MERLIN To: Bjorn Helgaas Cc: nouveau@lists.freedesktop.org, Mika Westerberg , LKML , Linux PCI Subject: Re: 5.9.11 still hanging 2mn at each boot and looping on nvidia-gpu 0000:01:00.3: PME# enabled (Quadro RTX 4000 Mobile) Message-ID: <20210129005626.GP29348@merlins.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210128205946.GA27855@bjorn-Precision-5520> <20210127213300.GA3046575@bjorn-Precision-5520> X-Sysadmin: BOFH X-URL: http://marc.merlins.org/ X-Broken-Reverse-DNS: no host name for IP address 204.250.24.206 X-SA-Exim-Connect-IP: 204.250.24.206 X-SA-Exim-Mail-From: marc_nouveau@merlins.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 27, 2021 at 03:33:00PM -0600, Bjorn Helgaas wrote: > Hi Marc, I appreciate your persistence on this. I am frankly > surprised that you've put up with this so long. Well, been using linux for 27 years, but also it's not like I have much of a choice outside of switching to windows, as tempting as it's getting sometimes ;) > > after boot, when it gets the right trigger (not sure which ones), it > > loops on this evern 2 seconds, mostly forever. > > > > I'm not sure if it's nouveau's fault or the kernel's PCI PME's fault, or something else. > > IIUC there are basically two problems: > > 1) A 2 minute delay during boot > Another random thought: is there any chance the boot delay could be > related to crypto waiting for entropy? So, the 2mn hang went away after I added the nouveau firwmare in initrd. The only problem is that the nouveau driver does not give a very good clue as to what's going on and what to do. For comparison the intel iwlwifi driver is very clear about firmware it's trying to load, if it can't and what exact firmware you need to find on the internet (filename) > 2) Some sort of event every 2 seconds that kills your battery life > Your machine doesn't sound unusual, and I haven't seen a flood of > similar reports, so maybe there's something unusual about your config. > But I really don't have any guesses for either one. Honestly, there are not too many thinpad P73 running linux out there. I wouldn't be surprised if it's only a handful or two. > It sounds like v5.5 worked fine and you first noticed the slow boot > problem in v5.8. We *could* try to bisect it, but I know that's a lot > of work on your part. I've done that in the past, to be honest now that it works after I added the firmware that nouveau started needing, and didn't need before, the hang at boot is gone for sure. The PCI PM wakeup issues on batteries happen sometimes still, but they are much more rare now. > Grasping for any ideas for the boot delay; could you boot with > "initcall_debug" and collect your "lsmod" output? I notice async_tx > in some of your logs, but I have no idea what it is. It's from > crypto, so possibly somewhat unusual? Is this still neeeded? I think of nouveau does a better job of helping the user correct the issue if firmware is missing (I think intel even gives a URL in printk), that would probably be what's needed for the most part. [ 12.832547] async_tx: api initialized (async) comes from ./crypto/async_tx/async_tx.c Thanks for your answer, let me know if there is anything else useful I can give, I think I'm otherwise mostly ok now. Marc -- "A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08