From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Return-Path: Subject: Re: [PATCH v3 4/4] fpga: dfl: add support for N3000 nios private feature References: <1596524715-18038-1-git-send-email-yilun.xu@intel.com> <1596524715-18038-5-git-send-email-yilun.xu@intel.com> From: Tom Rix Message-ID: Date: Tue, 4 Aug 2020 11:45:33 -0700 MIME-Version: 1.0 In-Reply-To: <1596524715-18038-5-git-send-email-yilun.xu@intel.com> Content-Language: en-US Content-Type: multipart/alternative; boundary="------------917081727EA098E8963B573F" To: Xu Yilun , mdf@kernel.org, linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org Cc: lgoncalv@redhat.com, Wu Hao , Matthew Gerlach , Russ Weight List-ID: This is a multi-part message in MIME format. --------------917081727EA098E8963B573F Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Some minor edits. I have added definitions for fec, kr, and rs. Reviewed-by: Tom Rix Tom > --- /dev/null > +++ b/Documentation/fpga/dfl-n3000-nios.rst > @@ -0,0 +1,39 @@ > +.. SPDX-License-Identifier: GPL-2.0 > + > +===================================== > +DFL N3000 Nios Private Feature Driver > +===================================== > + > +The dfl n3000 nios driver supports for the nios handshake private feature on > +Intel N3000 FPGA Card. > + > +This private feature provides a handshake interface to FPGA NIOS firmware, > +which receives the ethernet retimer configuration command from host and > +do the configuration via an internal SPI master. When nios finished the does the configuration.. When nios finishes the .. > +configuration, host takes over the ownership of the SPI master to control an > +Intel MAX10 BMC Chip on the SPI bus. > + > +So the driver does 2 major tasks on probe, requires NIOS firmware to configure , uses the NIOS firmware to configure the ethernet retimer, and then .. > +the ethernet retimer by operating the handshake interfaces, and then creates a > +spi master platform device with the MAX10 device info in spi_board_info. > + > +Module Parameters > +================= > + > +The dfl n3000 nios driver supports the following module parameters: > + > +* fec_mode: string > + Require the NIOS firmware to set the FEC mode of the ethernet retimer on the FEC (Forward Error Correction) mode > + the PAC N3000 FPGA card. The possible values could be: > + > + - "rs": RS FEC mode (default) - "rs" : Reed Solomon FEC (default) > + - "kr": KR FEC mode - "kr": Fire Code FEC > + - "no": NO FEC mode > + > + The configuration could only be set once after the board powers up, the The configuration can only be .. > + firmware will not accept a second configuration afterward. So the fec mode second configuration. > + will not be changed if the module is reloaded with a different param value. > + > + The configured value of the fec mode could be queried from sysfs node: > + > + /sys/bus/dfl/devices/dfl-fme.X.X/fec_mode --------------917081727EA098E8963B573F Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit

Some minor edits.

I have added definitions for fec, kr, and rs.

Reviewed-by: Tom Rix <trix@redhat.com>

Tom

--- /dev/null
+++ b/Documentation/fpga/dfl-n3000-nios.rst
@@ -0,0 +1,39 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+=====================================
+DFL N3000 Nios Private Feature Driver
+=====================================
+
+The dfl n3000 nios driver supports for the nios handshake private feature on
+Intel N3000 FPGA Card.
+
+This private feature provides a handshake interface to FPGA NIOS firmware,
+which receives the ethernet retimer configuration command from host and
+do the configuration via an internal SPI master. When nios finished the

does the configuration..

When nios finishes the ..

+configuration, host takes over the ownership of the SPI master to control an
+Intel MAX10 BMC Chip on the SPI bus.
+
+So the driver does 2 major tasks on probe, requires NIOS firmware to configure
, uses the NIOS firmware to configure the ethernet retimer, and then ..
+the ethernet retimer by operating the handshake interfaces, and then creates a
+spi master platform device with the MAX10 device info in spi_board_info.
+
+Module Parameters
+=================
+
+The dfl n3000 nios driver supports the following module parameters:
+
+* fec_mode: string
+  Require the NIOS firmware to set the FEC mode of the ethernet retimer on
the FEC (Forward Error Correction) mode
+  the PAC N3000 FPGA card. The possible values could be:
+
+  - "rs": RS FEC mode (default)
- "rs" : Reed Solomon FEC (default)
+  - "kr": KR FEC mode
- "kr": Fire Code FEC
+  - "no": NO FEC mode
+
+  The configuration could only be set once after the board powers up, the
The configuration can only be ..
+  firmware will not accept a second configuration afterward. So the fec mode
second configuration.
+  will not be changed if the module is reloaded with a different param value.
+
+  The configured value of the fec mode could be queried from sysfs node:
+
+  /sys/bus/dfl/devices/dfl-fme.X.X/fec_mode
--------------917081727EA098E8963B573F--