Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1230762ybz; Wed, 22 Apr 2020 16:22:55 -0700 (PDT) X-Google-Smtp-Source: APiQypKtLbUaFQtjiRoMhjrTvthJ7tCQ0xUTC5NVBYHxWHqJjHLQnv3BOWFuvehzubNzMgXL+7kY X-Received: by 2002:a50:9f8f:: with SMTP id c15mr674975edf.377.1587597775426; Wed, 22 Apr 2020 16:22:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587597775; cv=none; d=google.com; s=arc-20160816; b=vaAUnkS/DejfLbyORWUWJ1dO1r+cJHMT6pOARS0v3q5Owh9I58VsTNjH7Wmifx2P6e K9j1NcGwyvbvgG0ETw4w4MHFNGjFky0MVAjEhmvhtbhC/Ucx1dO8HD7XhFGPkxBTlGkj aidbtaFdR6M5GbdV0KZ3VTosNxfWb73CQfm2cehIrh0l+qdp5NlcHdJ1tWiwpFTy3CWK Io/OLvf5ni33/WiFyEuwROhjRj9j1Goa68c/3Zvz3fBQy6x1Rd7AGhHlMhOk3So/xL4E +f7Qewcv5xFdY6Nh21vViAaGkIE3ArUEcZDrL6PNGCPBs8BFac47UIGx3tz5Pr/yqt1g uOkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=EcAw2CCsKEsZoM75wehOyhPplmkMheGdWM3x9f5zvKI=; b=jr0ifb9Gv/DIeWkE2kNwiXyu7R7seoB/cXu75tYXD4Sh75gNNAghciWzhR6vnXCiNE vx52XkC3CH26U4cPnELOZYljUEOeHJQAlz7e4XVQMDKNEY6K705uI8cJEHD9EnPSG5nL DXQQKkR+m9VdzBcT7eagxSCgB8iwHOCYz2Yhxsf+L2w+xgg/heSJ9VcK88lFKti8sD+S ZFhJ0gkuVl8/vYr0VwSL8Zbcadxn2ddk7niAQFWR3AjV2QL4XfB5UGdwMqimLWXA9wju 8gc0W6ew5FbJOv7RoPT3N20m8YKvJBvotDxekbOj3MJc+ShICw3fvW2wyU0Grraz2KCY rZnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="ZlR+o4j/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d10si298585edq.344.2020.04.22.16.22.31; Wed, 22 Apr 2020 16:22:55 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b="ZlR+o4j/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726228AbgDVXVa (ORCPT + 99 others); Wed, 22 Apr 2020 19:21:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:60670 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725968AbgDVXVa (ORCPT ); Wed, 22 Apr 2020 19:21:30 -0400 Received: from localhost (mobile-166-175-187-227.mycingular.net [166.175.187.227]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 529712076C; Wed, 22 Apr 2020 23:21:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587597689; bh=eQWN3pP46KHM49RJh6DB+rLU7u/InpAf2XNNJk3Uh0A=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=ZlR+o4j/dIfsKlG85ZyM/YXf5IjN3j5mL315OQtJva0g0unK7gSvSEvf93zO6/i9D RXsaegX5CNyrsxE8zkl9PnrDZXu5bGH8raTLZ40pfFSDEBdGUpy9GmQDya+o6RsQrc KS9fX0bRBoDa5BlL1cBbNhSkocIzs8LGohDtrQaQ= Date: Wed, 22 Apr 2020 18:21:27 -0500 From: Bjorn Helgaas To: Takashi Iwai Cc: "Alex Xu (Hello71)" , alsa-devel@alsa-project.org, Roy Spliet , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, "Rafael J. Wysocki" , linux-pm@vger.kernel.org Subject: Re: Unrecoverable AER error when resuming from RAM (hda regression in 5.7-rc2) Message-ID: <20200422232127.GA24666@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 22, 2020 at 11:25:04PM +0200, Takashi Iwai wrote: > On Wed, 22 Apr 2020 22:50:28 +0200, > Bjorn Helgaas wrote: > > ... > > I feel like this UR issue could be a PCI core issue or maybe some sort > > of misuse of PCI power management, but I can't seem to get traction on > > it. > > > > > Then the display freezes and the system basically falls apart (can't > > > even sudo reboot -f, need to use magic sysrq). > > > > > > I bisected this to "ALSA: hda: Skip controller resume if not needed". > > > Setting snd_hda_intel.power_save=0 resolves the issue. > > > > FWIW, the complete citation is c4c8dd6ef807 ("ALSA: hda: Skip > > controller resume if not needed"), > > https://git.kernel.org/linus/c4c8dd6ef807, which first appeared in > > v5.7-rc2. > > Yes, and I posted the fix patch right now: > https://lore.kernel.org/r/20200422203744.26299-1-tiwai@suse.de > > The possible cause was the tricky resume code that both HD-audio > controller (the parent PCI device) and the codec devices used. > > At least the patch above seems working for the reporter's machine. > Now we need a bit more testing before merging, but it looks promising, > so far. Great, I'm glad you figured something out because I sure wasn't getting anywhere! Maybe this is a tangent, but I can't figure out what snd_power_change_state() is doing. It *looks* like it's supposed to change the PCI power state, but I gave up trying to figure out where it actually touches the device. It seems like sound has more magic in power management than other device types, which makes me wonder if we're not providing the right interfaces or something. Bjorn