]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Correctly check format of page table in debugfs
authorLu Baolu <baolu.lu@linux.intel.com>
Sat, 20 Jul 2019 02:01:26 +0000 (10:01 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 9 Aug 2019 15:29:25 +0000 (17:29 +0200)
commite61118ed0c58eac76dc19034aa7c03622b51dbba
tree217f85e58440fd35621d9c693cf2d977fa9e96f0
parent4498cee6b39dff36916d9f720e57595d56e89e61
iommu/vt-d: Correctly check format of page table in debugfs

PASID support and enable bit in the context entry isn't the right
indicator for the type of tables (legacy or scalable mode). Check
the DMA_RTADDR_SMT bit in the root context pointer instead.

Cc: Ashok Raj <ashok.raj@intel.com>
Cc: Jacob Pan <jacob.jun.pan@linux.intel.com>
Cc: Kevin Tian <kevin.tian@intel.com>
Cc: Sai Praneeth <sai.praneeth.prakhya@intel.com>
Fixes: e67688dcb725a ("iommu/vt-d: Add debugfs support to show scalable mode DMAR table internals")
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu-debugfs.c