public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: "Deucher, Alexander" <Alexander.Deucher@amd.com>
Cc: Nicholas Johnson <nicholas.johnson-opensource@outlook.com.au>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"amd-gfx@lists.freedesktop.org" <amd-gfx@lists.freedesktop.org>,
	Takashi Iwai <tiwai@suse.com>,
	"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
	Lukas Wunner <lukas@wunner.de>,
	"Koenig, Christian" <Christian.Koenig@amd.com>,
	"Zhou, David(ChunMing)" <David1.Zhou@amd.com>
Subject: Re: [PATCH 0/1] Fiji GPU audio register timeout when in BACO state
Date: Mon, 27 Apr 2020 17:15:55 +0200	[thread overview]
Message-ID: <s5ho8rdnems.wl-tiwai@suse.de> (raw)
In-Reply-To: <MN2PR12MB4488E4909C1488FB507E0BF5F7AF0@MN2PR12MB4488.namprd12.prod.outlook.com>

On Mon, 27 Apr 2020 16:22:21 +0200,
Deucher, Alexander wrote:
> 
> [AMD Public Use]
> 
> > -----Original Message-----
> > From: Nicholas Johnson <nicholas.johnson-opensource@outlook.com.au>
> > Sent: Sunday, April 26, 2020 12:02 PM
> > To: linux-kernel@vger.kernel.org
> > Cc: Deucher, Alexander <Alexander.Deucher@amd.com>; Koenig, Christian
> > <Christian.Koenig@amd.com>; Zhou, David(ChunMing)
> > <David1.Zhou@amd.com>; Nicholas Johnson <nicholas.johnson-
> > opensource@outlook.com.au>
> > Subject: [PATCH 0/1] Fiji GPU audio register timeout when in BACO state
> > 
> > Hi all,
> > 
> > Since Linux v5.7-rc1 / commit 4fdda2e66de0 ("drm/amdgpu/runpm: enable
> > runpm on baco capable VI+ asics"), my AMD R9 Nano has been using runpm /
> > BACO. You can tell visually when it sleeps, because the fan on the graphics
> > card is switched off to save power. It did not spin down the fan in v5.6.x.
> > 
> > This is great (I love it), except that when it is sleeping, the PCIe audio function
> > of the GPU has issues if anything tries to access it. You get dmesg errors such
> > as these:
> > 
> > snd_hda_intel 0000:08:00.1: spurious response 0x0:0x0, last cmd=0x170500
> > snd_hda_intel 0000:08:00.1: azx_get_response timeout, switching to polling
> > mode: last cmd=0x001f0500 snd_hda_intel 0000:08:00.1: No response from
> > codec, disabling MSI: last cmd=0x001f0500 snd_hda_intel 0000:08:00.1: No
> > response from codec, resetting bus: last cmd=0x001f0500
> > snd_hda_codec_hdmi hdaudioC1D0: Unable to sync register 0x2f0d00. -11
> > 
> > The above is with the Fiji XT GPU at 0000:08:00.0 in a Thunderbolt enclosure
> > (not that Thunderbolt should affect it, but I feel I should mention it just in
> > case). I dropped a lot of duplicate dmesg lines, as some of them repeated a
> > lot of times before the driver gave up.
> > 
> > I offer this patch to disable runpm for Fiji while a fix is found, if you decide
> > that is the best approach. Regardless, I will gladly test any patches you come
> > up with instead and confirm that the above issue has been fixed.
> > 
> > I cannot tell if any other GPUs are affected. The only other cards to which I
> > have access are a couple of AMD R9 280X (Tahiti XT), which use radeon driver
> > instead of amdgpu driver.
> 
> Adding a few more people.  Do you know what is accessing the audio?  The audio should have a dependency on the GPU device.  The GPU won't enter runtime pm until the audio has entered runtime pm and vice versa on resume. Please attach a copy of your dmesg output and lspci output.

Also, please retest with the fresh 5.7-rc3.  There was a known
regression regarding HD-audio PM in 5.7-rc1/rc2, and it's been fixed
there (commit 8d6762af302d).


thanks,

Takashi

  reply	other threads:[~2020-04-27 15:15 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-26 16:02 [PATCH 0/1] Fiji GPU audio register timeout when in BACO state Nicholas Johnson
2020-04-26 16:02 ` [PATCH 1/1] drm/amdgpu/runpm: Disable runpm on Fiji due to audio register timeout Nicholas Johnson
2020-04-27 14:22 ` [PATCH 0/1] Fiji GPU audio register timeout when in BACO state Deucher, Alexander
2020-04-27 15:15   ` Takashi Iwai [this message]
2020-04-27 17:20     ` Nicholas Johnson
2020-04-27 18:28       ` Alex Deucher
2020-04-27 18:39         ` Takashi Iwai
2020-04-27 18:43           ` Alex Deucher
2020-04-28  7:57             ` Takashi Iwai
2020-04-28 14:48               ` Nicholas Johnson
2020-04-29  7:37                 ` Takashi Iwai
2020-04-29 15:27                   ` Nicholas Johnson
2020-04-29 15:43                     ` Takashi Iwai
2020-04-29 15:47                     ` Alex Deucher
2020-04-29 16:05                       ` Takashi Iwai
2020-04-29 16:19                         ` Alex Deucher
2020-04-30 15:14                           ` Takashi Iwai
2020-04-30 16:52                             ` Nicholas Johnson
2020-04-30 17:01                               ` Takashi Iwai
2020-04-30 17:38                                 ` Nicholas Johnson
2020-04-30 17:49                                   ` Takashi Iwai
2020-05-02  7:11                                     ` Takashi Iwai
2020-05-02  7:17                                       ` Lukas Wunner
2020-05-02  7:27                                         ` Takashi Iwai
2020-05-02 10:09                                           ` Takashi Iwai
2020-05-06 15:15                                             ` Nicholas Johnson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5ho8rdnems.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=Alexander.Deucher@amd.com \
    --cc=Christian.Koenig@amd.com \
    --cc=David1.Zhou@amd.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lukas@wunner.de \
    --cc=nicholas.johnson-opensource@outlook.com.au \
    --cc=tiwai@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox