From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.238 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796049064; b=J6jIRtBX+2ZCQFttHPTUAM1NmoK3YOcSLm9OdLi0TL/zTdY42FpWmT9CDwoUdL+RSsSV BLtHU+OqV63a95Q5EaggfWxskT+8eFyMc2aRw1dLHRRlMzquYsxv1gwg1pIvZGN/KRVOu M5fFHr+v/ci9wuuWVhFHMgT0MdLiJXR1ZLtz0NGSecleMFyzIOE4xGOBOPC0FnxxtdSSQ oKseswkupzh+zj6Ht4lzjfsdNYIfclpNStB4FGJw/v+a6JCfANsCqntY1/Bv2jAzZGi/g coL6R78rrmfk/Qvn0B0IfoRntvdWARBuMDq+id/LvwbPXjD/q0xYawjpvc67mZtvBpg== 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=Ss4IWykWNtePahNCv4NiYiSG57aOBU7XGlwdKvunq3IURdLG6cCSu8piqC0PdAxV7FM/ bbhSD49WJJRsGC+XRKp5U1mtYmBFcT8n2YBwyrFDPgCBvlMJnEPQULQ6SSp8SBtugeGFs 5IaCmBw0lLvcjlvNTIaTNROulby8QQkPGksnFKptpZeyG3HBs4LCwuDKO0Y3kFRv9qSX6 u6AATSLEAv4aUkjqYKS0I4sscAbDI0ZSKCiI7U/CscAt2i4v7/054uUebUTc96Ff6EEWl V+0awQ55cVJ6F66sM5+6biwjTvCF6xuvAUCKfX8gQKw0FMPXzi4YtYtMLK0ZdOjvcQQ== 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.238 Received: from mta1.migadu.com (out-238.mta1.migadu.com [95.215.58.238]) (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 13E82606A327 for ; Mon, 30 Nov 2026 14:31:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 13E82606A327 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-kernel@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-kernel@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-kernel@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.