From owner-freebsd-arm@freebsd.org Mon Jun 12 07:59:28 2017 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 53C79BF64A8 for ; Mon, 12 Jun 2017 07:59:28 +0000 (UTC) (envelope-from hlh@restart.be) Received: from tignes.restart.be (tignes.restart.be [IPv6:2001:41d0:8:bdbe:0:1::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tignes.restart.be", Issuer "CA master" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B356117A3 for ; Mon, 12 Jun 2017 07:59:27 +0000 (UTC) (envelope-from hlh@restart.be) X-Comment: SPF check N/A for local connections - client-ip=2001:41d0:8:bdbe:1:1::; helo=restart.be; envelope-from=hlh@restart.be; receiver=tvijlbrief@gmail.com DKIM-Filter: OpenDKIM Filter v2.10.3 tignes.restart.be 3wmQK75GrczsGg DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=restart.be; s=tignes; t=1497254363; bh=paJRZpSPZywknhtAwYSQ/v0aVBhO76JeeIrU0MxSWgA=; h=Subject:To:References:From:Date:In-Reply-To; z=Subject:=20Re:=20[Bug=20219927]=20awg0=20stops=20working=20after= 20a=20long=20output=20under=20ssh|To:=20Tom=20Vijlbrief=20,=20freebsd-arm@freebsd.org|References:=20=0D=0A=20|From:=20Henri=20H ennebert=20|Date:=20Mon,=2012=20Jun=202017=2009:59 :21=20+0200|In-Reply-To:=20; b=bxzP3we8S6e2k7EM8keh4NpKh60YjixE5yi7fThHHOdELayZa/8SF+PUITb7TwR32 fLc3GPAJY+rI4Oq2/2nMFrQeko1q4Og/HnLz7Q9W2Rr1T76whndrRnwibYVD/68cBw xNxWaSY6KBGXtqyTJUgyBCaHL2j3s73IM04FVxWTI6Z2LLueQ6Zz2FkJHs0w0cNeXw EQOal7ecL0FQD0KNxenvJ9iT9J5dBjmwWwPAlNozKsEAlZ+wdd/A0mdCHD0kMqdPWk n6Rh8lci0s1eXvCqYVK7G1Odr5b/Mkqrq07b/EaoZBHfVL/ooLvUZN+qSdMchEAIi7 NEiMZoOIfkwxQ== Received: from restart.be (avoriaz.restart.be [IPv6:2001:41d0:8:bdbe:1:1::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.restart.be", Issuer "CA master" (verified OK)) by tignes.restart.be (Postfix) with ESMTPS id 3wmQK75GrczsGg; Mon, 12 Jun 2017 09:59:23 +0200 (CEST) Received: from chamonix.restart.bel (chamonix.restart.bel [IPv6:2001:41d0:8:bdbe:1:9:0:0]) (authenticated bits=0) by restart.be (8.15.2/8.15.2) with ESMTPSA id v5C7xL1C030648 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Mon, 12 Jun 2017 09:59:22 +0200 (CEST) (envelope-from hlh@restart.be) Subject: Re: [Bug 219927] awg0 stops working after a long output under ssh To: Tom Vijlbrief , freebsd-arm@freebsd.org References: From: Henri Hennebert Message-ID: <158994e0-9f53-e64a-2b81-b554894571c6@restart.be> Date: Mon, 12 Jun 2017 09:59:21 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr-classic Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2017 07:59:28 -0000 On 06/11/2017 17:54, Tom Vijlbrief wrote: > > Op zo 11 jun. 2017 om 16:23 schreef >: > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219927 > > Bug ID: 219927 > Summary: awg0 stops working after a long output under ssh > Product: Base System > Version: CURRENT > Hardware: arm64 > OS: Any > Status: New > Severity: Affects Only Me > Priority: --- > Component: arm > Assignee: freebsd-arm@FreeBSD.org > Reporter: hlh@restart.be > > Environment: pine64+ 2GB > FreeBSD norquay.restart.bel 12.0-CURRENT FreeBSD 12.0-CURRENT #0 > r318945M: Sat > Jun 10 11:47:44 CEST 2017 > root@norquay.restart.bel:/usr/obj/usr/src/sys/NORQUAY arm64 > > If I connect from a wireless computer (FreeBSD 11.1-PRERELEASE #0 > r318860) and > run a command with a big output (eg `find /`) the awg0 stops working > quickly > (under 20 seconds of output). > > If I do the same with telnet from the same computer, the output is > much longer > but awg0 stops working. > > If I do the same from a wired computer then I must run `find /` 2 or > 3 times > before awg0 stops working. > > I can rsync through ssh 12GB without problem in both directions > (from and to > the pine64 and the wireless computer). > > I have a `tcpdump -w ssh.data port 22`. (8.3 MB) > > I can connect with a serial console to the pine64 after awg0 stop > working. > ifconfig awg0 down > ifconfig awg0 up > don't restore the connectivity. I must reboot to restore connectvity. > > > That's a coincidence, today I'm investigating the same issue. > > You could try increasing TX_MAX_SEGS in sys/arm/allwinner/if_awg.c line 95. > > I'm currently testing TX_MAX_SEGS set to 40 and no lock up yet.... Bingo. Your solution solved the problem. Thanks a lot.