Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp607561rdb; Mon, 15 Jan 2024 07:43:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IFRu1TXX4owlR1Fg30Z8HnCoBbZgmVtQfUbJJKAA92VkIcHq6dgvOXqHfS1l+wEKsUoWfNR X-Received: by 2002:a05:6870:525:b0:206:74c9:c0e3 with SMTP id j37-20020a056870052500b0020674c9c0e3mr7716652oao.6.1705333388079; Mon, 15 Jan 2024 07:43:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705333388; cv=none; d=google.com; s=arc-20160816; b=zs3ClSoK4devNX9Tun4wo1iryhstkYJLSyNXpgm9Tx7QBvumkaNLkonKKEoSFlnTwB fi8daWhHPUpTpCKzMl/zJvYpovfxdpCUIC7YfjB2Z9eFis5Wd6hXOpucTbQnscqpB8bK vdgOuw4oDbUD1DgV/JrYFEvNACn/k76wPomm3rJ6GGoWN3B0WtUOHmYv0AtyHr7XjXHN 6Ekq058ljAFyiH8npxG9Nrz4luWR/y91KyiT+OAe82BL/Q7ENJAPPn2DBOu2da/gWnra 4yDCsFMOdE+PpxKb08zPL/39ikJieMYr9amgbsZYgXqWmgQKPpwLF+Kx5r0KPcJ+oaKA MA3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=HcKkT4fAORDkszvd1b+2x2512Z1/t3hFQekm2FK0TL4=; fh=gNywOoGH9FiEKkqPngRyqJ0mvecwQizKE+QEYR6/Bdw=; b=HHw/N85DRhyPVECgUmq+TiKasUbN2HzLDcPYS8dQ25hPQZHmP6Pd4F3BWPPvwy4M4Q rz2ANvEsKjWbwI3QrFqUnEBYSm2IXu/gvKOBfccKVwkb1s9e9JcNm1O3RC5NIz8qrQ/X AOan90fI3ydxhaXgFL6YyQUosymVoWoBp0d2fQi3kaVZmfI/IqmfkFhMDlxf0pINGzB4 OKqfar5lwvrX96mKztWjmXNvg8BN7Ohz9mXY1W0LuNlh+oJyorpAgeGLKK/X4oZA8e2o a6dq6gJT6ZCFf1CaZXnsTGM8X+LO7DisVuFbcl9xPOrU1hBdN+rLsnwFTVhdPRTxb8Td GDHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nNumTzzg; spf=pass (google.com: domain of linux-wireless+bounces-1938-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1938-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id u67-20020a637946000000b005cdfd4aa8b3si8922086pgc.193.2024.01.15.07.43.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 07:43:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1938-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nNumTzzg; spf=pass (google.com: domain of linux-wireless+bounces-1938-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1938-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 6D28AB21C93 for ; Mon, 15 Jan 2024 15:42:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D44A317C98; Mon, 15 Jan 2024 15:41:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nNumTzzg" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BB09F17C97 for ; Mon, 15 Jan 2024 15:41:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88159C43390; Mon, 15 Jan 2024 15:41:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705333318; bh=K9G1atDFEt7CyyLz6rqv/1ZDMZxiGJZ4BwS+d5OtP84=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=nNumTzzgyv12/X6toNlinVCbzDL6EOVw1z+41vT1BVlHJwCbHuIdzabBuiOlrNyxL hYrBqNk6mKlDxByDMubGw/JkhVmiD+xn6m9X8JnU2aiVztdR/1gkLSI357W1sJPIKU 79NFiQMdNfGh/p1OYDQlcQaIco2bvlSV6NwfDWkK3YpnoCGX0fTwkRTsUB/kC8hXzZ TwgVtJ2CAmNOdPo5QxtnO/HQaWrl8UGO1V+WtUR5COp713xMSJHInTfxlb4lFF//WQ UnbPHG0iy1+deTFLwfGoIK2gNxOg+8IkN5n2qA7FDgGU50kBLOms6IqS3w8KnOrVtC Xg3lUzsZSd6Hg== From: Kalle Valo To: Karthikeyan Periyasamy Cc: , Subject: Re: [PATCH 2/2] wifi: ath12k: Introduce the container for mac80211 hw References: <20240109051252.3325106-1-quic_periyasa@quicinc.com> <20240109051252.3325106-3-quic_periyasa@quicinc.com> Date: Mon, 15 Jan 2024 17:41:55 +0200 In-Reply-To: <20240109051252.3325106-3-quic_periyasa@quicinc.com> (Karthikeyan Periyasamy's message of "Tue, 9 Jan 2024 10:42:52 +0530") Message-ID: <87mst67ge4.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Karthikeyan Periyasamy writes: > To support multi link operation, we need to combine all the link/pdev > under a single wiphy. This avoids the overhead of synchronization > across multiple hardware instances in both the cfg80211 and mac80211 > layers. Currently, each link/pdev is registered as separate wiphy, > tightly coupled with link/pdev/radio (ar) structure. To enable single > wiphy registration within the chip, we decouple the wiphy data entity from > the link/pdev/radio (ar) structure and move it under the chip (ab) > structure with a new data container (ath12k_hw) structure. This approach > improves scalability for future multi link operation support. > > mac80211 hw private data structure diagram > ------------------------------------------ > > Now After > > +---------------------+ +---------------------+ > |mac80211 hw priv data| |mac80211 hw priv data| > | | | | > | | | | > | | | | > | | | ath12k_hw (ah) | > | | | | > | | +-------------------> | | > | ath12k (ar) | | +-------------+ | > | | | | | | > | | | | ath12k (ar) | | > | | | | | | > | | | | | | > | | | +-------------+ | > | | | | > | | | | > +---------------------+ +---------------------+ > > Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 > Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3 > > Signed-off-by: Karthikeyan Periyasamy [...] > @@ -3790,6 +3831,10 @@ static int ath12k_mac_op_sta_state(struct ieee80211_hw *hw, > new_state == IEEE80211_STA_NOTEXIST)) > cancel_work_sync(&arsta->update_wk); > > + mutex_lock(&ah->conf_mutex); > + > + ar = ath12k_ah_to_ar(ah); > + > mutex_lock(&ar->conf_mutex); Do we really need two mutexes? I don't see any analysis about that. And even if we do, I feel that it should be added in a separate patch. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches