From owner-freebsd-arm@freebsd.org Mon Jun 20 22:33:32 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CE454AC4EC2; Mon, 20 Jun 2016 22:33:32 +0000 (UTC) (envelope-from kwhite@site.uottawa.ca) Received: from courriel.site.uottawa.ca (eecsmail.engineering.uottawa.ca [137.122.24.224]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "courriel.site.uottawa.ca", Issuer "DigiCert SHA2 Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 93BB21973; Mon, 20 Jun 2016 22:33:31 +0000 (UTC) (envelope-from kwhite@site.uottawa.ca) Received: from [10.0.2.15] (ppp-66-186-88-176.vianet.ca [66.186.88.176]) (authenticated bits=0) by courriel.site.uottawa.ca (8.14.5/8.14.5) with ESMTP id u5KMXMGs006384 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 Jun 2016 18:33:23 -0400 (EDT) (envelope-from kwhite@site.uottawa.ca) Date: Mon, 20 Jun 2016 18:33:22 -0400 (EDT) From: Keith White X-X-Sender: kwhite@localhost.my.domain To: Luiz Otavio O Souza cc: Maxim Sobolev , FreeBSD Current , "freebsd-arm@freebsd.org" Subject: Re: BBB (cpsw(4)) seems to be broken in the latest 11-current In-Reply-To: Message-ID: References: <83A18C0E-FA89-4009-A8D5-3185FB27A688@netgate.com> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jun 2016 22:33:32 -0000 On Mon, 20 Jun 2016, Luiz Otavio O Souza wrote: > On Sun, Jun 19, 2016 at 1:11 AM, Maxim Sobolev wrote: >> Jim, some update from here. Running r283287 of the driver, I still see the >> same "watchdog timeout" messages, but they do not lead to the interface >> lockout. The traffic resumes momentarily. Which is probably why I never paid >> much attention to those warnings before. Therefore, I suspect that the new >> MAC code does not deal with watchdog-triggered interface reset as good as >> the old code. Does it give you any ideas about what could be wrong there by >> any chance? > > > Hi Maxim, > > My recent changes contributed somehow to expose the bug more frequently. > > There was a condition in tx packet reclamation where we aren't > restarting the tx queue in one of the possible stall conditions. > > Please try the attached patch and let me know if it works for you. > > Luiz Your patch fixes the problem for me. Thanks! FreeBSD beaglebone 11.0-ALPHA4 FreeBSD 11.0-ALPHA4 #0 r302028M: Mon Jun 20 18:19:55 EDT 2016 kwhite@freebsd11:/usr/obj/arm.armv6/usr/src/sys/BEAGLEBONE-LOCAL arm armv6 ...keith