drm/amdgpu: Fix missing check pcie_p2p module param
Subsystems (2)
PATCH 1/1 drm/amdgpu: Fix missing check pcie_p2p module param
The module param pcie_p2p should be checked for kfd p2p feature, so add it.
Fixes a9b55f03989a ("drm/amdgpu: Take IOMMU remapping into account for p2p checks")
Signed-off-by Bob Zhou <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -1
@@ -6189,7 +6189,7 @@ bool amdgpu_device_is_peer_accessible(struct amdgpu_device *adev, p2p_addressable = !(adev->gmc.aper_base & address_mask || aper_limit & address_mask); } -return is_large_bar && p2p_access && p2p_addressable; +return pcie_p2p && is_large_bar && p2p_access && p2p_addressable;#else return false;#endif
Signature · 1 line
2.34.1
Quoted 5 lines · Bob Zhou
The module param
pcie_p2pshould be checked for kfd p2p feature, so add it.Fixes a9b55f03989a ("drm/amdgpu: Take IOMMU remapping into account for p2p checks")Signed-off-by Bob Zhou <[email protected]>
Reviewed-by Alex Deucher <[email protected]>
Quoted 20 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1
-2@@ -6189,7 +6189,7 @@ bool amdgpu_device_is_peer_accessible(struct amdgpu_device *adev, p2p_addressable = !(adev->gmc.aper_base & address_mask || aper_limit & address_mask); } -return is_large_bar && p2p_access && p2p_addressable; +return pcie_p2p && is_large_bar && p2p_access && p2p_addressable;#else return false;#endif --2.34.1