From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 27B21CD5BA5 for ; Thu, 5 Sep 2024 10:15:50 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 9BE69847; Thu, 5 Sep 2024 12:15:38 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 9BE69847 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1725531348; bh=dXyyOP/jzCCnet7lBfvBlrRmo2AqlnRnTXE96XOSq6A=; h=From:To:CC:References:In-Reply-To:Subject:Date:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=Cu/RTFOvDEnhIMvrR58vO4FRI4HEKxHAS+UMapkKQARSiaS4PnVAWt/ToaHRSPY9P 5ge/H8JMHkfeYYUPfbSY9YSazdEsMPiNdrjjtSaBYNneYgEcHv+2LlYOBGbHdwffZ+ 1v0nEgTb9etvmcFjjz9r1br6nLLX3y3liCvVCe5Y= Received: by alsa1.perex.cz (Postfix, from userid 50401) id A95DCF805AF; Thu, 5 Sep 2024 12:15:17 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 57514F805B2; Thu, 5 Sep 2024 12:15:17 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 1D379F8016C; Thu, 5 Sep 2024 12:15:12 +0200 (CEST) Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id D2F38F800E9 for ; Thu, 5 Sep 2024 12:15:08 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz D2F38F800E9 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=cirrus.com header.i=@cirrus.com header.a=rsa-sha256 header.s=PODMain02222019 header.b=otalCKC9 Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4855eGf9026075; Thu, 5 Sep 2024 05:15:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= PODMain02222019; bh=JLerFiBs9AyR9ryOzSK5p+uNGMWY5cOgUI+fz7YtDqI=; b= otalCKC9VxGoyfSfrB71VU9MobDuSFcpzMMNgBSIe7g7rAbOYfDkiKSbrbVlsn5p okdQvBLczgtUIRrfuFRv3DgcHMtQVzOIATWwMPz4MB4CB18t/sYDFyzEV46EQ5y7 sXiemiDkivw+pSqhcw5zNqcV7lK0IcETqSSIYzLJ0+6C4s/cZNqY9qDQgQm6kGWq nJdRuHaRkVI5AXWV/O0utUaNRtNvZ6ahgE8rA1Z6LD5O22B2H55CHFMsNeNjWYSM YTKkO2gkUkrP5z0rPCXpcd++OBzDp2pr+8IdVK8TjiDs6l/FEQSrh3+0ug+gnLCu tsWFcZwSwgMnIF+9PsOAFg== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 41bykkdsmg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 05 Sep 2024 05:15:06 -0500 (CDT) Received: from ediex02.ad.cirrus.com (198.61.84.81) by ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Thu, 5 Sep 2024 11:15:04 +0100 Received: from ediswmail9.ad.cirrus.com (198.61.86.93) by anon-ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server id 15.2.1544.9 via Frontend Transport; Thu, 5 Sep 2024 11:15:04 +0100 Received: from EDIN6ZZ2FY3 (unknown [198.90.188.28]) by ediswmail9.ad.cirrus.com (Postfix) with ESMTP id 44BEC820249; Thu, 5 Sep 2024 10:15:04 +0000 (UTC) From: Simon Trimmer To: 'Mark Brown' CC: , , , , References: <20240904120700.188644-1-simont@opensource.cirrus.com> <004601dafed0$d8ff8cd0$8afea670$@opensource.cirrus.com> <6eb95724-9ba3-410f-a42e-e1013c449458@sirena.org.uk> In-Reply-To: <6eb95724-9ba3-410f-a42e-e1013c449458@sirena.org.uk> Subject: RE: [PATCH] ASoC/HDA cs35l56: Remove redundant IRQ handling Date: Thu, 5 Sep 2024 11:15:04 +0100 Message-ID: <002401daff7c$79bc6bb0$6d354310$@opensource.cirrus.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Content-Language: en-gb Thread-Index: AQKHzAIo361Zljfa9iRBQSN4dy/XOQEQvrcuAYmGn2sCRS0RwLDIXT6A X-Proofpoint-GUID: agu2UCo_fuirTBRrF8x0mjeOQ4ILMLXY X-Proofpoint-ORIG-GUID: agu2UCo_fuirTBRrF8x0mjeOQ4ILMLXY X-Proofpoint-Spam-Reason: safe Message-ID-Hash: CES4L4D7WPQRI3VJ3U4ULIZ372QJ5BYE X-Message-ID-Hash: CES4L4D7WPQRI3VJ3U4ULIZ372QJ5BYE X-MailFrom: prvs=6978312709=simont@opensource.cirrus.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Wed, Sep 04, 2024 at 18:27:00PM +0000, Mark Brown wrote: > On Wed, Sep 04, 2024 at 02:46:30PM +0100, Simon Trimmer wrote: > > On Wed, Sep 04, 2024 at 12:25:00PM +0000, Mark Brown wrote: > > > On Wed, Sep 04, 2024 at 12:07:00PM +0000, Simon Trimmer wrote: > > > > > The IRQ handling in the cs35l56 driver was purely informational. It was > > > > not necessary to support the HDA or ASoC driver functionality and added > > > > unnecessary complexity to the drivers. > > > > Given that the code is there now and has been since the driver was > > > introduced about 18 months ago what's the ongoing cost of having it? > > > The information it's providing is notification of hardware faults, > > > reporting those does seem useful. > > > Originally we were expecting to use the IRQ mechanism for an event logging > > stream that would function in a similar manner to compressed streams to be > > able to get an information feed for debug and tuning tools, but those were > > never created and the logging infrastructure not implemented. > > Right. Though ideally we might actually do something about some of > the errors that are reported. > > > It's quite a spread of code and a lot of complexity in the regular execution > > paths managing them / synchronizing the contexts, there is more going on in > > the SoundWire bus variant compared to the conventional i2c/spi that it is > > hard to justify maintaining it all for a couple of log messages - in the > > event that someone did encounter the two situations being reported the > > regmap dump would point us to the cause pretty quickly. > > I'm not sure how many end users are going to get as far as talking to > you in the event that they have issues - people often won't get as far > as trying to contact their distros or upstreams. Even errors in dmesg > are pretty obscure but they're more discoverable than interpreting the > regmap, people would need to identify that they need to look at the chip > first and actually be experiencing the problem when they figure that > out. Ideally we'd hae better handling for this (I did note that the > latest Iron Devices driver will back off speaker volume during a thermal > warning which isn't a terrible idea, though there's potential issues). I'll have a chat to people when they are back at work - the IRQ signals we were logging were from the firmware rather than the hardware as it entered a protection state, this isn't fatal and can clear. Over the last few years I don't think I've encountered them in testing except for when I deliberately abused the hardware which I don't think anyone would recommend :) How people behave when encountering trouble is certainly true - as more PCs adopt our devices we have a steadily increasing stream of direct support messages and have been getting tagged in distro issue reports. These have been universally around missing support in particular kernel versions or the linux-firmware package not containing the necessary tuning files, so far I've only asked our field/partner engineers for a dump of a regmap and I've not seen a report of a hardware warning yet but I too suspect these are the tip of the iceberg for people encountering troubles. A general Linux tangent - we had been debating how many of our end users multiboot their hardware vs those who just run Linux on them - has anyone seen any reports or statistics in this area? > It sounds like the only real concern is the Soundwire stuff (I2C and SPI > interrupt stuff should generally be trivial?) - if that's the case I'd > be more inclined to only pull out the Soundwire bits and leave the > support there for the simpler buses. That is a good idea and would certainly make things better - I'll see what I can do -Simon