drm/amdgpu: Use simplified API for p2p dist calc
authorLijo Lazar <lijo.lazar@amd.com>
Wed, 21 Sep 2022 12:24:59 +0000 (17:54 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Sep 2022 13:41:42 +0000 (09:41 -0400)
commitbb66ecbf122cc5ca52c569f0f84b5d1b2c00f6b9
treea36b661b528ffd8e0b3f407b523ab375fa8417b2
parentd0fa84f174770679ea22076f4f754bfde2f3f0e1
drm/amdgpu: Use simplified API for p2p dist calc

Use the simpified API that calculates distance between two devices.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c