Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2996866imw; Sun, 17 Jul 2022 23:08:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vjeWJTZx0JgQwGXTaZEsekOY8R/uZ76roDsZrVWp+nhJcrzKJ2rTv/J8j/QL7mR0hEw8lw X-Received: by 2002:a17:90b:341:b0:1e0:cf43:df4f with SMTP id fh1-20020a17090b034100b001e0cf43df4fmr30686431pjb.126.1658124496659; Sun, 17 Jul 2022 23:08:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658124496; cv=none; d=google.com; s=arc-20160816; b=At7sXVTf0vqUKkD9Eyb/ENHlMCBfwUmxlK7zfnza0TyPql6DEe4iKQgekPXHuQoIuO KwnqPZLZjHrQmcn0YQDrXkwI0qIpcauiw6Il8kaBCUne/tI8rubyN+Bgl5buhlC3dNb3 b1jTvxKz9l0AhwCfNJBY3PxYfYAKf5p5Z8atzg8ESj22ZTc59PylUc8q9vmnaqRRAHng GAIP6mN862MSKTrKowUHZnj/2Uz5ypGaaPxwUwVFbvzP/Z2KE3BORvxPsB11Z5C3leU3 aQ993YwmPqEDzVvW2kgGwOxWlj/86/DfA8ZJViseBepCwhPSjR1ST/SigiV34hiJ6+AC LrtQ== 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=bOb0k99ugXhiZS93yLVXsreV0Vu4fKqKG+VmxBipOCo=; b=WMrGkqCW2BYSO+V857DHpK9tx+tiZpfhADXW6ofgo2xd8aC6xlo8oByRRg8fw/tPbr ymEgL2vkVSMj3yKlgcSTyZT2pOsoGU8H45NP6G6d9ghv5OfZ0ubjkycKa6Ji+CxF1QCO jNTkfj8pbdF+K96iBcMFU+/xkW9He7YYT8jEk9x0StaCl9Zw9pRDpYBsZFqWOhH5jsQy cw/PvdKqzQfBW5AOeC4EK+j0Q+0tG88Eh6K97WXLza1+IF8Jgn5M+Sh/S+U1hOnl+ZXK s/c6RzNWmjfKrHNF4RXWirv3ugnsoHaxhfg71JPM/1bDx2TYP/Nxcc4ql2c81KFEk1/4 pUhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MyGLJo7F; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g2-20020a636b02000000b004198fdec692si13823026pgc.584.2022.07.17.23.08.02; Sun, 17 Jul 2022 23:08:16 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=MyGLJo7F; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233194AbiGRFpU (ORCPT + 99 others); Mon, 18 Jul 2022 01:45:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231132AbiGRFpS (ORCPT ); Mon, 18 Jul 2022 01:45:18 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5B4F13D55 for ; Sun, 17 Jul 2022 22:45:17 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 5288FB80EC1 for ; Mon, 18 Jul 2022 05:45:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E931C341C0; Mon, 18 Jul 2022 05:45:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658123115; bh=yPiN/vSFCUYAKGMcAOjDfDKLGRowj5r7xJ2VAVb8YNU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MyGLJo7FwtMSN7/ucLim77qNwaOpXXoif0ZXzrnUQsiveoEgctB0z9X+SknjU8+at j2UMdw1kUJUYzyAf7HLnXcVJys6C8LXPczHi4spLfNS97w6IeUz6oEQlG10AQvmPaA 4LHOLn6bUJFqroOmEhARUeQp6fgT2noHhkaNP5wkgApDNHN76RMHEeabVwZ9BMlksb sXvv2pEU+te9ZVVtdtcXqpOe4RuraBI10jijC4ziOrOpLwd15+1XeWmp3A6wHWAs3u zeFwoJTfXDEibb02/X4cE+MA0w8NUB2XMLJqC0DzqRhVYgUZKi7VKn+wu9VphbVc67 F6Bw6naodqYXA== Date: Mon, 18 Jul 2022 11:15:11 +0530 From: Vinod Koul To: Bard Liao Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, tiwai@suse.de, broonie@kernel.org, pierre-louis.bossart@linux.intel.com, bard.liao@intel.com Subject: Re: [PATCH 0/4] ASoC/soundwire: log actual PING status on resume issues Message-ID: References: <20220714011043.46059-1-yung-chuan.liao@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220714011043.46059-1-yung-chuan.liao@linux.intel.com> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 14-07-22, 09:10, Bard Liao wrote: > we've been stuck with problems in the dual-amplifier configurations where > one of the two devices seems to become UNATTACHED and never regains sync, > see https://github.com/thesofproject/linux/issues/3638. > > This is a rather infrequent issue that may happen once or twice per month, > but still it remains a concern. > > One possibility is that the device does lose sync but somehow our hardware > detection fails to see it resync. > > This series just adds a basic read directly from the PING frames to help > confirm if yes/no the device regain sync. > > The change is mainly on soundwire. @Mark, Could you ack the ASoC patch > if it looks good to you? Mark, The series lgtm, feel free to merge thru ASoC tree with: Acked-By: Vinod Koul > > Pierre-Louis Bossart (4): > soundwire: add read_ping_status helper definition in manager ops > soundwire: intel/cadence: expose PING status in manager ops > soundwire: add sdw_show_ping_status() helper > ASoC: codecs: show PING status on resume failures > > drivers/soundwire/bus.c | 32 ++++++++++++++++++++++++++++++ > drivers/soundwire/cadence_master.c | 8 ++++++++ > drivers/soundwire/cadence_master.h | 2 ++ > drivers/soundwire/intel.c | 1 + > include/linux/soundwire/sdw.h | 5 +++++ > sound/soc/codecs/max98373-sdw.c | 2 ++ > sound/soc/codecs/rt1308-sdw.c | 2 ++ > sound/soc/codecs/rt1316-sdw.c | 2 ++ > sound/soc/codecs/rt5682-sdw.c | 2 ++ > sound/soc/codecs/rt700-sdw.c | 2 ++ > sound/soc/codecs/rt711-sdca-sdw.c | 2 ++ > sound/soc/codecs/rt715-sdca-sdw.c | 2 ++ > sound/soc/codecs/rt715-sdw.c | 2 ++ > 13 files changed, 64 insertions(+) > > -- > 2.25.1 -- ~Vinod