Return-path: Received: from pmta2.delivery5.ore.mailhop.org ([54.186.218.12]:18645 "EHLO pmta2.delivery5.ore.mailhop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964853AbcKXM2b (ORCPT ); Thu, 24 Nov 2016 07:28:31 -0500 Date: Thu, 24 Nov 2016 12:28:24 +0000 From: Jason Cooper To: miaoqing@codeaurora.org Cc: Russell King - ARM Linux , linux-wireless@vger.kernel.org, Linux ARM Kernel , ath9k-devel , ath9k-devel@lists.ath9k.org, Thomas Petazzoni , Gregory CLEMENT , Kalle Valo , Andrew Lunn Subject: Re: ath9k ARMv7 OOPS in v4.8.6, v4.2.8 Message-ID: <20161124122824.GL2799@io.lakedaemon.net> (sfid-20161124_132855_249918_800AE712) References: <20161123191539.GF2799@io.lakedaemon.net> <20161123195120.GE14217@n2100.armlinux.org.uk> <20161123205917.GI2799@io.lakedaemon.net> <20161123211745.GF14217@n2100.armlinux.org.uk> <20161123214053.GJ2799@io.lakedaemon.net> <7aba95bdf0d562f3c9640d533c33e1ca@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <7aba95bdf0d562f3c9640d533c33e1ca@codeaurora.org> Sender: linux-wireless-owner@vger.kernel.org List-ID: On Thu, Nov 24, 2016 at 02:06:57PM +0800, miaoqing@codeaurora.org wrote: > > >>Okay, so i was 0, so running UP probably isn't going to help. r7 is > >>also spec_priv->rfs_chan_spec_scan. > >> > >>So, I think the question is... how is this NULL - and has it always > >>been NULL... > > > >The problem appears to be that ath_cmn_process_fft() isn't called that > >often. When it is, it crashes in ath_cmn_is_fft_buf_full() because > >spec_priv->rfs_chan_spec_scan is NULL when ATH9K_DEBUGFS=n. :-( > > > >I'm running with ATH9K_DEBUGFS=y now. If it goes a couple of days > >without crashing, I'll gin up a patch. > > > > A similar patch was applied to ath-next branch: > https://patchwork.kernel.org/patch/9431163/. Hmm. Ok, I'm giving it a spin on my board with SMP=y, ATH9K_DEBUGFS=n (so the only change from known crashing is the patch) and we'll see how it goes. Honestly, though, I think the real problem is when kernels are built without ATH9K_DEBUGFS. Did the reporter of the crash say if that was enabled on his system or not? I'm concerned that there may be other code lurking that secretly depends on ATH9K_DEBUGFS being enabled. thx, Jason.