public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 for-next 0/3] RDMA: Provide an API for drivers to disassociate mmap pages
@ 2024-08-12 12:56 Junxian Huang
  2024-08-12 12:56 ` [PATCH v2 for-next 1/3] RDMA/core: Provide rdma_user_mmap_disassociate() " Junxian Huang
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Junxian Huang @ 2024-08-12 12:56 UTC (permalink / raw)
  To: jgg, leon; +Cc: linux-rdma, linuxarm, linux-kernel, huangjunxian6

Provide an API rdma_user_mmap_disassociate() for drivers to disassociate
mmap pages. Use this API in hns to prevent userspace from ringing doorbell
when HW is reset.

v1 -> v2:
* Keep uverbs_user_mmap_disassociate() in uverbs_main.c. The new api
  rdma_user_mmap_disassociate() is also moved to this file.
* Add "#if IS_ENABLED(CONFIG_INFINIBAND_USER_ACCESS)" to hns's
  rdma_user_mmap_disassociate() call.

Chengchang Tang (3):
  RDMA/core: Provide rdma_user_mmap_disassociate() to disassociate mmap
    pages
  RDMA/hns: Link all uctx to uctx_list on a device
  RDMA/hns: Disassociate mmap pages for all uctx when HW is being reset

 drivers/infiniband/core/uverbs_main.c       | 21 +++++++++++++++++++++
 drivers/infiniband/hw/hns/hns_roce_device.h |  4 ++++
 drivers/infiniband/hw/hns/hns_roce_hw_v2.c  | 17 +++++++++++++++++
 drivers/infiniband/hw/hns/hns_roce_main.c   | 13 +++++++++++++
 include/rdma/ib_verbs.h                     |  1 +
 5 files changed, 56 insertions(+)

--
2.33.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-08-26 13:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-12 12:56 [PATCH v2 for-next 0/3] RDMA: Provide an API for drivers to disassociate mmap pages Junxian Huang
2024-08-12 12:56 ` [PATCH v2 for-next 1/3] RDMA/core: Provide rdma_user_mmap_disassociate() " Junxian Huang
2024-08-23 15:25   ` Jason Gunthorpe
2024-08-26 13:12     ` Junxian Huang
2024-08-26 13:16       ` Jason Gunthorpe
2024-08-26 13:21         ` Junxian Huang
2024-08-12 12:56 ` [PATCH v2 for-next 2/3] RDMA/hns: Link all uctx to uctx_list on a device Junxian Huang
2024-08-12 12:56 ` [PATCH v2 for-next 3/3] RDMA/hns: Disassociate mmap pages for all uctx when HW is being reset Junxian Huang
2024-08-23 15:18   ` Jason Gunthorpe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox