From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C2D10606A681 for ; Fri, 4 Dec 2026 08:49:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=XokUDEJs DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=0s2JLM0GUukmPAHcrCAyGvuPGo6FJdC8s65/pF3KUSw=; b=XokUDEJscfU211JbzdR5CCDvqz IJls28v9M1pmCSGL+guPm+WzRjT/5tL4VC39KMgDITyr7Pms1WC/P/toxowdDn+ZePb8xc6tAJgU+ 4kiwrGklADW2nF3RamreVyq1DQsv5pUeygfaxcKyJM5KQKZtDgQxBMA7evJWUMGpCHc5+k9sUG9CX wF/+VyRur5EZRmwXJsAfDRYk+wJERsDJEp9a9D//XB+Oz2IVJ0Y0pc5dh4xJ8pTQTzg3y7n+nrkt5 KyeZO10tFjFTxSB8nK40n/qqZjvX4XlKj94P1yhgpsnaPcJKGm+CMygG1WBvsgeR8IW875ucy6dJs wRNKejXQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZOyq-0000000HDhD-3a3M; Fri, 04 Dec 2026 08:49:25 +0000 Received: from mail-japaneastazlp170120005.outbound.protection.outlook.com ([2a01:111:f403:c405::5] helo=TYPPR03CU001.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZOyg-0000000HDbM-3s0t for linux-arm-kernel@lists.infradead.org; Fri, 04 Dec 2026 08:49:23 +0000 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-Archived-By: 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261204_004921_495291_CF0487F1 X-CRM114-Status: GOOD ( 20.86 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-4.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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