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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 79A6AC4332F for ; Sun, 29 Oct 2023 19:53:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230359AbjJ2Txc (ORCPT ); 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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!