From patchwork Wed Sep 14 22:54:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 670141 X-Patchwork-Delegate: marek.vasut@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3sZH1G2MFsz9s65 for ; Thu, 15 Sep 2016 08:54:42 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 88E2E4BA29; Thu, 15 Sep 2016 00:54:40 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nzlpVUpXJGPQ; Thu, 15 Sep 2016 00:54:40 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AFDD84BA5C; Thu, 15 Sep 2016 00:54:39 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C30694B99D for ; Thu, 15 Sep 2016 00:54:29 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QEQLPFBrVP45 for ; Thu, 15 Sep 2016 00:54:29 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mout.perfora.net (mout.perfora.net [74.208.4.197]) by theia.denx.de (Postfix) with ESMTPS id 233094B98B for ; Thu, 15 Sep 2016 00:54:26 +0200 (CEST) Received: from marcel-pc.toradex.int.net ([84.227.37.153]) by mrelay.perfora.net (mreueus001) with ESMTPA (Nemesis) id 0MXWro-1bYhhn2f3e-00WW3w; Thu, 15 Sep 2016 00:54:10 +0200 From: Marcel Ziswiler To: u-boot@lists.denx.de Date: Thu, 15 Sep 2016 00:54:00 +0200 Message-Id: <1473893640-13533-1-git-send-email-marcel.ziswiler@toradex.com> X-Mailer: git-send-email 2.5.5 X-Provags-ID: V03:K0:f0EfTigmf7C7kJg/MPNlybiar7D21ESywqHNh1e5Z2kqjbArbrK JbLli4J1x4EEXT/s0L5S32pmixi24VmSoma/KnhjT+N/HXKdBlQRjU278LBTxoJkMkiW83/ mPYBETu5hn55m/6rwhlqmCVhWhs+GTG9Ptau/DDOiLR/2BlfSNQu/wozxUgiMW05diS0Vox /sqwmDtpgbTyxPDe9Nmcw== X-UI-Out-Filterresults: notjunk:1; V01:K0:O3etdjpv/SI=:URr/qwDywxKMRj9IY7y3Gh B996qkFjw//sGtB/i/nlVZAPmzcFzpCBQB42sV5lkefd/tx/QcmXVcm8QVm9b9aLZHTPMxoIv NDE4ZUdkALf+KwcN1ld1lEGet7jf8BiFL40CrSFoKHBcGa+NqJdfo4zvaHuCwQ02Z4OdNSVDM mNBn9KB0Wd70rX4K+MK3kQbssPNBotSAyUnQBiE/rbhnW2pw05usgDNziUxPEdoM6HiwUq3yz btyCvf1WN/IwJQKfFR6rEPSuju55SIvYtGe7YqicQ/e6EO2sFsx+147cpOxMu0C8DtWFrAS31 KvNIEFNknpUKN+gEcwqPln4WEayJZwhneTbsc2mwWsIN3OHRbKPSS1kXNHd6XFSZ2kZOHJn3V F+YmCH9KuBuuXGOP5/9uuNESGqqSX1a1qdLInJBornNgwxV44eEGg8nzQvyPlb8DBwsKlGBmn +k/Jr76NIaj5XcJYTA3CT6Y4WkyAdEozc5EX6etZOiaTyeZ3oJL4gTzczSRJiAIT7hk6Y6OQF e2s1kGADSR7m9Oy1GxChxL15yHG/0TDowrNRmxA9zWWD9lWQ9nUUt9mJqDtuEWVnZ1WiJ5TA7 gz3Z2Cf5eNA4LUEbjBl4nBuVh/zR5eulYmX3oGt5UTUqBoAzsMFuek2Us1r3HBsWAkcuItbDN 6HLB+isyoBoz3Cf7UlTet9+57IT6crjZsFd/cv5kN6zEwDZK4WoEsenhM8/mugM77ipg= Cc: Marek Vasut , Tom Rini , Stefan Agner , Marcel Ziswiler , Joe Hershberger , Joshua Scott , Alban Bedel Subject: [U-Boot] [PATCH v2] apalis_t30: colibri_imx7: colibri_t30: fix ethernet functionality X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Since commit aa7a648747d8c704a9a81c9e493d386930724e9d ("net: Stop including NFS overhead in defragment max") the following has been reproducibly observed while trying to transfer data over TFTP: Load address: 0x80408000 Loading: EHCI timed out on TD - token=0x8008d80 T EHCI timed out on TD - token=0x88008d80 Rx: failed to receive: -5 This patch fixes this by lowering our TFTP block size to be within the standard maximal de-fragmentation aka IP packet size again. Signed-off-by: Marcel Ziswiler Acked-by: Joe Hershberger --- Changes in v2: - lowering our TFTP block size rather than increasing the maximal de-fragmentation aka IP packet size as suggested by Joe - add Apalis T30 and Colibri iMX7 as well as suggested by Joe - base on top of u-boot-usb/master as suggested by Marek include/configs/apalis_t30.h | 2 +- include/configs/colibri_imx7.h | 4 ++-- include/configs/colibri_t30.h | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/include/configs/apalis_t30.h b/include/configs/apalis_t30.h index 8c76605..3fc1779 100644 --- a/include/configs/apalis_t30.h +++ b/include/configs/apalis_t30.h @@ -52,7 +52,7 @@ /* General networking support */ #define CONFIG_IP_DEFRAG -#define CONFIG_TFTP_BLOCKSIZE 16384 +#define CONFIG_TFTP_BLOCKSIZE 16352 #define CONFIG_TFTP_TSIZE /* Miscellaneous commands */ diff --git a/include/configs/colibri_imx7.h b/include/configs/colibri_imx7.h index 2ec392e..999963f 100644 --- a/include/configs/colibri_imx7.h +++ b/include/configs/colibri_imx7.h @@ -44,9 +44,9 @@ #define CONFIG_PHYLIB #define CONFIG_PHY_MICREL -#define CONFIG_TFTP_TSIZE #define CONFIG_IP_DEFRAG -#define CONFIG_TFTP_BLOCKSIZE 16384 +#define CONFIG_TFTP_BLOCKSIZE 16352 +#define CONFIG_TFTP_TSIZE /* ENET1 */ #define IMX_FEC_BASE ENET_IPS_BASE_ADDR diff --git a/include/configs/colibri_t30.h b/include/configs/colibri_t30.h index 3431cde..e2a2549 100644 --- a/include/configs/colibri_t30.h +++ b/include/configs/colibri_t30.h @@ -48,8 +48,7 @@ /* General networking support */ #define CONFIG_IP_DEFRAG -#define CONFIG_NET_MAXDEFRAG (16384 + 4096 + 24) -#define CONFIG_TFTP_BLOCKSIZE 16384 +#define CONFIG_TFTP_BLOCKSIZE 16352 #define CONFIG_TFTP_TSIZE /* Miscellaneous commands */