<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux.git/drivers/ntb, branch v3.10.97</title>
<subtitle>Linux Kernel
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v3.10.97</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v3.10.97'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/'/>
<updated>2013-11-13T03:05:35Z</updated>
<entry>
<title>NTB: Correct debugfs to work with more than 1 NTB Device</title>
<updated>2013-11-13T03:05:35Z</updated>
<author>
<name>Jon Mason</name>
<email>jon.mason@intel.com</email>
</author>
<published>2013-07-30T22:58:49Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=cfa234b144de51eb96e877ee0bee47a3420e8bed'/>
<id>urn:sha1:cfa234b144de51eb96e877ee0bee47a3420e8bed</id>
<content type='text'>
commit 1517a3f21a1dd321f16bcf44204bddff9d21abd0 upstream.

Debugfs was setup in NTB to only have a single debugfs directory.  This
resulted in the leaking of debugfs directories and files when multiple
NTB devices were present, due to each device stomping on the variables
containing the previous device's values (thus preventing them from being
freed on cleanup).  Correct this by creating a secondary directory of
the PCI BDF for each device present, and nesting the previously existing
information in those directories.

Signed-off-by: Jon Mason &lt;jon.mason@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>NTB: Correct USD/DSD Identification</title>
<updated>2013-11-13T03:05:34Z</updated>
<author>
<name>Jon Mason</name>
<email>jon.mason@intel.com</email>
</author>
<published>2013-05-31T21:05:53Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=8293fc2416f0eb13ff81501b31f0206c5331b9cb'/>
<id>urn:sha1:8293fc2416f0eb13ff81501b31f0206c5331b9cb</id>
<content type='text'>
commit b6750cfe0710a14fd147ba27fddbecae8ba88c77 upstream.

Due to ambiguous documentation, the USD/DSD identification is backward
when compared to the setting in BIOS.  Correct the bits to match the
BIOS setting.

Signed-off-by: Jon Mason &lt;jon.mason@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>NTB: Correct Number of Scratch Pad Registers</title>
<updated>2013-11-13T03:05:34Z</updated>
<author>
<name>Jon Mason</name>
<email>jon.mason@intel.com</email>
</author>
<published>2013-07-15T22:26:14Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=576db18cb68483e6e54f18dfda4b9c24f7e07dfe'/>
<id>urn:sha1:576db18cb68483e6e54f18dfda4b9c24f7e07dfe</id>
<content type='text'>
commit 87034511519815259e37336f52edf06d114d43b6 upstream.

The NTB Xeon hardware has 16 scratch pad registers and 16 back-to-back
scratch pad registers.  Correct the #define to represent this and update
the variable names to reflect their usage.

Signed-off-by: Jon Mason &lt;jon.mason@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>NTB: Add Error Handling in ntb_device_setup</title>
<updated>2013-11-13T03:05:34Z</updated>
<author>
<name>Jon Mason</name>
<email>jon.mason@intel.com</email>
</author>
<published>2013-07-15T20:23:47Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=21720562911f038d7406654e7ea0c171cfac47b8'/>
<id>urn:sha1:21720562911f038d7406654e7ea0c171cfac47b8</id>
<content type='text'>
commit 3b12a0d15bd1559e72ad21d9d807fd2a6706f0ab upstream.

If an error is encountered in ntb_device_setup, it is possible that the
spci_cmd isn't populated.  Writes to the offset can result in a NULL
pointer dereference.  This issue is easily encountered by running in
NTB-RP mode, as it currently is not supported and will generate an
error.  To get around this issue, return if an error is encountered
prior to attempting to write to the spci_cmd offset.

Signed-off-by: Jon Mason &lt;jon.mason@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>NTB: Multiple NTB client fix</title>
<updated>2013-05-15T17:58:22Z</updated>
<author>
<name>Jon Mason</name>
<email>jon.mason@intel.com</email>
</author>
<published>2013-04-26T21:51:57Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=8b19d450ad188d402a183ff4a4d40f31c3916fbf'/>
<id>urn:sha1:8b19d450ad188d402a183ff4a4d40f31c3916fbf</id>
<content type='text'>
Fix issue with adding multiple ntb client devices to the ntb virtual
bus.  Previously, multiple devices would be added with the same name,
resulting in crashes.  To get around this issue, add a unique number to
the device when it is added.

