Skip to contentSkip to conversation

iommu/vt-d: debugfs: Avoid dumping context command register

PATCH In review Lu Baolu 1 participant 2 messages Sep 17, 2025 – Sep 18, 2025

Subsystems (2)
lore
Share & tools
lore

Lu Baolu

author maintainer
#0 lore raw

PATCH 1/1 iommu/vt-d: debugfs: Avoid dumping context command register

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 tonon-present registers.

---
 drivers/iommu/intel/debugfs.c | 1 -
 1 file changed, 1 deletion(-)
drivers/iommu/intel/debugfs.c +0 -1
index 765edb3740e2..617fd81a80f0 100644
@@ -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),
Signature · 1 line
2.43.0
author maintainer
#1 lore raw
Quoted 7 lines · Lu Baolu

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.

Quoted 6 lines

Remove it to avoid potential access tonon-present registers.

---
  drivers/iommu/intel/debugfs.c | 1 -
  1 file changed, 1 deletion(-)

Queued for v6.18.