summaryrefslogtreecommitdiffstats
path: root/scripts/checkdeclares.pl
diff options
context:
space:
mode:
authorJon Pan-Doh <pandoh@google.com>2023-04-26 13:32:56 -0700
committerJoerg Roedel <jroedel@suse.de>2023-05-22 17:33:43 +0200
commit2212fc2acf3f6ee690ea36506fb882a19d1bfcab (patch)
treec267c58746c7a63c1d21e73f3f4de0850f460175 /scripts/checkdeclares.pl
parent29f54745f24547a84b18582e054df9bea1a7bf3e (diff)
downloadlinux-stable-2212fc2acf3f6ee690ea36506fb882a19d1bfcab.tar.gz
linux-stable-2212fc2acf3f6ee690ea36506fb882a19d1bfcab.tar.bz2
linux-stable-2212fc2acf3f6ee690ea36506fb882a19d1bfcab.zip
iommu/amd: Fix domain flush size when syncing iotlb
When running on an AMD vIOMMU, we observed multiple invalidations (of decreasing power of 2 aligned sizes) when unmapping a single page. Domain flush takes gather bounds (end-start) as size param. However, gather->end is defined as the last inclusive address (start + size - 1). This leads to an off by 1 error. With this patch, verified that 1 invalidation occurs when unmapping a single page. Fixes: a270be1b3fdf ("iommu/amd: Use only natural aligned flushes in a VM") Cc: stable@vger.kernel.org # >= 5.15 Signed-off-by: Jon Pan-Doh <pandoh@google.com> Tested-by: Sudheer Dantuluri <dantuluris@google.com> Suggested-by: Gary Zibrat <gzibrat@google.com> Reviewed-by: Vasant Hegde <vasant.hegde@amd.com> Acked-by: Nadav Amit <namit@vmware.com> Link: https://lore.kernel.org/r/20230426203256.237116-1-pandoh@google.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'scripts/checkdeclares.pl')
0 files changed, 0 insertions, 0 deletions