<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/infiniband/core/sysfs.c, branch linux-2.6.35.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.35.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.35.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2010-05-21T17:34:44Z</updated>
<entry>
<title>IB/core: Allow device-specific per-port sysfs files</title>
<updated>2010-05-21T17:34:44Z</updated>
<author>
<name>Ralph Campbell</name>
</author>
<published>2010-05-07T00:03:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9a6edb60ec10d86b1025a0cdad68fd89f1ddaf02'/>
<id>urn:sha1:9a6edb60ec10d86b1025a0cdad68fd89f1ddaf02</id>
<content type='text'>
Add a new parameter to ib_register_device() so that low-level device
drivers can pass in a pointer to a callback function that will be
called for each port that is registered in sysfs.  This allows
low-level device drivers to create files in

    /sys/class/infiniband/&lt;hca&gt;/ports/&lt;N&gt;/

without having to poke through the internals of the RDMA sysfs handling.

There is no need for an unregister function since the kobject
reference will go to zero when ib_unregister_device() is called.

Signed-off-by: Ralph Campbell &lt;ralph.campbell@qlogic.com&gt;
Signed-off-by: Roland Dreier &lt;rolandd@cisco.com&gt;
</content>
</entry>
<entry>
<title>sysfs: fix sysfs lockdep warning in infiniband code</title>
<updated>2010-03-19T14:12:13Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
</author>
<published>2010-03-15T21:01:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=21e3bde964e873bb5d3b1dfef68294b1437fe678'/>
<id>urn:sha1:21e3bde964e873bb5d3b1dfef68294b1437fe678</id>
<content type='text'>
This fixes a sysfs lockdep warning in the infiniband code.

Cc: Yinghai Lu &lt;yinghai@kernel.org&gt;
Cc: Eric Biederman &lt;ebiederm@xmission.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>Driver core: Constify struct sysfs_ops in struct kobj_type</title>
<updated>2010-03-08T01:04:49Z</updated>
<author>
<name>Emese Revfy</name>
</author>
<published>2010-01-19T01:58:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=52cf25d0ab7f78eeecc59ac652ed5090f69b619e'/>
<id>urn:sha1:52cf25d0ab7f78eeecc59ac652ed5090f69b619e</id>
<content type='text'>
Constify struct sysfs_ops.

This is part of the ops structure constification
effort started by Arjan van de Ven et al.

Benefits of this constification:

 * prevents modification of data that is shared
   (referenced) by many other structure instances
   at runtime

 * detects/prevents accidental (but not intentional)
   modification attempts on archs that enforce
   read-only kernel data at runtime

 * potentially better optimized code as the compiler
   can assume that the const data cannot be changed

 * the compiler/linker move const data into .rodata
   and therefore exclude them from false sharing

Signed-off-by: Emese Revfy &lt;re.emese@gmail.com&gt;
Acked-by: David Teigland &lt;teigland@redhat.com&gt;
Acked-by: Matt Domsch &lt;Matt_Domsch@dell.com&gt;
Acked-by: Maciej Sosnowski &lt;maciej.sosnowski@intel.com&gt;
Acked-by: Hans J. Koch &lt;hjk@linutronix.de&gt;
Acked-by: Pekka Enberg &lt;penberg@cs.helsinki.fi&gt;
Acked-by: Jens Axboe &lt;jens.axboe@oracle.com&gt;
Acked-by: Stephen Hemminger &lt;shemminger@vyatta.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>infiniband: remove driver_data direct access of struct device</title>
<updated>2009-06-16T04:30:26Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
</author>
<published>2009-04-30T21:43:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3f7c58a05fe4aa71983ea27959b7ad840950537e'/>
<id>urn:sha1:3f7c58a05fe4aa71983ea27959b7ad840950537e</id>
<content type='text'>
In the near future, the driver core is going to not allow direct access
to the driver_data pointer in struct device.  Instead, the functions
dev_get_drvdata() and dev_set_drvdata() should be used.  These functions
have been around since the beginning, so are backwards compatible with
all older kernel versions.


Cc: general@lists.openfabrics.org
Cc: Roland Dreier &lt;rolandd@cisco.com&gt;
Cc: Hal Rosenstock &lt;hal.rosenstock@gmail.com&gt;
Cc: Sean Hefty &lt;sean.hefty@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>IB: Remove useless ibdev_is_alive() tests from sysfs code</title>
<updated>2009-03-04T23:22:39Z</updated>
<author>
<name>Roland Dreier</name>
</author>
<published>2009-03-04T23:22:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6432f366842c78d17b2df974c68f39cb5794f2c2'/>
<id>urn:sha1:6432f366842c78d17b2df974c68f39cb5794f2c2</id>
<content type='text'>
Some attribute show functions test ibdev_is_alive() to make sure that
it's OK to access device state.  However, the sysfs attributes will
not be registered until the device is fully initialized, and they'll
be unregistered before anything is torn down, so ibdev_is_alive()
doesn't do anything useful.  Remove it.

