Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1771942rdb; Mon, 9 Oct 2023 02:19:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEv7GqUd6dA4BiBpWnmGqjuqpUcSJD1x3AVDIhU5wrDxIK2/uvY5PEtgI17IVIvi5Ee+E+W X-Received: by 2002:a17:902:b718:b0:1bd:d141:f02d with SMTP id d24-20020a170902b71800b001bdd141f02dmr10381873pls.68.1696843151036; Mon, 09 Oct 2023 02:19:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696843151; cv=none; d=google.com; s=arc-20160816; b=0sUIr7JLQVF5Q9kzgP/Bt7hL/5pLwPIUSruDey35gX9fnpJXsWyLyPz4438mkGWhT/ LZD42IrDIuQX51hxtw6iDUcq4vrR9Dgcd/aHodolg5HEI9nmYLCB0e2PQGQU6wziclE5 x/Rp9q7Vlr7FQ1On+pxZN5unm7Yu9v3yU1/aumLenSfboOycjOzwW8s+E/rC2NVbPF9n wwVXPYTl6tnxGhy/uAVC+OYnupDP9P9G5okAGFtWsqyz1J0n2SxyN61Of9e/cqbXWsEK X7Lmh9BDioeL5wYwl6/Ri8fkIuxEyqYId+10Y6FHgPEKlQl/b1PDsT7NpIoolrVIlQdj IXRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=a+eU88jMhgzgvfe1sZ6gSiXfpY/vEd5+pzcXltMDWHg=; fh=kiH9BsJ+TyHZ/0f9lp96S1R8k/374lMiI4doNuDXH6k=; b=S58PqelzeBRxy0Ecup77Xt5h48drmzLOFuM2AG9AeFHHLjWQNK22hhfTwE5tFLpl7i 36ph2kSoR7SoSinjsiK/kEDTp7Qqoat+cLMm/PkxYM3rLuk3dVzxHmt7K+XrFbZP8T2s 6ZlmDcCEYQ2E9k6bs3vhFi2bKhnh4dUR7yxUns6nTmPeTEDvrGDXn3GflMiFY4AeP+p8 NA027kSlXwoFIpl+eGXnAbwIGub530/1eBLqEARkmp40ptyIggsT940MiriKaZBN8HqN fs2fnXh9o6MWQbVW53dks+9gQ+rTUdCHjHaiw4PP+NB2YKJeCS0FW052A+wN/WQ1n49m oHDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IXGBNYkG; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id h18-20020a170902eed200b001c618473ac1si8787153plb.627.2023.10.09.02.19.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 02:19:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IXGBNYkG; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id BDAF7809B9D0; Mon, 9 Oct 2023 02:19:08 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345690AbjJIJTC (ORCPT + 52 others); Mon, 9 Oct 2023 05:19:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345701AbjJIJTB (ORCPT ); Mon, 9 Oct 2023 05:19:01 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0501C5 for ; Mon, 9 Oct 2023 02:18:59 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B29B9C433C8; Mon, 9 Oct 2023 09:18:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696843139; bh=NW6HXAOdDyyzsbXnxbBiq55N+Ir0yG1UhJ97WsoKKS4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=IXGBNYkGhwBNjf0yZmemjenMGMttUH8/LtGPRDSLGsLsbDiwcQ1zaR1Qay4K9rgdt 0afHqCkQBfXp7qBpWhJ/VcTTWwgOUvWUgPnUq3MzY3KDnc7h5YKY1ATiTSpTg0Y9i3 D/FomHtzBbhCghD/BuZ22e/EezOoPpC41TOhMIJHBlI3aGLrnLt0dXpweJwDc1rd77 ZQISpwoNnkMYymImSxySL9vc6CwyT18GqJE4MAHcJ5L/YepWG72rK3+FkU31/pXX2P 3NoozSOn+L2+AAOeVk4Px6PEJVdZUbKBEaX9YFZuAzraHY53ovJKwJwfsO6MkZTXXL lnG9VV5a/6p1A== From: Kalle Valo To: Johannes Berg Cc: linux-wireless@vger.kernel.org Subject: Re: [PATCH] wifi: cfg80211: use system_unbound_wq for wiphy work References: <20231009101800.bb75408bf635.I6528d97e24b3da36cdf633b4738327d77c7276f2@changeid> Date: Mon, 09 Oct 2023 12:18:57 +0300 In-Reply-To: <20231009101800.bb75408bf635.I6528d97e24b3da36cdf633b4738327d77c7276f2@changeid> (Johannes Berg's message of "Mon, 9 Oct 2023 10:18:01 +0200") Message-ID: <87bkd85f26.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 09 Oct 2023 02:19:08 -0700 (PDT) X-Spam-Level: ** Johannes Berg writes: > From: Johannes Berg > > Since wiphy work items can run pretty much arbitrary > code in the stack/driver, it can take longer to run > all of this, so we shouldn't be using system_wq via > schedule_work(). Also, we lock the wiphy (which is > the reason this exists), so use system_unbound_wq. > > Reported-by: Kalle Valo > Fixes: a3ee4dc84c4e ("wifi: cfg80211: add a work abstraction with special semantics") > Signed-off-by: Johannes Berg Thanks! So the background of this is that I enabled CONFIG_WQ_CPU_INTENSIVE_REPORT on my ath11k test box and saw: [ 290.475631] workqueue: cfg80211_wiphy_work [cfg80211] hogged CPU for >10000us 4 times, consider switching to WQ_UNBOUND With Johannes' patch I don't see it anymore so: Tested-by: Kalle Valo I do see one other warning about gc_worker but that's from netfilter and nothing to do with wireless: [ 440.486683] workqueue: gc_worker hogged CPU for >10000us 128 times, consider switching to WQ_UNBOUND -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches