From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.237 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796049064; b=ppRMCyO1sIO9rgXtoszxVh5tCmZhk0+ZZivJ+sHDdPPgyC3mGcWjUjimq1Z/TuFAwxxU rXPAa0/W42sDJDjk3MzIdai2WMwa7kJWU9aOSE0uZgm7FmcGAaSWzXss9hc757vYmoYbk zK6tkbqTedugscQX1wROEq43vV61vXzzBrVKXLvK9POYK1c8sK44n8wiQHAI2CmSQfP6X oWje/3BOXCTy4m8pg7udHqb+IgnA0eJrXAoohbCrXLmYRawH1uFHjqx/1Nc8NNNI8q/OP U/ILV+BsoXM3rqMSfF0j7SkweqqjTaEbmZ32Zi0ZLZgwJHsIOn+n35xpg+ogDDBNcKA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796049064; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date:MIME-Version:User-Agent: From:Subject:To:Cc:References:Content-Language:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=jG2GRn73MCKU082imKactAreUvPnJsn1cObi4c8ONRc=; b=vqAIQ/PTOaPvmMQFnzsBqju5R5Y94ZeFnXtEteG4dKrPBLAFpzI9ztCgasByAClnx41s rsSOm1ItNKiyM/p5kRH7lxzLTxvUco9frody2ts9QZq0W0+8irRBCsEnQEsv8IWKiW3hJ /OBc0HgAMA1gmYqEQGkZl43U4UPudrsJyHMxa9jr+U8y9QYQXNLYn6+xdmecs/xI/Phdz z1TWqgmC3nI30pWw9d+oFH0d0zi2jmf5Y75cIOv6JZ9NIW4MzWgPyiyCsJYURnWqXz791 Ul9aLjRuakHZjOjIzxkdYXhSc/b8jcN8YbZSM//YaILo1aeuto1SayH3ARju0pZVLWA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=IKTXakx2; arc=none smtp.remote-ip=95.215.58.237 Received: from mta1.migadu.com (out-237.mta1.migadu.com [95.215.58.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B01B7606A32A for ; Mon, 30 Nov 2026 14:31:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B01B7606A32A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=IKTXakx2 X-Envelope-To: linux-sound@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=ciyJsvlWdb94fWaO6h/rfly8My1isnpaYdNYcYNs0VE=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1796049061; v=1; x=1796653861; b=IKTXakx2rDV854JJD80zNuWYYYyAanJGW6ImIWY06nrEKvWaRmxd/JvtgZ3CbrLQiDazMgqV F2+KdsOghxdTciE9KQAUYFVwye2Sae5bs8g2Z1fT4e609txDQxgmclen0E0d0WD1Aoo6+NwUrl6 VtNYX008Jnrc6o7omp9IqCO8= X-Envelope-To: linux-sound@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id 87f8475ccc708a11; Mon, 30 Nov 2026 14:31:01 +0000 X-Mizu-Trace-ID: 87f8475ccc708a11 X-Migadu-Flow: FLOW_OUT Message-ID: <0ece6c88-9e3d-4d30-9027-21722bea8754@linux.dev> Date: Mon, 30 Nov 2026 15:12:36 +0100 X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Pierre-Louis Bossart Subject: Re: [PATCH 0/2] soundwire: Suspend and resume asynchronously To: Richard Fitzgerald , Paul Menzel , Vinod Koul , Bard Liao Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, patches@opensource.cirrus.com References: <20261127150101.48880-1-pmenzel@molgen.mpg.de> <8cc8a6de-a84c-4caa-a1b4-dca009731b91@opensource.cirrus.com> Content-Language: en-US In-Reply-To: <8cc8a6de-a84c-4caa-a1b4-dca009731b91@opensource.cirrus.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit > Codex GPT-Astra-ultra report: > > HEAD~1 (9fef13a61342) can cause a same-link resume timeout > > Sibling codecs can now start their resume timeouts together. The bus > still initializes one peripheral at a time on each link. It signals > completion only after that peripheral's update_status() returns. A > codec can therefore time out while the bus initializes its siblings. > [1, 2] > > Meteor Lake supports four TAS2783 amplifiers on one link. After power > loss, each amp can wait up to three seconds for a firmware download. > Its resume callback allows five seconds for initialization. [3, 4] > > In a timing model, each amp takes 1.5 seconds to initialize. With > synchronous callbacks in enumeration order, all four succeed. With > concurrent waits, the fourth amp times out at five seconds and skips > its regcache sync. Its initialization completes at six seconds. The > Dell test had one codec per link, so it could not exercise this case. > > I would keep cross-link parallelism and either preserve same-link > ordering for these devices or account for time spent behind siblings > when setting the timeout. makes sense to me, the enumeration is indeed serialized by construction and the inits are also done in sequence. Doing a parallel resume does not bring any benefits given the serial nature of enumeration, init and command/control. > HEAD (2818746b2ca5) leaves one Intel resume ordering untested > > Link B can arm and stall before writing CONFIG_UPDATE. Link A can > then issue SYNCGO, clearing B's CMDSYNC. In the overlap reported in > the commit, both links wrote CONFIG_UPDATE before the first SYNCGO. > > Intel documents CMDSYNC as holding command execution. Each link also > polls its own CONFIG_UPDATE before issuing a hardware reset. I found > no demonstrated failure from the early SYNCGO. I would test it by > pausing B after it arms and letting A issue SYNCGO. [5, 6] I believe the analysis is correct, the sequence 'sync_arm+config update' should be protected. It's probably a very unlikely issue, given that sync_go will only happen on a 4kHz frequency and that's more than enough to write CONFIG_UPDATE. We should probably follow what's been done for sync_go, i.e. have an unlocked version and take the shim_lock in intel_bus_common.c.