From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.25 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795545185; b=kAxz/oABkwnh1MWnA+GMDtXDOhWHiv92hXvXbWT7mVqrzKw+YEzqNheSvI/MnW7Dm8Pl lSOAIoGgaJaGFGApocmk17aFD6pNAwnZb82ne5qVS51VXc/wGic1ufTUD58sUlJW7pUfE BDs98DotKkAszFF4cxFo+i9yOUCZB0SmLRQ4iPEXNzKD4llYAFNJx8nP/ibxLm00dyN2x tNK+TBosL40Qh1UVWAyujO/tF1FI+gN9iKvw2NoWOZYNNa14YGgnrPcZeqQVAQZn97XLr QfYdp8PsYj23h/iBidlva+rs1++3GOl5YFOhGGaCGmV7gB1g8TTYjnGwMzibCrVmbhw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795545185; 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: Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=3Orb80IfccFIGutES0nFJ+RUXeXDGece7CvHjmHyCNI=; b=rx0e191P4bKRIWZVC+vDUTen8PFk7rXljoZzqY/ATqHILHPAW6AZauS4M+FXo2Jhgv43 tzB+YerCy4nWl+6ILaGE9ct6oWYeOBepgmDmHe31TH3AKD17cnnyLhau00wzCjFWrn//8 +Nu2PELBJDblQX9eme6XOm0iLPSnlwOImHN7QmTANJLhr9/FuNJFtosnpkukxM+d/ZieG JsFviXpjRKU+gA9zuQV9uvrsnCOvOU+K/3d29d8a+W44mmMh5HrhKwRsBVsplR4NdFmZs T9FU7PnjTA80WJRvJbIetqR8tlvsRPWYbRddhy7saOcceWlFgAn0TaweiYZrXFIUZYg== 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=r++VktNi; arc=none smtp.remote-ip=91.218.175.25 Received: from mta0.migadu.com (out-25.mta0.migadu.com [91.218.175.25]) (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 4864E606A321 for ; Tue, 24 Nov 2026 18:33:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4864E606A321 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=r++VktNi X-Envelope-To: linux-sound@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=NWziLWE+sxpv1w/H1qz5Zsm7vidAAL+sWIAKb6oHxg0=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1795545182; v=1; x=1796149982; b=r++VktNiQzCxlQ9NVvoCqbygOf9txrYWLi12WjjB0ftE+imo/AyPdskVgyaLPfeukt0TfSqe BXWJNEhgxBQ1/EQ/Ak/i6RS20djmOabxJq5ESbnGrlHRrXmotuX8d4Th9wwt6Bnol1xGgGDA/pi vPFgXPclzCzRa6K3Iepbvj04= X-Envelope-To: linux-sound@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id 21af0ff3c44373d1; Tue, 24 Nov 2026 18:33:02 +0000 X-Mizu-Trace-ID: 21af0ff3c44373d1 X-Migadu-Flow: FLOW_OUT Message-ID: <2751f03e-e93c-4889-ad41-c2d846212920@linux.dev> Date: Tue, 24 Nov 2026 19:33:01 +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 Subject: Re: [PATCH v4 1/4] ASoC: SOF: Intel: Add IRQ chip to distribute the SoundWire IRQ To: Charles Keepax Cc: vkoul@kernel.org, broonie@kernel.org, yung-chuan.liao@linux.intel.com, lgirdwood@gmail.com, peter.ujfalusi@linux.intel.com, kai.vehmanen@linux.intel.com, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, patches@opensource.cirrus.com References: <20261124161001.702882-1-ckeepax@opensource.cirrus.com> <20261124161001.702882-2-ckeepax@opensource.cirrus.com> <44756a36-bda7-4a3e-b3f3-67c2aa9b8883@linux.dev> Content-Language: en-US From: Pierre-Louis Bossart In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 11/24/26 18:06, Charles Keepax wrote: > On Tue, Nov 24, 2026 at 05:49:21PM +0100, Pierre-Louis Bossart wrote: >> On 11/24/26 17:09, Charles Keepax wrote: >>> Add an IRQ chip into the HDA code that can be used to trigger the >>> SoundWire IRQ for each link. Currently, only the SoundWire IRQ >>> is moved over to this IRQ chip, although in time the other IRQ >>> functions could be too. >>> >>> This will allow refactoring such that the individual links each >>> request and free their IRQs locally, rather than having to rely >>> on looping over a list of links which is tricky to maintain while >>> destroying the devices. >> >> Well, there's no such thing as a per-link SoundWire IRQ... >> >> The hardware is built in such a way that once a global interrupt is >> received at the HDAudio controller level, the handler has to check if >> this was an IPC, HDA, SoundWire interrupt - in that order. And in the >> latter case there's no other way than iterating over each link. > > Yeah, hence why we add the IRQ domain and claim a shared interrupt. > I will reword a bit for the next spin. > >> Using an abstraction to make each interrupt source 'self-contained' >> would be fine and probably make the code cleaner, but then why stop at >> SoundWire? I'd err on the side of 'go big or go home'... > > Yeah this definitely could be expanded to the other handlers, as > I note in one of the commit messages. But not really sure I want > to go that far as it no longer relates to the issues I am trying > to solve. understand, this would probably need to be handled by Intel folks, since it'd impact ALL platforms since GeminiLake - 2019. >> At any rate this would be a significant change on both SOF/HDA and >> SoundWire sides that should be handled as a well-tested prerequisite to >> the series to allow for communication with the device during remove - it >> doesn't seem right as a patch casually added in a v4... > > I can split this patch out to a separate series if you prefer? I guess it's more the Intel people who'd need to speak up on such an invasive change. My recommendation would be to pick this patch and make sure it's well tested with CI and daily tests. Whether it's part of the same series or not is not really important, it's the test part that matters. > Apologies, for the changes a few revisions in but I had generally > imagined doing this would be too much work, hence the more hacky > approach in the previous versions. But it turned out the rabbit > hole was much shallower than I thought. One open that I have is whether the dispatch of the shared interrupt will deal with the links in the same order as with the explicit loop. If not, there could be interesting timing issues that show up. The other remark is that the free_irq() introduced in patch1 in intel_link_remove() is moved in patch4.