public inbox for linux-pci@vger.kernel.org
 help / color / mirror / Atom feed
From: Bjorn Helgaas <helgaas@kernel.org>
To: Joerg Roedel <joro@8bytes.org>
Cc: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>,
	iommu@lists.linux.dev, linux-pci@vger.kernel.org,
	linux-kernel@vger.kernel.org, Bjorn Helgaas <bhelgaas@google.com>
Subject: [PATCH] PCI: Rename PCI_DEVICE_ID_RD890_IOMMU to PCI_DEVICE_ID_ATI_RD890_IOMMU
Date: Thu, 13 Oct 2022 17:54:40 -0500	[thread overview]
Message-ID: <20221013225440.3336168-1-helgaas@kernel.org> (raw)

From: Bjorn Helgaas <bhelgaas@google.com>

PCI_DEVICE_ID_RD890_IOMMU is a device ID in the ATI vendor ID namespace.
Rename it accordingly and move it to the list of ATI device IDs.  No
functional change intended.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
---
 drivers/iommu/amd/amd_iommu.h | 2 +-
 include/linux/pci_ids.h       | 5 ++---
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/drivers/iommu/amd/amd_iommu.h b/drivers/iommu/amd/amd_iommu.h
index c160a332ce33..61749d52ba05 100644
--- a/drivers/iommu/amd/amd_iommu.h
+++ b/drivers/iommu/amd/amd_iommu.h
@@ -82,7 +82,7 @@ extern int amd_iommu_complete_ppr(struct pci_dev *pdev, u32 pasid,
 static inline bool is_rd890_iommu(struct pci_dev *pdev)
 {
 	return (pdev->vendor == PCI_VENDOR_ID_ATI) &&
-	       (pdev->device == PCI_DEVICE_ID_RD890_IOMMU);
+	       (pdev->device == PCI_DEVICE_ID_ATI_RD890_IOMMU);
 }
 
 static inline bool iommu_feature(struct amd_iommu *iommu, u64 mask)
diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
index b362d90eb9b0..be2910028e27 100644
--- a/include/linux/pci_ids.h
+++ b/include/linux/pci_ids.h
@@ -382,6 +382,8 @@
 #define PCI_DEVICE_ID_ATI_RS350_133     0x7831
 #define PCI_DEVICE_ID_ATI_RS350_166     0x7832
 #define PCI_DEVICE_ID_ATI_RS350_200     0x7833
+/* AMD RD890 Chipset */
+#define PCI_DEVICE_ID_ATI_RD890_IOMMU	0x5a23
 #define PCI_DEVICE_ID_ATI_RS400_100     0x5a30
 #define PCI_DEVICE_ID_ATI_RS400_133     0x5a31
 #define PCI_DEVICE_ID_ATI_RS400_166     0x5a32
@@ -416,9 +418,6 @@
 #define PCI_DEVICE_ID_VLSI_82C147	0x0105
 #define PCI_DEVICE_ID_VLSI_VAS96011	0x0702
 
-/* AMD RD890 Chipset */
-#define PCI_DEVICE_ID_RD890_IOMMU	0x5a23
-
 #define PCI_VENDOR_ID_ADL		0x1005
 #define PCI_DEVICE_ID_ADL_2301		0x2301
 
-- 
2.25.1


                 reply	other threads:[~2022-10-13 22:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221013225440.3336168-1-helgaas@kernel.org \
    --to=helgaas@kernel.org \
    --cc=bhelgaas@google.com \
    --cc=iommu@lists.linux.dev \
    --cc=joro@8bytes.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=suravee.suthikulpanit@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox