<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/pci/switch/Makefile, branch linux-4.12.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.12.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.12.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2017-03-07T00:33:34Z</updated>
<entry>
<title>MicroSemi Switchtec management interface driver</title>
<updated>2017-03-07T00:33:34Z</updated>
<author>
<name>Logan Gunthorpe</name>
</author>
<published>2017-03-07T00:30:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=080b47def5e5e28b2509c5bb92160d1df730f27b'/>
<id>urn:sha1:080b47def5e5e28b2509c5bb92160d1df730f27b</id>
<content type='text'>
Microsemi's "Switchtec" line of PCI switch devices is already well
supported by the kernel with standard PCI switch drivers.  However, the
Switchtec device advertises a special management endpoint with a separate
PCI function address and class code.  This endpoint enables some additional
functionality which includes:

 * Packet and Byte Counters
 * Switch Firmware Upgrades
 * Event and Error logs
 * Querying port link status
 * Custom user firmware commands

Add a switchtec kernel module which provides PCI driver that exposes a char
device.  The char device provides userspace access to this interface
through read, write and (optionally) poll calls.

A userspace tool and library which utilizes this interface is available
at [1].  This tool takes inspiration (and borrows some code) from
nvme-cli [2].  The tool is largely complete at this time but additional
features may be added in the future.

[1] https://github.com/sbates130272/switchtec-user
[2] https://github.com/linux-nvme/nvme-cli

[Dan Carpenter &lt;dan.carpenter@oracle.com&gt;: don't invert error codes]
[Christophe JAILLET &lt;christophe.jaillet@wanadoo.fr&gt;: fix
switchtec_dev_open() error handling]
Tested-by: Krishna Dhulipala &lt;krishnad@fb.com&gt;
Signed-off-by: Logan Gunthorpe &lt;logang@deltatee.com&gt;
Signed-off-by: Stephen Bates &lt;stephen.bates@microsemi.com&gt;
Signed-off-by: Bjorn Helgaas &lt;bhelgaas@google.com&gt;
Reviewed-by: Wei Zhang &lt;wzhang@fb.com&gt;
Reviewed-by: Jens Axboe &lt;axboe@fb.com&gt;
Reviewed-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;</content>
</entry>
</feed>
