Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2370120rdh; Sun, 29 Oct 2023 12:53:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGkOZs9/TLk0uSTo7pG0TEZvbQHCVWTAG9xhT3GFj7EQ3MFwoQBmDtykWFDG/EbE2Fd3QfP X-Received: by 2002:a17:903:191:b0:1ca:3d9c:a748 with SMTP id z17-20020a170903019100b001ca3d9ca748mr9929323plg.36.1698609224667; Sun, 29 Oct 2023 12:53:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698609224; cv=none; d=google.com; s=arc-20160816; b=eMZbR5r9kjDvuk9yg5rNNWbtvtwMJDRzbLwcRQGaG2U6jo9+QihFn4gV9MJM5e1BgV EmR1GzNKGrmBHtiKH4UX0UEWUVWIbIq7oi8M/OjHKm4G4PMNQPwJKTo4UUkDfTBQcmnB 9aWO0XxE0Fk0baNor/hy1NyBMvn8cuRQkiXO1xOFzPaCh62gZUzBfo8Rub1CkdmEp6XL G0/dH4gWF6XGTMMug1jA0+aSps76QbBbrJFqFO9ljSXTu9QXa+RhPNBgGtXfvmTyUxtF M7Z7pvkhbLoyet0T+fg8MmnWnR/xbWzhVf+HkAXfyAKvIO8Z6cPxYn7ncEdugOo2eqSY Rvjg== 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:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=lmudrSFAHZUzHPWgKrth9d+IMU9R0eRDc3eGd1MXJC4=; fh=3Nb5jpAMWizumae5U4sVXaf9UM710gwozCHJ9FactJU=; b=BFNCNHqR1WzkYNJLgC0SaEn1qr0QAI7n4aGxHTd2DbPQGPDaw+B8Fa7EqdsfFU49jv hJCOv9IvCLfLxxGa2tnGyoOLzJZ/XYDv54DRNZoFGPp3rche8mfkLkd3sHitdBLYhCUN NnXfrIj8vNR06KRorMAamAY3dm9G2iW3O/ePH2GC9bU93fskEsYWHgBIu7QjCQayxNLM e2Pd6oDwhbN8brD6MURd5D48YNI59c9x63JVe9xFAtLlH0Nybqo03wPvHlDNCSX66h/O r7YW+gol++XfzXlIBb0wmexaxVp2o4kMI3H6C6VNDAKZXRwD4vxR2KX736jyhjM/7ydm DBjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BYRXQ30H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id m17-20020a170902e41100b001b8698149fbsi3943561ple.477.2023.10.29.12.53.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Oct 2023 12:53:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BYRXQ30H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 4EC798086513; Sun, 29 Oct 2023 12:53:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230230AbjJ2Txc (ORCPT + 99 others); Sun, 29 Oct 2023 15:53:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229529AbjJ2Txb (ORCPT ); Sun, 29 Oct 2023 15:53:31 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3ECB7BD for ; Sun, 29 Oct 2023 12:53:29 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 46471C433C8; Sun, 29 Oct 2023 19:53:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698609208; bh=lmudrSFAHZUzHPWgKrth9d+IMU9R0eRDc3eGd1MXJC4=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=BYRXQ30H7zG0VuXvZAImgIlhy7I8o0cO6u74yfM2MHH0xc7shZ1zPeV2NrW/FjYxm i4M3G+IwBNXrgeZp3ir7RiYdAXCQ21w9+g2mLWKgb4yZLNGvf15tGfJJ8JL5yaPcEq qBB0vaSNa3IHDUzD7YZPYbnbbfWpmSVIikUNp0bt+QECZyY+Cvos8qOifeaL0DKm8V B8G6oz2+1L1rKMk4wfU5chSopqlaNhyqJQrmmQ6EM1kahfNdN2MaPEIqrYWIKZinDD UXmf+XJb9cuLyPTCuIg838uJhSmMdiQHs5+J8kT0pLfy4AXYne4Dm49zDSNV8mDFwo 9nksLDpGRohlw== From: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= To: Thomas Gleixner , Anup Patel Cc: Palmer Dabbelt , Paul Walmsley , Rob Herring , Krzysztof Kozlowski , Frank Rowand , Conor Dooley , Marc Zyngier , Atish Patra , Andrew Jones , Sunil V L , Saravana Kannan , Anup Patel , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v11 09/14] irqchip/riscv-imsic: Add support for PCI MSI irqdomain In-Reply-To: <87y1fmzja1.ffs@tglx> References: <20231023172800.315343-1-apatel@ventanamicro.com> <20231023172800.315343-10-apatel@ventanamicro.com> <8734y0rwtw.fsf@all.your.base.are.belong.to.us> <87jzrbf5cw.fsf@all.your.base.are.belong.to.us> <87y1fmzja1.ffs@tglx> Date: Sun, 29 Oct 2023 20:53:25 +0100 Message-ID: <87bkchfbnu.fsf@all.your.base.are.belong.to.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Sun, 29 Oct 2023 12:53:42 -0700 (PDT) Thomas Gleixner writes: > On Wed, Oct 25 2023 at 10:55, Bj=C3=B6rn T=C3=B6pel wrote: >>> Now for IMSIC-PCI domain, the PCI framework expects the >>> pci_msi_mask/unmask_irq() functions to be called but if >>> we directly point pci_msi_mask/unmask_irq() in the IMSIC-PCI >>> irqchip then IMSIC-BASE (parent domain) irq_mask/umask >>> won't be called hence the IRQ won't be masked/unmask. >>> Due to this, we call both pci_msi_mask/unmask_irq() and >>> irq_chip_mask/unmask_parent() for IMSIC-PCI domain. >> >> Ok. I wont dig more into it for now! If the interrupt is disabled at >> PCI, it seems a bit overkill to *also* mask it at the IMSIC level... > > Only _if_ the device provides MSI masking, but that extra mask/unmask is > not the end of the world. Yikes -- so MSI masking is optional. Ick. :-( Thanks for the excellent MSI vs MSI-X post in the other thread, BTW. Great stuff!