From patchwork Fri Nov 11 13:54:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Gleixner X-Patchwork-Id: 13040337 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 406FEC433FE for ; Fri, 11 Nov 2022 13:54:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233390AbiKKNyX (ORCPT ); Fri, 11 Nov 2022 08:54:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233466AbiKKNyV (ORCPT ); Fri, 11 Nov 2022 08:54:21 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1EFF657E6; Fri, 11 Nov 2022 05:54:20 -0800 (PST) Message-ID: <20221111122013.772447165@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1668174859; 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: references:references; bh=A5gxwhjOfYDDe9pKor0TACcvTNvwKPr4BmNEQMHYUXM=; b=2Fw81I21MoAKaeHMvY8ErYps4l1IO750NK6h0Rw5RZWIkRe1THjaR3X9HOgWaw0l0mTY3s Ll/dD746mdb0yAlQ0ov5sWM+AUpitCcs3HH2sgJgDOjn4vJMHJ7fU7zVpfvS6ftBxmpMqN 3lNkZB4zUY5dQCXSdvJRx9miYjQo5pscOVVZiUT43KjB5ToV7Gf6LBOoyJeBaDHV34hPBt Kov5aUw/Nj5pOGw+zbQh01L3MNB9F/dqZYgM8k0EV9pZZdCg7t9WZLyUA2eNreUXI3U/Xg YGxOHz7tgOcX14fftMFVLmC0ys4b/FRIRn7D0mnNGwj+0dhV8PWJeucTy3fKZg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1668174859; 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: references:references; bh=A5gxwhjOfYDDe9pKor0TACcvTNvwKPr4BmNEQMHYUXM=; b=nfZOapQueWw+bWDWb8DtO7mx9RdWBuPX7UZNwtQUy7EXN7HJhuDTmRaao/o2kWTcYU4fDr 5a1Y5VotFiqrI7Bg== From: Thomas Gleixner To: LKML Cc: x86@kernel.org, Joerg Roedel , Will Deacon , linux-pci@vger.kernel.org, Bjorn Helgaas , Lorenzo Pieralisi , Marc Zyngier , Greg Kroah-Hartman , Jason Gunthorpe , Dave Jiang , Alex Williamson , Kevin Tian , Dan Williams , Logan Gunthorpe , Ashok Raj , Jon Mason , Allen Hubbe , Michael Ellerman , Christophe Leroy , linuxppc-dev@lists.ozlabs.org, "Ahmed S. Darwish" , Reinette Chatre Subject: [patch 03/39] iommu/amd: Remove bogus check for multi MSI-X References: <20221111120501.026511281@linutronix.de> MIME-Version: 1.0 Date: Fri, 11 Nov 2022 14:54:19 +0100 (CET) Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org PCI/Multi-MSI is MSI specific and not supported for MSI-X Signed-off-by: Thomas Gleixner --- drivers/iommu/amd/iommu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/drivers/iommu/amd/iommu.c +++ b/drivers/iommu/amd/iommu.c @@ -3294,8 +3294,7 @@ static int irq_remapping_alloc(struct ir if (!info) return -EINVAL; - if (nr_irqs > 1 && info->type != X86_IRQ_ALLOC_TYPE_PCI_MSI && - info->type != X86_IRQ_ALLOC_TYPE_PCI_MSIX) + if (nr_irqs > 1 && info->type != X86_IRQ_ALLOC_TYPE_PCI_MSI) return -EINVAL; /*