Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1521112pxm; Thu, 24 Feb 2022 04:59:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJw+DZPjxiNcTGMsPQAP+P7YIgitlr5rMLbcQRiFC9wu5icuQ+KOxk2ooAPq3kwfheo0Lvvk X-Received: by 2002:a17:906:b887:b0:6ce:36cb:1e18 with SMTP id hb7-20020a170906b88700b006ce36cb1e18mr2200064ejb.95.1645707574424; Thu, 24 Feb 2022 04:59:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645707574; cv=none; d=google.com; s=arc-20160816; b=gAion1eRdjJZ0xr7Q2jYlJp+tVVMncWjNh+S9LeAXvTQR0JplXlz61gPnzZN92eJzP ZJjROzOpxrqMT+7DPkVKYO1MzGfmknLejKEC6Q9DozD3J1MhEmB+SnhzomW7tcb/+KYQ sFBa7coUiSh1Jrq3debt0Nrrjfy6Nu8Cw77RpQuG/uX2QeC1A2bXo6BN7J5NpN4vckz3 kIWb0F3wf9/ylXcrEKvaaSfi1VaWMnV6vJFZMCqHfZBfQW9th/q/t52zmr32aahpiy7Z o7qI9/M7hIRicE4PA1enpvR1RGR7TEhSzEktKuZ2mITAqnAGAQ138Q7vAXpLq7a+Znhe +PGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=wMJssx58CGB8ITyVanshAj6B2wCfZTZFTAOMByxdh80=; b=029eJiLyuvxVD/iae16i7hFg3Dq2VUDF+nsz9kIWMpHo5wYgLiR+cxIioOUT218qkX /Cj+DN+0PhE9vzy+vguT6Qan4cP256qmSiqfw1fchgW1HHOCkSxGEQOQU2JZmN+4DZXl gH61rWKSoBU/PGFXfd4DY95CxFXhO0GoFBZpFQ5i8M5WEgGQhGmX4oSlsfPyvfedmfRM 3Jj85Nbwya3Dnnn3x+BrwSgTwjSPZafv3kQZcVC9HF/9NYTe8kriD/Z3KE3QqP7U1Ocv guBfFv8KRjTKw/TpInCD+R3f2j/9kco5tCdMVtLFr/dNDBs8XOIvJybM6gA1q2m3egRN N9UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=amRKZ9of; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p23si1789324edw.627.2022.02.24.04.59.10; Thu, 24 Feb 2022 04:59:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=amRKZ9of; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233361AbiBXKNY (ORCPT + 99 others); Thu, 24 Feb 2022 05:13:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233320AbiBXKNF (ORCPT ); Thu, 24 Feb 2022 05:13:05 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00D6D139CF8; Thu, 24 Feb 2022 02:12:34 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 685C0CE1E81; Thu, 24 Feb 2022 10:12:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 942CBC340F0; Thu, 24 Feb 2022 10:12:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645697551; bh=8ZHNduwQaNGk2zn8xWtqbbqxqlXAPTPJ/aG+18WOME8=; h=From:To:Cc:Subject:Date:From; b=amRKZ9ofvfspv5X/pNlxFj9SF68eCdwcBy0fW/5FoDC4DvTbxU0FuGHOjPDCyICRZ r90Ad2WNx1isNwt+/K2f4A5SXw8l3mCpf9tVT/e/GjzXaKxo3qZgY4l+4wMoH21ndw pMCQSH8X7brTlUgRh3QxkoGqT1il5DBDD0RtTlN83iVdutboxvUPgjBAbRcty9zUvb 1T0PUYal3aMuUBj5CFF62dNY5Yza/VCJ+n3X1Zl5cbW/zFKu3jQK5Ny8DzMazPBZso VrF0A3gqrnjWPDILw2hXj8QGscw/hubu2ErMOhuKxOTArPZGO/5H9kkx0OmyfQ1192 EgyJ7FWinbIjQ== Received: from sofa.misterjones.org ([185.219.108.64] helo=why.lan) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nNB6r-00A979-2w; Thu, 24 Feb 2022 10:12:29 +0000 From: Marc Zyngier To: linux-kernel@vger.kernel.org Cc: Andy Gross , Bjorn Andersson , Thomas Gleixner , linux-arm-msm@vger.kernel.org Subject: [PATCH 0/5] irqchip/qcom-pdc: Assorted cleanups and fixes Date: Thu, 24 Feb 2022 10:12:21 +0000 Message-Id: <20220224101226.88373-1-maz@kernel.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: linux-kernel@vger.kernel.org, agross@kernel.org, bjorn.andersson@linaro.org, tglx@linutronix.de, linux-arm-msm@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I recently noticed the following message at boot time on my Lenovo c630 laptop (SDM845, if I'm not mistaken): [ 1.449499] debugfs: File ':soc@0:interrupt-controller@b220000' in directory 'domains' already present! which is usually the sign of something being amiss (multiple irqdomain using the same fwnode and not being tagged properly). Looking closer at the qcom-pdc driver (which is the one triggering the above warning), I realised that this driver could do with some cleanups: - Pseudo hwirq indicating the lack of parent. Not completely wrong, but could be done in a more elegant way. - Two irq domains, which provide the exact same service to the same IRQ space. Only the context is different, and the difference is not significant. - Broken locking. You just need the right timing and a driver that disables its interrupt. - A couple of open coded constructs that duplicate stuff the kernel already implements. I've tested this series on the above HW, and nothing broke (suspend works, interrupts get delivered). If nobody shouts, I'll plan to take this into 5.18. Marc Zyngier (5): irqchip/qcom-pdc: Kill PDC_NO_PARENT_IRQ irqchip/qcom-pdc: Kill non-wakeup irqdomain irqchip/qcom-pdc: Kill qcom_pdc_translate helper irqchip/qcom-pdc: Fix broken locking irqchip/qcom-pdc: Drop open coded version of __assign_bit() drivers/irqchip/qcom-pdc.c | 137 ++++++++----------------------------- 1 file changed, 28 insertions(+), 109 deletions(-) -- 2.30.2