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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 54F0EC46467 for ; Mon, 16 Jan 2023 14:02:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=5TMhWlNOdhiFTeoMMuIP4rEWNZBoGruE0APLLHFqIEc=; b=wLKvObn0Pwmu12 78uYquJ5XZ+fy6yIRBtIcA121J2r8d4f9EWTPHztfyKCzWg2BYtixlUC1WeARIRaGMmuoxIsoQUIy hP1VqFl4RnhHm/Tk84VG2XjbyZG9t5lmi8PSlJjHVXs5AzAsnWdO36/ur115iSPhquBUNZPiO/plu nFsZepu/aYHeUTUe9zQcJRRcTT8iSOrkUPghvcMFPrpMpl742Fvnt0ew7wConY6WqB6DCu26HfYbO fsNnP/zahaApSUeT43FCgNu3lclcX0qyrP2jve8/AGsBG+lxX777cq22wlCuVulzUPrrbpvUw/YFA VahRnuTP/2T6ILrRhdgg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pHQ2x-00Ag2k-5T; Mon, 16 Jan 2023 14:01:11 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pHPvF-00AcJP-9H for linux-arm-kernel@lists.infradead.org; Mon, 16 Jan 2023 13:53:16 +0000 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 ams.source.kernel.org (Postfix) with ESMTPS id CD9B6B80F2B; Mon, 16 Jan 2023 13:53:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83C99C433D2; Mon, 16 Jan 2023 13:53:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673877190; bh=/8FHND46nv69mmy17Nnbru1utyPLvPaIrYFKiLgjjl8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=N2WM40DLGO1lztzykK7PIvVMi32p3yWdlWvFuxVYMX72ewFWHckK8V5MbnOp1PZjP 4Z6F5UNO79Ssw1sAQ4YYqnY0fnf2tpYPpVwvEq/wz9HIw0JJojZ4kkiYo99Ao5wCUF jUKg3dMmyc76LcU7NW7TAlWq2JRoeNeLtOY2dTsppleNRyL5zO8LeXB312cFuthRGO jjZWC4ZZgIiHlAzFHJEg9emEGEh+l4SI4UBV2onvKa++v+b624tGOHTqDYTogK9D2l ih/2ZruyNUzfFSRYrVW7+HcLPEVh8GdNCT+Wd2DNMe/vgoaaok13vfzgX8R3rFOmqe PapyB2OhgVTHw== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1pHPvV-00041g-Fz; Mon, 16 Jan 2023 14:53:29 +0100 Date: Mon, 16 Jan 2023 14:53:29 +0100 From: Johan Hovold To: Hsin-Yi Wang Cc: Johan Hovold , Marc Zyngier , Thomas Gleixner , x86@kernel.org, platform-driver-x86@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 00/19] irqdomain: fix mapping race and clean up locking Message-ID: References: <20221209140150.1453-1-johan+linaro@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230116_055313_509832_267F54CB X-CRM114-Status: GOOD ( 18.34 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Dec 15, 2022 at 05:31:24PM +0800, Hsin-Yi Wang wrote: > On Thu, Dec 15, 2022 at 5:22 PM Johan Hovold wrote: > > > > Parallel probing (e.g. due to asynchronous probing) of devices that > > share interrupts can currently result in two mappings for the same > > hardware interrupt to be created. > > > > This series fixes this mapping race and clean up the irqdomain locking > > so that in the end the global irq_domain_mutex is only used for managing > > the likewise global irq_domain_list, while domain operations (e.g. > > IRQ allocations) use per-domain (hierarchy) locking. > Tested-by: Hsin-Yi Wang > > The series solves a race issue when having non-populated 2nd source > components that share the same irq on ARM devices: > Previously we would see > [ 0.476357] irq: type mismatch, failed to map hwirq-11 for pinctrl@10005000! > and the component failed to probe. Thanks again for testing. I just sent a v4 adding a couple of clarifying comments to the final patch. Johan _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel