From patchwork Mon Nov 21 14:38:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Gleixner X-Patchwork-Id: 23842 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1635440wrr; Mon, 21 Nov 2022 06:55:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf5wP65XTcwRMRMIRSfiqNEUsnzQ5D5eAo6PKs9Vq54OiOa8qNoF+Lb2mvrCyhFyPyEpDFYR X-Received: by 2002:a17:902:e807:b0:186:fb90:5774 with SMTP id u7-20020a170902e80700b00186fb905774mr112604plg.137.1669042524037; Mon, 21 Nov 2022 06:55:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669042524; cv=none; d=google.com; s=arc-20160816; b=qZB7jW8MXiCg3lu+OSEgGjDEC2sYPrUJYlzFlyAN+qYKqh93jvcu1lf4wHa9i4MEJe WNJakgD6woH6ReOlPk9MB6C/ow44Q2mVHp8QNu35zWosi3gu5QyS6HiS2Nsijr167sKC 9xcKM2pA0RQX85uUHcQCjaAYyM3eRU02rjvGNoJCJGKmkQ3RsqwkA1JDrUllkx7kIznU x5oPCJ7SdQCLduJWtROcEWmhAaNibcXqeceZ0jTk4Aep7m9Xln3hqfPJuKQ+b6UhnI9o g2xkSoWXN0GeGG9VRnf4Qbl6lL5fIvgn2KsM05fD0XJDjFGcjBSjzxlab3TQXgD4lAXx 7DpA== 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=SuhbIxDBU+pgQkYaRbDZDx3XYR1ZMR159u+r/p3oNuI=; b=hCgwQ3G1/KWP7MjRJlgPY9vV0zrJ7vrB0aHjx/W6QnC2ShFUlSPHK4ICE3qXirMZwo NgP+scJhQt1fAVn/d7rk348g+ElrBCT1kw0DNCUusX8XWJkZoBJwxpTuokIW7iVoI5jm cAhqnd9ebwrwbI//3geG3VRisZs7TtB37+uaE0Q6Vbo4fuwOy1HiCO8lbHNgsRG7KtSA 47UQVagCQn2Kl1+rDxyr+iT0nZYZbH7pA9cYUJFrETOXwO5VDvPnP7Z+KH4MwYG9XLZt 36xB9kE/UtwsOpGZiveuOp9/e9frXAdAtzkpGToXqjkzl+Y/nhxZt6T7NFG6L3MnZi/H RQJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=1psr2+6P; dkim=neutral (no key) header.i=@linutronix.de header.b=Rn8pzIZk; 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 o23-20020a63fb17000000b0046f75b665b8si10898210pgh.757.2022.11.21.06.55.06; Mon, 21 Nov 2022 06:55:24 -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=1psr2+6P; dkim=neutral (no key) header.i=@linutronix.de header.b=Rn8pzIZk; 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 S231934AbiKUOlZ (ORCPT + 99 others); Mon, 21 Nov 2022 09:41:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231714AbiKUOjY (ORCPT ); Mon, 21 Nov 2022 09:39:24 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F270EC846A; Mon, 21 Nov 2022 06:38:26 -0800 (PST) Message-ID: <20221121091328.184455059@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1669041505; 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=SuhbIxDBU+pgQkYaRbDZDx3XYR1ZMR159u+r/p3oNuI=; b=1psr2+6PEXY3YBQmmhtpss+e/EXa3fcuidPDiz2U/W/zlXsB2qLo8iCUiCbS/WujW3vE+h OXmLxsn8RCKMB14O6J4EekalasMdPu5542sb/8pz9abolCY9H2piNBDYa6c0a7lp+hRzoz fDbLxngNyek74VO0HsgdxY8ojuKCW0YldMTPdi+egcKZDdPxJDvehtF4066jgo1+3juDb8 q2LDrF4ftSwgbcXMmFNKh1gZuUo4Qj8lh64UQF8VFe1V5J6cYYY91uAYV6zLY5eXU/8kZ3 V8wBr9qz0yqwUrtTI6VQ7A7IbugtHPhbhK8pcaAFQlE31nxaTvGPchh741n2TQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1669041505; 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=SuhbIxDBU+pgQkYaRbDZDx3XYR1ZMR159u+r/p3oNuI=; b=Rn8pzIZk+L7xOktcHzTRG9gckCOFAhYH4n4XxaFboCMQqeHg4TQPOweQ7JbeSWvSySHefJ N4ipPb0kY1QPg9Aw== 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 Subject: [patch V2 31/33] iommu/vt-d: Enable PCI/IMS References: <20221121083657.157152924@linutronix.de> MIME-Version: 1.0 Date: Mon, 21 Nov 2022 15:38:24 +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?1750117933708714565?= X-GMAIL-MSGID: =?utf-8?q?1750117933708714565?= PCI/IMS works like PCI/MSI-X in the remapping. Just add the feature flag. Signed-off-by: Thomas Gleixner --- drivers/iommu/intel/irq_remapping.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/drivers/iommu/intel/irq_remapping.c +++ b/drivers/iommu/intel/irq_remapping.c @@ -1429,7 +1429,9 @@ static const struct irq_domain_ops intel }; static const struct msi_parent_ops dmar_msi_parent_ops = { - .supported_flags = X86_VECTOR_MSI_FLAGS_SUPPORTED | MSI_FLAG_MULTI_PCI_MSI, + .supported_flags = X86_VECTOR_MSI_FLAGS_SUPPORTED | + MSI_FLAG_MULTI_PCI_MSI | + MSI_FLAG_PCI_IMS, .prefix = "IR-", .init_dev_msi_info = msi_parent_init_dev_msi_info, };