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: 18749 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp752466wru; Fri, 11 Nov 2022 05:56:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf6i1Ch+wB3fOIlGpraujdPFzKYAybNuLnjyTievfM53ejm+EVfEtK+ZkU9w2PSfEd2ZaH9w X-Received: by 2002:a17:907:110d:b0:7a9:6107:572a with SMTP id qu13-20020a170907110d00b007a96107572amr1887317ejb.729.1668174967120; Fri, 11 Nov 2022 05:56:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668174967; cv=none; d=google.com; s=arc-20160816; b=ZfF1o4Dudj+W7uEluc0QpZojFZ8ERSX4hSTLcldowADOtm6HLsX660mXJFcw+RQZuG kR9ONChxcUvPCAktgUmnLPiPC/2yCxz9Ob4XTkqG3BGekOPyiNF3dvmMdcWQamBTP/7R SkPIlYsbq1uRDTQArNNlBpck+9B4W8w28EIM7wBXkqbHq6Li7QOUOaj3eNxZQYAXj6MI OiPRctqzHhsiWLIlGo45MDPqrF/5nLe42AlUa0gXU2uXTqtjie05LJRDzBAFj7flbvvr aH0D+DJuTn78JvhNLrKB7ouv/qx8aSALsaXUMocOwJhR3k8J5YGo1DHUvvJYn0NnQQpT J2vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:mime-version:references:subject:cc:to:from :dkim-signature:dkim-signature:message-id; bh=A5gxwhjOfYDDe9pKor0TACcvTNvwKPr4BmNEQMHYUXM=; b=HPFB7prqIazBQ8Ii4HjcC+JuuGzqirUdtNqPOfWmPjXQ1MFTkDjR2xzsKEe4EMeG77 0iKUnTJkMEuN4d5Q36IYSQr00AFMYjnhRcrzLakwCGn7EQNKTTX5+YloTysfCvHPJYCa sJ89IKNZCZT1GkyKP9gMqMrq8cbJm3LSakvUU5nKrUhQCsz8pChP4FepTq4kxS7CeRst W1tNNicgofdGkZ38NuD6ZvatXbYLFM1/PEAwCLn3ThVZ7N1kk0wEfmCos6vY1IDcpAL9 lQ8nkgt6ady5j8V+9Xm3KLVEVhJ46ZDfqgaLTSYmkFOE1u6i4dh3bqOsLdTAUeUbc43E 7m5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=2Fw81I21; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=nfZOapQu; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i3-20020a05640242c300b0045c7611d8ddsi1500257edc.179.2022.11.11.05.55.43; Fri, 11 Nov 2022 05:56:07 -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=@linutronix.de header.s=2020 header.b=2Fw81I21; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=nfZOapQu; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233553AbiKKNyg (ORCPT + 99 others); Fri, 11 Nov 2022 08:54:36 -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) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749208234392125048?= X-GMAIL-MSGID: =?utf-8?q?1749208234392125048?= 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; /*