Re: [PATCH] drm/amdgpu: Fix missing check pcie_p2p module param

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Sep 6, 2024 at 5:48 AM Bob Zhou <bob.zhou@xxxxxxx> wrote:
>
> 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 <bob.zhou@xxxxxxx>

Reviewed-by: Alex Deucher <alexander.deucher@xxxxxxx>

> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> index 61a189e30bcd..20910c0187c7 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> @@ -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
>




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux