mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Wei Zhang <wzhang@fb.com>
To: Logan Gunthorpe <logang@deltatee.com>,
	Keith Busch <keith.busch@intel.com>,
	Myron Stowe <myron.stowe@gmail.com>,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	Bjorn Helgaas <bhelgaas@google.com>,
	Geert Uytterhoeven <geert+renesas@glider.be>,
	Jonathan Corbet <corbet@lwn.net>,
	"David S. Miller" <davem@davemloft.net>,
	Andrew Morton <akpm@linux-foundation.org>,
	Emil Velikov <emil.l.velikov@gmail.com>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	Guenter Roeck <linux@roeck-us.net>,
	Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>,
	Linus Walleij <linus.walleij@linaro.org>,
	Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>,
	Stefan Berger <stefanb@linux.vnet.ibm.com>,
	Krishna Dhulipala <krishnad@fb.com>
Cc: Kurt Schwemmer <kurt.schwemmer@microsemi.com>,
	Stephen Bates <stephen.bates@microsemi.com>,
	"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
	"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>,
	"linux-nvme@lists.infradead.org" <linux-nvme@lists.infradead.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2 0/4] New Microsemi PCI Switch Management Driver
Date: Thu, 9 Feb 2017 23:16:05 +0000	[thread overview]
Message-ID: <B0BD08E8-442E-4FBF-AF52-7AC0A7CA092C@fb.com> (raw)
In-Reply-To: <1486058763-7730-1-git-send-email-logang@deltatee.com>

Hi,

The switchtec driver patches [PATCH v2 (0-4)/4] in conjunction with the switchtec userland tool is used to communicate with the Microsemi 8536 PCIe Switch used on Facebook’s Lightning platform. The following essential driver and tool functions were successfully tested with it:
·         Retrieval of firmware and configuration information along with CRCs
·         Switch firmware and configuration upgrades
·         Switch PHY/Link error counter collection and the ability to reset them
·         Switch upstream and downstream ports’ link status reporting
·         Switch interface functioning
·         Retrieval of switch ASIC temperature
·         Exporting switch firmware log dump
·         Read the information of firmware and configuration binaries
·         Extract the firmware and configuration images stored in the switch EEPROM

Tested-by: Krishna Dhulipala krishnad@fb.com
Tested-by: Wei Zhang wzhang@fb.com  

Thanks,
-Wei

--
wei zhang | software engineer | facebook
wzhang@fb.com | (408) 460-4803

