summaryrefslogtreecommitdiff
path: root/drivers/iommu/amd/iommu.c
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2022-09-09 09:27:09 +0200
committerJoerg Roedel <jroedel@suse.de>2022-09-09 09:27:09 +0200
commit7f34891b151187c95511f2830a3994c8a54cabc1 (patch)
tree2b1d5fb4f1b1f7d272c48558a6363d053a803b91 /drivers/iommu/amd/iommu.c
parent189cb8fec14acf4dee59eb2011519e86d389cd3e (diff)
parent91c98fe7941499e4127cdc359c30841b873dd43a (diff)
Merge branch 'iommu/fixes' into core
Diffstat (limited to 'drivers/iommu/amd/iommu.c')
-rw-r--r--drivers/iommu/amd/iommu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/iommu/amd/iommu.c b/drivers/iommu/amd/iommu.c
index b46b0e8ecbdf..67de9c42205a 100644
--- a/drivers/iommu/amd/iommu.c
+++ b/drivers/iommu/amd/iommu.c
@@ -937,7 +937,8 @@ static void build_completion_wait(struct iommu_cmd *cmd,
memset(cmd, 0, sizeof(*cmd));
cmd->data[0] = lower_32_bits(paddr) | CMD_COMPL_WAIT_STORE_MASK;
cmd->data[1] = upper_32_bits(paddr);
- cmd->data[2] = data;
+ cmd->data[2] = lower_32_bits(data);
+ cmd->data[3] = upper_32_bits(data);
CMD_SET_TYPE(cmd, CMD_COMPL_WAIT);
}