Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3916245imw; Mon, 11 Jul 2022 19:45:32 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t0FyBdKqD0rDjYehUV3fJ6havmYY+CGx9YDMfLkDYmR/ePRJeGyL/H7sKaplgvR8OKFmBt X-Received: by 2002:a05:6402:1909:b0:43a:64bb:9f27 with SMTP id e9-20020a056402190900b0043a64bb9f27mr29531590edz.24.1657593932529; Mon, 11 Jul 2022 19:45:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657593932; cv=none; d=google.com; s=arc-20160816; b=tSGCAChettaHPz+1NxGOaYGslRdP+l9aDzZfoAXJUZz+VMf/WbPMXrPAtTiQdIcnVG 1llU0KYLnG22ew8HluF5KE5OxvkE6EblN8ATk14Fat8uHnVBL4Umx4iAEOJ0jppj3y2L m/VbG1Tk+AWcsp7ASaovkmMtOh+MlviOC5PLarY7NAotGdOqGOdeWrWjRVYKLoO4AAtt r7yI5kPolLnxtN2LmzxrgHHhdD9deu1GIvbEAPM/7KNv0zMt+qrI9J/Fbkxo7o5c5t8u NF/mEFVejBRDobqsJlXqAsVXoUQc4KqhPBU1XPcII4wvrgRkXXsKySFO+esQpxbQIYI8 8lWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=tOTRgaHK1vo51e3asPD1Ueq4NEQvEQIHawc4FbSjEKE=; b=yLwGpisuBDYIP9dw9yVNMbh1edjtV+wcva+QzpRRiv37O+nknRWA1WHzNbNU2vB+HY b423HsTe2KEt8PhfmHPJdJboGrQxHVEMVFu0cTSpkwy8Bfk4+lGArg4ur+woqqdYl8iA 3o+o3R8+5WiXC5ZW700n5iQcx/w7yIVsx/v/URiSl3FN1DvG51+zwP7k9O2Qoaq2PLhD wr2HCSY8RBfSpJEsivnKb2eh3V4hoMqhX9UkvFu0T/CaX7QyESq5bMv5sQ1e3dqeOQFf N2iXgfJ+d0NtGJvcaZpdXtllYJjgR2kdCMTtbXzXomUU8HxFuy/Sx+if5iavcFCZ6q/P rbkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=qU+1GOQM; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gt31-20020a1709072d9f00b0072b66c5cdb5si5380816ejc.519.2022.07.11.19.45.10; Mon, 11 Jul 2022 19:45:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=qU+1GOQM; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230269AbiGLCmD (ORCPT + 65 others); Mon, 11 Jul 2022 22:42:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229735AbiGLCmB (ORCPT ); Mon, 11 Jul 2022 22:42:01 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 218B18CCA2 for ; Mon, 11 Jul 2022 19:42:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1657593721; x=1689129721; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=tOTRgaHK1vo51e3asPD1Ueq4NEQvEQIHawc4FbSjEKE=; b=qU+1GOQM8DM+xu8wstFkd+mef06pkLhPWEpGChw31Npfgr1U8qt3r4mj UuNslvTRaKIH0+XEE4g9e1saTqO1276M5t4H6jQ9ptIwlhcqqJnHyyh42 Yj9Xsfa+mPEyuryekMRhRNB5qqKZixxoMgSldVuhA8/rPK3NYxusTWwvL 8=; Received: from unknown (HELO ironmsg-SD-alpha.qualcomm.com) ([10.53.140.30]) by alexa-out-sd-02.qualcomm.com with ESMTP; 11 Jul 2022 19:42:00 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg-SD-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jul 2022 19:42:00 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 11 Jul 2022 19:42:00 -0700 Received: from [10.253.38.189] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 11 Jul 2022 19:41:59 -0700 Message-ID: <07ad1a63-a922-aff6-75f1-4e66617602e0@quicinc.com> Date: Tue, 12 Jul 2022 10:41:55 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [RFC v2] ath11k: fix blocked for more than 120 seconds caused by reg update Content-Language: en-US To: Abhishek Kumar CC: , References: <20220701072855.13655-1-quic_wgong@quicinc.com> From: Wen Gong In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 7/12/2022 1:54 AM, Abhishek Kumar wrote: > This change will make the device come out of deadlock on rtnl_lock if > that happens. Did you think of ways to completely avoid the race > situation to occur ? > > Thanks > Abhishek You can see the commit log, if to completely avoid the race situation to occur, then it need to change the rtnl_lock usage in many place in cfg80211/mac80211. it will effect a lot things. It has a change as below to reduce usage of rtnl_lock, but it does not remove the rtnl_lock in ath11k. cfg80211: avoid holding the RTNL when calling the driver https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/commit/drivers/net/wireless/ath/ath11k/reg.c?id=a05829a7222e9d10c416dd2dbbf3929fe6646b89 > > On Fri, Jul 1, 2022 at 12:29 AM Wen Gong wrote: ...