Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2231855ybi; Thu, 20 Jun 2019 11:16:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqzONqdS07Q3f5RRngHFH0IK2WU+19Xu195FXNWOsHV25wwYZJrukVOGHqeVzhG91zFW5Uqt X-Received: by 2002:a17:90a:d3c3:: with SMTP id d3mr1016918pjw.17.1561054612546; Thu, 20 Jun 2019 11:16:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561054612; cv=none; d=google.com; s=arc-20160816; b=L2bZ1zmtGsXawyvpR1Ce2ZKsc6Kcla0o/xO5y9Cs2LnNISGY5V8orG2EZ+zTgtw2BR niKKA1H4DbUIi2AJw4JGPppbogoA02djyXrWDWDu+fYOnh/qCzREj5i1D854sJ3ImpDe hSQV87kPcG+mtd1WbrqQ5MSNsI6zTDsLYECFNJnulG77uda0cGc8C8z7JQ4BT2d6VR9L I61DRs/N8yTY3KwFV0S46KpkyPKxLJxaBVUpQVeXJ/y3NHBLK7BdkUSkZntTjFzYfjmZ BPP9/H9qi7Bsj5pKHByC2+El0Z4Wq5xcBz9fOxlwRZBoHod+QsWM1+DQ0HKWMWoQvvHu 1sHg== 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=QiHSBbjkcOfFi/7Y00PNpfMyWZlUXAyWQomE6KBjpFQ=; b=d0UTURSnz2ptYhrrZWCd9BBUrYvjrdzygV3KNn9XKbpvJYT9b8Ioy298bSTWvKZQoK a0gs/F7gznNrkjHv3h0BTRvPRp+7PiZMjTS4TjuBYlC7uSp7FN5SvSH6CqqxxFWixiFY ryZ01/HsCBKYc42kF31I7P9BJfZJxBYJ0eLkQtxd9TfloSOJg/+1qSer1+J+Y+FU4MJG iKyxmq8Hq506i40IvsnrzTn6jgKjyVRNKRiauJw1cimR08nM/6HJ+kJJwwgiHnIDiygg wTTEctDmtOlsocea4QOe6j4IDfcAtppDaFkUdG6q7TdJpMJE+Olely90eFzez3sa2zwZ N6Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KJ6yRzJ9; 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 u17si196344pfc.210.2019.06.20.11.16.37; Thu, 20 Jun 2019 11:16:52 -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; dkim=pass header.i=@kernel.org header.s=default header.b=KJ6yRzJ9; 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 S1729790AbfFTSQc (ORCPT + 99 others); Thu, 20 Jun 2019 14:16:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:45674 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729776AbfFTSQ3 (ORCPT ); Thu, 20 Jun 2019 14:16:29 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 C6ED4205F4; Thu, 20 Jun 2019 18:16:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561054588; bh=J1YeY68HcNxy4hxTZGUbI6MEMOoqItqMFANsYPUiprg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KJ6yRzJ9zHG5xKiuRCLt0s2uTUq68kHEfOb1nZh1DsBogWeLgQTVST1i0opr5b3YE hA89xK3gacHwGLpxLcYDb2POw6YP9WywNlBfiLGsyVagtJuKvR7fR2E8/tVgMrskuZ fqtZEopVK9aQ2JINi06RchUEcl3eWj+gzTxsCt5A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Biao Huang , "David S. Miller" , Sasha Levin Subject: [PATCH 5.1 52/98] net: stmmac: update rx tail pointer register to fix rx dma hang issue. Date: Thu, 20 Jun 2019 19:57:19 +0200 Message-Id: <20190620174351.650458591@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190620174349.443386789@linuxfoundation.org> References: <20190620174349.443386789@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 [ Upstream commit 4523a5611526709ec9b4e2574f1bb7818212651e ] Currently we will not update the receive descriptor tail pointer in stmmac_rx_refill. Rx dma will think no available descriptors and stop once received packets exceed DMA_RX_SIZE, so that the rx only test will fail. Update the receive tail pointer in stmmac_rx_refill to add more descriptors to the rx channel, so packets can be received continually Fixes: 54139cf3bb33 ("net: stmmac: adding multiple buffers for rx") Signed-off-by: Biao Huang Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index 3c409862c52e..8cebc44108b2 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -3338,6 +3338,7 @@ static inline void stmmac_rx_refill(struct stmmac_priv *priv, u32 queue) entry = STMMAC_GET_ENTRY(entry, DMA_RX_SIZE); } rx_q->dirty_rx = entry; + stmmac_set_rx_tail_ptr(priv, priv->ioaddr, rx_q->rx_tail_addr, queue); } /** -- 2.20.1