Re: [PATCH rdma-next v2 13/14] RDMA/core: Track device memory MRs

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

 



On Mon, Sep 07, 2020 at 03:21:55PM +0300, Leon Romanovsky wrote:
> From: Leon Romanovsky <leonro@xxxxxxxxxxxx>
> 
> Device memory (DM) are registered to MR during initialization flow,
> these MRs were not tracked by resource tracker and had res->valid set
> as a false. Update the code to manage them too.
> 
> Before this change:
> [leonro@vm ~]$ ibv_rc_pingpong -j &
> [leonro@vm ~]$ rdma res show mr <-- shows nothing
> 
> After this change:
> [leonro@mtl-leonro-l-vm ~]$ ibv_rc_pingpong -j &
> [leonro@mtl-leonro-l-vm ~]$ rdma res show mr
> dev ibp0s9 mrn 0 mrlen 4096 pdn 3 pid 734 comm ibv_rc_pingpong
> 
> Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx>
> ---
>  drivers/infiniband/core/uverbs_std_types_mr.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)

Fixes: be934cca9e98 ("IB/uverbs: Add device memory registration ioctl support")

Jason



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux