Received: by 2002:ac0:a874:0:0:0:0:0 with SMTP id c49csp683714ima; Fri, 15 Mar 2019 11:41:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqwdYtHoCwJbOvng9DJVvh3pZfd+id255VkxjsMQI+39FkbzHevBR2w7ofm9lGMXvL6b6p1T X-Received: by 2002:a63:181a:: with SMTP id y26mr4854425pgl.268.1552675288571; Fri, 15 Mar 2019 11:41:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552675288; cv=none; d=google.com; s=arc-20160816; b=PZk5ZLZ0V8HKdrg4GerSWJk3vsll4MhRRQ0QAu29cl+6zEygKVEgfQFfO8uDs10KK5 YdIHFEZk5MAMUydS4aAfm3x9tUmLiBnL4gOprk8JkwC9f016ogFYcdmkp0Y0mxoG9FtR 9Am90tB9vuBML/yZSEmMiXa0u14HDFiFGkL23g7npbp5M8vg7ObClhi3qOSx2UsqWFe2 KdMDZmBrFImebR0LZJAMXAM27AX87vs6wSdHflvdu9FQZrR9ltHuYiaPTFuyDa+6TD7u zXZdDM+1Hg2uM6DsSd2S6QC5owhi2JiQMcjF5NXhOwcrjKHrDXgwNGBMQUz64B9WRw3e DtHg== 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=RAa3Jl2FtlX39lM89tMoXyxoKg+Kl9wUmWkxgxxITr4=; b=kEcnOjPRLko6YPCGFnicMiHupZYE4nBuDErCFqA8PP6Bq6sZDlanPhV4Re8KBi/buO viKAmxdt81WHN3IrymxTPXol0CzSYcF/pJ1/Hy8SUx+0zfItdMMD7oGs7E/k49520rqP W0gAowDVp11CuQ5JexEzijFctNmSWirYuNq1f59ZthFDsaEgfHD7FzOHODKIUR8Xqj6/ 2+XnPeYFOnyrijQX2+Btc6KXzcl3d4ek4oIG2jr8lDK+ZYdKRirFIMqpWUAmWE5oMoJE DHeXf9r48Vs175QirzeY113t34EnnB8Qww78eDE/U0CpKdcyEfjvWKo+wJ7SxTba2c77 5+WQ== 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 l13si2382629pgp.571.2019.03.15.11.41.13; Fri, 15 Mar 2019 11:41:28 -0700 (PDT) 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 S1726712AbfCOSjU (ORCPT + 99 others); Fri, 15 Mar 2019 14:39:20 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:60310 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726154AbfCOSjU (ORCPT ); Fri, 15 Mar 2019 14:39:20 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::3d5]) (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 178B314D9FA51; Fri, 15 Mar 2019 11:39:19 -0700 (PDT) Date: Fri, 15 Mar 2019 11:39:18 -0700 (PDT) Message-Id: <20190315.113918.418776680846022851.davem@davemloft.net> To: aaro.koskinen@iki.fi Cc: peppe.cavallaro@st.com, alexandre.torgue@st.com, joabreu@synopsys.com, thor.thayer@linux.intel.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, aaro.koskinen@nokia.com Subject: Re: [PATCH 1/2] net: stmmac: don't set own bit too early for jumbo frames From: David Miller In-Reply-To: <20190314194320.25566-1-aaro.koskinen@iki.fi> References: <20190314194320.25566-1-aaro.koskinen@iki.fi> 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]); Fri, 15 Mar 2019 11:39:19 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Aaro Koskinen Date: Thu, 14 Mar 2019 21:43:19 +0200 > From: Aaro Koskinen > > Commit 0e80bdc9a72d ("stmmac: first frame prep at the end of xmit > routine") overlooked jumbo frames when re-ordering the code, and as a > result the own bit was not getting set anymore for the first jumbo frame > descriptor. Commit 487e2e22ab79 ("net: stmmac: Set OWN bit for jumbo > frames") tried to fix this, but now the bit is getting set too early and > the DMA may start while we are still setting up the remaing descriptors. > And with the chain mode the own bit remains still unset. > > Fix by setting the own bit at the end of xmit also with jumbo frames. > > Fixes: 0e80bdc9a72d ("stmmac: first frame prep at the end of xmit routine") > Fixes: 487e2e22ab79 ("net: stmmac: Set OWN bit for jumbo frames") > Signed-off-by: Aaro Koskinen Applied with the "remaining" typo fixed.