iommu/vt-d: Tweak the description of a DMA fault
authorLu Baolu <baolu.lu@linux.intel.com>
Thu, 10 Jun 2021 02:00:55 +0000 (10:00 +0800)
committerJoerg Roedel <jroedel@suse.de>
Thu, 10 Jun 2021 07:06:12 +0000 (09:06 +0200)
commit719a19335692083c0f4ebdc6eef65131e7394ac8
tree3362a20765975535207fe9ca82bce6a7706dcc66
parent367f82de5a9c8ee77058f40bb470b83bfa521e3d
iommu/vt-d: Tweak the description of a DMA fault

The Intel IOMMU driver reports the DMA fault reason in a decimal number
while the VT-d specification uses a hexadecimal one. It's inconvenient
that users need to covert them everytime before consulting the spec.
Let's use hexadecimal number for a DMA fault reason.

The fault message uses 0xffffffff as PASID for DMA requests w/o PASID.
This is confusing. Tweak this by adding "NO_PASID" explicitly.

Reviewed-by: Ashok Raj <ashok.raj@intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20210517065425.4953-1-baolu.lu@linux.intel.com
Link: https://lore.kernel.org/r/20210610020115.1637656-4-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/dmar.c