aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c
diff options
context:
space:
mode:
authorZheyun Shen <[email protected]>2025-05-22 23:37:28 +0000
committerBorislav Petkov (AMD) <[email protected]>2025-07-10 11:30:17 +0000
commit4fdc3431e03b9c11803f399f91837fca487029a1 (patch)
tree2ba967143c85a0e076f974a5945c11c9fc07806e /drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c
parentx86/lib: Add WBNOINVD helper functions (diff)
downloadkernel-4fdc3431e03b9c11803f399f91837fca487029a1.tar.gz
kernel-4fdc3431e03b9c11803f399f91837fca487029a1.zip
x86/lib: Add WBINVD and WBNOINVD helpers to target multiple CPUs
Extract KVM's open-coded calls to do writeback caches on multiple CPUs to common library helpers for both WBINVD and WBNOINVD (KVM will use both). Put the onus on the caller to check for a non-empty mask to simplify the SMP=n implementation, e.g. so that it doesn't need to check that the one and only CPU in the system is present in the mask. [sean: move to lib, add SMP=n helpers, clarify usage] Signed-off-by: Zheyun Shen <[email protected]> Signed-off-by: Sean Christopherson <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Reviewed-by: Tom Lendacky <[email protected]> Acked-by: Kai Huang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Link: https://lore.kernel.org/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c')
0 files changed, 0 insertions, 0 deletions