Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp128226rdf; Thu, 2 Nov 2023 16:12:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEWoqQXUBhs/wny0Dzp6Avo5K/xWgZlDW0IkM9HkMNOG2B1GfUCls5BZUGhe8HkZ8jry0X5 X-Received: by 2002:a05:6a20:2451:b0:162:650c:76b8 with SMTP id t17-20020a056a20245100b00162650c76b8mr24874939pzc.45.1698966754219; Thu, 02 Nov 2023 16:12:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698966754; cv=none; d=google.com; s=arc-20160816; b=vUeS3kVCjf8mlOPrnQwMBv2pRI/pzkYm/HYOvNWkPtjuniN+XF4Fu6NqpKmKlpdW9i I5W1xHyQXK64bi2G8hniFPuEQon6Jb8P12B7G/G7Fk7jPK4GPvR27H/voW1aB35+mA9D 7EEYAsJ5XV0flpFsJcolHI3wIrsBLJYiEWmcacz8du0AupZOYgypSJFhE7VWpaGvrf5O WwCFmKjNoMoVWZBw+XPKszRo3Dn5k7SScqYSKddwMnWpt5AF4J8xSXc9kZhsnUxbUXHR hVES9/sVWBAl8Hk/64KW4eoBGuHru28+8NUxvjftBGntgIV1exsx+N3LegYISGJG7fBr R+Eg== 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 :references:message-id:subject:cc:to:from:date:dkim-signature; bh=YR7cWpbPv3YkHu6Lgq/Qssety+VQHUk9DYioZqwXCUs=; fh=ghIsAuCyB+5Iz6U135wWJPpkmSYQcNLx8s86kYgdPJI=; b=cCiAi/j7gQjeVz9wnhiAXY4AtR4c0KYyhLvVqFc+oNXXrlCXl0AmJ6D2+xghiAyMnK x4lw61oNLelhTr4n70fEDBFOqIASMNnW0uUTOmyUxQxuE6SgjogUsNZSjbqaPaqweJ2Q JpHTtFZq5B0y59pHFzFmH1hCF2FU8SZzJb9FRdFIr+Pm+0yVQwxi07UwT6mqAydE7As6 Uuj+3CTRBiqOI7k1GhYox5Zav/LOZ2toSIQmIRM5MsHRpQhY+OwEQtkCfEAhJfVIV65S CHMOh1sj0lwlMy0HZwq/5a/QqEgZGvmvkzp4n0+iG4w5pxqonm+VdjnQRRCn6qRyPBUT 5oYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=huN5UaF7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id ca3-20020a056a02068300b005b9687105dfsi413825pgb.597.2023.11.02.16.12.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 16:12:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=huN5UaF7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 8AA558236260; Thu, 2 Nov 2023 16:12:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234928AbjKBXL5 (ORCPT + 99 others); Thu, 2 Nov 2023 19:11:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229615AbjKBXLz (ORCPT ); Thu, 2 Nov 2023 19:11:55 -0400 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 450E7181 for ; Thu, 2 Nov 2023 16:11:52 -0700 (PDT) Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1cc5b7057d5so13180145ad.2 for ; Thu, 02 Nov 2023 16:11:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698966712; x=1699571512; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=YR7cWpbPv3YkHu6Lgq/Qssety+VQHUk9DYioZqwXCUs=; b=huN5UaF7dohomfQPL9gQ/UKrTvJM7hQJXMo4hmOmu+W1/vmvxk+DnW701PXEc7q1CE WGY07b/M5/SkbnkB771nXjB8QOJUDS20Z86vaqnuDKSMAodza1q2F6+APYptINajofnh WuAbVP18GG5LL1t26SXPpY4l5rlKxOhNaB9FcPctZcpZRSYFxfq6Pj3mzyTSP98aPfRE tBXfoAfT6LEWfQnozdg7oMSZI/j0sfj6LvEm717t9Kdefs6PhBDiaPWhDuswCSTrkF9u LDiJ0HWmOBenyLEgCN4J4OXq/0Djq+0ytFIt/e9B6qliW9BFRS94jCkYkNLIsx2lkrJX ZjgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698966712; x=1699571512; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=YR7cWpbPv3YkHu6Lgq/Qssety+VQHUk9DYioZqwXCUs=; b=mvgqQAJGIwtOhT/8aQoQ+SUZ8XhWS8U9Okk7eDHLEJFzxhVkQIm7hLdCVJCQUlXD68 /ZKutWWmxvh9ZqWolIYnk71hg0+rLIUrzx9Idpkt5X+ENHpjYOBhwCi23LboG2My5+GZ VN6hgv8a7UolIR49kEKiTZfpPCh+w2cbKQPrRwxL6flgSJgRgG3epYMkW7Ia6G1oXHYK oYq8qLWpYb6dGoWMAmIPg3W35OFALwPJu+sLvLkp891RU7/wClB/4ycKrkf8tAncBIVU 0s3KpzJ4FiiPjzUWvEYqkbrRox4OapPmmrLpf5lyXuNLLA46yGDsJn9Y03gSKPCGKe+v A78w== X-Gm-Message-State: AOJu0YzRLa9Nx9qpbyJnVxwW6Pxbg7fxen+0BM2HL375/UdeHJK1Uq80 WH1Vhat+azeFBzPsS7wqzTU= X-Received: by 2002:a17:902:f1d2:b0:1cc:2575:db14 with SMTP id e18-20020a170902f1d200b001cc2575db14mr16012795plc.60.1698966711585; Thu, 02 Nov 2023 16:11:51 -0700 (PDT) Received: from debian.me ([103.131.18.64]) by smtp.gmail.com with ESMTPSA id 4-20020a170902ee4400b001c407fac227sm222666plo.41.2023.11.02.16.11.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 16:11:50 -0700 (PDT) Received: by debian.me (Postfix, from userid 1000) id 1AC599157AFC; Fri, 3 Nov 2023 06:11:46 +0700 (WIB) Date: Fri, 3 Nov 2023 06:11:46 +0700 From: Bagas Sanjaya To: Marian Postevca , Syed Saba Kareem Cc: , , , , , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Yang Yingliang , Venkata Prasad Potturu , V sujith kumar Reddy , ye xingchen , Linux Kernel Mailing List , Linux Regressions Subject: Re: Regression apparently caused by commit 088a40980efbc2c449b72f0f2c7ebd82f71d08e2 "ASoC: amd: acp: add pm ops support for acp pci driver" Message-ID: References: <87a5v8szhc.fsf@mutex.one> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="co0Oi2OYqTcTDchu" Content-Disposition: inline In-Reply-To: <87a5v8szhc.fsf@mutex.one> X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 02 Nov 2023 16:12:23 -0700 (PDT) --co0Oi2OYqTcTDchu Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 03, 2023 at 10:22:07PM +0300, Marian Postevca wrote: > I'm trying to develop a sound machine driver based on the acp legacy driv= er. > The first version of the driver was sent for review on the alsa mailing l= ist this > spring: https://lore.kernel.org/all/20230320203519.20137-1-posteuca@mutex= =2Eone >=20 > I'm trying to fix some of the issues that were brought up during the revi= ew back then, > but when I ported the patches to the latest commit on the for-next > branch, I noticed a regression where I couldn't hear any sound at all. >=20 > So I started a bisect session and found that the first bad commit is: > ASoC: amd: acp: add pm ops support for acp pci driver > commit 088a40980efbc2c449b72f0f2c7ebd82f71d08e2 > https://lore.kernel.org/lkml/20230622152406.3709231-11-Syed.SabaKareem@am= d.com >=20 > If I revert this commit sound works as expected. So I started tinkering a= little bit > with it and I believe that what happens is that the acp pci driver > enters the autosuspend state and never leaves this state at all. > I noticed this because if I increase the autosuspend delay to a much > larger value, then the sound works until that delay passes. > I added traces and I can see that when the delay expires the suspend call= back snd_acp_suspend() > gets called, but the resume callback snd_acp_resume() never gets called. >=20 > I'm no expert in runtime power management (though I did read a bit on it)= , so I don't understand > all the things that happen underneath, but one thing that is not clear to= me is who's supposed > to mark activity on this device and keep it from entering autosuspend if = the user wants to play > some sound? Shouldn't there be some counterpart that calls pm_runtime_mar= k_last_busy() ? > I looked through the code and can't find who's calling pm_runtime_mark_la= st_busy(). >=20 > Some help here would be welcome. Is there something missing in my machine= driver code, or > is the runtime pm handling in acp pci driver wrong? Thanks for the regression report. I'm adding it to regzbot: #regzbot ^introduced: 088a40980efbc2 --=20 An old man doll... just what I always wanted! - Clara --co0Oi2OYqTcTDchu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSSYQ6Cy7oyFNCHrUH2uYlJVVFOowUCZUQsrgAKCRD2uYlJVVFO o679AQCRW7cp+WmNFpWYM+EUDNsuXCHFeqjx5LAQzKMRfXv97gD+MuJIGeWYvJ0F aDSiN4Lbm1Fo2OmQtJcQmT3DZSQ5CAM= =uyFI -----END PGP SIGNATURE----- --co0Oi2OYqTcTDchu--