diff options
| author | Ramesh Errabolu <[email protected]> | 2022-05-26 17:24:23 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-06-08 15:40:12 +0000 |
| commit | 08a2fd23c6c21e5ef24248a9c1b09e929655eb3b (patch) | |
| tree | 5de8e5e2839cdc06bbc40c9e87fec3d92a99b1c3 /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
| parent | drm/amdkfd: Define config HSA_AMD_P2P to support peer-to-peer (diff) | |
| download | kernel-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.h | 3 |
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; |
