Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2946220ybz; Mon, 27 Apr 2020 07:24:28 -0700 (PDT) X-Google-Smtp-Source: APiQypIK2KIrLsBoVkWe6FYXZV09J/90PFeFSWqKyX1st2VExB15j7qq/2Rwd45G1KpCsGotbYin X-Received: by 2002:a50:9b53:: with SMTP id a19mr19220015edj.104.1587997468796; Mon, 27 Apr 2020 07:24:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1587997468; cv=pass; d=google.com; s=arc-20160816; b=z374dLMY/zuBvV6zBYaV6gtP3HOJKXdOLQZ344zRdqvJoyzLxljNu09XHFuGCmA5W9 BTFWWmsbjTAefYnyimisnxXTC/suvN5wwfWGMmgsh9v/JTPvFYglNb+r/pnNjqQnIds1 wNQAtzHlqvNaTUHQ/Vo5yOpdptXDHdifB3+pQxBb/SfU+UTm7mAe7ckiIdGpD/hyGqVK XrBD66iftRUpt/UQvSBrLWkUMSihYvdPU09gKZjVRHSjiKr/iatHfhYhc5x8JGsWN1/f 9uaSVKYhm/i/6WHid+nyW2vwPWAc9uivk8onR4HwBOcnV3nksWWHs/IjdXUB9EV6KL/s Y0yA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_contentbits :msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_actionid :msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_siteid :msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_name :msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_method :msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_setdate :msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_enabled:msip_labels :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=RcHN2L0hBWiTwm0Xc7ioTkMoL6EXvWo5KzdGeDDSw24=; b=hU8P3ruw8IzpQBjLT+Az7arpFsBrh1wXQFodVRMfi2d0xldifN/Fe/gNp3eHzliBSE 2FBFx6wt9YdBd9uWOdBz9tqw1ZorMG5HsVIhYCn6bijTELFE0ojJyn8xOxNkT4xN0XX0 n3Y19CFCFXpUbU9r+v8bX7dLTYyJQNGbJpVUYfm+FPkzdR56+TtGit2gHPiF+Epggg7E +2+3ps6V+YQJm98usxw3SxrjoFsYSPHkxKy5HWleL1t4WM5MdLjYygKbJG3zjKa4ITdG iOQI/oNMvGnf/l/sI1VmFlSB4Hbju2zBjEshRIUNCvQAqIlJRiuPB4vyzlgXZos8fxxx VPwg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=vSxhniTY; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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 q24si8723083eju.147.2020.04.27.07.23.48; Mon, 27 Apr 2020 07:24:28 -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=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=vSxhniTY; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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 S1727921AbgD0OW0 (ORCPT + 99 others); Mon, 27 Apr 2020 10:22:26 -0400 Received: from mail-bn8nam12on2047.outbound.protection.outlook.com ([40.107.237.47]:3433 "EHLO NAM12-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727077AbgD0OWZ (ORCPT ); Mon, 27 Apr 2020 10:22:25 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z0d7KMIbxnjO+NZ7zh9797kdNzaJXpwS5xRbi2vp2GBdIhvFWEnMykij9Dn+7q83cJFG88OSHD2f0hck1REY2eSS764DCbRLzRt4gRJ7pc9IEGRJuUGUr4+zt8Pzsw7lrVKVAOaww31NZXm+gOMfNlFpQqXY7O14JKHVZkacKDxF2Sy4n7VI+tPSBfHHVHub3ByJjmLPfrVhcbQG0EWSNas42fXFomRP6Zd/fJJwTX0g7SxIVDGxt4uCdfrantib2onGcyUu9vbJkjdSHc+5psry4kxmNb1LvVSwx9wrDt4ffepe0uNdyGyAhRxJ7f9EnI8axmiIipIij2kkkhAnIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RcHN2L0hBWiTwm0Xc7ioTkMoL6EXvWo5KzdGeDDSw24=; b=SS990FMAMRdnCtZXws/b+AMR3kCHK4/JRSyT2KeQzvsVVSGrSun0GsW4/e2vQn0OALv3tHMXp0Ps64JTTOme2Ktalp87Ju1PWigGfdfAQ1XJpbV3Hfd40sspE9bKQ0Y3XKDGhXQUFko2deyxuyDY+Mdj5Ar11FIHn/DudLDTtL4HDnuwoznCpafFJpeZo1c65I0nyY5fmw8wUFSR3Q3QyUha5bgAQok1RQoBZzOL8L7mWq3WySOqVTCVnietm2R21fueti6BP2G3dp3d2A3XRTTAFWdIFvZ5fryKALTd5Ke2ccSFGOhf7h6e+Os/i5wrptZJYeEl5NTJonVmMWDNtA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RcHN2L0hBWiTwm0Xc7ioTkMoL6EXvWo5KzdGeDDSw24=; b=vSxhniTYH3DJlraZWicYI5G3wBHgcHx1g8b34KsHi7tIWzxrjeIFKiaJHf8iL8vD/NoZRBXzIgg6lD1m81h7FucQambhLOJTUIbx13qIPrFqut5fWKtPYS49d5iLsASVe4Ubf6QANaKtDAKn5CYTEn+T1PdXeMnZAvoyQIHEik4= Received: from MN2PR12MB4488.namprd12.prod.outlook.com (2603:10b6:208:24e::19) by MN2PR12MB3421.namprd12.prod.outlook.com (2603:10b6:208:cd::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2937.13; Mon, 27 Apr 2020 14:22:22 +0000 Received: from MN2PR12MB4488.namprd12.prod.outlook.com ([fe80::9dee:2a71:22d6:2941]) by MN2PR12MB4488.namprd12.prod.outlook.com ([fe80::9dee:2a71:22d6:2941%6]) with mapi id 15.20.2937.020; Mon, 27 Apr 2020 14:22:22 +0000 From: "Deucher, Alexander" To: Nicholas Johnson , "linux-kernel@vger.kernel.org" , "amd-gfx@lists.freedesktop.org" , Takashi Iwai , "alsa-devel@alsa-project.org" , Lukas Wunner CC: "Koenig, Christian" , "Zhou, David(ChunMing)" Subject: RE: [PATCH 0/1] Fiji GPU audio register timeout when in BACO state Thread-Topic: [PATCH 0/1] Fiji GPU audio register timeout when in BACO state Thread-Index: AQHWG+QP7B2I84lvqkerLlrYwJ82raiNBPhQ Date: Mon, 27 Apr 2020 14:22:21 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_0d814d60-469d-470c-8cb0-58434e2bf457_Enabled=true; MSIP_Label_0d814d60-469d-470c-8cb0-58434e2bf457_SetDate=2020-04-27T14:18:09Z; MSIP_Label_0d814d60-469d-470c-8cb0-58434e2bf457_Method=Privileged; MSIP_Label_0d814d60-469d-470c-8cb0-58434e2bf457_Name=Public_0; MSIP_Label_0d814d60-469d-470c-8cb0-58434e2bf457_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d; MSIP_Label_0d814d60-469d-470c-8cb0-58434e2bf457_ActionId=eed96705-c57d-432e-975b-0000e93b92ee; MSIP_Label_0d814d60-469d-470c-8cb0-58434e2bf457_ContentBits=1 msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_enabled: true msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_setdate: 2020-04-27T14:22:19Z msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_method: Privileged msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_name: Public_0 msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_siteid: 3dd8961f-e488-4e60-8e11-a82d994e183d msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_actionid: 301e4f8e-f205-44f9-8289-00005f9729ad msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_contentbits: 0 authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Deucher@amd.com; x-originating-ip: [71.219.72.172] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 7f0fb6e4-e621-4cbf-ea92-08d7eab66674 x-ms-traffictypediagnostic: MN2PR12MB3421:|MN2PR12MB3421: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2582; x-forefront-prvs: 0386B406AA x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB4488.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(346002)(366004)(39860400002)(376002)(136003)(396003)(45080400002)(186003)(66946007)(52536014)(8676002)(81156014)(6506007)(53546011)(316002)(54906003)(71200400001)(66476007)(110136005)(64756008)(66556008)(478600001)(66446008)(76116006)(86362001)(7696005)(8936002)(26005)(4326008)(2906002)(33656002)(55016002)(5660300002)(9686003);DIR:OUT;SFP:1101; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: uvc1Yx907NFSQVqgmuc/qAu9Zascsan2M4ZQ/uRlEXT4MAdLZEwD7AiNLv6meCN+qRHbnKMVfhMR7K6dwDuXpUujMymkVZq8tt/do1cCmKKvLYKKyrWTynvEQCaAhOgvlTSxI8YdFGoielks6udWYamLlJmfoOO4qQ/FwoXjauKzFsqXTUUMUdUtJ43ArOfShQAU8aUCNJ5IpVDNFTRiwjIMRlI1M4vLWOvo4n2TjNR9EjlFcAz7Dx5jS40dsVpbkkGmHnbd/3Lw71YPYAPlRRm+5GLyuwxm52lZOe/CAiCBkx4g0AnqSTRwBdjAabnG7PNT0HE0g0M8bj2DNURyY81tALbCjsIvWfZqNG8wmichskhNcSkR2BsicTuTapIcto4mV5oq00bqRcXo37VDiDqCpKkCnFnAVAj+9/Osa94UQZFQhpnc1rILE1J9hC5K x-ms-exchange-antispam-messagedata: kI3Kc57rhRjGNs8bSzew54vVqxzLROfbEMTXhK6DE2jFSKl7fPoMkaw2/Nci12286uAGYcK2/CAn4RLmlv7cnXiCHSWtUUiTJe//mG9DkQND8aj2hFhBCkd8lLtvqYp4SCUq+H+Nyoec6moOmROyPCY4OIZFXZ2KmM+kXXDZuEhL8d25PPD6x/gQpMshO6knuB/NwVSfPOi3aoa5KaxoDA0fxqzDVEbYlIbPIOqjm/sABdDIp4T9UkPYMqJT+C/4diPY056zoUZA1jDnpyv7yuad3xkykQ/1Fsb8xqKzC8YXnZk6tfvgqo0JY854OiMFklCxmsDZUW3u9opr0w6wk+4JjZDd85kdR0mpTb3Yc6YeZEXvwMQHKIvlfzxOLwRNVzdMRkkQ2mVjtjzC0u4VFzXupyoDuB5FsVHRwKxF+K+TRAQ3OePNCRayiPcOCIZc643Jwe7L+4o5bzyG+9gJCRrsiKKmj719bU/oeVePfCqyb47Nb36XqoWC87xSDY5ZnAm8vGcYVaEEXH5k3bymv+WLecgbq4FPLiZeLRVQX77qo+KtEfRPXICsg845LgNg7BTpIqRx0FG7HsmoetWs01YdlAdhJ6u0yJjfT7se2aYz+FwMw4rVyIsrfUIkzMuDVki8SHo4gVQWyQDFlL6mXH2WU2tg+VILUHmIDcumFtCWRi3AhTKS0/wAiF2nj7Pud91ZAWQsic46fN4qCw/aMqwYVRWgQ9qfTKVmv7KtvFqRWQ7Gm1hIwA+zA3XGhWWvKINQ3rT8n7kL/b0aA87k9KraFYfSNFM9XV++TUwU5nA= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7f0fb6e4-e621-4cbf-ea92-08d7eab66674 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Apr 2020 14:22:21.8825 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 5K2Mk43z7vfkBwylTgChp11H4ILIzxjw1X3rbBiXwER3UtWUi6oI6yjOy51O6X5h7kTJuCtVKMQMcr3b87BX0A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB3421 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [AMD Public Use] > -----Original Message----- > From: Nicholas Johnson > Sent: Sunday, April 26, 2020 12:02 PM > To: linux-kernel@vger.kernel.org > Cc: Deucher, Alexander ; Koenig, Christian > ; Zhou, David(ChunMing) > ; Nicholas Johnson opensource@outlook.com.au> > Subject: [PATCH 0/1] Fiji GPU audio register timeout when in BACO state >=20 > Hi all, >=20 > 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 graphi= cs > card is switched off to save power. It did not spin down the fan in v5.6.= x. >=20 > This is great (I love it), except that when it is sleeping, the PCIe audi= o function > of the GPU has issues if anything tries to access it. You get dmesg error= s such > as these: >=20 > snd_hda_intel 0000:08:00.1: spurious response 0x0:0x0, last cmd=3D0x17050= 0 > snd_hda_intel 0000:08:00.1: azx_get_response timeout, switching to pollin= g > mode: last cmd=3D0x001f0500 snd_hda_intel 0000:08:00.1: No response from > codec, disabling MSI: last cmd=3D0x001f0500 snd_hda_intel 0000:08:00.1: N= o > response from codec, resetting bus: last cmd=3D0x001f0500 > snd_hda_codec_hdmi hdaudioC1D0: Unable to sync register 0x2f0d00. -11 >=20 > The above is with the Fiji XT GPU at 0000:08:00.0 in a Thunderbolt enclos= ure > (not that Thunderbolt should affect it, but I feel I should mention it ju= st in > case). I dropped a lot of duplicate dmesg lines, as some of them repeated= a > lot of times before the driver gave up. >=20 > 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. >=20 > I cannot tell if any other GPUs are affected. The only other cards to whi= ch I > have access are a couple of AMD R9 280X (Tahiti XT), which use radeon dri= ver > instead of amdgpu driver. Adding a few more people. Do you know what is accessing the audio? The au= dio should have a dependency on the GPU device. The GPU won't enter runtim= e pm until the audio has entered runtime pm and vice versa on resume. Pleas= e attach a copy of your dmesg output and lspci output. Alex