Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4760366rwb; Tue, 17 Jan 2023 05:17:33 -0800 (PST) X-Google-Smtp-Source: AMrXdXsjvk0woJMyDT+/vySN0tbLjzDQyvDLFNFGyk23Nsyk3UA7bW1KicfKqnmS5y9p8DRhkmLh X-Received: by 2002:a17:906:4b4c:b0:871:e336:cd2a with SMTP id j12-20020a1709064b4c00b00871e336cd2amr2753614ejv.47.1673961452862; Tue, 17 Jan 2023 05:17:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673961452; cv=none; d=google.com; s=arc-20160816; b=pQKqbe1irO+b9Ph/Iy4QO31Im51keTQ2C9KayR/0Jmh8CyzEPc2Fxe1W1/XYXtIDQE Sbw+dwhIqWwCNPY9uN8NkiYZU1taX54hOXbDVPx8zTkknU+fCkh+9DG+XpH/ylqgbQe7 FP9MxD9iCoGQndnqxqwSkKap4+Pd5cS/zWuE2wEWq6a/gbD8/GRkiIDsiVifkdtHnwEy y3NEYIWJ2H1zPfo0sWr8rmnOfJvVxbpQjbFhSWonxRALcNrimXuC4UneL8tsGk+/Vi7a XHG/eUxPY1kE/fzZSGdOGKHZy+9rphAwac+kMK4G1nd7qF63RA4MpDhUFK4YOZMCPySY 1yLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=fRuu6rCYyaAEw4GS55i7nfH9iZZ8/FGGlD0smHaA8VE=; b=mQlc0wgZM+HAEh3lUXm62WVPrHMnga0XRtEeZpv5UcAZmqc53sUUf/xRsJTvEak6pU xNXpIeNHZogVn8PCYpUHpclPuNMu6PeF1GEIlIAAMxpV0r7wzZkn+VVdOwIDu1VE3Ut0 f1GFjOY6vJvIj9MzlNG7cRRoqp3qhF2exGMjPU6XBlOxFDpztAUSapBcrD9VBfyhLP7z GBDU4cr95F1wNGZj+MbajyVx1+GtqqF9q8EmTYu80HRvT1yjrgZgjg/kUnDURJNAydrv XW0ijh/DrKvyMGfpUiMIkTHN1hjL1FRtzbZc8U4XiQB4y1h2gHtCM6gAWKV4fKjx+fUO NdxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bDanFBfj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s3-20020a17090699c300b008626e197ac4si2528956ejn.975.2023.01.17.05.17.21; Tue, 17 Jan 2023 05:17:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bDanFBfj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235964AbjAQMgc (ORCPT + 48 others); Tue, 17 Jan 2023 07:36:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235897AbjAQMga (ORCPT ); Tue, 17 Jan 2023 07:36:30 -0500 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52ED8252A0 for ; Tue, 17 Jan 2023 04:36:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673958989; x=1705494989; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=uhUyp8s8X+TLtfLu32/M/aKyQIv+uFrr5EaeTyAlnig=; b=bDanFBfjvjpWMGoAhtidZWQvAFOk98tcbyleprzLwIyKJkmhF8USNy4g nIEp5MLE6epZ+BAmQ8yDE7H5x4oBSstOUGgF0hl8Wv3DNLBBPnuSDsHM0 P8hQYrV4wYkO687j0djX+BylKcokHP4ie9LX5fZaQhSpzU03bvEpWJehs SNvotj3g26L72YxVwChlOT13X2xi7NmUtE15JTjDg6Fr1KtFX+nbAaTxH PCTZj0p3VmYbi4LvopUjM5Ms6UnSAb8j5rOUcmgNa93NzYPw2hm9KVPmg dQD+zHVf7Ju/xUu6nHP6PeO5x7B/GNj07fbBqdjXlJ9IMBn8T2hrbLAyx Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10592"; a="305058720" X-IronPort-AV: E=Sophos;i="5.97,222,1669104000"; d="scan'208";a="305058720" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jan 2023 04:36:21 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10592"; a="722641870" X-IronPort-AV: E=Sophos;i="5.97,222,1669104000"; d="scan'208";a="722641870" Received: from tdnguye2-mobl.amr.corp.intel.com (HELO [10.212.127.230]) ([10.212.127.230]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jan 2023 04:36:20 -0800 Message-ID: Date: Tue, 17 Jan 2023 06:36:19 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.4.2 Subject: Re: [PATCH 19/19] ASoC: amd: ps: increase runtime suspend delay Content-Language: en-US To: Mark Brown Cc: "Mukunda,Vijendar" , "Limonciello, Mario" , vkoul@kernel.org, alsa-devel@alsa-project.org, Mastan.Katragadda@amd.com, Sunil-kumar.Dommati@amd.com, Basavaraj.Hiregoudar@amd.com, Takashi Iwai , Liam Girdwood , open list , Syed Saba Kareem , arungopal.kondaveeti@amd.com References: <5a34e6f7-eaf1-8128-81e4-81f65541d9a8@linux.intel.com> <1a14e117-4216-b98d-f972-c9a02cf79d1e@amd.com> <90782037-109b-b197-ca17-b7d199931f7d@amd.com> <62272f17-bb97-aa10-d5d9-0914595e5431@linux.intel.com> <625915d5-0c2a-ce63-e71b-ff4f4f2c6d07@linux.intel.com> From: Pierre-Louis Bossart In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/17/23 06:16, Mark Brown wrote: > On Tue, Jan 17, 2023 at 05:51:03AM -0600, Pierre-Louis Bossart wrote: >> On 1/17/23 05:33, Mukunda,Vijendar wrote: > >> [ 2.758904] rt1316-sdca sdw:0:025d:1316:01:0: ASoC: error at >> snd_soc_component_update_bits on sdw:0:025d:1316:01:0 for register: >> [0x00003004] -110 > >> The last one is clearly listed in the regmap list. > >> You probably want to reverse-engineer what causes these accesses. >> I see this suspicious kcontrol definition that might be related: > >> SOC_SINGLE("Left I Tag Select", 0x3004, 4, 7, 0), > > Looks like a case for putting the CODEC in cache only mode... Right, and I think we'd need to do this during the probe instead of the hardware initialization (which could happen at a later time). I started a PR to try and improve regmap handling, see https://github.com/thesofproject/linux/pull/3941 I was trying to solve the case where codecs become unattached, but apparently the problem is hardware-related. One of the suggested improvements was to move the cache_only part earlier to prevent such accesses. Unfortunately the work isn't complete so that PR is just a draft at the moment.