On 2/2/17, 10:05 AM, "Logan Gunthorpe" <logang@deltatee.com> wrote:

    Changes since v1:
    
    * Rebased onto 4.10-rc6 (cleanly)
    * Split the patch into a few more easily digestible patches (as
      suggested by Greg Kroah-Hartman)
    * Folded switchtec.c into switchtec.h (per Greg)
    * Fixed a bunch of 32bit build warnings caught by the kbuild test robot
    * Fixed some issues in the documentation so it has a proper
      reStructredText format (as noted by Jonathan Corbet)
    * Fixed padding and sizes in the IOCTL structures as noticed by Emil
      Velikov and used pahole to verify their consistency across 32 and 64
      bit builds
    * Reworked one of the IOCTL interfaces to be more future proof (per
      Emil).
    
    Changes since RFC:
    
    * Fixed incorrect use of the drive model as pointed out by Greg
      Kroah-Hartman
    * Used devm functions as suggested by Keith Busch
    * Added a handful of sysfs attributes to the switchtec class
    * Added a handful of IOCTLs to the switchtec device
    * A number of miscellaneous bug fixes
    
    --
    
    Hi,
    
    This is a continuation of the RFC we posted lasted month [1] which
    proposes a management driver for Microsemi's Switchtec line of PCI
    switches. This hardware is still looking to be used in the Open
    Compute Platform
    
    To make this entirely clear: the Switchtec products are compliant
    with the PCI specifications and are supported today with the standard
    in-kernel driver. However, these devices also expose a management endpoint
    on a separate PCI function address which can be used to perform some
    advanced operations. This is a driver for that function. See the patch
    for more information.
    
    Since the RFC, we've made the changes requested by Greg Kroah-Hartman
    and Keith Busch, and we've also fleshed out a number of features. We've
    added a couple of IOCTLs and sysfs attributes which are documented in
    the patch. Significant work has also been done on the userspace tool
    which is available under a GPL license at [2]. We've also had testing
    done by some of the interested parties.
    
    We hope to see this work included in either 4.11 or 4.12 assuming a
    smooth review process.
    
    The patch is based off of the v4.10-rc6 release.
    
    Thanks for your review,
    
    Logan
    
    [1] https://urldefense.proofpoint.com/v2/url?u=https-3A__www.spinics.net_lists_linux-2Dpci_msg56897.html&d=DwIBAg&c=5VD0RTtNlTh3ycd41b3MUw&r=LRFoLl92zWj5mkgkc_hRcg&m=VLDBJqzotzGkTj8-xjlfT-J0k2uFq6FcWg2nA_oKYJo&s=OkigHoSqH1Z3dnmLqN76lIQ_WxRJDj1uqIDl35SI58A&e= 
    [2] https://github.com/sbates130272/switchtec-user
    
    --
    
    Logan Gunthorpe (4):
      MicroSemi Switchtec management interface driver
      switchtec: Add user interface documentation
      switchtec: Add sysfs attributes to the Switchtec driver
      switchtec: Add IOCTLs to the Switchtec driver
    
     Documentation/ABI/testing/sysfs-class-switchtec |   96 ++
     Documentation/ioctl/ioctl-number.txt            |    1 +
     Documentation/switchtec.txt                     |   80 ++
     MAINTAINERS                                     |   11 +
     drivers/pci/Kconfig                             |    1 +
     drivers/pci/Makefile                            |    1 +
     drivers/pci/switch/Kconfig                      |   13 +
     drivers/pci/switch/Makefile                     |    1 +
     drivers/pci/switch/switchtec.c                  | 1608 +++++++++++++++++++++++
     include/uapi/linux/switchtec_ioctl.h            |  132 ++
     10 files changed, 1944 insertions(+)
     create mode 100644 Documentation/ABI/testing/sysfs-class-switchtec
     create mode 100644 Documentation/switchtec.txt
     create mode 100644 drivers/pci/switch/Kconfig
     create mode 100644 drivers/pci/switch/Makefile
     create mode 100644 drivers/pci/switch/switchtec.c
     create mode 100644 include/uapi/linux/switchtec_ioctl.h
    
    --
    2.1.4
    

  parent reply	other threads:[~2017-02-09 23:18 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-02 18:05 Logan Gunthorpe
2017-02-02 18:06 ` [PATCH v2 1/4] MicroSemi Switchtec management interface driver Logan Gunthorpe
2017-02-10 14:51   ` Greg Kroah-Hartman
2017-02-10 16:48     ` Logan Gunthorpe
2017-02-10 16:55       ` Greg Kroah-Hartman
2017-02-10 17:03         ` Logan Gunthorpe
2017-02-10 17:09           ` Greg Kroah-Hartman
2017-02-10 18:00             ` Logan Gunthorpe
2017-02-10 17:57     ` [PATCH] switchtec: cleanup cdev init Logan Gunthorpe
2017-02-18 20:22       ` Logan Gunthorpe
2017-02-19 21:43         ` Dan Williams
2017-02-20  4:22           ` Logan Gunthorpe
2017-02-21 18:37             ` Jason Gunthorpe
2017-02-10 14:54   ` [PATCH v2 1/4] MicroSemi Switchtec management interface driver Greg Kroah-Hartman
2017-02-24  0:35   ` Bjorn Helgaas
2017-02-24 18:32     ` Logan Gunthorpe
2017-02-02 18:06 ` [PATCH v2 2/4] switchtec: Add user interface documentation Logan Gunthorpe
2017-02-02 18:06 ` [PATCH v2 3/4] switchtec: Add sysfs attributes to the Switchtec driver Logan Gunthorpe
2017-02-10 14:54   ` Greg Kroah-Hartman
2017-02-23 22:43   ` Bjorn Helgaas
2017-02-23 22:56     ` Logan Gunthorpe
2017-02-24 22:45       ` Bjorn Helgaas
2017-02-02 18:06 ` [PATCH v2 4/4] switchtec: Add IOCTLs " Logan Gunthorpe
2017-02-09 23:16 ` Wei Zhang [this message]
2017-02-09 23:46   ` [PATCH v2 0/4] New Microsemi PCI Switch Management Driver Wei Zhang
2017-02-10 14:54 ` Greg Kroah-Hartman
2017-02-10 16:14 ` Jens Axboe
2017-02-17 20:36 ` Logan Gunthorpe
2017-02-23 20:36   ` Logan Gunthorpe
2017-02-23 20:51     ` Sinan Kaya
2017-02-23 20:54       ` Jens Axboe
2017-02-23 20:56       ` Logan Gunthorpe
2017-02-23 20:52     ` Jens Axboe
2017-02-23 20:55     ` Greg Kroah-Hartman
2017-02-23 22:14     ` Bjorn Helgaas
2017-02-23 22:19       ` Logan Gunthorpe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=B0BD08E8-442E-4FBF-AF52-7AC0A7CA092C@fb.com \
    --to=wzhang@fb.com \
    --cc=akpm@linux-foundation.org \
    --cc=bhelgaas@google.com \
    --cc=corbet@lwn.net \
    --cc=davem@davemloft.net \
    --cc=emil.l.velikov@gmail.com \
    --cc=geert+renesas@glider.be \
    --cc=gregkh@linuxfoundation.org \
    --cc=jarkko.sakkinen@linux.intel.com \
    --cc=keith.busch@intel.com \
    --cc=konishi.ryusuke@lab.ntt.co.jp \
    --cc=krishnad@fb.com \
    --cc=kurt.schwemmer@microsemi.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-nvme@lists.infradead.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=logang@deltatee.com \
    --cc=mchehab@kernel.org \
    --cc=myron.stowe@gmail.com \
    --cc=stefanb@linux.vnet.ibm.com \
    --cc=stephen.bates@microsemi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®