Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1965602ybj; Wed, 6 May 2020 08:21:00 -0700 (PDT) X-Google-Smtp-Source: APiQypKDXv0pYqvVGhN+yjI8Ok5ECQtZjHSq5FfGrqzL0pTtCBTeBYKcHgBKGaTFWgOJn2mM0n6I X-Received: by 2002:a17:906:4993:: with SMTP id p19mr7516947eju.67.1588778460559; Wed, 06 May 2020 08:21:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1588778460; cv=pass; d=google.com; s=arc-20160816; b=LFjqedHUfPlJQJXeuNZtp224MEsTVEkb1s/zlojM8X32Mk9TntSoiKrg8+YnFWty1m OTGeYX+NOvwLrqgdrVvs1CE+0ePjQZuAQNTCDTMsjD6EfgytT/cdqUG7OoaAnK9tA5yZ hFPA41Y8/Hp07GjnU5ky64cTu9W4MbwPNGNX0ojsxpdx6+MxhXPGcGZxgwLKKt31r0i3 47uSd+5T7v8ODuGbbSUlMl7pDxmGKo8D8gL1/rLohZFw/JfeLxC5XuRVDzBwae/UmWMp Tur4UaxVlRNMslXfxX3eZFCxMWktAbYbHGApNN60pds0tFxG9mDqRe+dfnYTW8dojbNk g7mA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:in-reply-to :content-disposition:references:message-id:subject:cc:to:from:date; bh=RI4ZvFeMjLzYlGY1rF1hJ/6aYiLbdudKeutSOZqRRQg=; b=1IklCZ5GBRoHjNzj9iUHqC0gjceDhMZ8IsRQ0V6wppRitgCqNxmjpCCXLlK7fIH4iw 9wnZN0wW5dzKVZn4utUlrd4FmUn3gqQasND2WzHxhWkwkyS73uzyapC3vRNWQ+/u5vNe PVMnkzJ+pWouc/3LpipEIm72T9ar6VZ0iSSg/KhPhaBhZAv2owN5+UfaKC4qdaiKoBFZ zF5rYJM237WqYjCMRxj2+kTOPsjeBXluhMr5fZ8H6oOZZNKUVrz98WP4dc5A/nMEeHMC IwFcPq8mGQxY1a5lW57aJzEiFd6Vlw2LqMRy3M7Aabxu4yobzfixEtmq6uCuEEsIpB9Z QDrw== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=outlook.com.au dkim=pass dkdomain=outlook.com.au dmarc=pass fromdomain=outlook.com.au); 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=fail (p=NONE sp=NONE dis=NONE) header.from=outlook.com.au Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pk26si1398033ejb.404.2020.05.06.08.20.36; Wed, 06 May 2020 08:21:00 -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; arc=pass (i=1 spf=pass spfdomain=outlook.com.au dkim=pass dkdomain=outlook.com.au dmarc=pass fromdomain=outlook.com.au); 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=fail (p=NONE sp=NONE dis=NONE) header.from=outlook.com.au Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729522AbgEFPQB (ORCPT + 99 others); Wed, 6 May 2020 11:16:01 -0400 Received: from mail-oln040092254027.outbound.protection.outlook.com ([40.92.254.27]:22535 "EHLO APC01-PU1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729447AbgEFPPw (ORCPT ); Wed, 6 May 2020 11:15:52 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mr3xND6MI/Am3TP/x+KKG0+cR2hKuGchycm1L4JX2JbuqWRmicWRr8rlwrY72kglGmqGDd7AsIbnGavRh3C2yLGyNWO7pPF9zvzgqCOsOtAkHHIORzdAnY06d+XwnNp5qdBV3ir5RXxVEzOH5ivoiqzsL7F4fDslrcAY2rt81wg+OHbTgAes9uuCARAlqN2u4y9i7rxLN/cFMu30Ai46BGSwStMipfKodfEpLT5/uvK8wGbYavkQuy6eRtih9BJCYjhdkgUjmjJQnLG+eEZa3CxXMf8T0dLm1WgnJFiYdayTXJmje80zu0w1PkiyRsaAyh6/+xjaESoHwaXuSyILrw== 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=RI4ZvFeMjLzYlGY1rF1hJ/6aYiLbdudKeutSOZqRRQg=; b=lH2EF5cTvwYtGMUab1n67O+1uM3POxnxmolGoLRbQx0u6F1YJy0SU3uuVOOVsj97VEr6x5HQYqVedPdQ9sXYD4JCbRbBXDs50a34voeWarLyoaOzhy9F6cKyo7k0F4QZZMflILS1GAmQa3EQPJqQPIID4ofBXylNOHrSUt69BvWEz+fuSksT7+AFGFNLWtbaHidDzg0CgP3Ys1wnv09CcD1yqcH6xqY2RZJxwXWJQjKPWjk4wL40afPgIdf6CA7xVUTg1Zcdm41rQLfSTnNz7W+5y4DgZw+lcqTEZscH1Dc03cJisvrrqPkvWjncLsoZBduyrInmXtYdA/ZFOIOO2Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com.au; dmarc=pass action=none header.from=outlook.com.au; dkim=pass header.d=outlook.com.au; arc=none Received: from HK2APC01FT026.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebc::4b) by HK2APC01HT238.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebc::490) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.27; Wed, 6 May 2020 15:15:47 +0000 Received: from PSXP216MB0438.KORP216.PROD.OUTLOOK.COM (10.152.248.53) by HK2APC01FT026.mail.protection.outlook.com (10.152.248.174) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.27 via Frontend Transport; Wed, 6 May 2020 15:15:47 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:700999ACCD16A2AFF04FE910C14BCBEE942B6EEEC7A4D6D4100AA494BB72F075;UpperCasedChecksum:34E65D70D797FC91C0465C7C0162B7E24C00D4C5A55E5D55CB9095B1A76B7D04;SizeAsReceived:8489;Count:48 Received: from PSXP216MB0438.KORP216.PROD.OUTLOOK.COM ([fe80::21f1:20fb:d1f:8e25]) by PSXP216MB0438.KORP216.PROD.OUTLOOK.COM ([fe80::21f1:20fb:d1f:8e25%7]) with mapi id 15.20.2979.028; Wed, 6 May 2020 15:15:46 +0000 Date: Wed, 6 May 2020 23:15:36 +0800 From: Nicholas Johnson To: Takashi Iwai Cc: Lukas Wunner , Alex Deucher , "Zhou, David(ChunMing)" , "alsa-devel@alsa-project.org" , "linux-kernel@vger.kernel.org" , "amd-gfx@lists.freedesktop.org" , Takashi Iwai , "Deucher, Alexander" , "Koenig, Christian" Subject: Re: [PATCH 0/1] Fiji GPU audio register timeout when in BACO state Message-ID: References: <20200502071728.fn2fcqvt6aies3zu@wunner.de> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: SYAPR01CA0034.ausprd01.prod.outlook.com (2603:10c6:1:1::22) To PSXP216MB0438.KORP216.PROD.OUTLOOK.COM (2603:1096:300:d::20) X-Microsoft-Original-Message-ID: <20200506151536.GA4636@nicholas-dell-linux> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from nicholas-dell-linux (2001:44b8:605f:11:45ec:d37e:a989:bf24) by SYAPR01CA0034.ausprd01.prod.outlook.com (2603:10c6:1:1::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.26 via Frontend Transport; Wed, 6 May 2020 15:15:42 +0000 X-Microsoft-Original-Message-ID: <20200506151536.GA4636@nicholas-dell-linux> X-TMN: [ZFrRSr9vjLRyEvwVgo3i/0Zmw7a1m9PV7o4xUgDwV/s2y3VWHBIesyYDYIIOArlX] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 03fab1b8-c161-455e-05e3-08d7f1d0592c X-MS-TrafficTypeDiagnostic: HK2APC01HT238: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YFzYRAoBbjotzjAlpBV/qB1xfckF1pztQsz+6mgOuEc7L0PkkGca/inFo3/AzjPrSi+szvPbO1O9YFo3Sha/qGI6UH4k5YBnUhWE63bLpNsqfX2tzNndFYuc5co/u4ePN/Xls5SlfZMGZjIokqvUGYW1H1+F0VC1Q55W33kxdE+FAkONYYaMJlNdl+qlw0glYyft6Y88Kyi7/IVlN/r7Jw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:0;SRV:;IPV:NLI;SFV:NSPM;H:PSXP216MB0438.KORP216.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFTY:;SFS:;DIR:OUT;SFP:1901; X-MS-Exchange-AntiSpam-MessageData: H+qiLUzndFozG4cbIahV27ULRI5oAOHjUib5yboapRrMuugOUHkgbSa3HUuCKYPPYCKoptmL5wWb8Ol6Nu95YJw6uxUgzkkyRKjob8IPhhLjSfNEGk5+GuAvHNNQIMODV5ex6TCdAsG6oMyLozZtpLOljl2W//vTcQfOEg2mXrgCqooPsHzFnqib5GFB7GRAXPCgzTiMARL9uZNz231Lcg== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 03fab1b8-c161-455e-05e3-08d7f1d0592c X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2020 15:15:46.5255 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2APC01HT238 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 02, 2020 at 12:09:13PM +0200, Takashi Iwai wrote: > On Sat, 02 May 2020 09:27:31 +0200, > Takashi Iwai wrote: > > > > On Sat, 02 May 2020 09:17:28 +0200, > > Lukas Wunner wrote: > > > > > > On Sat, May 02, 2020 at 09:11:58AM +0200, Takashi Iwai wrote: > > > > --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c > > > > +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c > > > > @@ -673,6 +673,12 @@ static int amdgpu_dm_audio_component_bind(struct device *kdev, > > > > struct amdgpu_device *adev = dev->dev_private; > > > > struct drm_audio_component *acomp = data; > > > > > > > > + if (!device_link_add(hda_kdev, kdev, DL_FLAG_STATELESS | > > > > + DL_FLAG_PM_RUNTIME)) { > > > > + DRM_ERROR("DM: cannot add device link to audio device\n"); > > > > + return -ENOMEM; > > > > + } > > > > + > > > > > > Doesn't this duplicate drivers/pci/quirks.c:quirk_gpu_hda() ? > > > > Gah, you're right, that was the place I overlooked. > > It was a typical "false Eureka right-after-wakeup" phenomenon :) > > Need a vaccine aka coffee... > > > > So the runtime PM dependency must be already placed there, and the > > problem is not the lack of the dependency tree but the really other > > timing issue. Back to square. > > One interesting test is to open the stream while the mode isn't set > yet and see whether the same problem appears. > Namely, after the monitor is connected but no mode is set, run > directly like > aplay -Dhdmi:1,0 foo.wav > You might need to wrap the command with pasuspender if PA is active. I could not figure out how to get the interface for aplay set other than not specifying it and having it find the default device (which can change). I even used aplay -L and aplay -l to show devices. I could not get it working. Is there anything else I can try? I did not apply the last patch when it was pointed out that it is already a quirk. Regards, Nicholas > > > Takashi