From patchwork Wed Jan 22 09:28:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 233422 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.7 required=3.0 tests=DATE_IN_PAST_03_06, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 32768C2D0DB for ; Wed, 22 Jan 2020 13:21:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F309E2467C for ; Wed, 22 Jan 2020 13:21:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579699293; bh=inz4iGpYzZzdomoER5ImFavsOr5AO2IFv16WVKV7xGM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=cOW3fyfT3S9kAc1TIbLF9OsjxsfIy5p9tvWXtTFRSSooBOkew4iQssbHYqnfHp+Qq T6wIg7oLJwbFGpMm4G8g/V5s3N5jJdXXGao8xKxNt5QGNhyyjKQS1qblLWs7ZYBcgO f1G76qlBINqMXsM3xaej3QTqhTvPfBFyRGn34kkk= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730283AbgAVNVc (ORCPT ); Wed, 22 Jan 2020 08:21:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:38646 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729742AbgAVNVb (ORCPT ); Wed, 22 Jan 2020 08:21:31 -0500 Received: from localhost (unknown [84.241.205.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8B05F2467B; Wed, 22 Jan 2020 13:21:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579699291; bh=inz4iGpYzZzdomoER5ImFavsOr5AO2IFv16WVKV7xGM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tu56DCNDfLY6nR2qijoYCse190OTh673oNeAr+t9qln3rNNkwuwwfaGwELDK+6kua MgjHYMQ5wd0zGXGW6XLF/4hEk4/RHOYzJlf6oKctsrw8Hkv6PsyaUrMKhX7vqFgwn6 p675DSxWDvmXDevrL3/I5/QaAYrMj/m+EX7eje4U= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jose Abreu , "David S. Miller" Subject: [PATCH 5.4 099/222] net: stmmac: 16KB buffer must be 16 byte aligned Date: Wed, 22 Jan 2020 10:28:05 +0100 Message-Id: <20200122092840.827601529@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200122092833.339495161@linuxfoundation.org> References: <20200122092833.339495161@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Jose Abreu commit 8605131747e7e1fd8f6c9f97a00287aae2b2c640 upstream. The 16KB RX Buffer must also be 16 byte aligned. Fix it. Fixes: 7ac6653a085b ("stmmac: Move the STMicroelectronics driver") Signed-off-by: Jose Abreu Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/stmicro/stmmac/common.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) --- a/drivers/net/ethernet/stmicro/stmmac/common.h +++ b/drivers/net/ethernet/stmicro/stmmac/common.h @@ -364,9 +364,8 @@ struct dma_features { unsigned int arpoffsel; }; -/* GMAC TX FIFO is 8K, Rx FIFO is 16K */ -#define BUF_SIZE_16KiB 16384 -/* RX Buffer size must be < 8191 and multiple of 4/8/16 bytes */ +/* RX Buffer size must be multiple of 4/8/16 bytes */ +#define BUF_SIZE_16KiB 16368 #define BUF_SIZE_8KiB 8188 #define BUF_SIZE_4KiB 4096 #define BUF_SIZE_2KiB 2048