diff options
author | Dennis Dalessandro <dennis.dalessandro@intel.com> | 2016-10-10 06:14:45 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-11-26 09:56:54 +0100 |
commit | 06eac15f11e014e471f1486fa47817d3a3697b4d (patch) | |
tree | b17222bbd948f34520367a9d4cfdfb68dcc92920 /drivers/infiniband/hw/hfi1/rc.c | |
parent | ca720a2b11b4c90d1798b406d3c191cd5395b5e3 (diff) | |
download | lwn-06eac15f11e014e471f1486fa47817d3a3697b4d.tar.gz lwn-06eac15f11e014e471f1486fa47817d3a3697b4d.zip |
IB/rdmavt: rdmavt can handle non aligned page maps
commit e1fafdcbe0e3e769c6a83317dd845bc99b4fe61d upstream.
The initial code for rdmavt carried with it a restriction that was a
vestige from the qib driver, that to dma map a page it had to be less
than a page size. This is not the case on modern hardware, both qib and
hfi1 will be just fine with unaligned map requests.
This fixes a 4.8 regression where by an IPoIB transfer of > PAGE_SIZE
will hang because the dma map page call always fails. This was
introduced after commit 5faba5469522 ("IB/ipoib: Report SG feature
regardless of HW UD CSUM capability") added the capability to use SG by
default. Rather than override this, the HW supports it, so allow SG.
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/infiniband/hw/hfi1/rc.c')
0 files changed, 0 insertions, 0 deletions