aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorRamesh Errabolu <[email protected]>2022-05-26 17:24:23 +0000
committerAlex Deucher <[email protected]>2022-06-08 15:40:12 +0000
commit08a2fd23c6c21e5ef24248a9c1b09e929655eb3b (patch)
tree5de8e5e2839cdc06bbc40c9e87fec3d92a99b1c3 /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parentdrm/amdkfd: Define config HSA_AMD_P2P to support peer-to-peer (diff)
downloadkernel-08a2fd23c6c21e5ef24248a9c1b09e929655eb3b.tar.gz
kernel-08a2fd23c6c21e5ef24248a9c1b09e929655eb3b.zip
drm/amdgpu: Add peer-to-peer support among PCIe connected AMD GPUs
Add support for peer-to-peer communication among AMD GPUs over PCIe bus. Support REQUIRES enablement of config HSA_AMD_P2P. Signed-off-by: Ramesh Errabolu <[email protected]> Reviewed-by: Felix Kuehling <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index c67069645a2c..47bcf86cd0f3 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -223,6 +223,9 @@ static const int __maybe_unused sched_policy = KFD_SCHED_POLICY_HWS;
static const bool __maybe_unused debug_evictions; /* = false */
static const bool __maybe_unused no_system_mem_limit;
#endif
+#ifdef CONFIG_HSA_AMD_P2P
+extern bool pcie_p2p;
+#endif
extern int amdgpu_tmz;
extern int amdgpu_reset_method;