]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
iommu/vt-d: debugfs: Avoid dumping context command register
authorLu Baolu <baolu.lu@linux.intel.com>
Thu, 18 Sep 2025 05:02:04 +0000 (13:02 +0800)
committerJoerg Roedel <joerg.roedel@amd.com>
Fri, 19 Sep 2025 07:43:21 +0000 (09:43 +0200)
The register-based cache invalidation interface is in the process of being
replaced by the queued invalidation interface. The VT-d architecture
allows hardware implementations with a queued invalidation interface to
not implement the registers used for cache invalidation. Currently, the
debugfs interface dumps the Context Command Register unconditionally,
which is not reasonable.

Remove it to avoid potential access to non-present registers.

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20250917025051.143853-1-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/intel/debugfs.c

index 765edb3740e2f66e11088f425f1e653c59fa86e9..617fd81a80f07ed488af7195c0b7fc406513572d 100644 (file)
@@ -62,7 +62,6 @@ static const struct iommu_regset iommu_regs_64[] = {
        IOMMU_REGSET_ENTRY(CAP),
        IOMMU_REGSET_ENTRY(ECAP),
        IOMMU_REGSET_ENTRY(RTADDR),
-       IOMMU_REGSET_ENTRY(CCMD),
        IOMMU_REGSET_ENTRY(PHMBASE),
        IOMMU_REGSET_ENTRY(PHMLIMIT),
        IOMMU_REGSET_ENTRY(IQH),