staging/rdma/hfi1,IB/rdmavt: Misc bug fixes
Subsystems (3)
cover staging/rdma/hfi1,IB/rdmavt: Misc bug fixes
These patches fix a few issues in the hfi1 driver as well as a 0-day build error that was caught on my public GitHub tree.
Patch series applies on the recent "checkpatch fixes" series for hfi1. It can also be seen on GitHub at: https://github.com/ddalessa/kernel/tree/for-4.6.
---
Dean Luick (5):
staging/rdma/hfi1: Fix xmit discard error weight staging/rdma/hfi1: Fix debugfs access race staging/rdma/hfi1: Disclose more information when i2c fails staging/rdma/hfi1: Guard i2c access against cp staging/rdma/hfi1: Fix counter read for cp
Easwar Hariharan (1):
staging/rdma/hfi1: Cleanup comments and logs in PHY code
Mike Marciniszyn (2):
staging/rdma/hfi1: fix 0-day syntax error
IB/rdamvt: fix cross build with rdmavt
drivers/infiniband/sw/rdmavt/vt.c | 2 + drivers/staging/rdma/hfi1/chip.c | 67 +++++++++++++++++------------------ drivers/staging/rdma/hfi1/chip.h | 6 +-- drivers/staging/rdma/hfi1/debugfs.c | 39 +++++++++++++------- drivers/staging/rdma/hfi1/init.c | 9 +++-- drivers/staging/rdma/hfi1/qsfp.c | 46 +++++++++++------------- drivers/staging/rdma/hfi1/sdma.c | 6 ++- 7 files changed, 91 insertions(+), 84 deletions(-)
Signature · 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
PATCH 1/8 staging/rdma/hfi1: fix 0-day syntax error
In reply to a message not in the archiveFrom: Mike Marciniszyn <[email protected]>
Setting CONFIG_HFI1_DEBUG_SDMA_ORDER causes a syntax error:sdma.c: In function ‘complete_tx’:
sdma.c:370: error: ‘txp’ undeclared (first use in
this function)
sdma.c:370: error: (Each undeclared identifier is reported only once sdma.c:370: error: for each function it appears in.)
Adjust code under ifdef to reference the tx properly.
--- drivers/staging/rdma/hfi1/sdma.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/rdma/hfi1/sdma.c +3 -3
@@ -367,10 +367,10 @@ static inline void complete_tx(struct sdma_engine *sde,callback_t complete = tx->complete;#ifdef CONFIG_HFI1_DEBUG_SDMA_ORDER -trace_hfi1_sdma_out_sn (sde, txp->sn); -if (WARN_ON_ONCE (sde->head_sn != txp->sn)) +trace_hfi1_sdma_out_sn (sde, tx->sn); +if (WARN_ON_ONCE (sde->head_sn != tx->sn))dd_dev_err (sde->dd,"expected %llu got %llu\n" , - sde->head_sn, txp->sn); + sde->head_sn, tx->sn); sde->head_sn++;#endif sdma_txclean (sde->dd, tx);
--
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/8 staging/rdma/hfi1: Fix xmit discard error weight
In reply to a message not in the archiveFrom: Dean Luick <[email protected]>
Count only the errors that apply to xmit discards. Update the comment to better explain the limitations of the count.
--- drivers/staging/rdma/hfi1/chip.c | 26 +++++++++++++++++++++----- 1 files changed, 21 insertions(+), 5 deletions(-)
drivers/staging/rdma/hfi1/chip.c +21 -5
@@ -5566,12 +5566,28 @@ static void handle_send_egress_err_info(struct hfi1_devdata *dd,int weight, i;/* -* Count all, in case multiple bits are set. Reminder: -* since there is only one info register for many sources, -* these may be attributed to the wrong VL if they occur -* too close together. +* Count all applicable bits as individual errors and +* attribute them to the packet that triggered this handler. +* This may not be completely accurate due to limitations +* on the available hardware error information. There is +* a single information register and any number of error +* packets may have occurred and contributed to it before +* this routine is called. This means that: +* a) If multiple packets with the same error occur before +* this routine is called, earlier packets are missed. +* There is only a single bit for each error type. +* b) Errors may not be attributed to the correct VL. +* The driver is attributing all bits in the info register +* to the packet that triggered this call, but bits +* could be an accumulation of different packets with +* different VLs. +* c) A single error packet may have multiple counts attached +* to it. There is no way for the driver to know if +* multiple bits set in the info register are due to a +* single packet or multiple packets. The driver assumes +* multiple packets. */ - weight =hweight64 (info); + weight =hweight64 (info &PORT_DISCARD_EGRESS_ERRS );for (i =0 ; i < weight; i++) {__count_port_discards (ppd);if (vl >=0 && vl <TXE_NUM_DATA_VL )
--
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/8 staging/rdma/hfi1: Cleanup comments and logs in PHY code
In reply to a message not in the archiveFrom: Easwar Hariharan <[email protected]>
This is a set of minor fixes including comment and log message cleanups and improvements to the PHY layer code.
--- drivers/staging/rdma/hfi1/chip.c | 11 +++++++---- drivers/staging/rdma/hfi1/qsfp.c | 4 ++-- 2 files changed, 9 insertions(+), 6 deletions(-)
drivers/staging/rdma/hfi1/chip.c +7 -4
@@ -5946,10 +5946,10 @@ static void handle_qsfp_int(struct hfi1_devdata *dd, u32 src_ctx, u64 reg)u64 qsfp_int_mgmt = (u64)(QSFP_HFI0_INT_N |QSFP_HFI0_MODPRST_N );if (reg &QSFP_HFI0_MODPRST_N ) { -dd_dev_info (dd,"%s: ModPresent triggered QSFP interrupt\n" , - __func__); -if (!qsfp_mod_present (ppd)) { +dd_dev_info (dd,"%s: QSFP module removed\n" , + __func__); + ppd->driver_link_ready =0 ;/* * Cable removed, reset all our information about the
@@ -5989,6 +5989,9 @@ static void handle_qsfp_int(struct hfi1_devdata *dd, u32 src_ctx, u64 reg)queue_work (ppd->hfi1_wq, &ppd->link_down_work); } }else { +dd_dev_info (dd,"%s: QSFP module inserted\n" , + __func__); +spin_lock_irqsave (&ppd->qsfp_info.qsfp_lock, flags); ppd->qsfp_info.cache_valid =0 ; ppd->qsfp_info.cache_refresh_required =1 ;
@@ -6009,7 +6012,7 @@ static void handle_qsfp_int(struct hfi1_devdata *dd, u32 src_ctx, u64 reg) }if (reg &QSFP_HFI0_INT_N ) { -dd_dev_info (dd,"%s: IntN triggered QSFP interrupt\n" , +dd_dev_info (dd,"%s: Interrupt received from QSFP module\n" , __func__);spin_lock_irqsave (&ppd->qsfp_info.qsfp_lock, flags); ppd->qsfp_info.check_interrupt_flags =1 ;
drivers/staging/rdma/hfi1/qsfp.c +2 -2
@@ -187,7 +187,7 @@ done:/* * Write page n, offset m of QSFP memory as defined by SFF 8636 -* in the cache by writing @addr = ((256 * n) + m) +* by writing @addr = ((256 * n) + m) */ int qsfp_write (struct hfi1_pportdata *ppd,u32 target,int addr,void *bp,int len)
@@ -253,7 +253,7 @@ int qsfp_write(struct hfi1_pportdata *ppd, u32 target, int addr, void *bp,/* * Access page n, offset m of QSFP memory as defined by SFF 8636 -* in the cache by reading @addr = ((256 * n) + m) +* by reading @addr = ((256 * n) + m) */ int qsfp_read (struct hfi1_pportdata *ppd,u32 target,int addr,void *bp,int len)
--
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/8 staging/rdma/hfi1: Fix debugfs access race
In reply to a message not in the archiveFrom: Dean Luick <[email protected]>
Debugfs access races with the driver being ready. Make sure the driver is ready before debugfs files appear and debufs files are gone before the driver starts tearing down.
--- drivers/staging/rdma/hfi1/init.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-)
drivers/staging/rdma/hfi1/init.c +6 -3
@@ -983,7 +983,6 @@ void hfi1_free_devdata(struct hfi1_devdata *dd)list_del (&dd->list);spin_unlock_irqrestore (&hfi1_devs_lock, flags);free_platform_config (dd); -hfi1_dbg_ibdev_exit (&dd->verbs_dev);rcu_barrier ();/* wait for rcu callbacks to complete */ free_percpu (dd->int_counter);free_percpu (dd->rcv_limit);
@@ -1088,7 +1087,6 @@ struct hfi1_devdata *hfi1_alloc_devdata(struct pci_dev *pdev, size_t extra) &pdev->dev, "Could not alloc cpulist info, cpu affinity might be wrong\n"); } -hfi1_dbg_ibdev_init (&dd->verbs_dev);return dd; bail:
@@ -1445,8 +1443,11 @@ static int init_one(struct pci_dev *pdev, const struct pci_device_id *ent)* we still create devices, so diags, etc. can be used * to determine cause of problem. */ -if (!initfail && !ret) +if (!initfail && !ret) { dd->flags |=HFI1_INITTED ; +/* create debufs files after init and ib register */ +hfi1_dbg_ibdev_init (&dd->verbs_dev); + } j =hfi1_device_create (dd);if (j)
@@ -1487,6 +1488,8 @@ static void remove_one(struct pci_dev *pdev) {struct hfi1_devdata *dd =pci_get_drvdata (pdev); +/* close debugfs files before ib unregister */ +hfi1_dbg_ibdev_exit (&dd->verbs_dev);/* unregister from IB core */ hfi1_unregister_ib_device (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/8 staging/rdma/hfi1: Disclose more information when i2c fails
In reply to a message not in the archiveFrom: Dean Luick <[email protected]>
Improve logging messages when there are i2c failures. Clean i2c read error handling.
--- drivers/staging/rdma/hfi1/qsfp.c | 42 ++++++++++++++++++-------------------- 1 files changed, 20 insertions(+), 22 deletions(-)
drivers/staging/rdma/hfi1/qsfp.c +20 -22
@@ -102,7 +102,8 @@ int i2c_write(struct hfi1_pportdata *ppd, u32 target, int i2c_addr, int offset, ret =hfi1_twsi_reset (ppd->dd, target);if (ret) {hfi1_dev_porterr (ppd->dd, ppd->port, -"I2C write interface reset failed\n" ); +"I2C chain %d write interface reset failed\n" , + target); goto done; }
@@ -121,15 +122,14 @@ static int __i2c_read(struct hfi1_pportdata *ppd, u32 target, int i2c_addr, {struct hfi1_devdata *dd = ppd->dd;int ret, cnt, pass =0 ; -int stuck =0 ; -u8 *buff = bp; +int orig_offset = offset; cnt =0 ;while (cnt < len) {int rlen = len - cnt; ret =hfi1_twsi_blk_rd (dd, target, i2c_addr, offset, - buff + cnt, rlen); + bp + cnt, rlen);/* Some QSFP's fail first try. Retry as experiment */ if (ret && cnt ==0 && ++pass <I2C_MAX_RETRY )continue ;
@@ -145,14 +145,11 @@ static int __i2c_read(struct hfi1_pportdata *ppd, u32 target, int i2c_addr, ret = cnt; exit: -if (stuck) -dd_dev_err (dd,"I2C interface bus stuck non-idle\n" ); - -if (pass >=I2C_MAX_RETRY && ret) +if (ret <0 ) {hfi1_dev_porterr (dd, ppd->port, -"I2C failed even retrying\n" ); -else if (pass) -hfi1_dev_porterr (dd, ppd->port,"I2C retries: %d\n" , pass); +"I2C chain %d read failed, addr 0x%x, offset 0x%x, len %d\n" , + target, i2c_addr, orig_offset, len); + }/* Must wait min 20us between qsfp i2c transactions */ udelay (20 );
@@ -174,7 +171,8 @@ int i2c_read(struct hfi1_pportdata *ppd, u32 target, int i2c_addr, int offset, ret =hfi1_twsi_reset (ppd->dd, target);if (ret) {hfi1_dev_porterr (ppd->dd, ppd->port, -"I2C read interface reset failed\n" ); +"I2C chain %d read interface reset failed\n" , + target); goto done; }
@@ -206,7 +204,8 @@ int qsfp_write(struct hfi1_pportdata *ppd, u32 target, int addr, void *bp, ret =hfi1_twsi_reset (ppd->dd, target);if (ret) {hfi1_dev_porterr (ppd->dd, ppd->port, -"QSFP write interface reset failed\n" ); +"QSFP chain %d write interface reset failed\n" , + target);mutex_unlock (&ppd->dd->qsfp_i2c_mutex);return ret; }
@@ -221,10 +220,9 @@ int qsfp_write(struct hfi1_pportdata *ppd, u32 target, int addr, void *bp, ret =__i2c_write (ppd, target,QSFP_DEV |QSFP_OFFSET_SIZE ,QSFP_PAGE_SELECT_BYTE_OFFS , &page,1 );if (ret !=1 ) { -hfi1_dev_porterr ( - ppd->dd, - ppd->port, -"can't write QSFP_PAGE_SELECT_BYTE: %d\n" , ret); +hfi1_dev_porterr (ppd->dd, ppd->port, +"QSFP chain %d can't write QSFP_PAGE_SELECT_BYTE: %d\n" , + target, ret); ret = -EIO ;break ; }
@@ -272,7 +270,8 @@ int qsfp_read(struct hfi1_pportdata *ppd, u32 target, int addr, void *bp, ret =hfi1_twsi_reset (ppd->dd, target);if (ret) {hfi1_dev_porterr (ppd->dd, ppd->port, -"QSFP read interface reset failed\n" ); +"QSFP chain %d read interface reset failed\n" , + target);mutex_unlock (&ppd->dd->qsfp_i2c_mutex);return ret; }
@@ -286,10 +285,9 @@ int qsfp_read(struct hfi1_pportdata *ppd, u32 target, int addr, void *bp, ret =__i2c_write (ppd, target,QSFP_DEV |QSFP_OFFSET_SIZE ,QSFP_PAGE_SELECT_BYTE_OFFS , &page,1 );if (ret !=1 ) { -hfi1_dev_porterr ( - ppd->dd, - ppd->port, -"can't write QSFP_PAGE_SELECT_BYTE: %d\n" , ret); +hfi1_dev_porterr (ppd->dd, ppd->port, +"QSFP chain %d can't write QSFP_PAGE_SELECT_BYTE: %d\n" , + target, ret); ret = -EIO ;break ; }
--
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/8 IB/rdamvt: fix cross build with rdmavt
In reply to a message not in the archiveFrom: Mike Marciniszyn <[email protected]>
The new check routine causes a larger than supported frame size on s390.
Changing the check routine to noinline fixes the issue.
--- drivers/infiniband/sw/rdmavt/vt.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/infiniband/sw/rdmavt/vt.c +1 -1
@@ -383,7 +383,7 @@ static inline int check_driver_override(struct rvt_dev_info *rdi,return 1 ; } -static int check_support (struct rvt_dev_info *rdi,int verb) +static noinline int check_support(struct rvt_dev_info *rdi, int verb) {switch (verb) {case MISC :
--
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 7/8 staging/rdma/hfi1: Guard i2c access against cp
In reply to a message not in the archiveFrom: Dean Luick <[email protected]>
An attempt to cp or cat /sys/kernel/debug/hfi1/hfi1_0/i2c1 produces this message:
hfi1 0000:81:00.0: hfi1_0: IB0:1 I2C failed even retrying
Fix the issue by explicitly rejecting a simple cat/cp with an -EINVAL error return.
--- drivers/staging/rdma/hfi1/debugfs.c | 28 ++++++++++++++++++++-------- 1 files changed, 20 insertions(+), 8 deletions(-)
drivers/staging/rdma/hfi1/debugfs.c +20 -8
@@ -446,6 +446,16 @@ static ssize_t __i2c_debugfs_write(struct file *file, const char __user *buf,rcu_read_lock (); ppd =private2ppd (file); +/* byte offset format: [offsetSize][i2cAddr][offsetHigh][offsetLow] */ + i2c_addr = (*ppos >>16 ) &0xffff ; + offset = *ppos &0xffff ; + +/* explicitly reject invalid address 0 to catch cp and cat */ +if (i2c_addr ==0 ) { + ret = -EINVAL ; + goto _return; + } + buff =kmalloc (count,GFP_KERNEL );if (!buff) { ret = -ENOMEM ;
@@ -458,10 +468,6 @@ static ssize_t __i2c_debugfs_write(struct file *file, const char __user *buf, goto _free; } -/* byte offset format: [offsetSize][i2cAddr][offsetHigh][offsetLow] */ - i2c_addr = (*ppos >>16 ) &0xffff ; - offset = *ppos &0xffff ; - total_written =i2c_write (ppd, target, i2c_addr, offset, buff, count);if (total_written <0 ) { ret = total_written;
@@ -507,16 +513,22 @@ static ssize_t __i2c_debugfs_read(struct file *file, char __user *buf,rcu_read_lock (); ppd =private2ppd (file); +/* byte offset format: [offsetSize][i2cAddr][offsetHigh][offsetLow] */ + i2c_addr = (*ppos >>16 ) &0xffff ; + offset = *ppos &0xffff ; + +/* explicitly reject invalid address 0 to catch cp and cat */ +if (i2c_addr ==0 ) { + ret = -EINVAL ; + goto _return; + } + buff =kmalloc (count,GFP_KERNEL );if (!buff) { ret = -ENOMEM ; goto _return; } -/* byte offset format: [offsetSize][i2cAddr][offsetHigh][offsetLow] */ - i2c_addr = (*ppos >>16 ) &0xffff ; - offset = *ppos &0xffff ; - total_read =i2c_read (ppd, target, i2c_addr, offset, buff, count);if (total_read <0 ) { ret = total_read;
--
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 8/8 staging/rdma/hfi1: Fix counter read for cp
In reply to a message not in the archiveFrom: Dean Luick <[email protected]>
A cp or cat of /sys/kernel/debug/hfi1/hfi1_0/port1counters produces the following message:
hfi1 0000:81:00.0: hfi1_0: index not supported
hfi1 0000:81:00.0: hfi1_0: read_cntrs does not support indexing
Fix by removing the file position logic and the associated messages and make the file positioning the responsibility of the caller.
The port counter read function argument is changed to the per port data structure since the counters are relative to the port and not the device.
--- drivers/staging/rdma/hfi1/chip.c | 30 +++++------------------------- drivers/staging/rdma/hfi1/chip.h | 6 ++---- drivers/staging/rdma/hfi1/debugfs.c | 11 ++++------- 3 files changed, 11 insertions(+), 36 deletions(-)
drivers/staging/rdma/hfi1/chip.c +5 -25
@@ -11407,28 +11407,19 @@ void hfi1_rcvctrl(struct hfi1_devdata *dd, unsigned int op, int ctxt) dd->rcvhdrtail_dummy_physaddr); } -u32 hfi1_read_cntrs (struct hfi1_devdata *dd,loff_t pos,char **namep, -u64 **cntrp) +u32 hfi1_read_cntrs (struct hfi1_devdata *dd,char **namep,u64 **cntrp) {int ret;u64 val =0 ;if (namep) { ret = dd->cntrnameslen; -if (pos !=0 ) { -dd_dev_err (dd,"read_cntrs does not support indexing" ); -return 0 ; - } *namep = dd->cntrnames; }else {const struct cntr_entry *entry;int i, j; ret = (dd->ndevcntrs) *sizeof (u64); -if (pos !=0 ) { -dd_dev_err (dd,"read_cntrs does not support indexing" ); -return 0 ; - }/* Get the start of the block of counters */ *cntrp = dd->cntrs;
@@ -11487,30 +11478,19 @@ u32 hfi1_read_cntrs(struct hfi1_devdata *dd, loff_t pos, char **namep,/* * Used by sysfs to create files for hfi stats to read */ -u32 hfi1_read_portcntrs (struct hfi1_devdata *dd,loff_t pos,u32 port, -char **namep,u64 **cntrp) +u32 hfi1_read_portcntrs (struct hfi1_pportdata *ppd,char **namep,u64 **cntrp) {int ret;u64 val =0 ;if (namep) { - ret = dd->portcntrnameslen; -if (pos !=0 ) { -dd_dev_err (dd,"index not supported" ); -return 0 ; - } - *namep = dd->portcntrnames; + ret = ppd->dd->portcntrnameslen; + *namep = ppd->dd->portcntrnames; }else {const struct cntr_entry *entry; -struct hfi1_pportdata *ppd;int i, j; - ret = (dd->nportcntrs) *sizeof (u64); -if (pos !=0 ) { -dd_dev_err (dd,"indexing not supported" ); -return 0 ; - } - ppd = (struct hfi1_pportdata *)(dd +1 + port); + ret = ppd->dd->nportcntrs *sizeof (u64); *cntrp = ppd->cntrs;for (i =0 ; i <PORT_CNTR_LAST ; i++) {
drivers/staging/rdma/hfi1/chip.h +2 -4
@@ -1297,10 +1297,8 @@ void hfi1_put_tid(struct hfi1_devdata *dd, u32 index, u32 type, unsigned long pa, u16 order);void hfi1_quiet_serdes (struct hfi1_pportdata *ppd);void hfi1_rcvctrl (struct hfi1_devdata *dd,unsigned int op,int ctxt); -u32 hfi1_read_cntrs (struct hfi1_devdata *dd,loff_t pos,char **namep, -u64 **cntrp); -u32 hfi1_read_portcntrs (struct hfi1_devdata *dd,loff_t pos,u32 port, -char **namep,u64 **cntrp); +u32 hfi1_read_cntrs (struct hfi1_devdata *dd,char **namep,u64 **cntrp); +u32 hfi1_read_portcntrs (struct hfi1_pportdata *ppd,char **namep,u64 **cntrp);u8 hfi1_ibphys_portstate (struct hfi1_pportdata *ppd);int hfi1_get_ib_cfg (struct hfi1_pportdata *ppd,int which);int hfi1_set_ib_cfg (struct hfi1_pportdata *ppd,int which,u32 val);
drivers/staging/rdma/hfi1/debugfs.c +4 -7
@@ -336,7 +336,7 @@ static ssize_t dev_counters_read(struct file *file, char __user *buf,rcu_read_lock (); dd =private2dd (file); - avail =hfi1_read_cntrs (dd, *ppos,NULL , &counters); + avail =hfi1_read_cntrs (dd,NULL , &counters); rval =simple_read_from_buffer (buf, count, ppos, counters, avail);rcu_read_unlock ();return rval;
@@ -353,7 +353,7 @@ static ssize_t dev_names_read(struct file *file, char __user *buf,rcu_read_lock (); dd =private2dd (file); - avail =hfi1_read_cntrs (dd, *ppos, &names,NULL ); + avail =hfi1_read_cntrs (dd, &names,NULL ); rval =simple_read_from_buffer (buf, count, ppos, names, avail);rcu_read_unlock ();return rval;
@@ -380,8 +380,7 @@ static ssize_t portnames_read(struct file *file, char __user *buf,rcu_read_lock (); dd =private2dd (file); -/* port number n/a here since names are constant */ - avail =hfi1_read_portcntrs (dd, *ppos,0 , &names,NULL ); + avail =hfi1_read_portcntrs (dd->pport, &names,NULL ); rval =simple_read_from_buffer (buf, count, ppos, names, avail);rcu_read_unlock ();return rval;
@@ -393,14 +392,12 @@ static ssize_t portcntrs_debugfs_read(struct file *file, char __user *buf, {u64 *counters;size_t avail; -struct hfi1_devdata *dd;struct hfi1_pportdata *ppd;ssize_t rval;rcu_read_lock (); ppd =private2ppd (file); - dd = ppd->dd; - avail =hfi1_read_portcntrs (dd, *ppos, ppd->port -1 ,NULL , &counters); + avail =hfi1_read_portcntrs (ppd,NULL , &counters); rval =simple_read_from_buffer (buf, count, ppos, counters, avail);rcu_read_unlock ();return rval;
--
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 15 lines · Dennis Dalessandro
These patches fix a few issues in the hfi1 driver as well as a 0-day build error that was caught on my public GitHub tree.
Patch series applies on the recent "checkpatch fixes" series for hfi1. It can also be seen on GitHub at: https://github.com/ddalessa/kernel/tree/for-4.6.
---
Dean Luick (5):
staging/rdma/hfi1: Fix xmit discard error weight staging/rdma/hfi1: Fix debugfs access race staging/rdma/hfi1: Disclose more information when i2c fails staging/rdma/hfi1: Guard i2c access against cp staging/rdma/hfi1: Fix counter read for cp
Quoted 6 lines
Easwar Hariharan (1):
staging/rdma/hfi1: Cleanup comments and logs in PHY codeMike Marciniszyn (2):
staging/rdma/hfi1: fix 0-day syntax error
IB/rdamvt: fix cross build with rdmavt
For future submissions, can you be more consistent with capital letter at the beginning of subject line?
Thanks.
Quoted 17 lines
drivers/infiniband/sw/rdmavt/vt.c | 2 + drivers/staging/rdma/hfi1/chip.c | 67 +++++++++++++++++------------------ drivers/staging/rdma/hfi1/chip.h | 6 +-- drivers/staging/rdma/hfi1/debugfs.c | 39 +++++++++++++------- drivers/staging/rdma/hfi1/init.c | 9 +++-- drivers/staging/rdma/hfi1/qsfp.c | 46 +++++++++++------------- drivers/staging/rdma/hfi1/sdma.c | 6 ++- 7 files changed, 91 insertions(+), 84 deletions(-)Signature · 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
--
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 19 lines · Leon Romanovsky
Quoted 18 lines · Dennis Dalessandro
These patches fix a few issues in the hfi1 driver as well as a 0-day build error that was caught on my public GitHub tree.
Patch series applies on the recent "checkpatch fixes" series for hfi1. It can also be seen on GitHub at: https://github.com/ddalessa/kernel/tree/for-4.6.
---
Dean Luick (5):
staging/rdma/hfi1: Fix xmit discard error weight staging/rdma/hfi1: Fix debugfs access race staging/rdma/hfi1: Disclose more information when i2c fails staging/rdma/hfi1: Guard i2c access against cp staging/rdma/hfi1: Fix counter read for cpEaswar Hariharan (1):
staging/rdma/hfi1: Cleanup comments and logs in PHY code
Quoted 8 lines
Quoted 3 lines
Mike Marciniszyn (2):
staging/rdma/hfi1: fix 0-day syntax error
IB/rdamvt: fix cross build with rdmavtFor future submissions, can you be more consistent with capital letter at the beginning of subject line?
Thanks.
Taking a quick look at the git log I don't see any particular style. Blurb from the first screen of a git log command...
$ git log --pretty=format:'%s' 441388a8a~1..91a25e463 drm/dp/mst: deallocate payload on port destruction drm/dp/mst: Reverse order of MST enable and clearing VC payload table. drm/dp/mst: move GUID storage from mgr, port to only mst branch drm/dp/mst: change MST detection scheme drm/dp/mst: Calculate MST PBN with 31.32 fixed point drm: Add drm_fixp_from_fraction and drm_fixp2int_ceil drm/mst: Add range check for max_payloads during init drm/mst: Don't ignore the MST PBN self-test result
Should there be any preference one way or the other?
-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
Quoted 10 lines
Quoted 5 lines
For future submissions, can you be more consistent with capital letter at the beginning of subject line?
Thanks.
Taking a quick look at the git log I don't see any particular style. Blurb from the first screen of a git log command...
$ git log --pretty=format:'%s' 441388a8a~1..91a25e463
The more accurate will be to perform this check on drivers/infiniband/core and not on other subsystem.
Quoted 1 line
Should there be any preference one way or the other?
But anyway, I'm not asking to submit changes in one specific style or another. I'm asking to preserve *one* style in patch series submitted. --
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