Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4956021pxb; Tue, 28 Sep 2021 07:39:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEpwaCvahSk2DA1r4mkolK69e9bh8k9/cDLNckYvnfV1QK3HwrkcaZR+HNVg8XpdPNYkym X-Received: by 2002:a17:906:1e0c:: with SMTP id g12mr7277595ejj.155.1632839997155; Tue, 28 Sep 2021 07:39:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632839997; cv=none; d=google.com; s=arc-20160816; b=Ye47ACbi6Mts3qt79FZGb+vraL5d9BkE3Fi/AR8R/CMGNV8FOggoAJQtRoB7qIHEC7 Y+SKehe9hjpbEo18v+Vfo3KvzIRZkqDaHJESe/hsphq7T4wHmbJahEdTDURf8+UHkOb+ 1U/kAMlMl2uwMobJ4MFURgTeHf1Qrq8V9XRN5nQoasSihd7cxQsQFsYiTC8un6UcDBip 9yB6jDHCOSgz4U5mAQ7J58Raa5V/UiM/ybuN3oveWI0qnIk8e4WUq0fe3NsyAlLHfv8p zhpQ5xyV27LUE2h1mjtssjStPt8JSPxpfxKMPymt6UIsjJSdyToqTxwUBtqoAC9i2V9Z xb2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dmarc-filter:sender:dkim-signature; bh=EDw3PyEIfg3aWiJp4IxUccYqKwjHMVaT8ASH+yp4NG8=; b=Lifb88vLje8fxWU5bcGA8WOzuaGgalwxZFxX1Ed/eHY161CnCzjaCspk+W+Z2Oe7h2 UaCU10/6huj27nOgysCMma88w/zeCphzMirQYRqwQ7kfOabV4tq82d2GLPxFm+88Ctsw TFzRVY2/Ax4sAscVmheLz/OkPtdS75rzcZFqj/mdvADXhEVFEvcWCxw0ZTMEGg7QYGLs z9aNBCd2XaoBkYItuag6BBmr3X6tSEahiGRSf56vJs37ypTNwT+5iQxRBPmHSD/RJlRm 8lvzmaWrrHgLZlljITu2XNVwmkSweQjSKjIxLpn0LglVtUdued+tbBSBB/hjnL7+PR9e LZ5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=LfaxXQqT; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s14si21446403edc.372.2021.09.28.07.39.35; Tue, 28 Sep 2021 07:39:57 -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=@mg.codeaurora.org header.s=smtp header.b=LfaxXQqT; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241325AbhI1Oia (ORCPT + 78 others); Tue, 28 Sep 2021 10:38:30 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:62325 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241395AbhI1Oi3 (ORCPT ); Tue, 28 Sep 2021 10:38:29 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1632839810; h=Date: Message-Id: Cc: To: References: In-Reply-To: From: Subject: Content-Transfer-Encoding: MIME-Version: Content-Type: Sender; bh=EDw3PyEIfg3aWiJp4IxUccYqKwjHMVaT8ASH+yp4NG8=; b=LfaxXQqTfF+20pvarQpVgKKfP9X+xUIEfyjWOxbMVrBuz1C0U4BbJarG0AwIX7am/O6cPnfA jJUuM4CUA6+FJzSJLoqBVhhUJC+KPbcLZmlSqP2P+55HDbilQLlyfMrzEO86/cUlEE9GepiK Zw02N2JoJs9DSJCOilwBV6sfiGU= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n02.prod.us-east-1.postgun.com with SMTP id 6153285b713d5d6f965def88 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 28 Sep 2021 14:36:11 GMT Sender: kvalo=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 183D7C4360C; Tue, 28 Sep 2021 14:36:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,BAYES_00, MISSING_DATE,MISSING_MID,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from tykki.adurom.net (tynnyri.adurom.net [51.15.11.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id 17DB7C4338F; Tue, 28 Sep 2021 14:36:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org 17DB7C4338F Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=codeaurora.org Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] ath10k: sdio: Add missing BH locking around napi_schdule() From: Kalle Valo In-Reply-To: <20210824144339.2796122-1-festevam@denx.de> References: <20210824144339.2796122-1-festevam@denx.de> To: Fabio Estevam Cc: kuba@kernel.org, ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, paulmck@kernel.org, marex@denx.de, wgong@codeaurora.org, alagusankar@silex-india.com, erik.stromdahl@gmail.com, Fabio Estevam User-Agent: pwcli/0.1.0-git (https://github.com/kvalo/pwcli/) Python/3.7.3 Message-Id: <20210928143611.183D7C4360C@smtp.codeaurora.org> Date: Tue, 28 Sep 2021 14:36:11 +0000 (UTC) Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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 > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 019edd01d174 ath10k: sdio: Add missing BH locking around napi_schdule() -- https://patchwork.kernel.org/project/linux-wireless/patch/20210824144339.2796122-1-festevam@denx.de/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches