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 22E96C4332F for ; Mon, 29 Nov 2021 22:41:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234830AbhK2WoT (ORCPT ); Mon, 29 Nov 2021 17:44:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234285AbhK2Wnp (ORCPT ); Mon, 29 Nov 2021 17:43:45 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0624CC043AD8; Mon, 29 Nov 2021 12:51:13 -0800 (PST) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1638219071; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=tz/JDx8g54Ok4OMBliMP1MHdAMZdu38KyT07rgK4kek=; b=EJHYdtcQ7CkIX5jk0EPaQKBNxB/I4Fmx4psc3dNfeVrvTFpfEeqts20BFVbt5PAcORMNHi YmEYN7qu9o9Nf+xrWi1DDTWj8DqHrD/TaMw5SFkbD9O9fYe/B4c4CovKJtoayoJFBLXFhN h1GDxLrYh/zoeCY8+4MzczVeqOnc/INyFI9/5AX3gUiOfVu22C1ifU4McFVa8VwqLko/cL R/kEgQCcjhyb30qp4KynvMsylSgqwoxDEXZFQey00qSiM47Wq3tkv0cLqJ0EqVtA/e+0Fv AngN+lIgcGkoPC0smzvCoXGvs5qyyndto5EVdLqns8n0Bo2OfZztMwHgnyLp/A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1638219071; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=tz/JDx8g54Ok4OMBliMP1MHdAMZdu38KyT07rgK4kek=; b=sVqzZBKzTnDKRGPDAdt0lfSw7znG5ecBJX8UUs+ZB5r69qdnSChYv4MKQc8kplV1rgOuob O5RAPkes0fGbEIBg== To: Logan Gunthorpe , LKML Cc: Bjorn Helgaas , Marc Zygnier , Alex Williamson , Kevin Tian , Jason Gunthorpe , Megha Dey , Ashok Raj , linux-pci@vger.kernel.org, Greg Kroah-Hartman , Jon Mason , Dave Jiang , Allen Hubbe , linux-ntb@googlegroups.com, linux-s390@vger.kernel.org, Heiko Carstens , Christian Borntraeger Subject: Re: [patch 21/32] NTB/msi: Convert to msi_on_each_desc() In-Reply-To: <7daba0e2-73a3-4980-c3a5-a71f6b597b22@deltatee.com> References: <20211126230957.239391799@linutronix.de> <20211126232735.547996838@linutronix.de> <7daba0e2-73a3-4980-c3a5-a71f6b597b22@deltatee.com> Date: Mon, 29 Nov 2021 21:51:10 +0100 Message-ID: <874k7ueldt.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Logan, On Mon, Nov 29 2021 at 11:21, Logan Gunthorpe wrote: > On 2021-11-26 6:23 p.m., Thomas Gleixner wrote: >> Replace the about to vanish iterators, make use of the filtering and take >> the descriptor lock around the iteration. > > This patch looks good to me: > > Reviewed-by: Logan Gunthorpe thanks for having a look at this. While I have your attention, I have a question related to NTB. The switchtec driver is the only one which uses PCI_IRQ_VIRTUAL in order to allocate non-hardware backed MSI-X descriptors. AFAIU these descriptors are not MSI-X descriptors in the regular sense of PCI/MSI-X. They are allocated via the PCI/MSI mechanism but their usage is somewhere in NTB which has nothing to do with the way how the real MSI-X interrupts of a device work which explains why we have those pci.msi_attrib.is_virtual checks all over the place. I assume that there are other variants feeding into NTB which can handle that without this PCI_IRQ_VIRTUAL quirk, but TBH, I got completely lost in that code. Could you please shed some light on the larger picture of this? Thanks, tglx