Signed-off-by: Jon Mason &lt;jon.mason@intel.com&gt;
</content>
</entry>
<entry>
<title>NTB: memcpy lockup workaround</title>
<updated>2013-05-15T17:58:06Z</updated>
<author>
<name>Jon Mason</name>
<email>jon.mason@intel.com</email>
</author>
<published>2013-01-17T22:28:45Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=c336acd3331dcc191a97dbc66a557d47741657c7'/>
<id>urn:sha1:c336acd3331dcc191a97dbc66a557d47741657c7</id>
<content type='text'>
The system will appear to lockup for long periods of time due to the NTB
driver spending too much time in memcpy.  Avoid this by reducing the
number of packets that can be serviced on a given interrupt.

Signed-off-by: Jon Mason &lt;jon.mason@intel.com&gt;
</content>
</entry>
<entry>
<title>NTB: Correctly handle receive buffers of the minimal size</title>
<updated>2013-05-15T17:57:59Z</updated>
<author>
<name>Jon Mason</name>
<email>jon.mason@intel.com</email>
</author>
<published>2013-02-01T22:45:16Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=c9d534c8cbaedbb522a1d2cb037c6c394f610317'/>
<id>urn:sha1:c9d534c8cbaedbb522a1d2cb037c6c394f610317</id>
<content type='text'>
The ring logic of the NTB receive buffer/transmit memory window requires
there to be at least 2 payload sized allotments.  For the minimal size
case, split the buffer into two and set the transport_mtu to the
appropriate size.

Signed-off-by: Jon Mason &lt;jon.mason@intel.com&gt;
</content>
</entry>
<entry>
<title>NTB: reset tx_index on link toggle</title>
<updated>2013-05-15T17:57:51Z</updated>
<author>
<name>Jon Mason</name>
<email>jon.mason@intel.com</email>
</author>
<published>2013-02-01T22:34:35Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=90f9e934647e652a69396e18c779215a493271cf'/>
<id>urn:sha1:90f9e934647e652a69396e18c779215a493271cf</id>
<content type='text'>
If the NTB link toggles, the driver could stop receiving due to the
tx_index not being set to 0 on the transmitting size on a link-up event.
This is due to the driver expecting the incoming data to start at the
beginning of the receive buffer and not at a random place.

Signed-off-by: Jon Mason &lt;jon.mason@intel.com&gt;
</content>
</entry>
<entry>
<title>NTB: Link toggle memory leak</title>
<updated>2013-05-15T17:57:45Z</updated>
<author>
<name>Jon Mason</name>
<email>jon.mason@intel.com</email>
</author>
<published>2013-02-01T22:25:37Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=b77b2637b39ecc380bb08992380d7d48452b0872'/>
<id>urn:sha1:b77b2637b39ecc380bb08992380d7d48452b0872</id>
<content type='text'>
Each link-up will allocate a new NTB receive buffer when the NTB
properties are negotiated with the remote system.  These allocations did
not check for existing buffers and thus did not free them.  Now, the
driver will check for an existing buffer and free it if not of the
correct size, before trying to alloc a new one.

Signed-off-by: Jon Mason &lt;jon.mason@intel.com&gt;
</content>
</entry>
<entry>
<title>NTB: Handle 64bit BAR sizes</title>
<updated>2013-05-15T17:57:40Z</updated>
<author>
<name>Jon Mason</name>
<email>jon.mason@intel.com</email>
</author>
<published>2013-01-30T18:40:52Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=113fc505b83b2d16e820ca74fa07f99a34877b1d'/>
<id>urn:sha1:113fc505b83b2d16e820ca74fa07f99a34877b1d</id>
<content type='text'>
64bit BAR sizes are permissible with an NTB device.  To support them
various modifications and clean-ups were required, most significantly
using 2 32bit scratch pad registers for each BAR.

Also, modify the driver to allow more than 2 Memory Windows.

Signed-off-by: Jon Mason &lt;jon.mason@intel.com&gt;
</content>
</entry>
</feed>
