[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240726071910.626802-1-huangjunxian6@hisilicon.com>
Date: Fri, 26 Jul 2024 15:19:07 +0800
From: Junxian Huang <huangjunxian6@...ilicon.com>
To: <jgg@...pe.ca>, <leon@...nel.org>
CC: <linux-rdma@...r.kernel.org>, <linuxarm@...wei.com>,
<linux-kernel@...r.kernel.org>, <huangjunxian6@...ilicon.com>
Subject: [PATCH for-next 0/3] RDMA: Provide an API for drivers to disassociate mmap pages
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.
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/ib_core_uverbs.c | 85 +++++++++++++++++++++
drivers/infiniband/core/rdma_core.h | 1 -
drivers/infiniband/core/uverbs_main.c | 64 ----------------
drivers/infiniband/hw/hns/hns_roce_device.h | 4 +
drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 15 ++++
drivers/infiniband/hw/hns/hns_roce_main.c | 13 ++++
include/rdma/ib_verbs.h | 3 +
7 files changed, 120 insertions(+), 65 deletions(-)
--
2.33.0
Powered by blists - more mailing lists