Skip to content
Open

Hfi2 #1710

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ add_subdirectory(providers/vmw_pvrdma)
endif()

add_subdirectory(providers/hfi1verbs)
add_subdirectory(providers/ipathverbs)
add_subdirectory(providers/hfi2verbs)
add_subdirectory(providers/rxe)
add_subdirectory(providers/rxe/man)
add_subdirectory(providers/siw)
Expand Down
5 changes: 5 additions & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ M: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
S: Supported
F: providers/hfi1verbs/

HFI2 USERSPACE PROVIDER (for hf2.ko)
M: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
S: Supported
F: providers/hfi2verbs/

HNS USERSPACE PROVIDER (for hns-roce-hw-v2.ko)
M: Junxian Huang <huangjunxian6@hisilicon.com>
M: Chengchang Tang <tangchengchang@huawei.com>
Expand Down
2 changes: 0 additions & 2 deletions debian/rdma-core.install
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
etc/init.d/iwpmd
etc/iwpmd.conf
etc/modprobe.d/mlx4.conf
etc/modprobe.d/truescale.conf
etc/rdma/modules/infiniband.conf
etc/rdma/modules/iwarp.conf
etc/rdma/modules/iwpmd.conf
Expand All @@ -20,7 +19,6 @@ lib/udev/rules.d/90-iwpmd.rules
lib/udev/rules.d/90-rdma-hw-modules.rules
lib/udev/rules.d/90-rdma-ulp-modules.rules
lib/udev/rules.d/90-rdma-umad.rules
usr/lib/truescale-serdes.cmds
usr/sbin/iwpmd
usr/sbin/rdma-ndd
usr/sbin/rdma_topo
Expand Down
4 changes: 0 additions & 4 deletions debian/rdma-core.lintian-overrides
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# "module -i ib_qib" will executes code. This cannot be replaced by the softdep command.
rdma-core: obsolete-command-in-modprobe.d-file install [etc/modprobe.d/truescale.conf]
# The rdma-ndd service is started by udev.
rdma-core: systemd-service-file-missing-install-key [lib/systemd/system/iwpmd.service]
rdma-core: systemd-service-file-missing-install-key [lib/systemd/system/rdma-ndd.service]
# For lintian < 2.115.2
rdma-core: obsolete-command-in-modprobe.d-file etc/modprobe.d/truescale.conf install
1 change: 1 addition & 0 deletions kernel-boot/rdma-description.rules
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ DRIVERS=="ib_qib", ENV{ID_RDMA_INFINIBAND}="1"

# Hardware that supports OPA
DRIVERS=="hfi1", ENV{ID_RDMA_OPA}="1"
DRIVERS=="hfi2", ENV{ID_RDMA_OPA}="1"

