From patchwork Thu Jan 28 21:25:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Troy Kisky X-Patchwork-Id: 8153971 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4CA339F818 for ; Thu, 28 Jan 2016 21:30:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7996C20211 for ; Thu, 28 Jan 2016 21:30:15 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A49B82013A for ; Thu, 28 Jan 2016 21:30:14 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aOu7U-0005zL-WC; Thu, 28 Jan 2016 21:28:49 +0000 Received: from mail-pa0-x22a.google.com ([2607:f8b0:400e:c03::22a]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aOu7D-0005py-2o for linux-arm-kernel@lists.infradead.org; Thu, 28 Jan 2016 21:28:31 +0000 Received: by mail-pa0-x22a.google.com with SMTP id uo6so29714954pac.1 for ; Thu, 28 Jan 2016 13:28:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boundarydevices-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=rmFJAzQCeJOCSDEFmRSGkaz2SznJBEMxeKGmIOy68Sw=; b=tc1lOe61dYUQfwnSpwLSCPlskN+zBRIGrwmCqHrk8LnNWabFPTKN3Tp2lYvGseJsyn q8R+a4coH0kZZGAu88BLC+1c7aHy9/3CMZCK5K0wwMIRz9BluvGBRjTNXDrDZPRzoO4H Pw4Mi/mq0044wtnjOxaGdxyiV5wDftW+ULWyyvCKfbfwEAHqFwL+fFeBSxoCi+/m9Lq5 M8aBvI9wvEZEdQIiQ99MnQI3NeudUT6Bhu++4VojsofSCeiYa8UW0OTwC3tCgxLRe4z/ G+i9nnoIWPRKFSnt9LGSkALEh8d4/TDZwWj1DjDA2QPwZPxZsRGu9EcbnvkIozlM5MYx rh5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=rmFJAzQCeJOCSDEFmRSGkaz2SznJBEMxeKGmIOy68Sw=; b=cakTd3GRZ1rjkEG6TDfbYO4xSTzuBclZv/xP3Xha73XJwOgIaDUdYpylAcryYU5tMM jaPvShia+kHzUr6pizicLDIalDe5lbExio5Ns9LFi8vi5kCJw0rU6h3IGOCuesgl66fq wP0CTnfGG8gjSrD/1dOV3auvCVlXIjJ0wSwdqA38Zmzo1cL/Y/MFsZ2pvdE+YGn7nNyk U/g2xRZbQwKm+Ie3DBdWWr5ClH2dh6aMW64iOBovwWzDivCaOYYmuF9plSUgrC9oSz8V VkTy72yNz9enEE5BUUD3L3p65bROKBfe4KhVoRNIbsR+mH8XqSIowu3NZBSkuWwZSR8W zdRg== X-Gm-Message-State: AG10YORN3amcjTNUgv6UMIvnGZwIpYXXbfzCWgD2oyXWfW+yqBkLhrr0jpYU4QcIc29B6w== X-Received: by 10.66.184.15 with SMTP id eq15mr7955465pac.42.1454016490465; Thu, 28 Jan 2016 13:28:10 -0800 (PST) Received: from localhost.localdomain (wsip-70-184-93-199.ph.ph.cox.net. [70.184.93.199]) by smtp.googlemail.com with ESMTPSA id c90sm18583190pfd.31.2016.01.28.13.28.08 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 28 Jan 2016 13:28:09 -0800 (PST) From: Troy Kisky To: netdev@vger.kernel.org, davem@davemloft.net, B38611@freescale.com Subject: [PATCH net-next 01/40] net: fec: stop the "rcv is not +last, " error messages Date: Thu, 28 Jan 2016 14:25:25 -0700 Message-Id: <1454016364-30985-2-git-send-email-troy.kisky@boundarydevices.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1454016364-30985-1-git-send-email-troy.kisky@boundarydevices.com> References: <1454016364-30985-1-git-send-email-troy.kisky@boundarydevices.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160128_132831_251211_414E7290 X-CRM114-Status: UNSURE ( 9.35 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fabio.estevam@freescale.com, andrew@lunn.ch, linux@arm.linux.org.uk, Troy Kisky , laci@boundarydevices.com, l.stach@pengutronix.de, shawnguo@kernel.org, linux-arm-kernel@lists.infradead.org, tremyfr@gmail.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Setting the FTRL register will stop the fec from trying to use multiple receive buffers. Signed-off-by: Troy Kisky --- drivers/net/ethernet/freescale/fec.h | 1 + drivers/net/ethernet/freescale/fec_main.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/net/ethernet/freescale/fec.h b/drivers/net/ethernet/freescale/fec.h index 99d33e2..5144e73 100644 --- a/drivers/net/ethernet/freescale/fec.h +++ b/drivers/net/ethernet/freescale/fec.h @@ -65,6 +65,7 @@ #define FEC_R_FIFO_RSEM 0x194 /* Receive FIFO section empty threshold */ #define FEC_R_FIFO_RAEM 0x198 /* Receive FIFO almost empty threshold */ #define FEC_R_FIFO_RAFL 0x19c /* Receive FIFO almost full threshold */ +#define FEC_FTRL 0x1b0 /* Frame truncation receive length*/ #define FEC_RACC 0x1c4 /* Receive Accelerator function */ #define FEC_RCMR_1 0x1c8 /* Receive classification match ring 1 */ #define FEC_RCMR_2 0x1cc /* Receive classification match ring 2 */ diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c index 502da6f..2c7c845 100644 --- a/drivers/net/ethernet/freescale/fec_main.c +++ b/drivers/net/ethernet/freescale/fec_main.c @@ -984,6 +984,7 @@ fec_restart(struct net_device *ndev) val &= ~FEC_RACC_OPTIONS; writel(val, fep->hwp + FEC_RACC); } + writel(PKT_MAXBUF_SIZE, fep->hwp + FEC_FTRL); #endif /*