From patchwork Fri Feb 5 21:52:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Troy Kisky X-Patchwork-Id: 8239851 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 11D70BEEE5 for ; Fri, 5 Feb 2016 21:57:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2F88E203B8 for ; Fri, 5 Feb 2016 21:57:08 +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 27A9A203B4 for ; Fri, 5 Feb 2016 21:57:07 +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 1aRoLs-0004S4-NL; Fri, 05 Feb 2016 21:55:40 +0000 Received: from mail-pf0-x230.google.com ([2607:f8b0:400e:c00::230]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aRoLf-0003o4-0o for linux-arm-kernel@lists.infradead.org; Fri, 05 Feb 2016 21:55:27 +0000 Received: by mail-pf0-x230.google.com with SMTP id o185so75228605pfb.1 for ; Fri, 05 Feb 2016 13:55:06 -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=gs+rYpNmJIQHluJuqMfe5SPvNrmRGxNaf8vYYLtzM3g=; b=uq35JRcIOkSH+5s0jM17BoP0RXDi3TW9Z/PFVdyjUmVtvPCotOXAhs3VA7Owv3kplX ZiTZ6zAHDxys5Zr028tHkoasmB1RNHmwUVVzCedt9IKAbzep+b2j+lfe0uUbKU0UPC8/ ghBA2TnjUD96na1ACT5oIMTS6y3lpTczyPTcklbn7Jzf/JE9ztHxx4aMd6SHRE2wKTfH VcyIkrKc7Aa69hfC45jzliF2pu8q8NIB5gFZJ8/CFcnWxBwJT4yoqJtqHiZsJL67D28j WPD2SF/c2dFJ+/ZPZC3sS9Hryb0OSHrVCZINJAaSLqUGw9akfvf/NaGhVV2KuwEM2uWI 5MQw== 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=gs+rYpNmJIQHluJuqMfe5SPvNrmRGxNaf8vYYLtzM3g=; b=klJJXxugj95LUEcOVFLjLosNRlsf/C0OvLyjncWGbTkN0BjGoqUQAEagWL/u+KZxY8 GorMV4pI9gg2GP//jAohaYrTjru+S5k/3jPbSqlSG9OB6nxygwLvR2RJLeYOa9qTfe3C S4pW7qF647wBDYlGpCrtm3pT5bcFf/fqFh1+a7ZSuWYyMdoomObhyRMrvuIu8pl2wSEj exaCeF0NRyErsqtVKUbzZaMFRgRa7YqLy32ToD92scTGY+R75sHtKItUh2gjQ7qAYjzd aIxwtBeaUVVYlJGMR1ocDlpLRn0h3SGtTTlTbkrMHdLDsWfoplKg40s5/9K4lIRbI16P +VPw== X-Gm-Message-State: AG10YORLLi1RHBPYScSP/wqCUIHnMxs9I5fV7Z/xK4Hj4mgtm+7wCPlRkCfZ1RSxepeflw== X-Received: by 10.98.9.92 with SMTP id e89mr23382699pfd.34.1454709306286; Fri, 05 Feb 2016 13:55:06 -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 v75sm26628688pfa.39.2016.02.05.13.55.04 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 05 Feb 2016 13:55:05 -0800 (PST) From: Troy Kisky To: netdev@vger.kernel.org, davem@davemloft.net, B38611@freescale.com Subject: [PATCH net-next V2 1/8] net: fec: stop the "rcv is not +last, " error messages Date: Fri, 5 Feb 2016 14:52:43 -0700 Message-Id: <1454709170-19527-2-git-send-email-troy.kisky@boundarydevices.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1454709170-19527-1-git-send-email-troy.kisky@boundarydevices.com> References: <1454709170-19527-1-git-send-email-troy.kisky@boundarydevices.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160205_135527_100034_E511FAD4 X-CRM114-Status: UNSURE ( 9.20 ) 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, arnd@arndb.de, Troy Kisky , laci@boundarydevices.com, johannes@sipsolutions.net, 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.4 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 2106d72..cc9677a 100644 --- a/drivers/net/ethernet/freescale/fec.h +++ b/drivers/net/ethernet/freescale/fec.h @@ -64,6 +64,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 41c81f6..3e5b24a 100644 --- a/drivers/net/ethernet/freescale/fec_main.c +++ b/drivers/net/ethernet/freescale/fec_main.c @@ -988,6 +988,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 /*