From owner-freebsd-wireless@freebsd.org Sun Jul 17 10:48:20 2016 Return-Path: Delivered-To: freebsd-wireless@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 703EAB9C2F8 for ; Sun, 17 Jul 2016 10:48:20 +0000 (UTC) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from saturn.lyxys.ka.sub.org (saturn.lyxys.ka.sub.org [217.29.35.151]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E6DA01640; Sun, 17 Jul 2016 10:48:19 +0000 (UTC) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from juno.lyxys.ka.sub.org (juno.lyx [IPv6:fd2a:89ca:7d54:0:240:caff:fe92:4f47]) by saturn.lyxys.ka.sub.org (8.15.2/8.15.2) with ESMTPS id u6HAltnj099762 (version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=FAIL); Sun, 17 Jul 2016 12:47:56 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from juno.lyxys.ka.sub.org (localhost [127.0.0.1]) by juno.lyxys.ka.sub.org (8.15.2/8.15.2) with ESMTPS id u6HAltgw074547 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 17 Jul 2016 12:47:55 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) Received: (from wolfgang@localhost) by juno.lyxys.ka.sub.org (8.15.2/8.15.2/Submit) id u6HAltBg074546; Sun, 17 Jul 2016 12:47:55 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) X-Authentication-Warning: juno.lyx: wolfgang set sender to wolfgang@lyxys.ka.sub.org using -f Date: Sun, 17 Jul 2016 12:47:55 +0200 From: Wolfgang Zenker To: Adrian Chadd Cc: "freebsd-wireless@freebsd.org" Subject: Re: ath (AR9460) no longer works after going to 11-STABLE r302483 Message-ID: <20160717104755.GA74205@lyxys.ka.sub.org> References: <20160710174746.GA29034@lyxys.ka.sub.org> <20160710175300.GB29034@lyxys.ka.sub.org> <20160714213758.GA17141@lyxys.ka.sub.org> <20160715202803.GA38281@lyxys.ka.sub.org> <20160716093010.GA50786@lyxys.ka.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: private site User-Agent: Mutt/1.6.1 (2016-04-27) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (saturn.lyxys.ka.sub.org [IPv6:fd2a:89ca:7d54:1:200:24ff:feca:b4cc]); Sun, 17 Jul 2016 12:47:56 +0200 (CEST) X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jul 2016 10:48:20 -0000 * Adrian Chadd [160716 17:52]: > ... > I'm confused as to what's going on.. smells like a race condition unmasked by changed timing to me. But I admit I have no clue at all how that wlan stuff works and if it is even possible for such a race condition to exist, much less how to debug this. > On 16 July 2016 at 02:30, Wolfgang Zenker wrote: > > Hi, > > > > * Adrian Chadd [160715 22:40]: > >> On 15 July 2016 at 13:28, Wolfgang Zenker wrote: > >>> * Adrian Chadd [160715 00:00]: > >>>> On 14 July 2016 at 14:37, Wolfgang Zenker wrote: > >>>>> * Adrian Chadd [160710 21:47]: > >>>>>> Since you've reverted the ath driver directories without success, I'm > >>>>>> mostly out of simple ideas. I think you need to bisect the whole > >>>>>> kernel version until you find the commit that broke things. > > > >>>>> done. The commit is 11-STABLE r302410. AFAICS the only change here > >>>>> is the removal of debugging options from the GENERIC kernel config: > > > >>>>> https://svnweb.freebsd.org/base/stable/11/sys/amd64/conf/GENERIC?r1=302408&r2=302410 > > > >>>> ... loool, okay. Let me see. > > > >>>> Try INVARIANTS and INVARIANT_SUPPORT. Maybe something in the ath > >>>> driver needs it.. oops! > > > >>> Nope, wlan0 still works after disabling INVARIANTS and INVARIANT_SUPPORT. > >>> Any suggestions for next try? > > > >> Just try disabling the others and see what happens. > > > > commenting out DEADLKRES and MALLOC_DEBUG_MAXZONES in addition to > > INVARIANTS and INVARIANT_SUPPORT did not change the situation: ath > > still worked. Re-enabling all of the above and disabling WITNESS > > resulted in ath failing. > > > > Wolfgang