Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp1358299ybs; Mon, 25 May 2020 14:01:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPMxgaNzN+qPWux+iGXxrn7OVjy3qY3DQFnqvf2PDCO1xuPmdJoPUzqOUzKAprDR2Y+Zad X-Received: by 2002:a17:906:e01:: with SMTP id l1mr19533512eji.425.1590440498051; Mon, 25 May 2020 14:01:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590440498; cv=none; d=google.com; s=arc-20160816; b=H4eRh895WbOGNzcJv0yMgU3QgkPj2uRKX8cBKTa3Asm2f7Q91DBqtY/ZEd2EaqCoHl ayJBwPxS4WltVQ1Fwz9RRrHlRCLTIOakul/0ONCe23kRKCuBlN1ekNjjqt+g3LUcoAf0 4jqRhfiS/iz6CS137CiqXUver+nL2obsax8fT+1J2my0faQv9VLdYnihk3RP2r2A3SBj EMh4okc17URoMQKGJooyMaYG/Y/Pt0w87m5n9/l+1M0Tsy0F0W3RsoD1xUQfG6Zyg9en IyWCdSja3auaQjp5ecdcrZ9yvomWDFqyMYqFfCFzW/Q9RmOAcpdAuTxG6UK3YZaB0tIS A+fA== 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:in-reply-to :mime-version:user-agent:date:message-id:from:references:to:subject :dkim-signature:dkim-filter; bh=Inypzip6ecSPqSlvPxb6kZqk0LEXk6cfvXx9Cb2dTds=; b=ihOqHkFx9E3XaZ20QPgfBzYq4vhkayiQoe0k85c9Ohn4Wni/U3SfM9GCJIFyVaAg8D yxE/FSwFQA5Y4yAmB1vnMSThW080GrFUTbLqcKrBTzMKDFdjjCbk2+6sQu0bK9urZwSq OMxi2JWGv647gZIk3ReI35T+mJVRC1dgr7fIStvqeYrHBdpbD+BJ7fmoAfL/dFan+FQQ Irdz0MqWWLCr4YP+c/l8rqOh+bAK/614M55MZB+B4DNF/sj7q40R9QJ/+hFJg3OTgc6G zquZINMQz6vdaW2ztBtaMvX9SfFoyQ0CRSVjlMmqCOWyDec0M1vMKNG3TzMJQ/MlKfrJ ju1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=kaqFpcQh; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=candelatech.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e9si10052209ejc.702.2020.05.25.14.01.14; Mon, 25 May 2020 14:01:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=kaqFpcQh; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=candelatech.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391223AbgEYQOI (ORCPT + 99 others); Mon, 25 May 2020 12:14:08 -0400 Received: from mail2.candelatech.com ([208.74.158.173]:58942 "EHLO mail3.candelatech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726476AbgEYQOI (ORCPT ); Mon, 25 May 2020 12:14:08 -0400 Received: from [192.168.254.4] (unknown [50.34.197.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail3.candelatech.com (Postfix) with ESMTPSA id 2FC1913C2B0; Mon, 25 May 2020 09:14:07 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com 2FC1913C2B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1590423247; bh=lETtZcwZzP9M6Ntf5ZfshL0QfvgFYjUadyEO5zFWooQ=; h=Subject:To:References:From:Date:In-Reply-To:From; b=kaqFpcQhKn6UswEmtyOTMAjimoM95ameTl3UXMpIp3T6Wr6NdSrYhQOg1VmuJEv9f 2QyJ9PfuBIAh+LdM6HdQkqinA9uPU7eS5mWk/v3Jo/I23dSHY/Rx89+RiLrHDiC9eg R6CPTMeB56SzdFMKy9MbjdI+ybBwYxhIG+wMldyY= Subject: Re: mac80211 spam and deadlock on OpenWrt To: Johannes Berg , "linux-wireless@vger.kernel.org" References: <83abd321a059b4bed470775333f3dbc598661c68.camel@sipsolutions.net> From: Ben Greear Message-ID: Date: Mon, 25 May 2020 09:14:06 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <83abd321a059b4bed470775333f3dbc598661c68.camel@sipsolutions.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 05/25/2020 02:25 AM, Johannes Berg wrote: > On Wed, 2020-05-13 at 06:56 -0700, Ben Greear wrote: >> Hello, >> >> I've been running some stress tests against OpenWrt APs. My AP partially died yesterday >> during a test and did not recover. It looks like firmware became non responsive, >> but then it could not recover due to what I think is bugs I fixed long ago in >> the kernel that I normally use. The OpenWrt image is using my ath10k-ct driver and firmware, >> but stock OpenWrt kernel/mac80211 as far as I know. >> >> I think there are several issues: >> >> 1) The WARN-ON about check-sdata-in-driver should be a warn-on-once. Spamming serial >> console logs like this is both very slow and also useless for debugging. >> >> I posted a patch with this title some time back to mitigate this problem: >> "mac80211: Don't spam kernel with sdata-in-driver failures." >> >> 2) I suspect that the ensuing lockup may be fixed by this patch I posted >> back in 12/1/2016: >> "mac80211: do not iterate active interfaces when in re-configure" >> >> I have been running both of those patches since posting them to the list, so they have good >> soak time in some strenuous wifi usage cases. > > Huh, these are kinda old I guess. > > Can you repost them? For the warning log-spam, you could grab patch 3 and 4 from this series I posted late last year: [PATCH 00/10] Ben's grab bag of mac80211 patches I think patch 5 in there is also nice to have, we passed email about it, but not sure it ever made it upstream. I'll dig out the 'iterate active' patch and post it stand-alone. Thanks, Ben > > johannes > -- Ben Greear Candela Technologies Inc http://www.candelatech.com