From patchwork Thu Nov 17 15:08:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 21743 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp454875wrr; Thu, 17 Nov 2022 07:14:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf5yL31y19+zx0wY4gj5oUbFIoRxvOHU2Bzf4Vltg53sf39BIQvKBbv/AO1j08FvZmnxRwPT X-Received: by 2002:a17:906:1614:b0:78d:4e5b:ffaa with SMTP id m20-20020a170906161400b0078d4e5bffaamr2438777ejd.455.1668698048805; Thu, 17 Nov 2022 07:14:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668698048; cv=none; d=google.com; s=arc-20160816; b=ejAp5nYdkkBrDjTj+mlE7PfBZK82Yg/PxaGIlboRVO91oXHStrXU5ysQjR5gMlyCMw Plz3H2c9j267OJCeWZMqiE3hTVfrYWSeD8J2Nna/7wkxGM4ac7EwJZGjKPbO9Wp6OpVn cZgS38f4dnTYhY3I0mipbgjCdiOEJTv9yLn8biX68JUrQejqdC9Qk9dNWXCz8CnFNBDI YJ6aiO2dMm3hg92NlpNHtMcYcv4u9fOtv2QNt/ZGy6emdNqg5070uLNjZF3pw/lV6kW0 ZwUpXWWu+NZH1Rw15IovrjqdJAmKEH0Icsa5lZ1riIB0IOuWbhsf8xITy0Ffy0rivv/j HdUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=rUJ8CspZ0v+ELSclYE/XQ8O/kg00c2EM8DtH+fEMTf4=; b=R8NdEcXesm431PyF0hTkAiXt0rZJqnYKHJrUDKXDZCp7WHbnqlPwdSL6KY6bg6fyFw VjG9Gm/zeiumg3rIRlRqrxHYTLuHrzJ6+/IQIKL/iN+pa1ti2JuQyhiIBltzIZ2yvi0D uhGwyry7zQx9y8LzfpMwFjR/Iwd6sFN4swrWeRAjXguKodFV19OQotx8tf9WMbxumGaP stfFWrC3KWUK8JrS912SZcV/zjOWuWoV35Aa0AVuTXo65aVMoXb1ug5c6UsTcLYZG6AT orWUwK2nXq4NvqQkmmcwSSVMEk4KpOi2f37hLDhfff23K+Tvi4WG+3PxxOIZFdYymO+6 w8HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=VLq4Iu52; dkim=neutral (no key) header.i=@linutronix.de; 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 t5-20020a056402524500b004614db9083csi1122915edd.313.2022.11.17.07.13.43; Thu, 17 Nov 2022 07:14:08 -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=VLq4Iu52; dkim=neutral (no key) header.i=@linutronix.de; 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 S240301AbiKQPLl (ORCPT + 99 others); Thu, 17 Nov 2022 10:11:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240363AbiKQPJ5 (ORCPT ); Thu, 17 Nov 2022 10:09:57 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45C16490B1; Thu, 17 Nov 2022 07:08:34 -0800 (PST) Date: Thu, 17 Nov 2022 15:08:31 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1668697712; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rUJ8CspZ0v+ELSclYE/XQ8O/kg00c2EM8DtH+fEMTf4=; b=VLq4Iu52psv1FpsFQAF4VSBE2iiLDct/nNOuYlt4ikswTRan0cpx2zxnTepp/cyx6yVE65 hqIBtzMmXWwep9o9JpfeocCp35HHr9uVaMcOt8fEayguy29f/ltw+estb24yl367mkl4AM hjl9u2903McVabhsGGMpndRk+CqXZw/nTLf+C0ai8tXVpo8Zz0Tr2IGuoTzKl5hFimGhkG WNDhwVBwkSOJ7wHdaamP+BZcjwdaHc7NxCXvcmPZlxpAFMEDsmBfdHytQzEBZJfpnVCISp w7mAKG7UClIar8LcZzmVNeQEcXykl33rK6YGAbQHJ/vvoXw0Iv4gsReX19vsKw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1668697712; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rUJ8CspZ0v+ELSclYE/XQ8O/kg00c2EM8DtH+fEMTf4=; b=pQO29+nVdB3L3DWOKK1WNUg0D2g61FHMOZAaaLMxyuAUZP2uiOzas/1greU/gLmgLmfrna yIkOXn2pMXewuqCQ== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/core] iommu/vt-d: Remove bogus check for multi MSI-X Cc: Thomas Gleixner , Ashok Raj , x86@kernel.org, linux-kernel@vger.kernel.org, maz@kernel.org In-Reply-To: <20221111122013.713848846@linutronix.de> References: <20221111122013.713848846@linutronix.de> MIME-Version: 1.0 Message-ID: <166869771167.4906.10116563938839220650.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails 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?1749208262382472286?= X-GMAIL-MSGID: =?utf-8?q?1749756725297787560?= The following commit has been merged into the irq/core branch of tip: Commit-ID: 527f378c42eaac0b48a8c6ff16da99a6177ff9e3 Gitweb: https://git.kernel.org/tip/527f378c42eaac0b48a8c6ff16da99a6177ff9e3 Author: Thomas Gleixner AuthorDate: Fri, 11 Nov 2022 14:54:17 +01:00 Committer: Thomas Gleixner CommitterDate: Thu, 17 Nov 2022 15:15:18 +01:00 iommu/vt-d: Remove bogus check for multi MSI-X PCI/Multi-MSI is MSI specific and not supported for MSI-X. Signed-off-by: Thomas Gleixner Reviewed-by: Ashok Raj Link: https://lore.kernel.org/r/20221111122013.713848846@linutronix.de --- drivers/iommu/intel/irq_remapping.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/iommu/intel/irq_remapping.c b/drivers/iommu/intel/irq_remapping.c index 5962bb5..0b80a27 100644 --- a/drivers/iommu/intel/irq_remapping.c +++ b/drivers/iommu/intel/irq_remapping.c @@ -1334,8 +1334,7 @@ static int intel_irq_remapping_alloc(struct irq_domain *domain, if (!info || !iommu) 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; /*