Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1111209ybx; Thu, 7 Nov 2019 07:25:34 -0800 (PST) X-Google-Smtp-Source: APXvYqy+onUWd1QPhcTYucA+heFbf8rDaaRZq7th39iZaenetg0aaMxc3HlpNZJ6oezgkbYjq3bE X-Received: by 2002:a17:906:3e90:: with SMTP id a16mr2074679ejj.265.1573140334082; Thu, 07 Nov 2019 07:25:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573140334; cv=none; d=google.com; s=arc-20160816; b=MgOd414eeEmZXxTB0CgLfaBLwdey1yZxjAZ4Gyq6j2m34Fdg2iszuAZwG+DqiGQJNL MdAJE2FPgOZFL+bRocSRhLEFsPnWr1k8iEGELBdPd66jRT7YRJlNk7Mpl7WgcPv6hZhQ kCMqI+b1CcRou0Tx2VtTJZNWJDkAvnAstIPXkPRhYohwJ7eJSXOegX56Yu/3hlGAdB4T rxrNcpILGOt2hbtMnlanFZnB6UJqJgYBFfR9KWWfjfWO2fzJbdPIYHdbzZM7FcHykhpa dP6bD3hmUmP2M+hPZGgwq4siUXdY49J6lEzHLIZ12jMAZLs4tpC1cA4MtOFeHKQZnkkK fa3g== 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=dcnk0ANknQMbjTjmlUKv1fG9YXnuFmwOZ6qU0Be10Ak=; b=IZrSvoEIOjCLlqwszZ5e3QV9ldu2EOEHNTRncBVgLFWLu8GXur/Cf72VFoOAXBIx7s uh4GtyU4wWuDxFFpjuL26DuZPmVh/8VqZ6ZCL/EzU7C4WpImQPbXyifm4v8eDWTyxLbm +xnIkrjyS5MI/iRNMnhPE3cwK+mJJd5RhzYf7m0Ajl0bGaf/Bx+XLszN0OZjGhGnWAre X46ddeAFKRz9/Aop1BKiWjTpW27WgwSquC1iDSnYk98q1/MJja7CuMX7Lul1jVKAtNKS aX+Fx2ZhMUQOpjX9nZCs980tuCFm22WOy4P/KXBJYMrzd6mFAFLZlztiIm5bLAu1Lw/f WVXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=MLjoN28E; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 x18si1541138ejo.78.2019.11.07.07.25.10; Thu, 07 Nov 2019 07:25:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=MLjoN28E; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S2388499AbfKGPYM (ORCPT + 99 others); Thu, 7 Nov 2019 10:24:12 -0500 Received: from mail2.candelatech.com ([208.74.158.173]:43182 "EHLO mail3.candelatech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727727AbfKGPYL (ORCPT ); Thu, 7 Nov 2019 10:24:11 -0500 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 A4F4413C358; Thu, 7 Nov 2019 07:24:09 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com A4F4413C358 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1573140251; bh=51W91Kw2UqEb8Wlp1490MubzBtLUcquzz36+dIa/yk8=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From; b=MLjoN28EsJ7Hcrq5iM3T9oJvb3rV4Ko1evC6v41M1C1VxFkNS9bml8tMltAtqXLBn kfvP/Q95avdsMtK5oWprw9vOTXtUs1W11hsFbL8z4sgdCNWO2r0sNR14LpKng3IeRT r37iAX7JwcSVkDbw9zxUGpSVfE7XdpZEhIyUWU4U= Subject: Re: [PATCH net-next] ath10k: fix RX of frames with broken FCS in monitor mode To: =?UTF-8?Q?Linus_L=c3=bcssing?= References: <20191105164932.11799-1-linus.luessing@c0d3.blue> <927cea69-7afc-5c35-df8d-9813392e8928@candelatech.com> <20191107140149.GB19482@otheros> Cc: =?UTF-8?Q?Linus_L=c3=bcssing?= , ath10k@lists.infradead.org, Kalle Valo , "David S . Miller" , Simon Wunderlich , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org From: Ben Greear Message-ID: <6ca7e338-d14d-49f6-f51c-600856b59767@candelatech.com> Date: Thu, 7 Nov 2019 07:24:06 -0800 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: <20191107140149.GB19482@otheros> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/07/2019 06:03 AM, Linus Lüssing wrote: > On Tue, Nov 05, 2019 at 09:19:20AM -0800, Ben Greear wrote: >> Thanks for adding the counter. Since it us u32, I doubt you need the spin lock >> below? > > Ok, I can remove the spin-lock. > > Just for clarification though, if I recall correctly then an increment operator > is not guaranteed to work atomically. But you think it's unlikely > to race with a concurrent ++ and therefore it's fine for just a debug counter? > (and if it were racing, it'd just be a missed +1) I think it is fine to be off-by-one, and u32 is atomic so you would never read a really weird number, like you can if u64 is non-atomically being incremented. Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com