]> git.baikalelectronics.ru Git - kernel.git/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)
committerJoerg Roedel <jroedel@suse.de>
Wed, 7 Sep 2022 08:39:51 +0000 (10:39 +0200)
commit7d12356d817882c1b7b84d68790a058446c77f4d
tree34574ac68784b41b1ebad51fe372719da3975307
parent651d7e80302165fae2175bda70f47e660a6a1f61
iommu/amd: use full 64-bit value in build_completion_wait()

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: ef44ccbb9829 ("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>
drivers/iommu/amd/iommu.c