iommu/amd: Fix PASID format in INVALIDATE_IOTLB_PAGES command
authorJay Cornwall <jay.cornwall@amd.com>
Wed, 26 Feb 2014 21:49:31 +0000 (15:49 -0600)
committerJoerg Roedel <joro@8bytes.org>
Tue, 4 Mar 2014 14:10:17 +0000 (15:10 +0100)
commite8d2d82d4a73f37b3270e4fd19ba83e48b589656
treea083051537cfaca0a2dfcb81d366c11efb45e043
parent0414855fdc4a40da05221fc6062cccbc0c30f169
iommu/amd: Fix PASID format in INVALIDATE_IOTLB_PAGES command

This patch corrects the PASID format in the INVALIDATE_IOTLB_PAGES
command, which was caused by incorrect information in
the AMD IOMMU Architectural Specification v2.01 document.

    Incorrect format:
         cmd->data[0][16:23] = PASID[7:0]
         cmd->data[1][16:27] = PASID[19:8]

     Correct format:
         cmd->data[0][16:23] = PASID[15:8]
         cmd->data[1][16:23] = PASID[7:0]

However, this does not affect the IOMMUv2 hardware implementation,
and has been corrected since version 2.02 of the specification
(available through AMD NDA).

Signed-off-by: Jay Cornwall <jay.cornwall@amd.com>
Reviewed-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
drivers/iommu/amd_iommu.c