# Hardware that supports iWarp
DRIVERS=="cxgb4", ENV{ID_RDMA_IWARP}="1"
Expand Down
1 change: 1 addition & 0 deletions kernel-headers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ publish_internal_headers(rdma
rdma/cxgb4-abi.h
rdma/efa-abi.h
rdma/erdma-abi.h
rdma/hfi2-abi.h
rdma/hns-abi.h
rdma/ib_user_ioctl_cmds.h
rdma/ib_user_ioctl_verbs.h
Expand Down
120 changes: 4 additions & 116 deletions kernel-headers/rdma/hfi/hfi1_ioctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* GPL LICENSE SUMMARY
*
* Copyright(c) 2015 Intel Corporation.
* Copyright 2025 Cornelis Networks
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of version 2 of the GNU General Public License as
Expand Down Expand Up @@ -53,122 +54,9 @@
#define _LINUX__HFI1_IOCTL_H
#include <linux/types.h>

/*
* This structure is passed to the driver to tell it where
* user code buffers are, sizes, etc. The offsets and sizes of the
* fields must remain unchanged, for binary compatibility. It can
* be extended, if userversion is changed so user code can tell, if needed
*/
struct hfi1_user_info {
/*
* version of user software, to detect compatibility issues.
* Should be set to HFI1_USER_SWVERSION.
*/
__u32 userversion;
__u32 pad;
/*
* If two or more processes wish to share a context, each process
* must set the subcontext_cnt and subcontext_id to the same
* values. The only restriction on the subcontext_id is that
* it be unique for a given node.
*/
__u16 subctxt_cnt;
__u16 subctxt_id;
/* 128bit UUID passed in by PSM. */
__u8 uuid[16];
};

struct hfi1_ctxt_info {
__aligned_u64 runtime_flags; /* chip/drv runtime flags (HFI1_CAP_*) */
__u32 rcvegr_size; /* size of each eager buffer */
__u16 num_active; /* number of active units */
__u16 unit; /* unit (chip) assigned to caller */
__u16 ctxt; /* ctxt on unit assigned to caller */
__u16 subctxt; /* subctxt on unit assigned to caller */
__u16 rcvtids; /* number of Rcv TIDs for this context */
__u16 credits; /* number of PIO credits for this context */
__u16 numa_node; /* NUMA node of the assigned device */
__u16 rec_cpu; /* cpu # for affinity (0xffff if none) */
__u16 send_ctxt; /* send context in use by this user context */
__u16 egrtids; /* number of RcvArray entries for Eager Rcvs */
__u16 rcvhdrq_cnt; /* number of RcvHdrQ entries */
__u16 rcvhdrq_entsize; /* size (in bytes) for each RcvHdrQ entry */
__u16 sdma_ring_size; /* number of entries in SDMA request ring */
};
#define hfi1_user_info hfi2_user_info
#define hfi1_ctxt_info hfi2_ctxt_info

struct hfi1_tid_info {
/* virtual address of first page in transfer */
__aligned_u64 vaddr;
/* pointer to tid array. this array is big enough */
__aligned_u64 tidlist;
/* number of tids programmed by this request */
__u32 tidcnt;
/* length of transfer buffer programmed by this request */
__u32 length;
};
#define hfi1_base_info hfi2_base_info

/*
* This structure is returned by the driver immediately after
* open to get implementation-specific info, and info specific to this
* instance.
*
* This struct must have explicit pad fields where type sizes
* may result in different alignments between 32 and 64 bit
* programs, since the 64 bit * bit kernel requires the user code
* to have matching offsets
*/
struct hfi1_base_info {
/* version of hardware, for feature checking. */
__u32 hw_version;
/* version of software, for feature checking. */
__u32 sw_version;
/* Job key */
__u16 jkey;
__u16 padding1;
/*
* The special QP (queue pair) value that identifies PSM
* protocol packet from standard IB packets.
*/
__u32 bthqp;
/* PIO credit return address, */
__aligned_u64 sc_credits_addr;
/*
* Base address of write-only pio buffers for this process.
* Each buffer has sendpio_credits*64 bytes.
*/
__aligned_u64 pio_bufbase_sop;
/*
* Base address of write-only pio buffers for this process.
* Each buffer has sendpio_credits*64 bytes.
*/
__aligned_u64 pio_bufbase;
/* address where receive buffer queue is mapped into */
__aligned_u64 rcvhdr_bufbase;
/* base address of Eager receive buffers. */
__aligned_u64 rcvegr_bufbase;
/* base address of SDMA completion ring */
__aligned_u64 sdma_comp_bufbase;
/*
* User register base for init code, not to be used directly by
* protocol or applications. Always maps real chip register space.
* the register addresses are:
* ur_rcvhdrhead, ur_rcvhdrtail, ur_rcvegrhead, ur_rcvegrtail,
* ur_rcvtidflow
*/
__aligned_u64 user_regbase;
/* notification events */
__aligned_u64 events_bufbase;
/* status page */
__aligned_u64 status_bufbase;
/* rcvhdrtail update */
__aligned_u64 rcvhdrtail_base;
/*
* shared memory pages for subctxts if ctxt is shared; these cover
* all the processes in the group sharing a single context.
* all have enough space for the num_subcontexts value on this job.
*/
__aligned_u64 subctxt_uregbase;
__aligned_u64 subctxt_rcvegrbuf;
__aligned_u64 subctxt_rcvhdrbuf;
};
#endif /* _LINIUX__HFI1_IOCTL_H */
Loading
Loading