]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Check capability before disabling protected memory
authorLu Baolu <baolu.lu@linux.intel.com>
Wed, 20 Mar 2019 01:58:33 +0000 (09:58 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 22 Mar 2019 11:02:26 +0000 (12:02 +0100)
commit48d648f2d5e301e2ffa0b72d593f1ce2e2e10fae
treec21370e76c78b268cc3d3b00d9ccf3559d723d65
parenta5c47457549ae3253ad3503a36c8b5803d0392a9
iommu/vt-d: Check capability before disabling protected memory

The spec states in 10.4.16 that the Protected Memory Enable
Register should be treated as read-only for implementations
not supporting protected memory regions (PLMR and PHMR fields
reported as Clear in the Capability register).

Cc: Jacob Pan <jacob.jun.pan@linux.intel.com>
Cc: mark gross <mgross@intel.com>
Suggested-by: Ashok Raj <ashok.raj@intel.com>
Fixes: 91b99204770ce ("intel-iommu: PMEN support")
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c