Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5649920ybe; Tue, 10 Sep 2019 06:58:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzbI+Ot7D9FrB2Qe/zHleGPG+wGJoRwr4aelEwW0lGNkAylBQg+OCQDqGmxTwz+2TwEyJR5 X-Received: by 2002:aa7:c719:: with SMTP id i25mr3750417edq.5.1568123922047; Tue, 10 Sep 2019 06:58:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568123922; cv=none; d=google.com; s=arc-20160816; b=V3EnwTCOYGoCd9a3iGPVVTzRFXAAsfHMGa9qN/YS0eyWfdqPkO66GsCt+NER2K0lcq WYf5/y0c8HVtUYr5E7xyeAHSEbQ/DoBr0RjW9fbRbSZZpUrXTg5u/46q1gAFaeXW92v1 FF/+YZvvXC/vBYqHDFgwZAQ4pVoa++6uJa0+OGcBrrTmERyJKsaCWhWHIhNOu22//MfN HFFlJk8Og+smq7R7rM5d4CbrtPF1Wa0dYZ8Nml2bsJw0R1Qde9LUWwGr4UG1P6BH+UQi pQXkOunJWxOOeP58Z/csOPVmjZchkmJ880J+rY6iYkfqz3Eg5Kz6r+3RbgO7FXNRLbrs vOiA== 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:cc:references:to :subject:dkim-signature:dkim-filter; bh=wPnm9nTl+ICZw1h2R2F55XLIUimxjqtEeRnI1805phM=; b=q7CuyuSZa9cHR/C5wWJdlQ3y4O5ihJxnh//OseA5G6KBG3B3McTV/MkXs/qF6+SddA Q9o0S5pLrt4N3vwC1yEbxEAqqh0xsvuIvwkGSdiChWnQTZoTnnIbOGCd43MGI4VJ6Xeb OHpTLtDAvXk5MmHr91QvvdBG+JgbnCZ1pWo4QdnQK4bfESc6LvdasjEdjpmtuk7Dr8S9 y1ju1Ij3+nPSzdVHgm5X96qLxN21O79q6tYMJIRxAsIfUR5j0O3bkLnvbUx5k1xPPIbn tDUrvmurkuOfpqBC9H3Ggmb4I8ORbRVUdmzLkV+JUmTRJTWkgcMimK/wWWUmiyYil07M RGdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=hAkZVrtN; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id b4si9557850edk.331.2019.09.10.06.58.17; Tue, 10 Sep 2019 06:58:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=hAkZVrtN; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 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 S1731095AbfIJNTh (ORCPT + 99 others); Tue, 10 Sep 2019 09:19:37 -0400 Received: from mail2.candelatech.com ([208.74.158.173]:47282 "EHLO mail3.candelatech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725935AbfIJNTg (ORCPT ); Tue, 10 Sep 2019 09:19:36 -0400 Received: from [192.168.1.47] (unknown [50.34.216.97]) (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 E33D8104F; Tue, 10 Sep 2019 06:19:35 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com E33D8104F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1568121576; bh=JA0ADspSHp+Rb9ZUh6KL1eOvy9wEnd+GKRwLsN5l5tU=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From; b=hAkZVrtNED9+nz1OQPG0JOHHxBFuSA6fVubMJWh75oUuUf5016A4jDgBc+jy80Lj7 VCFCAJowTW0CCgUea42EpvdETf1sT6ySXqAEz8GxHEu03kvL3Hxtd5Rg/sqBPZRhGP oYsqZK3uBbR3Vx+wVqrDJvX+c7ZO1ZSHylS03mMw= Subject: Re: [PATCH] ath10k: Free beacon buf later in vdev teardown. To: Kalle Valo References: <20190227162756.13048-1-greearb@candelatech.com> <20190910131244.267AF602F2@smtp.codeaurora.org> Cc: linux-wireless@vger.kernel.org From: Ben Greear Message-ID: <89712e32-1fb2-f002-15ed-046871c161ce@candelatech.com> Date: Tue, 10 Sep 2019 06:19:35 -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: <20190910131244.267AF602F2@smtp.codeaurora.org> 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 09/10/2019 06:12 AM, Kalle Valo wrote: > greearb@candelatech.com wrote: > >> My wave-1 firmware often crashes when I am bringing down >> AP vdevs, and sometimes at least some machines lockup hard >> after spewing IOMMU errors. >> >> I don't see the same issue in STA mode, so I suspect beacons >> are the issue. >> >> Moving the beacon buf deletion to later in the vdev teardown >> logic appears to help this problem. Firmware still crashes >> often, but several iterations did not show IOMMU errors and >> machine didn't hang. > > I'm not really fond of fixing issues just by luck but after a quick look at the > code I can't see any harm in this change either. So I guess it's ok. > > But can you provide the exact hardware and firmware you used for testing, I'll > add it to the commit log. I want to document that in every commit: I used Compex WLE900VX hardware, and the firmware was ath10k-ct something or other, it has been a long time, so I don't recall the exact firmware version. The real fix for this is to have the firmware do proper beacon tx completion logic so that the driver can know when it can safely free buffers. I implemented this in my ath10k-ct firmware/driver, but unless you want to start accepting patches for my firmware, then that will not help upstream ath10k. Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com