Signed-off-by: Roland Dreier &lt;rolandd@cisco.com&gt;
</content>
</entry>
<entry>
<title>IB: Remove sysfs files before unregistering device</title>
<updated>2009-02-25T21:27:46Z</updated>
<author>
<name>Roland Dreier</name>
</author>
<published>2009-02-25T21:27:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9206dff15705267c19f8fed391c4fb95975540a3'/>
<id>urn:sha1:9206dff15705267c19f8fed391c4fb95975540a3</id>
<content type='text'>
Move the ib_device_unregister_sysfs() call from ib_dealloc_device() to
ib_unregister_device().  The old code allows device unregister to
proceed even if some sysfs files are open, which leaves a window where
userspace can open a file before a device is removed but then end up
reading the file after the device is removed, which leads to various
kernel crashes either because the device data structure is freed or
because the low-level driver code is gone after module removal.

By not returning from ib_unregister_device() until after all sysfs
entries are removed, we make sure that data structures and/or module
code is not freed until after all sysfs access is done.

Reported-by: Jack Morgenstein &lt;jackm@dev.mellanox.co.il&gt;
Signed-off-by: Roland Dreier &lt;rolandd@cisco.com&gt;
</content>
</entry>
<entry>
<title>infiniband: struct device - replace bus_id with dev_name(), dev_set_name()</title>
<updated>2009-01-06T18:44:39Z</updated>
<author>
<name>Kay Sievers</name>
</author>
<published>2009-01-06T18:44:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d927e38c6c1859494792547beee249c17b43a17e'/>
<id>urn:sha1:d927e38c6c1859494792547beee249c17b43a17e</id>
<content type='text'>
Acked-by: Roland Dreier &lt;rolandd@cisco.com&gt;
Signed-off-by: Kay Sievers &lt;kay.sievers@vrfy.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>net: replace %p6 with %pI6</title>
<updated>2008-10-29T19:52:50Z</updated>
<author>
<name>Harvey Harrison</name>
</author>
<published>2008-10-29T19:52:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5b095d98928fdb9e3b75be20a54b7a6cbf6ca9ad'/>
<id>urn:sha1:5b095d98928fdb9e3b75be20a54b7a6cbf6ca9ad</id>
<content type='text'>
Signed-off-by: Harvey Harrison &lt;harvey.harrison@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>infiniband: use %p6 for printing message ids</title>
<updated>2008-10-29T06:02:35Z</updated>
<author>
<name>Harvey Harrison</name>
</author>
<published>2008-10-29T05:36:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8867cd7c8678ff2d9d0382dbbfbcc7a3e7e61cbc'/>
<id>urn:sha1:8867cd7c8678ff2d9d0382dbbfbcc7a3e7e61cbc</id>
<content type='text'>
Signed-off-by: Harvey Harrison &lt;harvey.harrison@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>RDMA/core: Add iWARP protocol statistics attributes in sysfs</title>
<updated>2008-07-15T06:48:48Z</updated>
<author>
<name>Steve Wise</name>
</author>
<published>2008-07-15T06:48:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7f624d023b5fb150831e02c1e4c0f2619ade72c2'/>
<id>urn:sha1:7f624d023b5fb150831e02c1e4c0f2619ade72c2</id>
<content type='text'>
This patch adds a sysfs attribute group called "proto_stats" under
/sys/class/infiniband/$device/ and populates this group with protocol
statistics if they exist for a given device.  Currently, only iWARP
stats are defined, but the code is designed to allow InfiniBand
protocol stats if they become available.  These stats are per-device
and more importantly -not- per port.

Details:

- Add union rdma_protocol_stats in ib_verbs.h.  This union allows
  defining transport-specific stats.  Currently only iwarp stats are
  defined.

- Add struct iw_protocol_stats to define the current set of iwarp
  protocol stats.

- Add new ib_device method called get_proto_stats() to return protocol
  statistics.

- Add logic in core/sysfs.c to create iwarp protocol stats attributes
  if the device is an RNIC and has a get_proto_stats() method.

Signed-off-by: Steve Wise &lt;swise@opengridcomputing.com&gt;
Signed-off-by: Roland Dreier &lt;rolandd@cisco.com&gt;
</content>
</entry>
</feed>
