IB/hfi1: Clean up char devs and destage driver
Subsystems (3)
cover IB/hfi1: Clean up char devs and destage driver
Based on feedback we have received during review of recent hfi1 driver patches
[1] we have decided to go ahead and remove the driver specific character devices for the UI and snoop/diag. Furthermore we remove the EPROM specific code since we have discovered a way to do this sort of stuff from user space.
This series also removes the multi-purpose hfi1 cdev. We still maintain a per hfi cdev (/dev/hfi1_x) but the /dev/hfi1 cdev has been removed.
The write()/writev() problem [2] has been addressed in a patch series previously posted and resubmitted just prior to this.
Since the hfi1 TODO file is complete and we have removed the parts of the code which have drawn the most ire from the community list we believe it is now fair to let the driver move out of staging and into the mainline. We will work with the community to get back the features that have been removed as separate patches that can be more easily reviewed and commented on.
We realize there is still an on-going effort to redo the verbs uAPI and understand that may have an impact on our use of the /dev/hfi1_x cdevs and are looking forward to working with the community on that front. However we do not believe that alone should hold the hfi1 driver in staging.
There is one other aspect that has been called out, which is the driver's use of twsi code. We are currently working on a patch set to address that which will hopefully be out soon, but want to get this on the mailing list for comments rather than wait.
[1] https://www.spinics.net/lists/linux-rdma/msg35319.html
[2] https://www.spinics.net/lists/linux-rdma/msg34451.html
This patch series applies on Doug's k.o/for-4.7 branch.
Patches can also be viewed in my repo at:
https://github.com/ddalessa/kernel/tree/for-4.7
---
Dennis Dalessandro (6):
IB/hfi1: Remove multiple device cdev IB/hfi1: Remove UI char device
IB/hfi1: Remove EPROM functionality from data device IB/hfi1: Remove snoop/diag interface IB/hfi1: Remove anti-pattern in cdev init IB/hfi1: Move driver out of staging
MAINTAINERS | 13
drivers/infiniband/Kconfig | 2
drivers/infiniband/hw/Makefile | 1
drivers/infiniband/hw/hfi1/Kconfig | 0
drivers/infiniband/hw/hfi1/Makefile | 2
drivers/infiniband/hw/hfi1/affinity.c | 0
drivers/infiniband/hw/hfi1/affinity.h | 0
drivers/infiniband/hw/hfi1/aspm.h | 0
drivers/infiniband/hw/hfi1/chip.c | 0
drivers/infiniband/hw/hfi1/chip.h | 0
drivers/infiniband/hw/hfi1/chip_registers.h | 0
drivers/infiniband/hw/hfi1/common.h | 0
drivers/infiniband/hw/hfi1/debugfs.c | 0
drivers/infiniband/hw/hfi1/debugfs.h | 0
drivers/infiniband/hw/hfi1/device.c | 14
drivers/infiniband/hw/hfi1/device.h | 0
drivers/infiniband/hw/hfi1/dma.c | 0
drivers/infiniband/hw/hfi1/driver.c | 0
drivers/infiniband/hw/hfi1/efivar.c | 0
drivers/infiniband/hw/hfi1/efivar.h | 0
drivers/infiniband/hw/hfi1/eprom.c | 84 +
drivers/infiniband/hw/hfi1/eprom.h | 0
drivers/infiniband/hw/hfi1/file_ops.c | 301 ----
drivers/infiniband/hw/hfi1/firmware.c | 0
drivers/infiniband/hw/hfi1/hfi.h | 0
drivers/infiniband/hw/hfi1/init.c | 0
drivers/infiniband/hw/hfi1/intr.c | 0
drivers/infiniband/hw/hfi1/iowait.h | 0
drivers/infiniband/hw/hfi1/mad.c | 0
drivers/infiniband/hw/hfi1/mad.h | 0
drivers/infiniband/hw/hfi1/mmu_rb.c | 0
drivers/infiniband/hw/hfi1/mmu_rb.h | 0
drivers/infiniband/hw/hfi1/opa_compat.h | 0
drivers/infiniband/hw/hfi1/pcie.c | 0
drivers/infiniband/hw/hfi1/pio.c | 0
drivers/infiniband/hw/hfi1/pio.h | 0
drivers/infiniband/hw/hfi1/pio_copy.c | 0
drivers/infiniband/hw/hfi1/platform.c | 0
drivers/infiniband/hw/hfi1/platform.h | 0
drivers/infiniband/hw/hfi1/qp.c | 0
drivers/infiniband/hw/hfi1/qp.h | 0
drivers/infiniband/hw/hfi1/qsfp.c | 0
drivers/infiniband/hw/hfi1/qsfp.h | 0
drivers/infiniband/hw/hfi1/rc.c | 0
drivers/infiniband/hw/hfi1/ruc.c | 0
drivers/infiniband/hw/hfi1/sdma.c | 0
drivers/infiniband/hw/hfi1/sdma.h | 0
drivers/infiniband/hw/hfi1/sdma_txreq.h | 0
drivers/infiniband/hw/hfi1/sysfs.c | 0
drivers/infiniband/hw/hfi1/trace.c | 0
drivers/infiniband/hw/hfi1/trace.h | 0
drivers/infiniband/hw/hfi1/twsi.c | 0
drivers/infiniband/hw/hfi1/twsi.h | 0
drivers/infiniband/hw/hfi1/uc.c | 0
drivers/infiniband/hw/hfi1/ud.c | 0
drivers/infiniband/hw/hfi1/user_exp_rcv.c | 0
drivers/infiniband/hw/hfi1/user_exp_rcv.h | 0
drivers/infiniband/hw/hfi1/user_pages.c | 0
drivers/infiniband/hw/hfi1/user_sdma.c | 0
drivers/infiniband/hw/hfi1/user_sdma.h | 0
drivers/infiniband/hw/hfi1/verbs.c | 0
drivers/infiniband/hw/hfi1/verbs.h | 0
drivers/infiniband/hw/hfi1/verbs_txreq.c | 0
drivers/infiniband/hw/hfi1/verbs_txreq.h | 0
drivers/staging/rdma/Kconfig | 2
drivers/staging/rdma/Makefile | 1
drivers/staging/rdma/hfi1/TODO | 6
drivers/staging/rdma/hfi1/diag.c | 1918 ---------------------------
drivers/staging/rdma/hfi1/eprom.c | 471 -------
include/uapi/rdma/hfi/hfi1_user.h | 43 -
70 files changed, 93 insertions(+), 2765 deletions(-)
rename drivers/{staging/rdma/hfi1/Kconfig => infiniband/hw/hfi1/Kconfig} (100%)
rename drivers/{staging/rdma/hfi1/Makefile => infiniband/hw/hfi1/Makefile} (88%)
rename drivers/{staging/rdma/hfi1/affinity.c => infiniband/hw/hfi1/affinity.c} (100%)
rename drivers/{staging/rdma/hfi1/affinity.h => infiniband/hw/hfi1/affinity.h} (100%)
rename drivers/{staging/rdma/hfi1/aspm.h => infiniband/hw/hfi1/aspm.h} (100%)
rename drivers/{staging/rdma/hfi1/chip.c => infiniband/hw/hfi1/chip.c} (100%)
rename drivers/{staging/rdma/hfi1/chip.h => infiniband/hw/hfi1/chip.h} (100%)
rename drivers/{staging/rdma/hfi1/chip_registers.h => infiniband/hw/hfi1/chip_registers.h} (100%)
rename drivers/{staging/rdma/hfi1/common.h => infiniband/hw/hfi1/common.h} (100%)
rename drivers/{staging/rdma/hfi1/debugfs.c => infiniband/hw/hfi1/debugfs.c} (100%)
rename drivers/{staging/rdma/hfi1/debugfs.h => infiniband/hw/hfi1/debugfs.h} (100%)
rename drivers/{staging/rdma/hfi1/device.c => infiniband/hw/hfi1/device.c} (96%)
rename drivers/{staging/rdma/hfi1/device.h => infiniband/hw/hfi1/device.h} (100%)
rename drivers/{staging/rdma/hfi1/dma.c => infiniband/hw/hfi1/dma.c} (100%)
rename drivers/{staging/rdma/hfi1/driver.c => infiniband/hw/hfi1/driver.c} (100%)
rename drivers/{staging/rdma/hfi1/efivar.c => infiniband/hw/hfi1/efivar.c} (100%)
rename drivers/{staging/rdma/hfi1/efivar.h => infiniband/hw/hfi1/efivar.h} (100%)
copy drivers/{staging/rdma/hfi1/user_sdma.h => infiniband/hw/hfi1/eprom.c} (61%)
rename drivers/{staging/rdma/hfi1/eprom.h => infiniband/hw/hfi1/eprom.h} (100%)
rename drivers/{staging/rdma/hfi1/file_ops.c => infiniband/hw/hfi1/file_ops.c} (85%)
rename drivers/{staging/rdma/hfi1/firmware.c => infiniband/hw/hfi1/firmware.c} (100%)
rename drivers/{staging/rdma/hfi1/hfi.h => infiniband/hw/hfi1/hfi.h} (100%)
rename drivers/{staging/rdma/hfi1/init.c => infiniband/hw/hfi1/init.c} (100%)
rename drivers/{staging/rdma/hfi1/intr.c => infiniband/hw/hfi1/intr.c} (100%)
rename drivers/{staging/rdma/hfi1/iowait.h => infiniband/hw/hfi1/iowait.h} (100%)
rename drivers/{staging/rdma/hfi1/mad.c => infiniband/hw/hfi1/mad.c} (100%)
rename drivers/{staging/rdma/hfi1/mad.h => infiniband/hw/hfi1/mad.h} (100%)
rename drivers/{staging/rdma/hfi1/mmu_rb.c => infiniband/hw/hfi1/mmu_rb.c} (100%)
rename drivers/{staging/rdma/hfi1/mmu_rb.h => infiniband/hw/hfi1/mmu_rb.h} (100%)
rename drivers/{staging/rdma/hfi1/opa_compat.h => infiniband/hw/hfi1/opa_compat.h} (100%)
rename drivers/{staging/rdma/hfi1/pcie.c => infiniband/hw/hfi1/pcie.c} (100%)
rename drivers/{staging/rdma/hfi1/pio.c => infiniband/hw/hfi1/pio.c} (100%)
rename drivers/{staging/rdma/hfi1/pio.h => infiniband/hw/hfi1/pio.h} (100%)
rename drivers/{staging/rdma/hfi1/pio_copy.c => infiniband/hw/hfi1/pio_copy.c} (100%)
rename drivers/{staging/rdma/hfi1/platform.c => infiniband/hw/hfi1/platform.c} (100%)
rename drivers/{staging/rdma/hfi1/platform.h => infiniband/hw/hfi1/platform.h} (100%)
rename drivers/{staging/rdma/hfi1/qp.c => infiniband/hw/hfi1/qp.c} (100%)
rename drivers/{staging/rdma/hfi1/qp.h => infiniband/hw/hfi1/qp.h} (100%)
rename drivers/{staging/rdma/hfi1/qsfp.c => infiniband/hw/hfi1/qsfp.c} (100%)
rename drivers/{staging/rdma/hfi1/qsfp.h => infiniband/hw/hfi1/qsfp.h} (100%)
rename drivers/{staging/rdma/hfi1/rc.c => infiniband/hw/hfi1/rc.c} (100%)
rename drivers/{staging/rdma/hfi1/ruc.c => infiniband/hw/hfi1/ruc.c} (100%)
rename drivers/{staging/rdma/hfi1/sdma.c => infiniband/hw/hfi1/sdma.c} (100%)
rename drivers/{staging/rdma/hfi1/sdma.h => infiniband/hw/hfi1/sdma.h} (100%)
rename drivers/{staging/rdma/hfi1/sdma_txreq.h => infiniband/hw/hfi1/sdma_txreq.h} (100%)
rename drivers/{staging/rdma/hfi1/sysfs.c => infiniband/hw/hfi1/sysfs.c} (100%)
rename drivers/{staging/rdma/hfi1/trace.c => infiniband/hw/hfi1/trace.c} (100%)
rename drivers/{staging/rdma/hfi1/trace.h => infiniband/hw/hfi1/trace.h} (100%)
rename drivers/{staging/rdma/hfi1/twsi.c => infiniband/hw/hfi1/twsi.c} (100%)
rename drivers/{staging/rdma/hfi1/twsi.h => infiniband/hw/hfi1/twsi.h} (100%)
rename drivers/{staging/rdma/hfi1/uc.c => infiniband/hw/hfi1/uc.c} (100%)
rename drivers/{staging/rdma/hfi1/ud.c => infiniband/hw/hfi1/ud.c} (100%)
rename drivers/{staging/rdma/hfi1/user_exp_rcv.c => infiniband/hw/hfi1/user_exp_rcv.c} (100%)
rename drivers/{staging/rdma/hfi1/user_exp_rcv.h => infiniband/hw/hfi1/user_exp_rcv.h} (100%)
rename drivers/{staging/rdma/hfi1/user_pages.c => infiniband/hw/hfi1/user_pages.c} (100%)
rename drivers/{staging/rdma/hfi1/user_sdma.c => infiniband/hw/hfi1/user_sdma.c} (100%)
rename drivers/{staging/rdma/hfi1/user_sdma.h => infiniband/hw/hfi1/user_sdma.h} (100%)
rename drivers/{staging/rdma/hfi1/verbs.c => infiniband/hw/hfi1/verbs.c} (100%)
rename drivers/{staging/rdma/hfi1/verbs.h => infiniband/hw/hfi1/verbs.h} (100%)
rename drivers/{staging/rdma/hfi1/verbs_txreq.c => infiniband/hw/hfi1/verbs_txreq.c} (100%)
rename drivers/{staging/rdma/hfi1/verbs_txreq.h => infiniband/hw/hfi1/verbs_txreq.h} (100%)
delete mode 100644 drivers/staging/rdma/hfi1/TODO
delete mode 100644 drivers/staging/rdma/hfi1/diag.c
delete mode 100644 drivers/staging/rdma/hfi1/eprom.cSignature · 5 lines
-Denny -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 20160512172500.11667.11333.stgit-9QXIwq+3FY+1XWohqUldA0EOCMrvLtNR@public.gmane.org
PATCH 1/6 IB/hfi1: Remove multiple device cdev
hfi1 current exports a cdev that can be used to target all of the hfi's in the system. However there is a problem with this approach in that the devices could be on different subnets. This is a problem that user space can figure out and explicitly tell the driver on which device to create a context.
Remove the multi-purpose cdev leaving a dedicated cdev for each port. Also remove the striping capability that is dependent upon the user choosing the multi-purpose cdev. It is now up to user space to determine how to stripe contexts.
--- drivers/staging/rdma/hfi1/file_ops.c | 102 ++++++---------------------------- include/uapi/rdma/hfi/hfi1_user.h | 19 +----- 2 files changed, 21 insertions(+), 100 deletions(-)
drivers/staging/rdma/hfi1/file_ops.c +19 -83
@@ -84,8 +84,7 @@ static int get_ctxt_info(struct file *, void __user *, __u32);static int get_base_info (struct file *,void __user *,__u32 );static int setup_ctxt (struct file *);static int setup_subctxt (struct hfi1_ctxtdata *); -static int get_user_context (struct file *,struct hfi1_user_info *, -int ,unsigned ); +static int get_user_context (struct file *,struct hfi1_user_info *,int );static int find_shared_ctxt (struct file *,const struct hfi1_user_info *);static int allocate_ctxt (struct file *,struct hfi1_devdata *,struct hfi1_user_info *);
@@ -810,7 +809,7 @@ static u64 kvirt_to_phys(void *addr)static int assign_ctxt (struct file *fp,struct hfi1_user_info *uinfo) {int i_minor, ret =0 ; -unsigned swmajor, swminor, alg =HFI1_ALG_ACROSS ; +unsigned int swmajor, swminor; swmajor = uinfo->userversion >>16 ;if (swmajor !=HFI1_USER_SWMAJOR ) {
@@ -820,9 +819,6 @@ static int assign_ctxt(struct file *fp, struct hfi1_user_info *uinfo) swminor = uinfo->userversion &0xffff ; -if (uinfo->hfi1_alg <HFI1_ALG_COUNT ) - alg = uinfo->hfi1_alg; -mutex_lock (&hfi1_mutex);/* First, lets check if we need to setup a shared context? */ if (uinfo->subctxt_cnt) {
@@ -842,7 +838,7 @@ static int assign_ctxt(struct file *fp, struct hfi1_user_info *uinfo)*/ if (!ret) { i_minor =iminor (file_inode (fp)) -HFI1_USER_MINOR_BASE ; - ret =get_user_context (fp, uinfo, i_minor -1 , alg); + ret =get_user_context (fp, uinfo, i_minor); } done_unlock:mutex_unlock (&hfi1_mutex);
@@ -850,71 +846,26 @@ done:return ret; } -/* return true if the device available for general use */ -static int usable_device (struct hfi1_devdata *dd) -{ -struct hfi1_pportdata *ppd = dd->pport; - -return driver_lstate (ppd) ==IB_PORT_ACTIVE ; -} -static int get_user_context (struct file *fp,struct hfi1_user_info *uinfo, -int devno,unsigned alg) +int devno) {struct hfi1_devdata *dd =NULL ; -int ret =0 , devmax, npresent, nup, dev; +int devmax, npresent, nup; devmax =hfi1_count_units (&npresent, &nup); -if (!npresent) { - ret = -ENXIO ; - goto done; - } -if (!nup) { - ret = -ENETDOWN ; - goto done; - } -if (devno >=0 ) { - dd =hfi1_lookup (devno); -if (!dd) - ret = -ENODEV ; -else if (!dd->freectxts) - ret = -EBUSY ; - }else { -struct hfi1_devdata *pdd; - -if (alg ==HFI1_ALG_ACROSS ) { -unsigned free =0U ; - -for (dev =0 ; dev < devmax; dev++) { - pdd =hfi1_lookup (dev); -if (!pdd) -continue ; -if (!usable_device (pdd)) -continue ; -if (pdd->freectxts && - pdd->freectxts > free) { - dd = pdd; - free = pdd->freectxts; - } - } - }else { -for (dev =0 ; dev < devmax; dev++) { - pdd =hfi1_lookup (dev); -if (!pdd) -continue ; -if (!usable_device (pdd)) -continue ; -if (pdd->freectxts) { - dd = pdd; -break ; - } - } - } -if (!dd) - ret = -EBUSY ; - } -done: -return ret ? ret :allocate_ctxt (fp, dd, uinfo); +if (!npresent) +return -ENXIO ; + +if (!nup) +return -ENETDOWN ; + + dd =hfi1_lookup (devno); +if (!dd) +return -ENODEV ; +else if (!dd->freectxts) +return -EBUSY ; + +return allocate_ctxt (fp, dd, uinfo); } static int find_shared_ctxt(struct file *fp,
@@ -1672,15 +1623,8 @@ static const struct file_operations ui_file_ops = {#define UI_OFFSET 192/* device minor offset for UI devices */ static int create_ui =1 ; -static struct cdev wildcard_cdev; -static struct device *wildcard_device; - -static atomic_t user_count =ATOMIC_INIT (0 ); -static void user_remove (struct hfi1_devdata *dd) { -if (atomic_dec_return (&user_count) ==0 ) -hfi1_cdev_cleanup (&wildcard_cdev, &wildcard_device);hfi1_cdev_cleanup (&dd->user_cdev, &dd->user_device);hfi1_cdev_cleanup (&dd->ui_cdev, &dd->ui_device);
@@ -1691,16 +1635,8 @@ static int user_add(struct hfi1_devdata *dd)char name[10 ];int ret; -if (atomic_inc_return (&user_count) ==1 ) { - ret =hfi1_cdev_init (0 ,class_name (), &hfi1_file_ops, - &wildcard_cdev, &wildcard_device, - true); -if (ret) - goto done; - } -snprintf (name,sizeof (name),"%s_%d" ,class_name (), dd->unit); - ret =hfi1_cdev_init (dd->unit +1 , name, &hfi1_file_ops, + ret =hfi1_cdev_init (dd->unit, name, &hfi1_file_ops, &dd->user_cdev, &dd->user_device, true);if (ret)
include/uapi/rdma/hfi/hfi1_user.h +2 -17
@@ -75,7 +75,7 @@* may not be implemented; the user code must deal with this if it * cares, or it must abort after initialization reports the difference. */ -#define HFI1_USER_SWMINOR 0 +#define HFI1_USER_SWMINOR 1/* * We will encode the major/minor inside a single 32bit version number.
@@ -112,19 +112,6 @@#define HFI1_RCVHDR_ENTSIZE_16 (1UL << 1)#define HFI1_RCVDHR_ENTSIZE_32 (1UL << 2) -/* -* If the unit is specified via open, HFI choice is fixed. If port is -* specified, it's also fixed. Otherwise we try to spread contexts -* across ports and HFIs, using different algorithms. WITHIN is -* the old default, prior to this mechanism. -*/ -#define HFI1_ALG_ACROSS 0/* round robin contexts across HFIs, then -* ports; this is the default */ -#define HFI1_ALG_WITHIN 1/* use all contexts on an HFI (round robin -* active ports within), then next HFI */ -#define HFI1_ALG_COUNT 2/* number of algorithm choices */ - -/* User commands. */ #define HFI1_CMD_ASSIGN_CTXT 1/* allocate HFI and context */ #define HFI1_CMD_CTXT_INFO 2/* find out what resources we got */
@@ -245,9 +232,7 @@ struct hfi1_user_info {* Should be set to HFI1_USER_SWVERSION. */ __u32 userversion; -__u16 pad; -/* HFI selection algorithm, if unit has not selected */ -__u16 hfi1_alg; +__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
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 2/6 IB/hfi1: Remove UI char device
In reply to a message not in the archiveRemove UI char device which exposes direct access to registers for user space. This was put in to aid in debugging the hardware. We are looking into alternatives means of providing the same functionality. This removes another char device from HFI1's footprint.
--- drivers/staging/rdma/hfi1/file_ops.c | 168 ---------------------------------- 1 files changed, 1 insertions(+), 167 deletions(-)
drivers/staging/rdma/hfi1/file_ops.c +1 -167
@@ -1471,163 +1471,10 @@ done:return ret; } -static int ui_open (struct inode *inode,struct file *filp) -{ -struct hfi1_devdata *dd; - - dd = container_of(inode->i_cdev, struct hfi1_devdata, ui_cdev); - filp->private_data = dd;/* for other methods */ -return 0 ; -} - -static int ui_release (struct inode *inode,struct file *filp) -{ -/* nothing to do */ -return 0 ; -} - -static loff_t ui_lseek (struct file *filp,loff_t offset,int whence) -{ -struct hfi1_devdata *dd = filp->private_data; - -return fixed_size_llseek (filp, offset, whence, - (dd->kregend - dd->kregbase) +DC8051_DATA_MEM_SIZE ); -} - -/* NOTE: assumes unsigned long is 8 bytes */ -static ssize_t ui_read (struct file *filp,char __user *buf,size_t count, -loff_t *f_pos) -{ -struct hfi1_devdata *dd = filp->private_data; -void __iomem *base = dd->kregbase; -unsigned long total, csr_off, - barlen = (dd->kregend - dd->kregbase); -u64 data; - -/* only read 8 byte quantities */ -if ((count %8 ) !=0 ) -return -EINVAL ; -/* offset must be 8-byte aligned */ -if ((*f_pos %8 ) !=0 ) -return -EINVAL ; -/* destination buffer must be 8-byte aligned */ -if ((unsigned long )buf %8 !=0 ) -return -EINVAL ; -/* must be in range */ -if (*f_pos + count > (barlen +DC8051_DATA_MEM_SIZE )) -return -EINVAL ; -/* only set the base if we are not starting past the BAR */ -if (*f_pos < barlen) - base += *f_pos; - csr_off = *f_pos; -for (total =0 ; total < count; total +=8 , csr_off +=8 ) { -/* accessing LCB CSRs requires more checks */ -if (is_lcb_offset (csr_off)) { -if (read_lcb_csr (dd, csr_off, (u64 *)&data)) -break ;/* failed */ - } -/* -* Cannot read ASIC GPIO/QSFP* clear and force CSRs without a -* false parity error. Avoid the whole issue by not reading -* them. These registers are defined as having a read value -* of 0. -*/ -else if (csr_off ==ASIC_GPIO_CLEAR || - csr_off ==ASIC_GPIO_FORCE || - csr_off ==ASIC_QSFP1_CLEAR || - csr_off ==ASIC_QSFP1_FORCE || - csr_off ==ASIC_QSFP2_CLEAR || - csr_off ==ASIC_QSFP2_FORCE ) - data =0 ; -else if (csr_off >= barlen) { -/* -* read_8051_data can read more than just 8 bytes at -* a time. However, folding this into the loop and -* handling the reads in 8 byte increments allows us -* to smoothly transition from chip memory to 8051 -* memory. -*/ -if (read_8051_data (dd, - (u32)(csr_off - barlen), -sizeof (data), &data)) -break ;/* failed */ - }else - data =readq (base + total); -if (put_user (data, (unsigned long __user *)(buf + total))) -break ; - } - *f_pos += total; -return total; -} - -/* NOTE: assumes unsigned long is 8 bytes */ -static ssize_t ui_write (struct file *filp,const char __user *buf, -size_t count,loff_t *f_pos) -{ -struct hfi1_devdata *dd = filp->private_data; -void __iomem *base; -unsigned long total, data, csr_off; -int in_lcb; - -/* only write 8 byte quantities */ -if ((count %8 ) !=0 ) -return -EINVAL ; -/* offset must be 8-byte aligned */ -if ((*f_pos %8 ) !=0 ) -return -EINVAL ; -/* source buffer must be 8-byte aligned */ -if ((unsigned long )buf %8 !=0 ) -return -EINVAL ; -/* must be in range */ -if (*f_pos + count > dd->kregend - dd->kregbase) -return -EINVAL ; - - base = (void __iomem *)dd->kregbase + *f_pos; - csr_off = *f_pos; - in_lcb =0 ; -for (total =0 ; total < count; total +=8 , csr_off +=8 ) { -if (get_user (data, (unsigned long __user *)(buf + total))) -break ; -/* accessing LCB CSRs requires a special procedure */ -if (is_lcb_offset (csr_off)) { -if (!in_lcb) { -int ret =acquire_lcb_access (dd,1 ); - -if (ret) -break ; - in_lcb =1 ; - } - }else { -if (in_lcb) { -release_lcb_access (dd,1 ); - in_lcb =0 ; - } - } -writeq (data, base + total); - } -if (in_lcb) -release_lcb_access (dd,1 ); - *f_pos += total; -return total; -} - -static const struct file_operations ui_file_ops = { - .owner =THIS_MODULE , - .llseek = ui_lseek, - .read = ui_read, - .write = ui_write, - .open = ui_open, - .release = ui_release, -}; - -#define UI_OFFSET 192/* device minor offset for UI devices */ -static int create_ui =1 ; -static void user_remove (struct hfi1_devdata *dd) {hfi1_cdev_cleanup (&dd->user_cdev, &dd->user_device); -hfi1_cdev_cleanup (&dd->ui_cdev, &dd->ui_device); }static int user_add (struct hfi1_devdata *dd)
@@ -1640,21 +1487,8 @@ static int user_add(struct hfi1_devdata *dd) &dd->user_cdev, &dd->user_device, true);if (ret) - goto done; +user_remove (dd); -if (create_ui) { -snprintf (name,sizeof (name), -"%s_ui%d" ,class_name (), dd->unit); - ret =hfi1_cdev_init (dd->unit +UI_OFFSET , name, &ui_file_ops, - &dd->ui_cdev, &dd->ui_device, - false); -if (ret) - goto done; - } - -return 0 ; -done: -user_remove (dd);return ret; }
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 3/6 IB/hfi1: Remove EPROM functionality from data device
In reply to a message not in the archiveRemove EPROM handling from the cdev which is used for user application data traffic.
--- drivers/staging/rdma/hfi1/eprom.c | 369 ---------------------------------- drivers/staging/rdma/hfi1/file_ops.c | 22 -- include/uapi/rdma/hfi/hfi1_user.h | 24 -- 3 files changed, 1 insertions(+), 414 deletions(-)
drivers/staging/rdma/hfi1/eprom.c +0 -369
@@ -49,387 +49,18 @@#include "common.h" #include "eprom.h" -/* -* The EPROM is logically divided into three partitions: -* partition 0: the first 128K, visible from PCI ROM BAR -* partition 1: 4K config file (sector size) -* partition 2: the rest -*/ -#define P0_SIZE (128 * 1024) -#define P1_SIZE (4 * 1024) -#define P1_START P0_SIZE -#define P2_START (P0_SIZE + P1_SIZE) - -/* erase sizes supported by the controller */ -#define SIZE_4KB (4 * 1024) -#define MASK_4KB (SIZE_4KB - 1) - -#define SIZE_32KB (32 * 1024) -#define MASK_32KB (SIZE_32KB - 1) - -#define SIZE_64KB (64 * 1024) -#define MASK_64KB (SIZE_64KB - 1) - -/* controller page size, in bytes */ -#define EP_PAGE_SIZE 256 -#define EEP_PAGE_MASK (EP_PAGE_SIZE - 1) - -/* controller commands */ #define CMD_SHIFT 24 -#define CMD_NOP (0) -#define CMD_PAGE_PROGRAM (addr) ((0x02 << CMD_SHIFT) | addr) -#define CMD_READ_DATA (addr) ((0x03 << CMD_SHIFT) | addr) -#define CMD_READ_SR1 ((0x05 << CMD_SHIFT)) -#define CMD_WRITE_ENABLE ((0x06 << CMD_SHIFT)) -#define CMD_SECTOR_ERASE_4KB (addr) ((0x20 << CMD_SHIFT) | addr) -#define CMD_SECTOR_ERASE_32KB (addr) ((0x52 << CMD_SHIFT) | addr) -#define CMD_CHIP_ERASE ((0x60 << CMD_SHIFT)) -#define CMD_READ_MANUF_DEV_ID ((0x90 << CMD_SHIFT))#define CMD_RELEASE_POWERDOWN_NOID ((0xab << CMD_SHIFT)) -#define CMD_SECTOR_ERASE_64KB (addr) ((0xd8 << CMD_SHIFT) | addr)/* controller interface speeds */ #define EP_SPEED_FULL 0x2/* full speed */ -/* controller status register 1 bits */ -#define SR1_BUSY 0x1ull/* the BUSY bit in SR1 */ - -/* sleep length while waiting for controller */ -#define WAIT_SLEEP_US 100/* must be larger than 5 (see usage) */ -#define COUNT_DELAY_SEC (n) ((n) * (1000000 / WAIT_SLEEP_US)) - -/* GPIO pins */ -#define EPROM_WP_N BIT_ULL(14)/* EPROM write line */ -/* * How long to wait for the EPROM to become available, in ms. * The spec 32 Mb EPROM takes around 40s to erase then write. * Double it for safety. */ #define EPROM_TIMEOUT 80000/* ms */ - -/* -* Turn on external enable line that allows writing on the flash. -*/ -static void write_enable (struct hfi1_devdata *dd) -{ -/* raise signal */ -write_csr (dd,ASIC_GPIO_OUT ,read_csr (dd,ASIC_GPIO_OUT ) |EPROM_WP_N ); -/* raise enable */ -write_csr (dd,ASIC_GPIO_OE ,read_csr (dd,ASIC_GPIO_OE ) |EPROM_WP_N ); -} - -/* -* Turn off external enable line that allows writing on the flash. -*/ -static void write_disable (struct hfi1_devdata *dd) -{ -/* lower signal */ -write_csr (dd,ASIC_GPIO_OUT ,read_csr (dd,ASIC_GPIO_OUT ) & ~EPROM_WP_N ); -/* lower enable */ -write_csr (dd,ASIC_GPIO_OE ,read_csr (dd,ASIC_GPIO_OE ) & ~EPROM_WP_N ); -} - -/* -* Wait for the device to become not busy. Must be called after all -* write or erase operations. -*/ -static int wait_for_not_busy (struct hfi1_devdata *dd) -{ -unsigned long count =0 ; -u64 reg; -int ret =0 ; - -/* starts page mode */ -write_csr (dd,ASIC_EEP_ADDR_CMD ,CMD_READ_SR1 ); -while (1 ) { -udelay (WAIT_SLEEP_US ); -usleep_range (WAIT_SLEEP_US -5 ,WAIT_SLEEP_US +5 ); - count++; - reg =read_csr (dd,ASIC_EEP_DATA ); -if ((reg &SR1_BUSY ) ==0 ) -break ; -/* 200s is the largest time for a 128Mb device */ -if (count >COUNT_DELAY_SEC (200 )) { -dd_dev_err (dd,"waited too long for SPI FLASH busy to clear - failing\n" ); - ret = -ETIMEDOUT ; -break ;/* break, not goto - must stop page mode */ - } - } - -/* stop page mode with a NOP */ -write_csr (dd,ASIC_EEP_ADDR_CMD ,CMD_NOP ); - -return ret; -} - -/* -* Read the device ID from the SPI controller. -*/ -static u32 read_device_id (struct hfi1_devdata *dd) -{ -/* read the Manufacture Device ID */ -write_csr (dd,ASIC_EEP_ADDR_CMD ,CMD_READ_MANUF_DEV_ID ); -return (u32 )read_csr (dd,ASIC_EEP_DATA ); -} - -/* -* Erase the whole flash. -*/ -static int erase_chip (struct hfi1_devdata *dd) -{ -int ret; - -write_enable (dd); - -write_csr (dd,ASIC_EEP_ADDR_CMD ,CMD_WRITE_ENABLE ); -write_csr (dd,ASIC_EEP_ADDR_CMD ,CMD_CHIP_ERASE ); - ret =wait_for_not_busy (dd); - -write_disable (dd); - -return ret; -} - -/* -* Erase a range. -*/ -static int erase_range (struct hfi1_devdata *dd,u32 start,u32 len) -{ -u32 end = start + len; -int ret =0 ; - -if (end < start) -return -EINVAL ; - -/* check the end points for the minimum erase */ -if ((start &MASK_4KB ) || (end &MASK_4KB )) { -dd_dev_err (dd, -"%s: non-aligned range (0x%x,0x%x) for a 4KB erase\n" , - __func__, start, end); -return -EINVAL ; - } - -write_enable (dd); - -while (start < end) { -write_csr (dd,ASIC_EEP_ADDR_CMD ,CMD_WRITE_ENABLE ); -/* check in order of largest to smallest */ -if (((start &MASK_64KB ) ==0 ) && (start +SIZE_64KB <= end)) { -write_csr (dd,ASIC_EEP_ADDR_CMD , -CMD_SECTOR_ERASE_64KB (start)); - start +=SIZE_64KB ; - }else if (((start &MASK_32KB ) ==0 ) && - (start +SIZE_32KB <= end)) { -write_csr (dd,ASIC_EEP_ADDR_CMD , -CMD_SECTOR_ERASE_32KB (start)); - start +=SIZE_32KB ; - }else {/* 4KB will work */ -write_csr (dd,ASIC_EEP_ADDR_CMD , -CMD_SECTOR_ERASE_4KB (start)); - start +=SIZE_4KB ; - } - ret =wait_for_not_busy (dd); -if (ret) - goto done; - } - -done: -write_disable (dd); - -return ret; -} - -/* -* Read a 256 byte (64 dword) EPROM page. -* All callers have verified the offset is at a page boundary. -*/ -static void read_page (struct hfi1_devdata *dd,u32 offset,u32 *result) -{ -int i; - -write_csr (dd,ASIC_EEP_ADDR_CMD ,CMD_READ_DATA (offset)); -for (i =0 ; i <EP_PAGE_SIZE /sizeof (u32); i++) - result[i] = (u32 )read_csr (dd,ASIC_EEP_DATA ); -write_csr (dd,ASIC_EEP_ADDR_CMD ,CMD_NOP );/* close open page */ -} - -/* -* Read length bytes starting at offset. Copy to user address addr. -*/ -static int read_length (struct hfi1_devdata *dd,u32 start,u32 len,u64 addr) -{ -u32 offset; -u32 buffer[EP_PAGE_SIZE /sizeof (u32)]; -int ret =0 ; - -/* reject anything not on an EPROM page boundary */ -if ((start &EEP_PAGE_MASK ) || (len &EEP_PAGE_MASK )) -return -EINVAL ; - -for (offset =0 ; offset < len; offset +=EP_PAGE_SIZE ) { -read_page (dd, start + offset, buffer); -if (copy_to_user ((void __user *)(addr + offset), - buffer,EP_PAGE_SIZE )) { - ret = -EFAULT ; - goto done; - } - } - -done: -return ret; -} - -/* -* Write a 256 byte (64 dword) EPROM page. -* All callers have verified the offset is at a page boundary. -*/ -static int write_page (struct hfi1_devdata *dd,u32 offset,u32 *data) -{ -int i; - -write_csr (dd,ASIC_EEP_ADDR_CMD ,CMD_WRITE_ENABLE ); -write_csr (dd,ASIC_EEP_DATA , data[0 ]); -write_csr (dd,ASIC_EEP_ADDR_CMD ,CMD_PAGE_PROGRAM (offset)); -for (i =1 ; i <EP_PAGE_SIZE /sizeof (u32); i++) -write_csr (dd,ASIC_EEP_DATA , data[i]); -/* will close the open page */ -return wait_for_not_busy (dd); -} - -/* -* Write length bytes starting at offset. Read from user address addr. -*/ -static int write_length (struct hfi1_devdata *dd,u32 start,u32 len,u64 addr) -{ -u32 offset; -u32 buffer[EP_PAGE_SIZE /sizeof (u32)]; -int ret =0 ; - -/* reject anything not on an EPROM page boundary */ -if ((start &EEP_PAGE_MASK ) || (len &EEP_PAGE_MASK )) -return -EINVAL ; - -write_enable (dd); - -for (offset =0 ; offset < len; offset +=EP_PAGE_SIZE ) { -if (copy_from_user (buffer, (void __user *)(addr + offset), -EP_PAGE_SIZE )) { - ret = -EFAULT ; - goto done; - } - ret =write_page (dd, start + offset, buffer); -if (ret) - goto done; - } - -done: -write_disable (dd); -return ret; -} - -/* convert an range composite to a length, in bytes */ -static inline u32 extract_rlen (u32 composite) -{ -return (composite &0xffff ) *EP_PAGE_SIZE ; -} - -/* convert an range composite to a start, in bytes */ -static inline u32 extract_rstart (u32 composite) -{ -return (composite >>16 ) *EP_PAGE_SIZE ; -} - -/* -* Perform the given operation on the EPROM. Called from user space. The -* user credentials have already been checked. -* -* Return 0 on success, -ERRNO on error -*/ -int handle_eprom_command (struct file *fp,const struct hfi1_cmd *cmd) -{ -struct hfi1_devdata *dd; -u32 dev_id; -u32 rlen;/* range length */ -u32 rstart;/* range start */ -int i_minor; -int ret =0 ; - -/* -* Map the device file to device data using the relative minor. -* The device file minor number is the unit number + 1. 0 is -* the generic device file - reject it. -*/ - i_minor =iminor (file_inode (fp)) -HFI1_USER_MINOR_BASE ; -if (i_minor <=0 ) -return -EINVAL ; - dd =hfi1_lookup (i_minor -1 ); -if (!dd) { -pr_err ("%s: cannot find unit %d!\n" , __func__, i_minor); -return -EINVAL ; - } - -/* some devices do not have an EPROM */ -if (!dd->eprom_available) -return -EOPNOTSUPP ; - - ret =acquire_chip_resource (dd,CR_EPROM ,EPROM_TIMEOUT ); -if (ret) { -dd_dev_err (dd,"%s: unable to acquire EPROM resource\n" , - __func__); - goto done_asic; - } - -dd_dev_info (dd,"%s: cmd: type %d, len 0x%x, addr 0x%016llx\n" , - __func__, cmd->type, cmd->len, cmd->addr); - -switch (cmd->type) { -case HFI1_CMD_EP_INFO : -if (cmd->len !=sizeof (u32)) { - ret = -ERANGE ; -break ; - } - dev_id =read_device_id (dd); -/* addr points to a u32 user buffer */ -if (copy_to_user ((void __user *)cmd->addr, &dev_id, -sizeof (u32))) - ret = -EFAULT ; -break ; - -case HFI1_CMD_EP_ERASE_CHIP : - ret =erase_chip (dd); -break ; - -case HFI1_CMD_EP_ERASE_RANGE : - rlen =extract_rlen (cmd->len); - rstart =extract_rstart (cmd->len); - ret =erase_range (dd, rstart, rlen); -break ; - -case HFI1_CMD_EP_READ_RANGE : - rlen =extract_rlen (cmd->len); - rstart =extract_rstart (cmd->len); - ret =read_length (dd, rstart, rlen, cmd->addr); -break ; - -case HFI1_CMD_EP_WRITE_RANGE : - rlen =extract_rlen (cmd->len); - rstart =extract_rstart (cmd->len); - ret =write_length (dd, rstart, rlen, cmd->addr); -break ; - -default : -dd_dev_err (dd,"%s: unexpected command %d\n" , - __func__, cmd->type); - ret = -EINVAL ; -break ; - } - -release_chip_resource (dd,CR_EPROM ); -done_asic: -return ret; -} -/* * Initialize the EPROM handler. */
drivers/staging/rdma/hfi1/file_ops.c +1 -21
@@ -182,8 +182,6 @@ static long hfi1_file_ioctl(struct file *fp, unsigned int cmd,struct hfi1_ctxtdata *uctxt = fd->uctxt;struct hfi1_user_info uinfo;struct hfi1_tid_info tinfo; -struct hfi1_cmd ucmd; -int uctxt_required =1 ;int ret =0 ;unsigned long addr;int uval =0 ;
@@ -196,25 +194,7 @@ static long hfi1_file_ioctl(struct file *fp, unsigned int cmd,hfi1_cdbg (IOCTL ,"IOCTL recv: 0x%x" , cmd); -switch (cmd) { -case HFI1_IOCTL_ASSIGN_CTXT : - uctxt_required =0 ;/* assigned user context not required */ -break ; -case HFI1_IOCTL_EP_INFO : -case HFI1_IOCTL_EP_ERASE_CHIP : -case HFI1_IOCTL_EP_ERASE_RANGE : -case HFI1_IOCTL_EP_READ_RANGE : -case HFI1_IOCTL_EP_WRITE_RANGE : -if (!capable (CAP_SYS_ADMIN )) -return -EPERM ; -if (copy_from_user (&ucmd, - (struct hfi11_cmd __user *)arg, -sizeof (ucmd))) -return -EFAULT ; -return handle_eprom_command (fp, &ucmd); - } - -if (uctxt_required && !uctxt) +if ((cmd !=HFI1_IOCTL_ASSIGN_CTXT ) && !uctxt)return -EINVAL ;/* Checked for root/context process the IOCTL */
include/uapi/rdma/hfi/hfi1_user.h +0 -24
@@ -126,13 +126,6 @@#define HFI1_CMD_SET_PKEY 11/* set context's pkey */ #define HFI1_CMD_CTXT_RESET 12/* reset context's HW send context */ #define HFI1_CMD_TID_INVAL_READ 13/* read TID cache invalidations */ -/* separate EPROM commands from normal PSM commands */ -#define HFI1_CMD_EP_INFO 64/* read EPROM device ID */ -#define HFI1_CMD_EP_ERASE_CHIP 65/* erase whole EPROM */ -/* range 66-74 no longer used */ -#define HFI1_CMD_EP_ERASE_RANGE 75/* erase EPROM range */ -#define HFI1_CMD_EP_READ_RANGE 76/* read EPROM range */ -#define HFI1_CMD_EP_WRITE_RANGE 77/* write EPROM range */ /* * User IOCTLs can not go above 128 if they do then see common.h and change the
@@ -165,16 +158,6 @@ struct hfi1_cmd; _IO(IB_IOCTL_MAGIC, HFI1_CMD_CTXT_RESET)#define HFI1_IOCTL_TID_INVAL_READ \ _IOWR(IB_IOCTL_MAGIC, HFI1_CMD_TID_INVAL_READ, struct hfi1_tid_info) -#define HFI1_IOCTL_EP_INFO \ - _IOWR(IB_IOCTL_MAGIC, HFI1_CMD_EP_INFO, struct hfi1_cmd) -#define HFI1_IOCTL_EP_ERASE_CHIP \ - _IOWR(IB_IOCTL_MAGIC, HFI1_CMD_EP_ERASE_CHIP, struct hfi1_cmd) -#define HFI1_IOCTL_EP_ERASE_RANGE \ - _IOWR(IB_IOCTL_MAGIC, HFI1_CMD_EP_ERASE_RANGE, struct hfi1_cmd) -#define HFI1_IOCTL_EP_READ_RANGE \ - _IOWR(IB_IOCTL_MAGIC, HFI1_CMD_EP_READ_RANGE, struct hfi1_cmd) -#define HFI1_IOCTL_EP_WRITE_RANGE \ - _IOWR(IB_IOCTL_MAGIC, HFI1_CMD_EP_WRITE_RANGE, struct hfi1_cmd)#define _HFI1_EVENT_FROZEN_BIT 0#define _HFI1_EVENT_LINKDOWN_BIT 1
@@ -274,13 +257,6 @@ struct hfi1_tid_info {__u32 length; }; -/* hfi1_cmd is used for EPROM commands only */ -struct hfi1_cmd { -__u32 type;/* command type */ -__u32 len;/* length of struct pointed to by add */ -__u64 addr;/* pointer to user structure */ -}; -enum hfi1_sdma_comp_state {FREE =0 ,QUEUED ,
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 4/6 IB/hfi1: Remove snoop/diag interface
In reply to a message not in the archiveThe snoop/diag interface is better served by an implementation which is more general and usable by other drivers perhaps. Go ahead and remove the code now and get rid of the char dev. We can put the feature back when we have a more agreeable solution.
--- drivers/staging/rdma/hfi1/Makefile | 2 drivers/staging/rdma/hfi1/diag.c | 1918 ---------------------------------- drivers/staging/rdma/hfi1/file_ops.c | 9 3 files changed, 2 insertions(+), 1927 deletions(-) delete mode 100644 drivers/staging/rdma/hfi1/diag.c
drivers/staging/rdma/hfi1/Makefile +1 -1
@@ -7,7 +7,7 @@ # obj-$(CONFIG_INFINIBAND_HFI1) += hfi1.o -hfi1-y := affinity.o chip.o device.o diag.o driver.o efivar.o \ +hfi1-y := affinity.o chip.o device.o driver.o efivar.o \ eprom.o file_ops.o firmware.o \ init.o intr.o mad.o mmu_rb.o pcie.o pio.o pio_copy.o platform.o \ qp.o qsfp.o rc.o ruc.o sdma.o sysfs.o trace.o twsi.o \
drivers/staging/rdma/hfi1/diag.c deleted +0 -1918
1,918 lines not on this page · raw message
drivers/staging/rdma/hfi1/file_ops.c +1 -8
@@ -1477,13 +1477,7 @@ static int user_add(struct hfi1_devdata *dd)*/ int hfi1_device_create (struct hfi1_devdata *dd) { -int r, ret; - - r =user_add (dd); - ret =hfi1_diag_add (dd); -if (r && !ret) - ret = r; -return ret; +return user_add (dd); }/*
@@ -1493,5 +1487,4 @@ int hfi1_device_create(struct hfi1_devdata *dd)void hfi1_device_remove (struct hfi1_devdata *dd) {user_remove (dd); -hfi1_diag_remove (dd); }
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 5/6 IB/hfi1: Remove anti-pattern in cdev init
In reply to a message not in the archiveRemove the usage of an anti-pattern goto in hfi1_cdev_init to improve code readability.
--- drivers/staging/rdma/hfi1/device.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-)
drivers/staging/rdma/hfi1/device.c +7 -7
@@ -82,13 +82,13 @@ int hfi1_cdev_init(int minor, const char *name,else device =device_create (class,NULL , dev,NULL ,"%s" , name); -if (!IS_ERR (device)) - goto done; - ret =PTR_ERR (device); - device =NULL ; -pr_err ("Could not create device for minor %d, %s (err %d)\n" , - minor, name, -ret); -cdev_del (cdev); +if (IS_ERR (device)) { + ret =PTR_ERR (device); + device =NULL ; +pr_err ("Could not create device for minor %d, %s (err %d)\n" , + minor, name, -ret); +cdev_del (cdev); + } done: *devp = device;return ret;
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 6/6 IB/hfi1: Move driver out of staging
In reply to a message not in the archiveThe TODO list for the hfi1 driver was completed during 4.6. In addition other objections raised (which are far beyond what was in the TODO list) have been addressed as well. It is now time to remove the driver from staging and into the drivers/infiniband sub-tree.
---
MAINTAINERS | 13 +++++++------
drivers/infiniband/Kconfig | 2 ++
drivers/infiniband/hw/Makefile | 1 +
drivers/infiniband/hw/hfi1/Kconfig | 0
drivers/infiniband/hw/hfi1/Makefile | 0
drivers/infiniband/hw/hfi1/affinity.c | 0
drivers/infiniband/hw/hfi1/affinity.h | 0
drivers/infiniband/hw/hfi1/aspm.h | 0
drivers/infiniband/hw/hfi1/chip.c | 0
drivers/infiniband/hw/hfi1/chip.h | 0
drivers/infiniband/hw/hfi1/chip_registers.h | 0
drivers/infiniband/hw/hfi1/common.h | 0
drivers/infiniband/hw/hfi1/debugfs.c | 0
drivers/infiniband/hw/hfi1/debugfs.h | 0
drivers/infiniband/hw/hfi1/device.c | 0
drivers/infiniband/hw/hfi1/device.h | 0
drivers/infiniband/hw/hfi1/dma.c | 0
drivers/infiniband/hw/hfi1/driver.c | 0
drivers/infiniband/hw/hfi1/efivar.c | 0
drivers/infiniband/hw/hfi1/efivar.h | 0
drivers/infiniband/hw/hfi1/eprom.c | 0
drivers/infiniband/hw/hfi1/eprom.h | 0
drivers/infiniband/hw/hfi1/file_ops.c | 0
drivers/infiniband/hw/hfi1/firmware.c | 0
drivers/infiniband/hw/hfi1/hfi.h | 0
drivers/infiniband/hw/hfi1/init.c | 0
drivers/infiniband/hw/hfi1/intr.c | 0
drivers/infiniband/hw/hfi1/iowait.h | 0
drivers/infiniband/hw/hfi1/mad.c | 0
drivers/infiniband/hw/hfi1/mad.h | 0
drivers/infiniband/hw/hfi1/mmu_rb.c | 0
drivers/infiniband/hw/hfi1/mmu_rb.h | 0
drivers/infiniband/hw/hfi1/opa_compat.h | 0
drivers/infiniband/hw/hfi1/pcie.c | 0
drivers/infiniband/hw/hfi1/pio.c | 0
drivers/infiniband/hw/hfi1/pio.h | 0
drivers/infiniband/hw/hfi1/pio_copy.c | 0
drivers/infiniband/hw/hfi1/platform.c | 0
drivers/infiniband/hw/hfi1/platform.h | 0
drivers/infiniband/hw/hfi1/qp.c | 0
drivers/infiniband/hw/hfi1/qp.h | 0
drivers/infiniband/hw/hfi1/qsfp.c | 0
drivers/infiniband/hw/hfi1/qsfp.h | 0
drivers/infiniband/hw/hfi1/rc.c | 0
drivers/infiniband/hw/hfi1/ruc.c | 0
drivers/infiniband/hw/hfi1/sdma.c | 0
drivers/infiniband/hw/hfi1/sdma.h | 0
drivers/infiniband/hw/hfi1/sdma_txreq.h | 0
drivers/infiniband/hw/hfi1/sysfs.c | 0
drivers/infiniband/hw/hfi1/trace.c | 0
drivers/infiniband/hw/hfi1/trace.h | 0
drivers/infiniband/hw/hfi1/twsi.c | 0
drivers/infiniband/hw/hfi1/twsi.h | 0
drivers/infiniband/hw/hfi1/uc.c | 0
drivers/infiniband/hw/hfi1/ud.c | 0
drivers/infiniband/hw/hfi1/user_exp_rcv.c | 0
drivers/infiniband/hw/hfi1/user_exp_rcv.h | 0
drivers/infiniband/hw/hfi1/user_pages.c | 0
drivers/infiniband/hw/hfi1/user_sdma.c | 0
drivers/infiniband/hw/hfi1/user_sdma.h | 0
drivers/infiniband/hw/hfi1/verbs.c | 0
drivers/infiniband/hw/hfi1/verbs.h | 0
drivers/infiniband/hw/hfi1/verbs_txreq.c | 0
drivers/infiniband/hw/hfi1/verbs_txreq.h | 0
drivers/staging/rdma/Kconfig | 2 --
drivers/staging/rdma/Makefile | 1 -
drivers/staging/rdma/hfi1/TODO | 6 ------
67 files changed, 10 insertions(+), 15 deletions(-)
rename drivers/{staging/rdma/hfi1/Kconfig => infiniband/hw/hfi1/Kconfig} (100%)
rename drivers/{staging/rdma/hfi1/Makefile => infiniband/hw/hfi1/Makefile} (100%)
rename drivers/{staging/rdma/hfi1/affinity.c => infiniband/hw/hfi1/affinity.c} (100%)
rename drivers/{staging/rdma/hfi1/affinity.h => infiniband/hw/hfi1/affinity.h} (100%)
rename drivers/{staging/rdma/hfi1/aspm.h => infiniband/hw/hfi1/aspm.h} (100%)
rename drivers/{staging/rdma/hfi1/chip.c => infiniband/hw/hfi1/chip.c} (100%)
rename drivers/{staging/rdma/hfi1/chip.h => infiniband/hw/hfi1/chip.h} (100%)
rename drivers/{staging/rdma/hfi1/chip_registers.h => infiniband/hw/hfi1/chip_registers.h} (100%)
rename drivers/{staging/rdma/hfi1/common.h => infiniband/hw/hfi1/common.h} (100%)
rename drivers/{staging/rdma/hfi1/debugfs.c => infiniband/hw/hfi1/debugfs.c} (100%)
rename drivers/{staging/rdma/hfi1/debugfs.h => infiniband/hw/hfi1/debugfs.h} (100%)
rename drivers/{staging/rdma/hfi1/device.c => infiniband/hw/hfi1/device.c} (100%)
rename drivers/{staging/rdma/hfi1/device.h => infiniband/hw/hfi1/device.h} (100%)
rename drivers/{staging/rdma/hfi1/dma.c => infiniband/hw/hfi1/dma.c} (100%)
rename drivers/{staging/rdma/hfi1/driver.c => infiniband/hw/hfi1/driver.c} (100%)
rename drivers/{staging/rdma/hfi1/efivar.c => infiniband/hw/hfi1/efivar.c} (100%)
rename drivers/{staging/rdma/hfi1/efivar.h => infiniband/hw/hfi1/efivar.h} (100%)
rename drivers/{staging/rdma/hfi1/eprom.c => infiniband/hw/hfi1/eprom.c} (100%)
rename drivers/{staging/rdma/hfi1/eprom.h => infiniband/hw/hfi1/eprom.h} (100%)
rename drivers/{staging/rdma/hfi1/file_ops.c => infiniband/hw/hfi1/file_ops.c} (100%)
rename drivers/{staging/rdma/hfi1/firmware.c => infiniband/hw/hfi1/firmware.c} (100%)
rename drivers/{staging/rdma/hfi1/hfi.h => infiniband/hw/hfi1/hfi.h} (100%)
rename drivers/{staging/rdma/hfi1/init.c => infiniband/hw/hfi1/init.c} (100%)
rename drivers/{staging/rdma/hfi1/intr.c => infiniband/hw/hfi1/intr.c} (100%)
rename drivers/{staging/rdma/hfi1/iowait.h => infiniband/hw/hfi1/iowait.h} (100%)
rename drivers/{staging/rdma/hfi1/mad.c => infiniband/hw/hfi1/mad.c} (100%)
rename drivers/{staging/rdma/hfi1/mad.h => infiniband/hw/hfi1/mad.h} (100%)
rename drivers/{staging/rdma/hfi1/mmu_rb.c => infiniband/hw/hfi1/mmu_rb.c} (100%)
rename drivers/{staging/rdma/hfi1/mmu_rb.h => infiniband/hw/hfi1/mmu_rb.h} (100%)
rename drivers/{staging/rdma/hfi1/opa_compat.h => infiniband/hw/hfi1/opa_compat.h} (100%)
rename drivers/{staging/rdma/hfi1/pcie.c => infiniband/hw/hfi1/pcie.c} (100%)
rename drivers/{staging/rdma/hfi1/pio.c => infiniband/hw/hfi1/pio.c} (100%)
rename drivers/{staging/rdma/hfi1/pio.h => infiniband/hw/hfi1/pio.h} (100%)
rename drivers/{staging/rdma/hfi1/pio_copy.c => infiniband/hw/hfi1/pio_copy.c} (100%)
rename drivers/{staging/rdma/hfi1/platform.c => infiniband/hw/hfi1/platform.c} (100%)
rename drivers/{staging/rdma/hfi1/platform.h => infiniband/hw/hfi1/platform.h} (100%)
rename drivers/{staging/rdma/hfi1/qp.c => infiniband/hw/hfi1/qp.c} (100%)
rename drivers/{staging/rdma/hfi1/qp.h => infiniband/hw/hfi1/qp.h} (100%)
rename drivers/{staging/rdma/hfi1/qsfp.c => infiniband/hw/hfi1/qsfp.c} (100%)
rename drivers/{staging/rdma/hfi1/qsfp.h => infiniband/hw/hfi1/qsfp.h} (100%)
rename drivers/{staging/rdma/hfi1/rc.c => infiniband/hw/hfi1/rc.c} (100%)
rename drivers/{staging/rdma/hfi1/ruc.c => infiniband/hw/hfi1/ruc.c} (100%)
rename drivers/{staging/rdma/hfi1/sdma.c => infiniband/hw/hfi1/sdma.c} (100%)
rename drivers/{staging/rdma/hfi1/sdma.h => infiniband/hw/hfi1/sdma.h} (100%)
rename drivers/{staging/rdma/hfi1/sdma_txreq.h => infiniband/hw/hfi1/sdma_txreq.h} (100%)
rename drivers/{staging/rdma/hfi1/sysfs.c => infiniband/hw/hfi1/sysfs.c} (100%)
rename drivers/{staging/rdma/hfi1/trace.c => infiniband/hw/hfi1/trace.c} (100%)
rename drivers/{staging/rdma/hfi1/trace.h => infiniband/hw/hfi1/trace.h} (100%)
rename drivers/{staging/rdma/hfi1/twsi.c => infiniband/hw/hfi1/twsi.c} (100%)
rename drivers/{staging/rdma/hfi1/twsi.h => infiniband/hw/hfi1/twsi.h} (100%)
rename drivers/{staging/rdma/hfi1/uc.c => infiniband/hw/hfi1/uc.c} (100%)
rename drivers/{staging/rdma/hfi1/ud.c => infiniband/hw/hfi1/ud.c} (100%)
rename drivers/{staging/rdma/hfi1/user_exp_rcv.c => infiniband/hw/hfi1/user_exp_rcv.c} (100%)
rename drivers/{staging/rdma/hfi1/user_exp_rcv.h => infiniband/hw/hfi1/user_exp_rcv.h} (100%)
rename drivers/{staging/rdma/hfi1/user_pages.c => infiniband/hw/hfi1/user_pages.c} (100%)
rename drivers/{staging/rdma/hfi1/user_sdma.c => infiniband/hw/hfi1/user_sdma.c} (100%)
rename drivers/{staging/rdma/hfi1/user_sdma.h => infiniband/hw/hfi1/user_sdma.h} (100%)
rename drivers/{staging/rdma/hfi1/verbs.c => infiniband/hw/hfi1/verbs.c} (100%)
rename drivers/{staging/rdma/hfi1/verbs.h => infiniband/hw/hfi1/verbs.h} (100%)
rename drivers/{staging/rdma/hfi1/verbs_txreq.c => infiniband/hw/hfi1/verbs_txreq.c} (100%)
rename drivers/{staging/rdma/hfi1/verbs_txreq.h => infiniband/hw/hfi1/verbs_txreq.h} (100%)
delete mode 100644 drivers/staging/rdma/hfi1/TODOMAINTAINERS +7 -6
@@ -5086,6 +5086,13 @@ F: drivers/block/cciss* F: include/linux/cciss_ioctl.h F: include/uapi/linux/cciss_ioctl.h +HFI1 DRIVER +M: Mike Marciniszyn <[email protected]> +M: Dennis Dalessandro <[email protected]> +L: [email protected] +S: Supported +F: drivers/infiniband/hw/hfi1 + HFS FILESYSTEM L: [email protected] S: Orphan
@@ -10661,12 +10668,6 @@ M: Arnaud Patard <[email protected]> S: Odd Fixes F: drivers/staging/xgifb/ -HFI1 DRIVER -M: Mike Marciniszyn <[email protected]> -L: [email protected] -S: Supported -F: drivers/staging/rdma/hfi1 - STARFIRE/DURALAN NETWORK DRIVER M: Ion Badulescu <ionut-Rv4seVrz/[email protected]> S: Odd Fixes
drivers/infiniband/Kconfig +2 -0
@@ -85,4 +85,6 @@ source "drivers/infiniband/ulp/isert/Kconfig" source "drivers/infiniband/sw/rdmavt/Kconfig" +source "drivers/infiniband/hw/hfi1/Kconfig" + endif # INFINIBAND
drivers/infiniband/hw/Makefile +1 -0
@@ -8,3 +8,4 @@ obj-$(CONFIG_MLX5_INFINIBAND) += mlx5/ obj-$(CONFIG_INFINIBAND_NES) += nes/ obj-$(CONFIG_INFINIBAND_OCRDMA) += ocrdma/ obj-$(CONFIG_INFINIBAND_USNIC) += usnic/ +obj-$(CONFIG_INFINIBAND_HFI1) += hfi1/
drivers/infiniband/hw/hfi1/Kconfig renamed from drivers/staging/rdma/hfi1/Kconfig +0 -0
drivers/infiniband/hw/hfi1/Makefile renamed from drivers/staging/rdma/hfi1/Makefile +0 -0
drivers/infiniband/hw/hfi1/affinity.c renamed from drivers/staging/rdma/hfi1/affinity.c +0 -0
drivers/infiniband/hw/hfi1/affinity.h renamed from drivers/staging/rdma/hfi1/affinity.h +0 -0
drivers/infiniband/hw/hfi1/aspm.h renamed from drivers/staging/rdma/hfi1/aspm.h +0 -0
drivers/infiniband/hw/hfi1/chip.c renamed from drivers/staging/rdma/hfi1/chip.c +0 -0
drivers/infiniband/hw/hfi1/chip.h renamed from drivers/staging/rdma/hfi1/chip.h +0 -0
drivers/infiniband/hw/hfi1/chip_registers.h renamed from drivers/staging/rdma/hfi1/chip_registers.h +0 -0
drivers/infiniband/hw/hfi1/common.h renamed from drivers/staging/rdma/hfi1/common.h +0 -0
drivers/infiniband/hw/hfi1/debugfs.c renamed from drivers/staging/rdma/hfi1/debugfs.c +0 -0
drivers/infiniband/hw/hfi1/debugfs.h renamed from drivers/staging/rdma/hfi1/debugfs.h +0 -0
drivers/infiniband/hw/hfi1/device.c renamed from drivers/staging/rdma/hfi1/device.c +0 -0
drivers/infiniband/hw/hfi1/device.h renamed from drivers/staging/rdma/hfi1/device.h +0 -0
drivers/infiniband/hw/hfi1/dma.c renamed from drivers/staging/rdma/hfi1/dma.c +0 -0
drivers/infiniband/hw/hfi1/driver.c renamed from drivers/staging/rdma/hfi1/driver.c +0 -0
drivers/infiniband/hw/hfi1/efivar.c renamed from drivers/staging/rdma/hfi1/efivar.c +0 -0
drivers/infiniband/hw/hfi1/efivar.h renamed from drivers/staging/rdma/hfi1/efivar.h +0 -0
drivers/infiniband/hw/hfi1/eprom.c renamed from drivers/staging/rdma/hfi1/eprom.c +0 -0
drivers/infiniband/hw/hfi1/eprom.h renamed from drivers/staging/rdma/hfi1/eprom.h +0 -0
drivers/infiniband/hw/hfi1/file_ops.c renamed from drivers/staging/rdma/hfi1/file_ops.c +0 -0
drivers/infiniband/hw/hfi1/firmware.c renamed from drivers/staging/rdma/hfi1/firmware.c +0 -0
drivers/infiniband/hw/hfi1/hfi.h renamed from drivers/staging/rdma/hfi1/hfi.h +0 -0
drivers/infiniband/hw/hfi1/init.c renamed from drivers/staging/rdma/hfi1/init.c +0 -0
drivers/infiniband/hw/hfi1/intr.c renamed from drivers/staging/rdma/hfi1/intr.c +0 -0
drivers/infiniband/hw/hfi1/iowait.h renamed from drivers/staging/rdma/hfi1/iowait.h +0 -0
drivers/infiniband/hw/hfi1/mad.c renamed from drivers/staging/rdma/hfi1/mad.c +0 -0
drivers/infiniband/hw/hfi1/mad.h renamed from drivers/staging/rdma/hfi1/mad.h +0 -0
drivers/infiniband/hw/hfi1/mmu_rb.c renamed from drivers/staging/rdma/hfi1/mmu_rb.c +0 -0
drivers/infiniband/hw/hfi1/mmu_rb.h renamed from drivers/staging/rdma/hfi1/mmu_rb.h +0 -0
drivers/infiniband/hw/hfi1/opa_compat.h renamed from drivers/staging/rdma/hfi1/opa_compat.h +0 -0
drivers/infiniband/hw/hfi1/pcie.c renamed from drivers/staging/rdma/hfi1/pcie.c +0 -0
drivers/infiniband/hw/hfi1/pio.c renamed from drivers/staging/rdma/hfi1/pio.c +0 -0
drivers/infiniband/hw/hfi1/pio.h renamed from drivers/staging/rdma/hfi1/pio.h +0 -0
drivers/infiniband/hw/hfi1/pio_copy.c renamed from drivers/staging/rdma/hfi1/pio_copy.c +0 -0
drivers/infiniband/hw/hfi1/platform.c renamed from drivers/staging/rdma/hfi1/platform.c +0 -0
drivers/infiniband/hw/hfi1/platform.h renamed from drivers/staging/rdma/hfi1/platform.h +0 -0
drivers/infiniband/hw/hfi1/qp.c renamed from drivers/staging/rdma/hfi1/qp.c +0 -0
drivers/infiniband/hw/hfi1/qp.h renamed from drivers/staging/rdma/hfi1/qp.h +0 -0
drivers/infiniband/hw/hfi1/qsfp.c renamed from drivers/staging/rdma/hfi1/qsfp.c +0 -0
drivers/infiniband/hw/hfi1/qsfp.h renamed from drivers/staging/rdma/hfi1/qsfp.h +0 -0
drivers/infiniband/hw/hfi1/rc.c renamed from drivers/staging/rdma/hfi1/rc.c +0 -0
drivers/infiniband/hw/hfi1/ruc.c renamed from drivers/staging/rdma/hfi1/ruc.c +0 -0
drivers/infiniband/hw/hfi1/sdma.c renamed from drivers/staging/rdma/hfi1/sdma.c +0 -0
drivers/infiniband/hw/hfi1/sdma.h renamed from drivers/staging/rdma/hfi1/sdma.h +0 -0
drivers/infiniband/hw/hfi1/sdma_txreq.h renamed from drivers/staging/rdma/hfi1/sdma_txreq.h +0 -0
drivers/infiniband/hw/hfi1/sysfs.c renamed from drivers/staging/rdma/hfi1/sysfs.c +0 -0
drivers/infiniband/hw/hfi1/trace.c renamed from drivers/staging/rdma/hfi1/trace.c +0 -0
drivers/infiniband/hw/hfi1/trace.h renamed from drivers/staging/rdma/hfi1/trace.h +0 -0
drivers/infiniband/hw/hfi1/twsi.c renamed from drivers/staging/rdma/hfi1/twsi.c +0 -0
drivers/infiniband/hw/hfi1/twsi.h renamed from drivers/staging/rdma/hfi1/twsi.h +0 -0
drivers/infiniband/hw/hfi1/uc.c renamed from drivers/staging/rdma/hfi1/uc.c +0 -0
drivers/infiniband/hw/hfi1/ud.c renamed from drivers/staging/rdma/hfi1/ud.c +0 -0
drivers/infiniband/hw/hfi1/user_exp_rcv.c renamed from drivers/staging/rdma/hfi1/user_exp_rcv.c +0 -0
drivers/infiniband/hw/hfi1/user_exp_rcv.h renamed from drivers/staging/rdma/hfi1/user_exp_rcv.h +0 -0
drivers/infiniband/hw/hfi1/user_pages.c renamed from drivers/staging/rdma/hfi1/user_pages.c +0 -0
drivers/infiniband/hw/hfi1/user_sdma.c renamed from drivers/staging/rdma/hfi1/user_sdma.c +0 -0
drivers/infiniband/hw/hfi1/user_sdma.h renamed from drivers/staging/rdma/hfi1/user_sdma.h +0 -0
drivers/infiniband/hw/hfi1/verbs.c renamed from drivers/staging/rdma/hfi1/verbs.c +0 -0
drivers/infiniband/hw/hfi1/verbs.h renamed from drivers/staging/rdma/hfi1/verbs.h +0 -0
drivers/infiniband/hw/hfi1/verbs_txreq.c renamed from drivers/staging/rdma/hfi1/verbs_txreq.c +0 -0
drivers/infiniband/hw/hfi1/verbs_txreq.h renamed from drivers/staging/rdma/hfi1/verbs_txreq.h +0 -0
drivers/staging/rdma/Kconfig +0 -2
@@ -22,6 +22,4 @@ menuconfig STAGING_RDMA # Please keep entries in alphabetic order if STAGING_RDMA -source "drivers/staging/rdma/hfi1/Kconfig" - endif
drivers/staging/rdma/Makefile +0 -1
@@ -1,2 +1 @@ # Entries for RDMA_STAGING tree -obj-$(CONFIG_INFINIBAND_HFI1) += hfi1/
drivers/staging/rdma/hfi1/TODO deleted +0 -6
@@ -1,6 +0,0 @@ -July, 2015 - -- Remove unneeded file entries in sysfs -- Remove software processing of IB protocol and place in library for use - by qib, ipath (if still present), hfi1, and eventually soft-roce -- Replace incorrect uAPI
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 5 lines · Dennis Dalessandro
We realize there is still an on-going effort to redo the verbs uAPI and understand that may have an impact on our use of the
/dev/hfi1_xcdevs and are looking forward to working with the community on that front. However we do not believe that alone should hold the hfi1 driver in staging.
There are the same believe for RSS and Selinux patches.
Quoted 37 lines · Dennis Dalessandro
Based on feedback we have received during review of recent hfi1 driver patches
[1] we have decided to go ahead and remove the driver specific character devices for the UI and snoop/diag. Furthermore we remove the EPROM specific code since we have discovered a way to do this sort of stuff from user space.This series also removes the multi-purpose hfi1 cdev. We still maintain a per hfi cdev (
/dev/hfi1_x) but the/dev/hfi1cdev has been removed.The write()/writev() problem [2] has been addressed in a patch series previously posted and resubmitted just prior to this.
Since the hfi1 TODO file is complete and we have removed the parts of the code which have drawn the most ire from the community list we believe it is now fair to let the driver move out of staging and into the mainline. We will work with the community to get back the features that have been removed as separate patches that can be more easily reviewed and commented on.
We realize there is still an on-going effort to redo the verbs uAPI and understand that may have an impact on our use of the
/dev/hfi1_xcdevs and are looking forward to working with the community on that front. However we do not believe that alone should hold the hfi1 driver in staging.There is one other aspect that has been called out, which is the driver's use of twsi code. We are currently working on a patch set to address that which will hopefully be out soon, but want to get this on the mailing list for comments rather than wait.
[1] https://www.spinics.net/lists/linux-rdma/msg35319.html
[2] https://www.spinics.net/lists/linux-rdma/msg34451.htmlThis patch series applies on Doug's k.o/for-4.7 branch.
Patches can also be viewed in my repo at:
https://github.com/ddalessa/kernel/tree/for-4.7---
Quoted 7 lines
Dennis Dalessandro (6):
IB/hfi1: Remove multiple device cdev IB/hfi1: Remove UI char device
IB/hfi1: Remove EPROM functionality from data device IB/hfi1: Remove snoop/diag interface IB/hfi1: Remove anti-pattern in cdev init IB/hfi1: Move driver out of staging
I've delayed this until after the respin of this and the ioctl switch series.
Signature · 2 lines
Doug Ledford <[email protected]> GPG KeyID: 0E572FDD