Skip to content

Commit d2c0234

Browse files
BrendanCunninghamrleon
authored andcommitted
RDMA/hfi1: Move user SDMA system memory pinning code to its own file
Move user SDMA system memory page-pinning code from user_sdma.c to pin_system.c. Put declarations for non-static functions in pinning.h. System memory pinning is necessary for processing user SDMA requests but actual steps are invisible to user SDMA request-processing code. Moving system memory pinning code for user SDMA to its own file makes this distinction apparent. These changes have no effect on userspace. Signed-off-by: Patrick Kelsey <[email protected]> Signed-off-by: Brendan Cunningham <[email protected]> Signed-off-by: Dennis Dalessandro <[email protected]> Link: https://lore.kernel.org/r/169271327311.1855761.4736714053318724062.stgit@awfm-02.cornelisnetworks.com Signed-off-by: Leon Romanovsky <[email protected]>
1 parent 3d91dfe commit d2c0234

File tree

6 files changed

+505
-452
lines changed

6 files changed

+505
-452
lines changed

drivers/infiniband/hw/hfi1/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ hfi1-y := \
3131
netdev_rx.o \
3232
opfn.o \
3333
pcie.o \
34+
pin_system.o \
3435
pio.o \
3536
pio_copy.o \
3637
platform.o \

drivers/infiniband/hw/hfi1/hfi.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause */
22
/*
3-
* Copyright(c) 2020 Cornelis Networks, Inc.
3+
* Copyright(c) 2020-2023 Cornelis Networks, Inc.
44
* Copyright(c) 2015-2020 Intel Corporation.
55
*/
66

@@ -1378,8 +1378,6 @@ struct hfi1_devdata {
13781378
#define PT_INVALID 3
13791379

13801380
struct tid_rb_node;
1381-
struct mmu_rb_node;
1382-
struct mmu_rb_handler;
13831381

13841382
/* Private data for file operations */
13851383
struct hfi1_filedata {

0 commit comments

Comments
 (0)