Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3324677rwb; Mon, 16 Jan 2023 06:40:23 -0800 (PST) X-Google-Smtp-Source: AMrXdXvAe2VLJumRsCeTO5Be+kne3sXhpykuvqAAmXkbLOtkhIrGvIK87wyiqOGaBfS/fdEA40uo X-Received: by 2002:a05:6a20:4281:b0:b8:adcb:a92b with SMTP id o1-20020a056a20428100b000b8adcba92bmr999126pzj.36.1673880022606; Mon, 16 Jan 2023 06:40:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673880022; cv=none; d=google.com; s=arc-20160816; b=nPSoPpjzNXE7z/cKuVVEMFQDlChKFcDfmXCrHQLzLoLkaoKBugOtYuf7sU5ViOfZbs sIOwVHdJYjiOB2dKT1UbGkL0nwO0HbBZz46LfTAoE55JMv7zhTOUl6KO4CIUoKntbZjp mYGbHnXxJOOJF79B0iLBNVioSEXhxUPUdv7SBx1lVRWNtJ9uyUPkzPattLGY7AMmrY/g 8BergiRTJz4VLVloRgEqxAp1soey6vbF+YRfSWGxAg5j/8lowBApCkXnrwe6UxNdkucU HsZs+m94ov1fineqv4gP15eQCa2XX4OhGHrRRgaBoL2+jSP2xxPJjPmG33YxTgzdl5SF s/Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=cWlQViJw7SNjfHpEikzMWTiQJN3ZqdOyssqvOxptvM8=; b=a5gnKHzJx8kkmy+O/ghJ1+kSbf46y8ZANji0KAYoeQP8C3rn8MFDohWNfSl3xkTG2g 9uECmxp06r3cDsBOKJc1GR6di+lEqPk4veCNok4Ymov35iiRGe1+ga2cq3LmOmj94y93 w1Uyz94Q7x/4x0WUXr2T1X47Z2qu6lPiqDRiilqw4UdMnyGR/BmZgbisFQQNk1n8ZC7W 7LUDl5blcBAJC9CbEybGEjCZBKuRynX8FasNTOPY5uJYsxaPAJx8AQeImv9NJ5qKQS1X mGo93/7msmS0E+saJpjiMUZOaTbcWsKsNp2ntsS/0JsvnsjJ+41AtH0mTp8lrw9RNvKF 5RUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=N2WM40DL; 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 x19-20020a63db53000000b00461f71a53e1si28594554pgi.505.2023.01.16.06.40.16; Mon, 16 Jan 2023 06:40:22 -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=N2WM40DL; 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 S231433AbjAPN5G (ORCPT + 50 others); Mon, 16 Jan 2023 08:57:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230053AbjAPN4k (ORCPT ); Mon, 16 Jan 2023 08:56:40 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A38182CFCB; Mon, 16 Jan 2023 05:53:22 -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 ams.source.kernel.org (Postfix) with ESMTPS id DE905B80F3B; 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 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 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