drm/amdgpu: Add use_xgmi_p2p module parameter
authorAlex Sierra <alex.sierra@amd.com>
Wed, 23 Feb 2022 17:34:51 +0000 (11:34 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 24 Feb 2022 22:25:12 +0000 (17:25 -0500)
commit158a05a0b885f456a86720b9b6b4571943d2e307
tree1df4f99538ff4019953c1355bafd116ad660fbe8
parent0bb319e7a1146e15f1919cfbffe44831c29e8f82
drm/amdgpu: Add use_xgmi_p2p module parameter

This parameter controls xGMI p2p communication, which is enabled by
default. However, it can be disabled by setting it to 0. In case xGMI
p2p is disabled in a dGPU, PCIe p2p interface will be used instead.
This parameter is ignored in GPUs that do not support xGMI
p2p configuration.

Signed-off-by: Alex Sierra <alex.sierra@amd.com>
Acked-by: Luben Tuikov <luben.tuikov@amd.com>
Acked-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h