Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6596614rdb; Fri, 15 Dec 2023 03:16:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IH8B9eT32PNVM8fx01M9Mmb1D5q8cf6KUpOtQpC+a7HEM0qJPBkAArponD8rijjQuHyaCjO X-Received: by 2002:a0c:edce:0:b0:67e:bf2e:d2ac with SMTP id i14-20020a0cedce000000b0067ebf2ed2acmr11802268qvr.20.1702638962708; Fri, 15 Dec 2023 03:16:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702638962; cv=none; d=google.com; s=arc-20160816; b=ceUo+qV9pWEbrAfdyxsn1vAV+1uITwYKsuImFNr5Q0mV4ZutSydPjNXsyOny7+JFCD JaQCGdOltzVgszmdehWlBS75m2MYr0WeNqSR5y8WJG1/JP0hQDYVABFFJaMDkRx66Y2s DIEF6QPPR1+gwBjAnPsyXvdVjCFQF6UWiALNu/zZ6WSvRJXuMQKlVFjOzRBlMtOAjArZ sxvOEyIrhU+G6Aahy/x4rNMQyfBDbeUjrgkQfYQW69JPAAivfSXmAMJTkX9mqPbsSTjM Mv345ArkMuY3hMLE2lNdbuabsi8EdmjmJEqMBqh2GyCoQDVWACDvWLEkslcV0l5PmRue vHRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:reply-to:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id; bh=Y3LnUw8H8A8xEMZWu6saf8ecKp+bO2e26RmilYi0UZY=; fh=+fTbrVbRzXtvX7fOpTkdQ/Gd4+NGJ53XsJ4/EdlJJAA=; b=HIzKLUHXNMSXv4tf5WBUk6SLcaw69rfW/5Xup9wVKcXUVGkC2eJHVVLx7hGS/klHbh A+EvW++PLo3iwnWCIqBB/WsBRhrG80roG7LsuKj6tJfmEU98Ry2MgsiXy98Owa8unEn6 vP6lFeXh1krG4lSC/SUoXQocXlVkdagLv5+dHl3zia1z5jVgCEvOmcMwJXXAT+HaHjFe BqU1jP7bPIhe1OEZkTlA/a8DRqZVKl4LvhHLS9dZsPkJWg462bu8fLVVoXlHMYoJCt2Q deNsHbmcIrQHxp8ilaR+E8TwR8IfY6z7az4cMueZ2peWsuuTvgQ5W2yetrovw0gQAKvT cGPg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-808-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-808-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id n3-20020a0c9d43000000b0067f078416c7si3729096qvf.170.2023.12.15.03.16.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 03:16:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-808-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-808-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-808-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id ED04D1C239F3 for ; Fri, 15 Dec 2023 11:15:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 39B0324A1B; Fri, 15 Dec 2023 11:14:23 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A95232C681; Fri, 15 Dec 2023 11:14:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=leemhuis.info Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=leemhuis.info Received: from [2a02:8108:8980:2478:8cde:aa2c:f324:937e]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1rE68w-0002u5-G6; Fri, 15 Dec 2023 12:14:10 +0100 Message-ID: Date: Fri, 15 Dec 2023 12:14:12 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Reply-To: Linux regressions mailing list Subject: Re: [PATCH V2 2/2] ASoC: amd: acp: add pm ops support for renoir platform Content-Language: en-US, de-DE To: Syed Saba Kareem , broonie@kernel.org, alsa-devel@alsa-project.org Cc: Vijendar.Mukunda@amd.com, Basavaraj.Hiregoudar@amd.com, Sunil-kumar.Dommati@amd.com, mario.limonciello@amd.com, richgong@amd.com, posteuca@mutex.one, Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Kuninori Morimoto , Nicolas Ferre , =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= , open list , Linux kernel regressions list References: <20231113123345.2196504-1-Syed.SabaKareem@amd.com> <20231113123345.2196504-2-Syed.SabaKareem@amd.com> From: "Linux regression tracking (Thorsten Leemhuis)" In-Reply-To: <20231113123345.2196504-2-Syed.SabaKareem@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1702638860;284e795e; X-HE-SMSGID: 1rE68w-0002u5-G6 Hi, Thorsten here, the Linux kernel's regression tracker. Top-posting for once, to make this easily accessible to everyone. Does anyone know what happened to below patch? It afaics was meant to fix a regression that made it into 6.6. For details see: https://lore.kernel.org/lkml/87a5v8szhc.fsf@mutex.one/ https://lore.kernel.org/lkml/ac9d4f7b-c7af-4d21-b0b8-d0f188b94b0f@amd.com/ Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) -- Everything you wanna know about Linux kernel regression tracking: https://linux-regtracking.leemhuis.info/about/#tldr If I did something stupid, please tell me, as explained on that page. On 13.11.23 13:33, Syed Saba Kareem wrote: > Add pm ops for renoir platform. > > Signed-off-by: Syed Saba Kareem > --- > sound/soc/amd/acp/acp-renoir.c | 38 +++++++++++++++++++++++++++++++++- > 1 file changed, 37 insertions(+), 1 deletion(-) > > diff --git a/sound/soc/amd/acp/acp-renoir.c b/sound/soc/amd/acp/acp-renoir.c > index a591482a0726..8539fbacdf4c 100644 > --- a/sound/soc/amd/acp/acp-renoir.c > +++ b/sound/soc/amd/acp/acp-renoir.c > @@ -20,6 +20,7 @@ > #include > #include > #include > +#include > > #include "amd.h" > #include "acp-mach.h" > @@ -195,7 +196,11 @@ static int renoir_audio_probe(struct platform_device *pdev) > dev_set_drvdata(dev, adata); > acp_enable_interrupts(adata); > acp_platform_register(dev); > - > + pm_runtime_set_autosuspend_delay(&pdev->dev, ACP_SUSPEND_DELAY_MS); > + pm_runtime_use_autosuspend(&pdev->dev); > + pm_runtime_mark_last_busy(&pdev->dev); > + pm_runtime_set_active(&pdev->dev); > + pm_runtime_enable(&pdev->dev); > return 0; > } > > @@ -208,11 +213,42 @@ static void renoir_audio_remove(struct platform_device *pdev) > acp_platform_unregister(dev); > } > > +static int __maybe_unused rn_pcm_resume(struct device *dev) > +{ > + struct acp_dev_data *adata = dev_get_drvdata(dev); > + struct acp_stream *stream; > + struct snd_pcm_substream *substream; > + snd_pcm_uframes_t buf_in_frames; > + u64 buf_size; > + > + spin_lock(&adata->acp_lock); > + list_for_each_entry(stream, &adata->stream_list, list) { > + substream = stream->substream; > + if (substream && substream->runtime) { > + buf_in_frames = (substream->runtime->buffer_size); > + buf_size = frames_to_bytes(substream->runtime, buf_in_frames); > + config_pte_for_stream(adata, stream); > + config_acp_dma(adata, stream, buf_size); > + if (stream->dai_id) > + restore_acp_i2s_params(substream, adata, stream); > + else > + restore_acp_pdm_params(substream, adata); > + } > + } > + spin_unlock(&adata->acp_lock); > + return 0; > +} > + > +static const struct dev_pm_ops rn_dma_pm_ops = { > + SET_SYSTEM_SLEEP_PM_OPS(NULL, rn_pcm_resume) > +}; > + > static struct platform_driver renoir_driver = { > .probe = renoir_audio_probe, > .remove_new = renoir_audio_remove, > .driver = { > .name = "acp_asoc_renoir", > + .pm = &rn_dma_pm_ops, > }, > }; >