From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.127.125 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796374146; b=l0ZcItTIZ9BK3W9rGUJqskb1H1aq3UPq3NaNe9yPV+2XN1wGSB6xP5TXagrujMJa8Muu e5rkS+LDO0FnjInyJ0KoDnMZ9xUnYQ3a2oITdCF2jexlTL3CpFuQDxKdFk+X2WcyEEp4P X9ZIz1/MrFnY0VVPiU9242YrBI/75odaRjJWEVgJypuz9vQgiuhBKWUv+eaYQIHoysA2f lTovmtCAYCXwWWp0CZO+STOVdPj1mVK7rf6K+ph1Th6M1ncM8uK8L+ZMo3Fz/AsNdxZV3 kZZKS4Gbb4mKhSNbRabOLILHa8qQhL3dbSVJVgA3K2XfmhuctsJq2DMCv1o79vcoBrg== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796374146; h=DMARC-Filter:Received:Received:X-MS-Exchange-Authentication-Results: Received-SPF:Received:Received:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To: X-EOPAttributedMessage:X-MS-PublicTrafficType: X-MS-TrafficTypeDiagnostic:X-MS-Office365-Filtering-Correlation-Id: X-MS-Exchange-SenderADCheck:X-MS-Exchange-AntiSpam-Relay: X-Microsoft-Antispam:X-Microsoft-Antispam-Message-Info: X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-OriginatorOrg: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-Id: X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=0s2JLM0GUukmPAHcrCAyGvuPGo6FJdC8s65/pF3KUSw=; b=SOo5wFN1ID7dYvpkwmoWdhcF2sC29qgohh6d3ObnNIacgMtzeyjcizhur/rYpJLWdS5l 8l4Ux4B7e+7DudXXOlgPfJHdbAzFQsX40ntgITfZE1lvPhQ9Z5nQMZ1BBJMWYgNadJnbL yNgTHK2obFiAVHWCZJfVSiGPVBLjqste+r43tO3Nk3oLJbCP7NorntJbr2pRlmczFNCgY QjXZQlJkDmZ7ei0cms0Or8Ej6Cxf6csQGWFixInKPPmkyEl0wf9pBEKMKcJ/vXbDNDJLX 7YxaMalFiG2aC+zQztFPvJxIcXzmTxBdHedC+jliM4epSq7Oz7qX+8TVPGPmOPOhEug== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none header.from=cixtech.com; spf=pass smtp.mailfrom=cixtech.com; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.127.125 Received: from TYDPR03CU002.outbound.protection.outlook.com (mail-japaneastazon11023125.outbound.protection.outlook.com [52.101.127.125]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 78DF4606A681; Fri, 4 Dec 2026 08:49:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 78DF4606A681 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cixtech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cixtech.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=lnem4XzrCYYfe1G67EIAA4LVZgmtzxluduWwcLXMkUiGvRoGXVKuzoQowLNARve7l/rqfqIYhywiFfKUKsr9irEjtJHqUkx/q5gALB7SOnqV9z91LZiW+2JwTcoaXkFIcED6icCpFQ149jmWtdou6iiv8eli8DPMI4/bSdbGRa97XflIWH/nPg+eVprwIwRuZciD926I1s+ka2gwF35h+niYtVCWTqNsaX31POdS3n1U33Y5deBTX5ek7Jvn/1jgkqfq6r5jo1x11QhNEWlwURdP+uE3dhAdMDAxPAa319ptk9yLZpbi1BStYu6l67YDkVQltqJs/QEqjcmDCYIFQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0s2JLM0GUukmPAHcrCAyGvuPGo6FJdC8s65/pF3KUSw=; b=ar7L/5TUh8QF+zPLtGZk0wbLE2gWMXldZwtULQYizZuo7s/verl/iqhwg3lPQxmniA18CT/6ZkYIvs8fRvpur6Sj43aHuATofsg8uYMS34ITahOM/tXuFifvL+X7M6ijobp5Ycib2StU2qGm+7RnDKZXM7XQ413+XmOHaBxX/BqZKN9Hw1Uj2QJU+sz0CEYSf+LjiCJHStR06FBgfiXgo7eHpMJjJYsZczGT33qTTZXaopDBXjzUG1GD2kPVEHWMKj6rl/a1YwCCd4lABi06GeJuQbaY/9OR5EnCtYApwlmUf9b8aCH349c0pFV9QV5gntExhKY7aQiun2tUi2VYRg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 222.71.101.198) smtp.rcpttodomain=arm.com smtp.mailfrom=cixtech.com; dmarc=bestguesspass action=none header.from=cixtech.com; dkim=none (message not signed); arc=none (0) Received: from PUZPR02CA0028.apcprd02.prod.outlook.com (2603:1096:301:14e::15) by SEZPR06MB6197.apcprd06.prod.outlook.com (2603:1096:101:f3::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.709.5; Fri, 4 Dec 2026 08:48:59 +0000 Received: from TY2PEPF0000AB85.apcprd03.prod.outlook.com (2603:1096:301:14e:cafe::22) by PUZPR02CA0028.outlook.office365.com (2603:1096:301:14e::15) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.688.13 via Frontend Transport; Fri, 4 Dec 2026 08:48:58 +0000 X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 222.71.101.198) smtp.mailfrom=cixtech.com; dkim=none (message not signed) header.d=none;dmarc=bestguesspass action=none header.from=cixtech.com; Received-SPF: Pass (protection.outlook.com: domain of cixtech.com designates 222.71.101.198 as permitted sender) receiver=protection.outlook.com; client-ip=222.71.101.198; helo=smtprelay.cixcomputing.com; pr=C Received: from smtprelay.cixcomputing.com (222.71.101.198) by TY2PEPF0000AB85.mail.protection.outlook.com (10.167.253.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.709.6 via Frontend Transport; Fri, 4 Dec 2026 08:48:58 +0000 Received: from ubuntu (unknown [172.20.64.99]) by smtprelay.cixcomputing.com (Postfix) with ESMTPSA id 7327C427EFC0; Fri, 4 Dec 2026 16:48:56 +0800 (CST) Date: Fri, 4 Dec 2026 16:48:55 +0800 From: Jelly Jia To: Thomas Gleixner Cc: vkoul@kernel.org, Frank.Li@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, robin.murphy@arm.com, sboyd@kernel.org, bmasney+clk@redhat.com, jbrunet+clk@baylibre.com, devicetree@vger.kernel.org, cix-kernel-upstream@cixtech.com, dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, joakim.zhang@cixtech.com, radu@rendec.net Subject: Re: [PATCH v5 2/6] irqchip: Add the Sky1 AUDSS auxiliary interrupt controller Message-ID: References: <20261120053529.371923-1-Jelly.Jia@cixtech.com> <20261120053529.371923-3-Jelly.Jia@cixtech.com> <87ecc0q2im.ffs@fw13> <87h5guoey9.ffs@fw13> <87bj72obgu.ffs@fw13> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87bj72obgu.ffs@fw13> X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TY2PEPF0000AB85:EE_|SEZPR06MB6197:EE_ X-MS-Office365-Filtering-Correlation-Id: 87a79053-f009-40b4-4a72-08df51e36fd0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|23010399003|36860700016|82310400026|1800799024|261022105027099003|56012099006|10067099003|261026121527099003|261009223027099003|261022075727099003|261026140227099003|261028144727099003|22082099003|18002099003|4143699003; X-Microsoft-Antispam-Message-Info: /hc/Zu8pN272yGnRVAHt6qT00lIyedzyMXyGjRVzZ7sa3Pu8kP5WyZXd57P81WapiqbA0DaJ06zqTMwdENnIcTlD9A6kFs9L+AHJapLUmbB5oXtDh23iz10Q/fKee/8Lx7YohNoJnPw7NKooafTnBIIDsyKdKPeNrP3EiaSShYvEy7q6OwgK7ww6QT5+Fm2cO8W5Fq3Kf7dbEjsYK3sgWFqrk9dcc/UT9W6wyYBVkSEFY2MXEH5LKILlLO0aAvjd+s1Eelnwa16xJuPvmQZR//H5eKiHiuJcUdU5OxDkoKz0Wx+HNlqiGfgIzxpTiGIRhiZhwlzhrFsuvcNG7sZaZXb4W9iqT1bfUCiia7lSDAxvobuvT3ahdHLwQDq1IVWJ/ak0PpqSoCanyrEN8+M6T4xqbU83gvPWYzMRN6yHMqJ7uqmOtGnzHDEJZHJgx+uxsw18yUYY0a0dPKsFCbexf2uPEMQlC7dBR70AAb5VnmGONDjv+hKi7IVxq4vaE0+JGxPkGjDleMsONJ5fR9pEp8vMjzripDNyCS0DSVIwGMP82hq39lkfE3EeGYX61CPoivPfABWRaGLI9UmMok0BRf9evfbzYBZ+II0YRQZ0tfOiSW2dfkEE8WAk88st1YnV3ZuewsJv5UA3BC5/Q3lFBKK6sXbEdNiENSz+ShxQ7mzWAPnPDE8LGzn6qA49EdWUzRHN4TO9Soq3lsUt6sISFA== X-Forefront-Antispam-Report: CIP:222.71.101.198;CTRY:CN;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:smtprelay.cixcomputing.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(376014)(7416014)(23010399003)(36860700016)(82310400026)(1800799024)(261022105027099003)(56012099006)(10067099003)(261026121527099003)(261009223027099003)(261022075727099003)(261026140227099003)(261028144727099003)(22082099003)(18002099003)(4143699003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 9acR5mx+oJL+WlmVlJUJprq4DxQGpy3ALoeepVntVh/w5nWKl36pWqpfKfIBh55ArCi6ljq6HyrvESbIcB/qfCNh4CMorQrZKNUcKp5UBb7aRG4Tv6lWuz9E+Vls27dZDPZxCjCRITJJzQzIeGC/6ZGfDVqxh1XBqnZe0IE4+htLgtmMBlVkmJxN0KpCv4m+xfyzuT03oOBFT8NoQC3g9u52YhhXY6roRyyqPZt6wdJHCLpzMqQuO+T7m+/t6LlerzN3LuzkgpiXQsDia7Akl7hXIXklaZCoARTY9btbzPoDkYaC9EMabSHBGgMLFoyNsS4W3W57utfN5qZJSmtTY5QTT8xSx5fLpspaUH5yi0muYEtR82zFJa0dbMCLfQUFac97G+njo7RGbkVf3dSplABlfjPncsYWgSc5vy/0fJSIHldvp602oZmgbZTsKZ8j X-OriginatorOrg: cixtech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2026 08:48:58.2829 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 87a79053-f009-40b4-4a72-08df51e36fd0 X-MS-Exchange-CrossTenant-Id: 0409f77a-e53d-4d23-943e-ccade7cb4811 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0409f77a-e53d-4d23-943e-ccade7cb4811;Ip=[222.71.101.198];Helo=[smtprelay.cixcomputing.com] X-MS-Exchange-CrossTenant-AuthSource: TY2PEPF0000AB85.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB6197 Hi Thomas, On Thu, Dec 03 2026, Thomas Gleixner wrote: > On Thu, Dec 03 2026 at 11:07, Thomas Gleixner wrote: >> On Wed, Dec 02 2026 at 20:37, Jelly Jia wrote: >>>>> +static int sky1_audss_irq_request_resources(struct irq_data *d) >>>>> +{ >>>>> + return try_module_get(THIS_MODULE) ? 0 : -ENODEV; >>>>> +} >>>>> + >>>>> +static void sky1_audss_irq_release_resources(struct irq_data *d) >>>>> +{ >>>>> + module_put(THIS_MODULE); >>>>> +} >>>> >>>> What's the point of this exercise? >>> >>> These callbacks pin the IRQ driver module while a child IRQ is >>> requested, preventing the provider from being unloaded while a DMA >>> consumer still owns an IRQ. Runtime PM references do not pin the module. >>> This follows the same pattern as irq-pruss-intc.c. >> >> Ok. I wonder if this should be made generic as that's a general life >> time problem for all modular interrupt chip drivers. Let me think about >> it. > > It's worse. module_get() on interrupt request is not sufficient because > there still might be an interrupt mapped, even if not requested. > > But that's not a driver level problem. This needs to be addressed in the > generic infrastructure. Understood. An IRQ mapping can exist without a requested handler, so these callbacks do not cover the full lifetime of the mapping. Also, regarding the other points in your earlier reply: >> INFO_AP_IRQC at offset 0x54 is an enable register, not a pending register. >> The hardware documentation defines bits 0-7 as read/write AP DMA channel >> interrupt enables, with a reset value of zero. > > Misread that. > >> We therefore dispatch all enabled channels and let each DMA handler >> check its actual status. IRQ_IS_POLLED avoids spurious-IRQ accounting >> for the expected IRQ_NONE returns. I'll clarify this in the comments. > > Yes, please. I'll make the enable-versus-pending distinction explicit in the comments and explain why we dispatch all enabled channels. >> My understanding is that this waits until the resource accesses have >> finished before suspend or teardown continues. This relies on GICv3's >> ACTIVE-state support. > > So it works by chance and not by design. > > I don't think so, but this needs a big fat comment.... I'll add a prominent comment explaining the dependency on the parent GICv3 ACTIVE-state synchronization. It will also document that all CRU accesses and child IRQ dispatches must finish before chained_irq_exit() deactivates the parent interrupt. The next revision will also include the tabular alignment and line-break fixes discussed earlier. Thanks for taking a closer look. Best regards, Jelly