<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/ntb, branch v4.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v4.2</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v4.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2015-08-09T20:32:22Z</updated>
<entry>
<title>ntb: avoid format string in dev_set_name</title>
<updated>2015-08-09T20:32:22Z</updated>
<author>
<name>Kees Cook</name>
<email>keescook@chromium.org</email>
</author>
<published>2015-07-24T23:35:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=e15f940908e474da03349cb55a107fe89310a02c'/>
<id>urn:sha1:e15f940908e474da03349cb55a107fe89310a02c</id>
<content type='text'>
Avoid any chance of format string expansion when calling dev_set_name.

Signed-off-by: Kees Cook &lt;keescook@chromium.org&gt;
Signed-off-by: Jon Mason &lt;jdmason@kudzu.us&gt;
</content>
</entry>
<entry>
<title>NTB: Fix dereference before check</title>
<updated>2015-08-09T20:32:22Z</updated>
<author>
<name>Allen Hubbe</name>
<email>Allen.Hubbe@emc.com</email>
</author>
<published>2015-07-13T12:07:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=30a4bb1e5a9d7e283af6e29da09362104b67d7aa'/>
<id>urn:sha1:30a4bb1e5a9d7e283af6e29da09362104b67d7aa</id>
<content type='text'>
Remove early dereference of a pointer that is checked later in the code.

Reported-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Allen Hubbe &lt;Allen.Hubbe@emc.com&gt;
Signed-off-by: Jon Mason &lt;jdmason@kudzu.us&gt;
</content>
</entry>
<entry>
<title>NTB: Fix zero size or integer overflow in ntb_set_mw</title>
<updated>2015-08-09T20:32:22Z</updated>
<author>
<name>Allen Hubbe</name>
<email>Allen.Hubbe@emc.com</email>
</author>
<published>2015-07-13T12:07:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=8c9edf63e75f036b42afb4502deb20bbfb5004b4'/>
<id>urn:sha1:8c9edf63e75f036b42afb4502deb20bbfb5004b4</id>
<content type='text'>
A plain 32 bit integer will overflow for values over 4GiB.

Change the plain integer size to the appropriate size type in
ntb_set_mw.  Change the type of the size parameter and two local
variables used for size.

Even if there is no overflow, a size of zero is invalid here.

Reported-by: Juyoung Jung &lt;jjung@micron.com&gt;
Signed-off-by: Allen Hubbe &lt;Allen.Hubbe@emc.com&gt;
Signed-off-by: Jon Mason &lt;jdmason@kudzu.us&gt;
</content>
</entry>
<entry>
<title>NTB: Schedule to receive on QP link up</title>
<updated>2015-08-09T20:32:22Z</updated>
<author>
<name>Allen Hubbe</name>
<email>Allen.Hubbe@emc.com</email>
</author>
<published>2015-07-13T12:07:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=8b5a22d8f18496f5921ccb92554a7051cbfd9b0c'/>
<id>urn:sha1:8b5a22d8f18496f5921ccb92554a7051cbfd9b0c</id>
<content type='text'>
Schedule to receive on QP link up, to make sure that the doorbell is
properly cleared for interrupts.

Signed-off-by: Allen Hubbe &lt;Allen.Hubbe@emc.com&gt;
Signed-off-by: Jon Mason &lt;jdmason@kudzu.us&gt;
</content>
</entry>
<entry>
<title>NTB: Fix oops in debugfs when transport is half-up</title>
<updated>2015-08-09T20:32:22Z</updated>
<author>
<name>Dave Jiang</name>
<email>dave.jiang@intel.com</email>
</author>
<published>2015-07-13T12:07:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=260bee9451b4f0f5f9845c5b3024f0bfb8de8f22'/>
<id>urn:sha1:260bee9451b4f0f5f9845c5b3024f0bfb8de8f22</id>
<content type='text'>
When the remote side is not up, we do not have all the context for the
transport, and that causes NULL ptr access. Have the debugfs reads check
to see if transport is up before we make access.

