]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/mlx5: Use rdma_user_map_io for mapping BAR pages
authorJason Gunthorpe <jgg@mellanox.com>
Tue, 16 Apr 2019 11:07:26 +0000 (14:07 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 24 Apr 2019 16:06:40 +0000 (13:06 -0300)
commitd74ac8146c38b3918d4e4c863d8a64b6a186b31e
treeb5d29d24666017a08821125316e2a31d499ed0b2
parentf46c08ade650a1e0c648ee89dda5b80846c9aad0
RDMA/mlx5: Use rdma_user_map_io for mapping BAR pages

Since mlx5 supports device disassociate it must use this API for all
BAR page mmaps, otherwise the pages can remain mapped after the device
is unplugged causing a system crash.

Cc: stable@vger.kernel.org
Fixes: 35972402eacc ("RDMA/ucontext: Add a core API for mmaping driver IO memory")
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Reviewed-by: Haggai Eran <haggaie@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
drivers/infiniband/hw/mlx5/main.c