diff options
Diffstat (limited to 'drivers/iommu/amd_iommu.c')
-rw-r--r-- | drivers/iommu/amd_iommu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index faf0da4bb3a2..c949520bd196 100644 --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c | |||
@@ -963,7 +963,7 @@ static void build_inv_iommu_pasid(struct iommu_cmd *cmd, u16 domid, int pasid, | |||
963 | 963 | ||
964 | address &= ~(0xfffULL); | 964 | address &= ~(0xfffULL); |
965 | 965 | ||
966 | cmd->data[0] = pasid & PASID_MASK; | 966 | cmd->data[0] = pasid; |
967 | cmd->data[1] = domid; | 967 | cmd->data[1] = domid; |
968 | cmd->data[2] = lower_32_bits(address); | 968 | cmd->data[2] = lower_32_bits(address); |
969 | cmd->data[3] = upper_32_bits(address); | 969 | cmd->data[3] = upper_32_bits(address); |
@@ -982,10 +982,10 @@ static void build_inv_iotlb_pasid(struct iommu_cmd *cmd, u16 devid, int pasid, | |||
982 | address &= ~(0xfffULL); | 982 | address &= ~(0xfffULL); |
983 | 983 | ||
984 | cmd->data[0] = devid; | 984 | cmd->data[0] = devid; |
985 | cmd->data[0] |= (pasid & 0xff) << 16; | 985 | cmd->data[0] |= ((pasid >> 8) & 0xff) << 16; |
986 | cmd->data[0] |= (qdep & 0xff) << 24; | 986 | cmd->data[0] |= (qdep & 0xff) << 24; |
987 | cmd->data[1] = devid; | 987 | cmd->data[1] = devid; |
988 | cmd->data[1] |= ((pasid >> 8) & 0xfff) << 16; | 988 | cmd->data[1] |= (pasid & 0xff) << 16; |
989 | cmd->data[2] = lower_32_bits(address); | 989 | cmd->data[2] = lower_32_bits(address); |
990 | cmd->data[2] |= CMD_INV_IOMMU_PAGES_GN_MASK; | 990 | cmd->data[2] |= CMD_INV_IOMMU_PAGES_GN_MASK; |
991 | cmd->data[3] = upper_32_bits(address); | 991 | cmd->data[3] = upper_32_bits(address); |
@@ -1001,7 +1001,7 @@ static void build_complete_ppr(struct iommu_cmd *cmd, u16 devid, int pasid, | |||
1001 | 1001 | ||
1002 | cmd->data[0] = devid; | 1002 | cmd->data[0] = devid; |
1003 | if (gn) { | 1003 | if (gn) { |
1004 | cmd->data[1] = pasid & PASID_MASK; | 1004 | cmd->data[1] = pasid; |
1005 | cmd->data[2] = CMD_INV_IOMMU_PAGES_GN_MASK; | 1005 | cmd->data[2] = CMD_INV_IOMMU_PAGES_GN_MASK; |
1006 | } | 1006 | } |
1007 | cmd->data[3] = tag & 0x1ff; | 1007 | cmd->data[3] = tag & 0x1ff; |