Signed-off-by: Dave Jiang &lt;dave.jiang@intel.com&gt;
Signed-off-by: Jon Mason &lt;jdmason@kudzu.us&gt;
</content>
</entry>
<entry>
<title>NTB: Fix transport stats for multiple devices</title>
<updated>2015-08-09T20:32:21Z</updated>
<author>
<name>Dave Jiang</name>
<email>dave.jiang@intel.com</email>
</author>
<published>2015-07-13T12:07:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=c8650fd03d320e9c39f44435a583933cacea5259'/>
<id>urn:sha1:c8650fd03d320e9c39f44435a583933cacea5259</id>
<content type='text'>
Currently the debugfs does not have files for all NTB transport queue
pairs.  When there are multiple NTBs present in a system, the QP names
of the last transport clobber the names of previously added transport
QPs.  Only the last added QPs can be observed via debugfs.

Create a directory per NTB transport to associate the QPs with that
transport.  Name the directory the same as the PCI device.

Signed-off-by: Dave Jiang &lt;dave.jiang@intel.com&gt;
Signed-off-by: Jon Mason &lt;jdmason@kudzu.us&gt;
</content>
</entry>
<entry>
<title>NTB: Fix ntb_transport out-of-order RX update</title>
<updated>2015-08-09T20:32:21Z</updated>
<author>
<name>Allen Hubbe</name>
<email>Allen.Hubbe@emc.com</email>
</author>
<published>2015-07-13T12:07:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=da2e5ae56164b86823c1bff5b4d28430ca4a7108'/>
<id>urn:sha1:da2e5ae56164b86823c1bff5b4d28430ca4a7108</id>
<content type='text'>
It was possible for a synchronous update of the RX index in the error
case to get ahead of the asynchronous RX index update in the normal
case.  Change the RX processing to preserve an RX completion order.

There were two error cases.  First, if a buffer is not present to
receive data, there would be no queue entry to preserve the RX
completion order.  Instead of dropping the RX frame, leave the RX frame
in the ring.  Schedule RX processing when RX entries are enqueued, in
case there are RX frames waiting in the ring to be received.

Second, if a buffer is too small to receive data, drop the frame in the
ring, mark the RX entry as done, and indicate the error in the RX entry
length.  Check for a negative length in the receive callback in
ntb_netdev, and count occurrences as rx_length_errors.

Signed-off-by: Allen Hubbe &lt;Allen.Hubbe@emc.com&gt;
Signed-off-by: Jon Mason &lt;jdmason@kudzu.us&gt;
</content>
</entry>
<entry>
<title>NTB: Add split BAR output for debugfs stats</title>
<updated>2015-07-04T18:09:32Z</updated>
<author>
<name>Dave Jiang</name>
<email>dave.jiang@intel.com</email>
</author>
<published>2015-06-18T09:17:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=bf44fe4671f97ee17d178e08c2d3b346188d062b'/>
<id>urn:sha1:bf44fe4671f97ee17d178e08c2d3b346188d062b</id>
<content type='text'>
When split BAR is enabled, the driver needs to dump out the split BAR
registers rather than the original 64bit BAR registers.

Signed-off-by: Dave Jiang &lt;dave.jiang@intel.com&gt;
Signed-off-by: Jon Mason &lt;jdmason@kudzu.us&gt;
</content>
</entry>
<entry>
<title>NTB: Change WARN_ON_ONCE to pr_warn_once on unsafe</title>
<updated>2015-07-04T18:09:30Z</updated>
<author>
<name>Dave Jiang</name>
<email>dave.jiang@intel.com</email>
</author>
<published>2015-06-15T12:22:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=fd839bf88485878ec602dbb3146fd44769eb3784'/>
<id>urn:sha1:fd839bf88485878ec602dbb3146fd44769eb3784</id>
<content type='text'>
The unsafe doorbell and scratchpad access should display reason when
WARN is called.  Otherwise we get a stack dump without any explanation.

Signed-off-by: Dave Jiang &lt;dave.jiang@intel.com&gt;
Signed-off-by: Jon Mason &lt;jdmason@kudzu.us&gt;
</content>
</entry>
<entry>
<title>NTB: Print driver name and version in module init</title>
<updated>2015-07-04T18:09:28Z</updated>
<author>
<name>Dave Jiang</name>
<email>dave.jiang@intel.com</email>
</author>
<published>2015-06-15T12:21:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=7eb387813db6730a5793cd53077b4039d948d17f'/>
<id>urn:sha1:7eb387813db6730a5793cd53077b4039d948d17f</id>
<content type='text'>
Printouts driver name and version to indicate what is being loaded.

Signed-off-by: Dave Jiang &lt;dave.jiang@intel.com&gt;
Signed-off-by: Jon Mason &lt;jdmason@kudzu.us&gt;
</content>
</entry>
</feed>
