Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp52715lqg; Wed, 10 Apr 2024 15:14:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWX1YcJS9NTf0vmS2lZ/pk2fp0mDmOldTxH81P/yXds/s1v7Dyr8jJLs/+wmc7d/ZdzmlYhmSAxMSgmdVHV2z+CZ3Hnw0MeO5LrT5LoVg== X-Google-Smtp-Source: AGHT+IGkkMuFBDzofhMd83WgOVSb9FOB0T7lbq89af28D5/bmOVrZ5xX8QRsDP55q0HYh5Ka3/p1 X-Received: by 2002:a05:6902:570:b0:dcd:3a37:bdb1 with SMTP id a16-20020a056902057000b00dcd3a37bdb1mr4647855ybt.44.1712787283108; Wed, 10 Apr 2024 15:14:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712787283; cv=pass; d=google.com; s=arc-20160816; b=uDUMLIH1o7KXJ0aopT9z0+8OrlFHd7R7Wh6F79ytY4QSuq8+2fMx/q62IAgxpIePd8 D5UuotVhrmwGON/EaPRGvDp6UoGUYJLqh4gS9a+wZZ0SQOfeFSNqeGX1pkFEgc5VAKwK qlFow9w8NIYaq5CD3PqGp5Dh2DwVGPM7LnI5kNuOr1/HrY+ofHnQpZQf9GfXTIq0AwYf TN6aAZ7Iq11eQabP9SkstVb/zsbRT3Rj7wuMQ2cgvd5yvN2iYcNjXS31ZgL+FzRaETQ4 W+1cPTXw9ecNUGL1Zq92mAn/3YWUzImds1BgQa1dl3sC6ZhCrWKb1im22zguN7BlCz96 30iA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=OHQ85lxvjQV98aeJrbsmdKxQWDtm90GJrCCBsXBzPNc=; fh=vvD7kdj1At6ezffD/IEGPt3u+aV1voPJybHICWUtJ54=; b=WBjzW2I1riLLoyBO2kSDBEjr8arJhN/Br6EK6oQvPLQTGAKB7c7XNuCVEv/RkGhl0M C7jnNdz2S5WK1VReqzsGw4YdXgRnl1xsmwSak1IcuN4HVmr7GrOanE7EN06kkuYwGIMp SqVUT4Npd35GTPI3Ii18XAlIYz1NnagqfFP4VDcmMPymkG6wDYZPHG/iRgtReOJ5iLKp azCDC0nPF1gxG2TetZs7uApJQBig320ZfPuiYNv2VYNxE8wJ8vwBEt/qzOEdF9F+Tjrs 9PfbAoxXMVh8SDsHY/rOaPKsq1sMeheS7FN8X0sz3C/d7XoEHZex7Dhn73z2uRW1EKzi XFHw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=N6ZHdvF7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-139417-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139417-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id dj12-20020a056214090c00b006991b467c00si158146qvb.111.2024.04.10.15.14.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 15:14:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139417-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=N6ZHdvF7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-139417-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139417-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D27CD1C21930 for ; Wed, 10 Apr 2024 22:14:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B413618412B; Wed, 10 Apr 2024 22:13:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="N6ZHdvF7" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D7906184107; Wed, 10 Apr 2024 22:13:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712787206; cv=none; b=eSYWK7PNUcAtgnEnCrRnz4jmTIhtNas8RZdTpv2H2aaa6LhcsWwZgIPcMStsAD69fYM/wWfNeeuc6JtNJxJN9j3jh5w/ub2b/9iPykvs/4rrc/Z2CvTmEdUuoBAJ1C3DdcOeJ6aNkPjOlMuZMoK5oTrKARN4JxVAu/ZJqadD5Zw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712787206; c=relaxed/simple; bh=RJiKxlcyGCegqaQL+HqE7i5K68Hg3ohqyMufg3omy84=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=o/1opwhoBR6ct/ptXaB25ucfejDo66hB4/GRyrPvOpw0IVE9atdFx81ntrdZ+FByLAwLqowM4kdA/yFLpqKo/EV34TLsCOQgn8OYbllynvtBrMh+hsc5OvR2KIvlcwwKGHLNmCGCDX7AEzrOBN8eNcnJlWieGNCwGvsYXByxMt0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=N6ZHdvF7; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 84334C43394; Wed, 10 Apr 2024 22:13:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712787205; bh=RJiKxlcyGCegqaQL+HqE7i5K68Hg3ohqyMufg3omy84=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=N6ZHdvF7JeFLdHTQ1zMWQqYza3Nb4LURnzbLxAIp2wE1d0OibGmumt6HBKqmtyEn/ P47MQOzi+20VOWXGqpgvYuYump7b8wFabknlsXMEar6PhNiLKAi2jScCfVw/JfNQRh IydS61CS6TQ7vnQ5B83xr2zThJq6hyfERIeSNCHoQi027foC7D/wr4PiSIap5sVoS+ hxTaD6qZxsCd1CoaLDhnbNZv42uKJOWv/QmJLKyzBfbPhKPHaNJ2FTwUQYZ/N95ib8 BuKFZVfcozq1Nlh2hrccuYd0MuJeorXzAxHtzNEyPK3UicpI/qDjlIxyQE4kOcR8gD 0/CUX7QV/0flQ== From: Bjorn Helgaas To: linux-pci@vger.kernel.org, Joerg Roedel , Will Deacon Cc: Thomas Gleixner , Kevin Tian , Marc Zyngier , Reinette Chatre , Jason Gunthorpe , Alex Williamson , Dave Jiang , Megha Dey , Suravee Suthikulpanit , Robin Murphy , David Woodhouse , Lu Baolu , iommu@lists.linux.dev, linux-kernel@vger.kernel.org, Bjorn Helgaas Subject: [PATCH v2 5/7] Revert "iommu/vt-d: Enable PCI/IMS" Date: Wed, 10 Apr 2024 17:13:05 -0500 Message-Id: <20240410221307.2162676-6-helgaas@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240410221307.2162676-1-helgaas@kernel.org> References: <20240410221307.2162676-1-helgaas@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Bjorn Helgaas This reverts commit 810531a1af5393f010d6508b1cb48e6650fc5e8f. IMS (Interrupt Message Store) support appeared in v6.2, but there are no users yet. Remove it for now. We can add it back when a user comes along. Signed-off-by: Bjorn Helgaas --- drivers/iommu/intel/irq_remapping.c | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/drivers/iommu/intel/irq_remapping.c b/drivers/iommu/intel/irq_remapping.c index 566297bc87dd..0f64fa72ac4f 100644 --- a/drivers/iommu/intel/irq_remapping.c +++ b/drivers/iommu/intel/irq_remapping.c @@ -82,7 +82,7 @@ static const struct irq_domain_ops intel_ir_domain_ops; static void iommu_disable_irq_remapping(struct intel_iommu *iommu); static int __init parse_ioapics_under_ir(void); -static const struct msi_parent_ops dmar_msi_parent_ops, virt_dmar_msi_parent_ops; +static const struct msi_parent_ops dmar_msi_parent_ops; static bool ir_pre_enabled(struct intel_iommu *iommu) { @@ -567,11 +567,7 @@ static int intel_setup_irq_remapping(struct intel_iommu *iommu) irq_domain_update_bus_token(iommu->ir_domain, DOMAIN_BUS_DMAR); iommu->ir_domain->flags |= IRQ_DOMAIN_FLAG_MSI_PARENT | IRQ_DOMAIN_FLAG_ISOLATED_MSI; - - if (cap_caching_mode(iommu->cap)) - iommu->ir_domain->msi_parent_ops = &virt_dmar_msi_parent_ops; - else - iommu->ir_domain->msi_parent_ops = &dmar_msi_parent_ops; + iommu->ir_domain->msi_parent_ops = &dmar_msi_parent_ops; ir_table->base = page_address(pages); ir_table->bitmap = bitmap; @@ -1421,20 +1417,11 @@ static const struct irq_domain_ops intel_ir_domain_ops = { }; static const struct msi_parent_ops dmar_msi_parent_ops = { - .supported_flags = X86_VECTOR_MSI_FLAGS_SUPPORTED | - MSI_FLAG_MULTI_PCI_MSI | - MSI_FLAG_PCI_IMS, + .supported_flags = X86_VECTOR_MSI_FLAGS_SUPPORTED | MSI_FLAG_MULTI_PCI_MSI, .prefix = "IR-", .init_dev_msi_info = msi_parent_init_dev_msi_info, }; -static const struct msi_parent_ops virt_dmar_msi_parent_ops = { - .supported_flags = X86_VECTOR_MSI_FLAGS_SUPPORTED | - MSI_FLAG_MULTI_PCI_MSI, - .prefix = "vIR-", - .init_dev_msi_info = msi_parent_init_dev_msi_info, -}; - /* * Support of Interrupt Remapping Unit Hotplug */ -- 2.34.1