]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Fix status code for Allocate/Free PASID command
authorZenghui Yu <yuzenghui@huawei.com>
Sat, 27 Feb 2021 07:39:09 +0000 (15:39 +0800)
committerJoerg Roedel <jroedel@suse.de>
Thu, 4 Mar 2021 12:32:04 +0000 (13:32 +0100)
commitd30a3cc39c71a98b929de5412bd9debcbb548d80
treef627941289e91f74fd9c64a94063e3dc08f2a155
parentc62f88c2e25e95965f4d59f02d656faabf1836f6
iommu/vt-d: Fix status code for Allocate/Free PASID command

As per Intel vt-d spec, Rev 3.0 (section 10.4.45 "Virtual Command Response
Register"), the status code of "No PASID available" error in response to
the Allocate PASID command is 2, not 1. The same for "Invalid PASID" error
in response to the Free PASID command.

We will otherwise see confusing kernel log under the command failure from
guest side. Fix it.

Fixes: bf01ccac672b ("iommu/vt-d: Enlightened PASID allocation")
Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
Acked-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20210227073909.432-1-yuzenghui@huawei.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/pasid.h