Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1447066 > unrolled thread
| Started by | LABBE Corentin <clabbe.montjoie@gmail.com> |
|---|---|
| First post | 2016-07-20 10:10 +0200 |
| Last post | 2016-07-25 18:20 +0200 |
| Articles | 4 — 3 participants |
Back to article view | Back to linux.kernel
[PATCH v2 0/5] net-next: ethernet: add sun8i-emac driver LABBE Corentin <clabbe.montjoie@gmail.com> - 2016-07-20 10:10 +0200
[PATCH v2 2/5] MAINTAINERS: Add myself as maintainers of sun8i-emac LABBE Corentin <clabbe.montjoie@gmail.com> - 2016-07-20 10:10 +0200
Re: [PATCH v2 1/5] ethernet: add sun8i-emac driver Arnd Bergmann <arnd@arndb.de> - 2016-07-20 12:00 +0200
Re: [PATCH v2 0/5] net-next: ethernet: add sun8i-emac driver paulo@inutilfutil.com - 2016-07-25 18:20 +0200
| From | LABBE Corentin <clabbe.montjoie@gmail.com> |
|---|---|
| Date | 2016-07-20 10:10 +0200 |
| Subject | [PATCH v2 0/5] net-next: ethernet: add sun8i-emac driver |
| Message-ID | <rWUJP-7jB-7@gated-at.bofh.it> |
Hello This patch series add the driver for sun8i-emac which handle the Ethernet MAC present on Allwinner H3/A83T/A64 SoCs. It supports 10/100/1000 Mbit/s speed with half/full duplex. It can use an internal PHY (MII 10/100) or an external PHY via RGMII/RMII. This patch series enable the driver only for the H3 SoC since A83T and A64 doesn't have the necessary clocks present in mainline. This patch series enable the driver only for the OrangePiPC board since other board with H3 use external PHY which need optional regulators that will be supported later. The driver have been tested on the following boards: - H3 Orange PI PC, Orange PI Plus, BananaPI-M2+ - A64 Pine64 - A83T BananaPI-M3 I would like to thanks Chen-Yu Tsai for his help on developing this driver. Regards Changes since v1 - Implement NAPI - Sorted and reworded all define - Reworked ethtools stats strings - Removed all unneeded __packked and __aligned - Added tuning of RX/TX ring size via ethtool - Corrected use of sk/skb naming - Added some wmb when needed - Moved irq claim/free to emac_open/close - Lots of code refactoring LABBE Corentin (5): ethernet: add sun8i-emac driver MAINTAINERS: Add myself as maintainers of sun8i-emac ARM: sun8i: dt: Add DT bindings documentation for Allwinner sun8i-emac ARM: dts: sun8i-h3: add sun8i-emac ethernet driver ARM: dts: sun8i: Enable sun8i-emac on the Orange PI PC .../bindings/net/allwinner,sun8i-emac.txt | 65 + MAINTAINERS | 6 + arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts | 11 + arch/arm/boot/dts/sun8i-h3.dtsi | 14 + drivers/net/ethernet/allwinner/Kconfig | 13 + drivers/net/ethernet/allwinner/Makefile | 1 + drivers/net/ethernet/allwinner/sun8i-emac.c | 2127 ++++++++++++++++++++ 7 files changed, 2237 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/allwinner,sun8i-emac.txt create mode 100644 drivers/net/ethernet/allwinner/sun8i-emac.c -- 2.7.3
[toc] | [next] | [standalone]
| From | LABBE Corentin <clabbe.montjoie@gmail.com> |
|---|---|
| Date | 2016-07-20 10:10 +0200 |
| Subject | [PATCH v2 2/5] MAINTAINERS: Add myself as maintainers of sun8i-emac |
| Message-ID | <rWUJQ-7jB-37@gated-at.bofh.it> |
| In reply to | #1447066 |
Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com> --- MAINTAINERS | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 1d74837..daefb19 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -581,6 +581,12 @@ S: Maintained F: Documentation/i2c/busses/i2c-ali1563 F: drivers/i2c/busses/i2c-ali1563.c +ALLWINNER SUN8I-EMAC ETHERNET DRIVER +M: Corentin Labbe <clabbe.montjoie@gmail.com> +L: netdev@vger.kernel.org +S: Maintained +F: drivers/net/ethernet/allwinner/sun8i-emac.c + ALLWINNER SECURITY SYSTEM M: Corentin Labbe <clabbe.montjoie@gmail.com> L: linux-crypto@vger.kernel.org -- 2.7.3
[toc] | [prev] | [next] | [standalone]
| From | Arnd Bergmann <arnd@arndb.de> |
|---|---|
| Date | 2016-07-20 12:00 +0200 |
| Subject | Re: [PATCH v2 1/5] ethernet: add sun8i-emac driver |
| Message-ID | <rWWsn-8a2-15@gated-at.bofh.it> |
| In reply to | #1447066 |
On Wednesday, July 20, 2016 10:03:16 AM CEST LABBE Corentin wrote: > + > + /* Benched on OPIPC with 100M, setting more than 256 does not give any > + * perf boost > + */ > + priv->nbdesc_rx = 128; > + priv->nbdesc_tx = 256; > + > 256 tx descriptors can introduce a significant latency. Can you add support for BQL (netdev_sent_queue/netdev_completed_queue) to limit the queue size to the minimum? I also noticed that your tx_lock() prevents you from concurrently running sun8i_emac_complete_xmit() and sun8i_emac_xmit(). Is that necessary? I'd think that you can find a way to make them work concurrently. Arnd
[toc] | [prev] | [next] | [standalone]
| From | paulo@inutilfutil.com |
|---|---|
| Date | 2016-07-25 18:20 +0200 |
| Message-ID | <rYQLM-6JY-27@gated-at.bofh.it> |
| In reply to | #1447066 |
[Multipart message — attachments visible in raw view] — view raw
On Wednesday, July 20, 2016 at 5:03:41 AM UTC-3, clabbe.montjoie wrote: > Hello > > This patch series add the driver for sun8i-emac which handle the Ethernet MAC > present on Allwinner H3/A83T/A64 SoCs. > > It supports 10/100/1000 Mbit/s speed with half/full duplex. > It can use an internal PHY (MII 10/100) or an external PHY > via RGMII/RMII. > > This patch series enable the driver only for the H3 SoC since A83T and A64 > doesn't have the necessary clocks present in mainline. > > This patch series enable the driver only for the OrangePiPC board since other > board with H3 use external PHY which need optional regulators that will be > supported later. > > The driver have been tested on the following boards: > - H3 Orange PI PC, Orange PI Plus, BananaPI-M2+ > - A64 Pine64 > - A83T BananaPI-M3 > > I would like to thanks Chen-Yu Tsai for his help on developing this driver. > > Regards > > Changes since v1 > - Implement NAPI > - Sorted and reworded all define > - Reworked ethtools stats strings > - Removed all unneeded __packked and __aligned > - Added tuning of RX/TX ring size via ethtool > - Corrected use of sk/skb naming > - Added some wmb when needed > - Moved irq claim/free to emac_open/close > - Lots of code refactoring > > LABBE Corentin (5): > ethernet: add sun8i-emac driver > MAINTAINERS: Add myself as maintainers of sun8i-emac > ARM: sun8i: dt: Add DT bindings documentation for Allwinner sun8i-emac > ARM: dts: sun8i-h3: add sun8i-emac ethernet driver > ARM: dts: sun8i: Enable sun8i-emac on the Orange PI PC > > .../bindings/net/allwinner,sun8i-emac.txt | 65 + > MAINTAINERS | 6 + > arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts | 11 + > arch/arm/boot/dts/sun8i-h3.dtsi | 14 + > drivers/net/ethernet/allwinner/Kconfig | 13 + > drivers/net/ethernet/allwinner/Makefile | 1 + > drivers/net/ethernet/allwinner/sun8i-emac.c | 2127 ++++++++++++++++++++ > 7 files changed, 2237 insertions(+) > create mode 100644 Documentation/devicetree/bindings/net/allwinner,sun8i-emac.txt > create mode 100644 drivers/net/ethernet/allwinner/sun8i-emac.c > > -- > 2.7.3 Works on my Orange Pi PC. Thank you! IMHO, we should enable this module on sunxi_defconfig. Paulo
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web