Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp4713467pxb; Tue, 31 Aug 2021 11:25:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUtEvBk/Wl8Dz9UllCExJNcS3a4tNxlpJeuxrQozjEitgUN2L0hxE+ZDzhfwQDGQGQVJAz X-Received: by 2002:a17:906:3693:: with SMTP id a19mr32639219ejc.237.1630434352841; Tue, 31 Aug 2021 11:25:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630434352; cv=none; d=google.com; s=arc-20160816; b=sWghxVtJnaC9dbjh0JdZB7erWpE0BINvudeo6trnA6g9bDrb2ax4rMlwL5hE/qj86J yD48euTwt4ywOetnWzk23bSSNtw44Xp3M/Qfmgvj15RQPST9R0uY2/HU6Dw0Eh835zTE M8JfV2b05EYxUN1+a0aPwDCHA3bY03EUssZBkq5DKXKUYkzv59QdNLXoC7q7UiUbIW3T I9H7P7j+cU7AdIWaQXrDyzOrmTuYLkXYjeBZ8zbjF13SQO07Efg3L7DEYurauaCgjZ9p h+ZXvRt40PibKO3MqC/CCrxaHz/sla3vnsMWWA4FYbpM5LtlgOiCpsKPCnRa9V833qV2 Hpvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=KsNRskN10uGdBS+FAhPOIQh/5DxFwy8MHfzSDSxX5Uw=; b=cMZnN+zgMH2ZeAuh2k7eCugFc2hCubBB0kI4DeivtDrDkQpCiw4tFfEKXracbNaA8J vz3746vgVLDzUP43HxycjMmNzkszPBcZW1N5lqT0Ovi4EbHQBKiH8gq50WxDIjCGyhgn zAFyqUYl+SpI3kRaSJd4rChd17O/apNFezC6sdE/rdj8Ivd+SDGpqVpcnUwGU2eXkb/9 FNTylU6YXGDh88ieowlC5yRUFfh/8IIxq3dsQHlFSLajpkZl2mRJgeTvoqxICzEUClO1 HNYXhO0lknNPOKfCpPgnnR8u3H33VSQi+WFj0GAQbHbwVvWjMEpx6zpmth+og6VMNw6v bmiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HIZJbD1Z; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x15si3153252edd.328.2021.08.31.11.25.20; Tue, 31 Aug 2021 11:25:52 -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=@gmail.com header.s=20161025 header.b=HIZJbD1Z; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234845AbhHaSWx (ORCPT + 99 others); Tue, 31 Aug 2021 14:22:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233943AbhHaSWx (ORCPT ); Tue, 31 Aug 2021 14:22:53 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74063C061575 for ; Tue, 31 Aug 2021 11:21:57 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id m4so251619ljq.8 for ; Tue, 31 Aug 2021 11:21:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KsNRskN10uGdBS+FAhPOIQh/5DxFwy8MHfzSDSxX5Uw=; b=HIZJbD1ZWTB3ivppNQo6KKvLKNJBkZB+gB6ECFKBKCdp2BQMTOL8XIFSnwtuvbiwmG O8glyNjDNLhlM2Q4kXKPB8mPT+qVL8C7+vEo81+qGz1cY7E9A0QC3zhE0Hiv9dZjiNf0 mQdFN0OQF2VZwuoAvvKDHbsSPx5Zuhaedt7cFTjAWncmVpvESSv2DD7QzMrkBf2L5d/F 0na7mJ1dpycu27ttIkjZRsECQ14Lb8CKr6sPjYha9+LYhDARhI7fGzYjl7iBq8C1AEPz sCnFxhUni7bHJn2yj0TF/ksTTfLvx1d5OUmoJD47NNKnzq9rFpXYe1j9zm6K/fQEyuAJ lLVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KsNRskN10uGdBS+FAhPOIQh/5DxFwy8MHfzSDSxX5Uw=; b=FNcH4IWD4qLCWEY1myMVYuxmp2IqP6+hSxcXliNPitYxmW6yL62mjqmRhhKkyvvDTd NkUlgINDbnyuYUpCZsOFNztN3Jw+md/DWL3fUHnOaJvYhgnnjeXLi/fwgJ/inDkBzEwM fRp3qB+wvLh0rJ1jfX0MW5AoZDmGzXObv706FBR1ZWWLQ2N2vn7FC/odISi/K7NSm7+L 8jdB/hsMpMgf2mqh97cXsHow4feCC8mChYuZzMDIsJVzyN/qQhCUYuOC1Xdj5LIbfdmZ YB5xKr5wAC4whHGf9RHhz5iyjzmMQOfLbPlj683wz9SNKf4Vh31SSSsO4Sh0HPqWw+p+ Y90A== X-Gm-Message-State: AOAM530PpgLUCh1c16UYn2MCjlM5qse7mwvbb9MZCPOkrijKnzBjSZ8n Y4Jv5Hw1l8Mlbhsr/MZL5wm68ZaKbAhexFKy8cc= X-Received: by 2002:a2e:8e8f:: with SMTP id z15mr25480012ljk.121.1630434115728; Tue, 31 Aug 2021 11:21:55 -0700 (PDT) MIME-Version: 1.0 References: <20210824144339.2796122-1-festevam@denx.de> In-Reply-To: <20210824144339.2796122-1-festevam@denx.de> From: Fabio Estevam Date: Tue, 31 Aug 2021 15:21:44 -0300 Message-ID: Subject: Re: [PATCH] ath10k: sdio: Add missing BH locking around napi_schdule() To: Fabio Estevam , Kalle Valo Cc: Jakub Kicinski , ath10k@lists.infradead.org, linux-wireless , "Paul E . McKenney" , Marek Vasut , wgong@codeaurora.org, alagusankar@silex-india.com, erik.stromdahl@gmail.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi Kalle, On Tue, Aug 24, 2021 at 11:46 AM Fabio Estevam wrote: > > On a i.MX-based board with a QCA9377 Wifi chip, the following errors > are seen after launching the 'hostapd' application: > > hostapd /etc/wifi.conf > Configuration file: /etc/wifi.conf > wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE > NOHZ tick-stop error: Non-RCU local softirq work is pending, handler #08!!! > Using interface wlan0 with hwaddr 00:1f:7b:31:04:a0 and ssid "thessid" > IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready > wlan0: interface state COUNTRY_UPDATE->ENABLED > wlan0: AP-ENABLED > NOHZ tick-stop error: Non-RCU local softirq work is pending, handler #08!!! > NOHZ tick-stop error: Non-RCU local softirq work is pending, handler #08!!! > NOHZ tick-stop error: Non-RCU local softirq work is pending, handler #08!!! > NOHZ tick-stop error: Non-RCU local softirq work is pending, handler #08!!! > ... > > Fix this problem by adding the BH locking around napi-schedule(), > in the same way it was done in commit e63052a5dd3c ("mlx5e: add > add missing BH locking around napi_schdule()"). > > Its commit log provides the following explanation: > > "It's not correct to call napi_schedule() in pure process > context. Because we use __raise_softirq_irqoff() we require > callers to be in a context which will eventually lead to > softirq handling (hardirq, bh disabled, etc.). > > With code as is users will see: > > NOHZ tick-stop error: Non-RCU local softirq work is pending, handler #08!!! > " > > Fixes: cfee8793a74d ("ath10k: enable napi on RX path for sdio") > Signed-off-by: Fabio Estevam Gentle ping on this one.