]> git.itanic.dy.fi Git - linux-stable/commit
iommu/amd: use full 64-bit value in build_completion_wait()
authorJohn Sperbeck <jsperbeck@google.com>
Mon, 1 Aug 2022 19:22:29 +0000 (19:22 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Sep 2022 08:47:19 +0000 (10:47 +0200)
commit7c74f03a623d1d3868e776462406ea69138053f5
treee59a553817ff7e962b1f2b1db6f8f03dbecf4ec7
parentf7f13b8d49bf3eff2c98230532e0671195277216
iommu/amd: use full 64-bit value in build_completion_wait()

[ Upstream commit 94a568ce32038d8ff9257004bb4632e60eb43a49 ]

We started using a 64 bit completion value.  Unfortunately, we only
stored the low 32-bits, so a very large completion value would never
be matched in iommu_completion_wait().

Fixes: c69d89aff393 ("iommu/amd: Use 4K page for completion wait write-back semaphore")
Signed-off-by: John Sperbeck <jsperbeck@google.com>
Link: https://lore.kernel.org/r/20220801192229.3358786-1-jsperbeck@google.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/iommu/amd/iommu.c