Commit 012096e9 authored by John Sperbeck's avatar John Sperbeck Committed by Jialin Zhang
Browse files

iommu/amd: use full 64-bit value in build_completion_wait()

stable inclusion
from stable-v5.10.143
commit 5e17967c7ea2c6b167d370a759b16cab54583ac1
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6D0U6

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=5e17967c7ea2c6b167d370a759b16cab54583ac1



--------------------------------

[ Upstream commit 94a568ce ]

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: c69d89af ("iommu/amd: Use 4K page for completion wait write-back semaphore")
Signed-off-by: default avatarJohn Sperbeck <jsperbeck@google.com>
Link: https://lore.kernel.org/r/20220801192229.3358786-1-jsperbeck@google.com


Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
Reviewed-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent fe72ccc8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment