Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1947537imu; Sun, 16 Dec 2018 12:42:27 -0800 (PST) X-Google-Smtp-Source: AFSGD/VdV/eNg2Og+0xOtXq58fbjP8qfBLaXt2B4Cokey2beW3hEd5Q3wFOAV+FsRKcpiOCV9D6M X-Received: by 2002:a17:902:24a2:: with SMTP id w31mr10192442pla.216.1544992947140; Sun, 16 Dec 2018 12:42:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544992947; cv=none; d=google.com; s=arc-20160816; b=Q77w6X7r7hvLeF/2SF5bCONOItYOTDx4B2ohhffK1FKOse4g5COtVQK+2LRD3wEKkq ric4iEEYrgl0A9tDjeiHVmBls6Aos5CXjVMwdPeR0kHqjALvXtMpqGwHvWNuPX8j61LG jvRs+YmZU5bW6EoO/5BDJJrJjl6WRU0e/sz5/zSWjajh0lunvhpDMSvdUyqKN2Pt/cyu knBlt+x/Wd3N6I3bjRh9T33tvReeuWq8S3c0jZA3KbeMIyrcAXa6F4kimFjpZLYuU+Tl EkMdrBGBfAP1XrW983Uxr9mgSObdpr7Kj9NFZvnP3D61T2jC3yTq75RHPtswo6y+QbXr p8Ng== 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 :references:in-reply-to:from:subject:cc:to:message-id:date; bh=8t/w958UpT8mJ5xgcX7YYD+NAAXcjmGZ7XwTqd9mCRU=; b=f058bgy3+TtE8jT/Pc+4UtbV+olKpBUbHG24kenGgjnYmRaXG67UfzOcykSEFMj3hN u+HVqnWQCi4KBnEVDf1fx0diW/r0ZTnzbtN085FdsZd8O/0P48o5IQ+1RSuuQIYxLHLW ySLUT3Hcj1n5L9pkTEURXfAtmSoSZAgTZx6/6cUHNw1SbMs8W6xl2KlfmTkpleOVsG1t /ea5QfcTpSEPJfFv62XY/e++Bszd96N6niDoNEw4cyKkQmyadUncx7TwiprY0Ivv8u1W jiyKQrQqwqjzM4aDq6uTcHTpXMOENW+7bjEEXy/woToHw79W0mZtzrtySOau63/EoRZr JeDg== ARC-Authentication-Results: i=1; mx.google.com; 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 z20si9084912pgv.159.2018.12.16.12.42.11; Sun, 16 Dec 2018 12:42:27 -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; 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 S1730887AbeLPUlW (ORCPT + 99 others); Sun, 16 Dec 2018 15:41:22 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:48124 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726289AbeLPUlW (ORCPT ); Sun, 16 Dec 2018 15:41:22 -0500 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::cf9]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 2CF7A14EF614A; Sun, 16 Dec 2018 12:41:21 -0800 (PST) Date: Sun, 16 Dec 2018 12:41:20 -0800 (PST) Message-Id: <20181216.124120.731491122771817496.davem@davemloft.net> To: mw@semihalf.com Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux@armlinux.org.uk, maxime.chevallier@bootlin.com, thomas.petazzoni@bootlin.com, gregory.clement@bootlin.com, antoine.tenart@bootlin.com, stefanc@marvell.com, nadavh@marvell.com, jaz@semihalf.com Subject: Re: [PATCH net] net: mvneta: fix operation for 64K PAGE_SIZE From: David Miller In-Reply-To: <1544533009-12425-1-git-send-email-mw@semihalf.com> References: <1544533009-12425-1-git-send-email-mw@semihalf.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sun, 16 Dec 2018 12:41:21 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marcin Wojtas Date: Tue, 11 Dec 2018 13:56:49 +0100 > Recent changes in the mvneta driver reworked allocation > and handling of the ingress buffers to use entire pages. > Apart from that in SW BM scenario the HW must be informed > via PRXDQS about the biggest possible incoming buffer > that can be propagated by RX descriptors. > > The BufferSize field was filled according to the MTU-dependent > pkt_size value. Later change to PAGE_SIZE broke RX operation > when usin 64K pages, as the field is simply too small. > > This patch conditionally limits the value passed to the BufferSize > of the PRXDQS register, depending on the PAGE_SIZE used. > On the occasion remove now unused frag_size field of the mvneta_port > structure. > > Fixes: 562e2f467e71 ("net: mvneta: Improve the buffer allocation method for SWBM") > Signed-off-by: Marcin Wojtas The discussion died on this, but the bug should be fixed. So in the short term I am applying this and queueing it up for v4.19 -stable. Thanks.