Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4820862ybl; Wed, 22 Jan 2020 05:23:13 -0800 (PST) X-Google-Smtp-Source: APXvYqwnEzf4c8nuoc82Yfq9PneMBbkdYnUHdGuZy58otEZdWK6y09gnQU7qVs9FLOppPo5Lpqn9 X-Received: by 2002:a9d:65da:: with SMTP id z26mr7209868oth.197.1579699392699; Wed, 22 Jan 2020 05:23:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579699392; cv=none; d=google.com; s=arc-20160816; b=EoCrq+UYk+S0b8d/NPehFsLRy8D16ZZMwzO5GKZi7yaAJvWEy1PAVxYQ1ImHn0BXBZ kjNDqAOVoZ5jYSDgPrur9qtKujlokN490O2BWlg/f1s2w0SwZq6rKAIa4Fz+xgU6cZhF jJFw24JoTpvFZrz76JFdHWstPFjy7IUyDeOMiX8HQo14QOHZfb7yq4Pe5efOfcHNGlIc MZqmNi3Gts4My/nWQ63asvt6hI2YSTrarlcKx/TsEtNdRktO/7ac91YDfQ1Eyfb1C7H+ ewpy/I66FRKwZi3+E6q5waOg6bd9RZT7wwzRoAktulSPsGfZAWKKaNLIptekbkAL9V9D x1rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=HapOECy3c+dGjqoAeLkbLjYe7PAb06sWRqEYk0kEUwg=; b=OYvJIIZKWgsXqe3p6xDN7YLfb/fD3N8GkPaGSkIS/GVQ6hT6u13MmOzsNNiv25latY ixGkl89IxccK2PnqjLX+AvIeZ6UOIeJI+jp+MlD3Cp/QpsNg6PRA0who7dqAh4E5FYpE ruheglVJD7+8gvAlQMdl5jn9tX36VMPp2TwzV7ZOLB2o7Pz4eRjio3ix3lG90DL6bwz1 B48aPZmHLCCYIQ0YQTQnaisq6pn6vvj5xXkCHzV4U7W0Sftuepn8goxt+5V9Ttgx/Kuf 7Kwal1WTFX6Y1dak9xZc1bjtrP9nZhQoDd3qHHRA5rxnPXsxFW+tszx2HBGhCXs19pc2 ZfVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tu56DCND; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j20si22986789otp.147.2020.01.22.05.23.00; Wed, 22 Jan 2020 05:23:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tu56DCND; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729632AbgAVNVe (ORCPT + 99 others); Wed, 22 Jan 2020 08:21:34 -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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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