Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp52633lqg; Wed, 10 Apr 2024 15:14:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXsctSZiRuJFb3UGykBtB3GWPB0ZYdkpUHdGMUYgKTnuJ0cu84XRBvUOwtfgfBKw3S3p21ikdMBk1S9fDzbaMVEJUOMKFkZWsHOuigxgw== X-Google-Smtp-Source: AGHT+IGzm7Q4M5bd8D/LqTsE5fcP0UBwdk+2EEd48DpJ4WtEC7Y+6lQ5MYOEAw5CKs4uns3hL/CC X-Received: by 2002:a17:906:3411:b0:a52:2072:5b2d with SMTP id c17-20020a170906341100b00a5220725b2dmr44102ejb.23.1712787271407; Wed, 10 Apr 2024 15:14:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712787271; cv=pass; d=google.com; s=arc-20160816; b=AW/zesLEMM+xK3NulHGg+tOvMBYFu3ffUZe03W5iSLU26h9LLCtMnw1OCSBbCYmSS5 8P+cNjg/UtvWM4Elkjo3b1PVO6f0i6vQEahT2cpaxRZzGHQYcGGWwGchjWvFg4Z7YmyV RvOw+MtpKKc4yLrJc68TKi8JlVt12oyPoTeO2B6FAK55hRF1H1DsGoLNXqjqQIyL5uSY 7oJP4zFh1uwPqlPEKO6eljSFf2gpRxxnVMVmlMB2iKPXI5kGkY+5W73X++9lIU5+ZVhI fIQdeSJnT0qhFyo7MZN2jF25nTtzriu+G8CII9dP6m0p2BRmGW/zZxNLd/fyFYJWPTcd /S+Q== 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=OXtTELibzhYqTyLv7rI07mGkPVdce36FLrucXfdDU2A=; fh=vvD7kdj1At6ezffD/IEGPt3u+aV1voPJybHICWUtJ54=; b=DWRZkOuSs5tcwTmNlRjhy83AKrnChYYVqpYxVs9fsk9sm/1g17WTEibK9Syhz4+y7x sp0JbK1Eav71+WR/vj07ce5lOsGV+ipkn5cmuPY01v+VS3JBc29vDDBi4sarLc58T6+o hNCidpfL2EtE2rNdFzu6QJeroK1wiZYl7VMZsuKLjeJeu/ePxCTaQu2isGlPNP/U1Obn ael+PuoEIqGaNdVZ1R808aymqjEeKpTZ8/8W19+iK62Qvg2dW1O3ci2w6KOVxuOsJOr9 n088muuN79DnDbFgmG8Ry+x95xgSQ/XedvjbsuhYx1o1j6P7h0hMVdeHAyfwDbB2UiQN R0QQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VIEAJoAo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-139416-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139416-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id kv3-20020a17090778c300b00a4e26ede4c1si80629ejc.156.2024.04.10.15.14.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 15:14:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139416-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VIEAJoAo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-139416-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139416-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 28E161F23E83 for ; Wed, 10 Apr 2024 22:14:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 679CF199E89; Wed, 10 Apr 2024 22:13:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VIEAJoAo" 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 6A5DF194C97; Wed, 10 Apr 2024 22:13:24 +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=1712787204; cv=none; b=QGFgnK8P4kMSQ4sOkq6rEcmrmXvayxdsvsE9U9NDJEGtrakM96TkuonMuqFYbxEsk5tPuI7WAuiGeEwilzlg0DwvoSzyQqK9hLe9aLLynHgPGNLUnxG2QGOMU/8wXvWWQsIK+OAnJo418TYW0oZj+6UApES4MfYC+NQp5gIWMJo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712787204; c=relaxed/simple; bh=A1NHROTFtfhXnMCORE7OpRKwCzKPX7qMNstag/6FFBU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=k4oE5eDKgz44+dwZhVF5iWTeDG326D+C17XMLxgflwrDS/yvC4rVdCk4KIb5zK4ZCHr6vGoR6TuQF4JSv6JeukdqQDZAIo9DFZTiBc2mi0zK+DL8nG4/pq6yzNRqUuPRgMSbdTYU2M/yIN8832mLwE2n2KKE/ILvHHmmo6S7bXY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VIEAJoAo; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99D15C433F1; Wed, 10 Apr 2024 22:13:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712787203; bh=A1NHROTFtfhXnMCORE7OpRKwCzKPX7qMNstag/6FFBU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VIEAJoAoxtvTFxj3zSI8Tppw8LxMJthFez8Zb9wwNwjIP3CipVLrZF5QjMK91xpD8 3U0Nth+9ML4Azr1geRXNdeefP/Z3gY+YIzShr7rj60lKBR+SzG+1j6PzRM9FVVsrfC QspO3du3P4BmyWOZtCYgBu3JIx6/OhF3QQ0rub+/UTSP3IDKnbgoOKDPg89O3HTGPj JK4QvgejURNpBRuh9/k8Ov7nj58Lt28R6ypS+uNFAN6Id4sP2/YLUhk1SytNQs82F6 H5zAWOVYrbP5+v2J7UyCEM3IiR/JmOhOgA3CR30zt36xklo7LN5Zw3rpjmcJrOU4dL cV3GaWDBzhVdQ== 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 4/7] Revert "iommu/amd: Enable PCI/IMS" Date: Wed, 10 Apr 2024 17:13:04 -0500 Message-Id: <20240410221307.2162676-5-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 fa5745aca1dc819aee6463a2475b5c277f7cf8f6. 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/amd/iommu.c | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/drivers/iommu/amd/iommu.c b/drivers/iommu/amd/iommu.c index d35c1b8c8e65..31a1a6686329 100644 --- a/drivers/iommu/amd/iommu.c +++ b/drivers/iommu/amd/iommu.c @@ -3701,20 +3701,11 @@ static struct irq_chip amd_ir_chip = { }; static const struct msi_parent_ops amdvi_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_amdvi_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, -}; - int amd_iommu_create_irq_domain(struct amd_iommu *iommu) { struct fwnode_handle *fn; @@ -3732,11 +3723,7 @@ int amd_iommu_create_irq_domain(struct amd_iommu *iommu) irq_domain_update_bus_token(iommu->ir_domain, DOMAIN_BUS_AMDVI); iommu->ir_domain->flags |= IRQ_DOMAIN_FLAG_MSI_PARENT | IRQ_DOMAIN_FLAG_ISOLATED_MSI; - - if (amd_iommu_np_cache) - iommu->ir_domain->msi_parent_ops = &virt_amdvi_msi_parent_ops; - else - iommu->ir_domain->msi_parent_ops = &amdvi_msi_parent_ops; + iommu->ir_domain->msi_parent_ops = &amdvi_msi_parent_ops; return 0; } -- 2.34.1