Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp476167lqb; Wed, 29 May 2024 00:59:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWNnSVCeoWQ3aflgUO6OA2wSIdydC0P+IqPzzthjz7jGAGYlzgkn20vIl3E6UyqJDs43waJZ7U9+CTHis9ly9oEhW6ctW+rOhTaBKb1lg== X-Google-Smtp-Source: AGHT+IEy78ZkBXpH0UvjWZLu2/4FYhmxR+0PfpstKauSeRH+cvbVZNzqkvbuMf/uOZBBKrLS4pL3 X-Received: by 2002:a50:cc05:0:b0:572:315a:b2d3 with SMTP id 4fb4d7f45d1cf-57851955019mr9245567a12.15.1716969560579; Wed, 29 May 2024 00:59:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716969560; cv=pass; d=google.com; s=arc-20160816; b=fTs2T9W38aWgga/v8UbxL650hOuY9lJCp7hZf9Ya1wV1A7YRpO9IZWhuGyj03pBwkh ZlbQ0alN4u7Pmau4UChMOQVMTocG9zovKWoUr4M9LjS/I5YzaM59gzCN32ZDugFicnKs T30+VH4pH1wz9Wy3ydJR5yW366pkgj7rY41WoaXeEThwHGtYkd/S+B9nNYKGGU37Iqxi g5OLYv7myKia2GB4e2DLwqm59/WQDKL+PjxsW/MVVhj/w0JqLYMuiwxb06/PGCPNFY8h wfO21bNTALxCWdVKudNyJ1VZxEyK4cNMa+fMKU+49tGaqjwLgV+xpBzmhKmI9N21MPDo f2Uw== ARC-Message-Signature: i=2; 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=VIjUTOjN1BJ97fJf8tmcLAQz5IizOtrXWaZYezw5Al4=; fh=gYnApul9rsvdYtkMXRLQhXrwy6kha2CKvCg2exXXLAE=; b=OVvAszQFipOgnbP7G96YXy1aH9DF1b7rpu2450yKaeGn9PLpm+dxId6qwxdkUQMHSg /yTVK6OQgIR5BwbTeU9GkTZoA8z4DdVPED2VRW1ax+lSRuwzlY0/HqHh4jI41vwAF2aA awxq2bGzWdfkrPUKsl6fEnUxK28Er3mPjohNx/+yVI93P/LsZuZZJHc09YoaIQIy3IZe vF2KmYnaKjjBhNuxPNkw0uU3bTDVewgiQKZRcBj7GJYjMRNnqkYGuB/c/cKOMbGCb6Qv wnlPNajUB02AzEgBpxIG/m5L/9JkFtH7SmNTFbxxx2e8efEYAN+kBdr41WS5Whf/MpsS hR2A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JKqrJZ42; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-8258-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8258-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-578524966c7si5862096a12.460.2024.05.29.00.59.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 00:59:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8258-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JKqrJZ42; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-8258-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8258-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 759EB1F21FE1 for ; Wed, 29 May 2024 07:57:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6A59C1649CC; Wed, 29 May 2024 07:57:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JKqrJZ42" 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 469CB1C286 for ; Wed, 29 May 2024 07:57:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716969470; cv=none; b=FSWln51c1EuLwBx0/Ch37otCoF9jt04QkklwdzRnvDo5YKBCZK4w5Q4Fzsn5sn2TAv0lA0/9mW4NMmT1KNy1oCQ+k3sLrw+G4Tea+EdJBJWEVW0j0xtNMGHHj5QqEEnB4ntY5giebgLldOuiBzLIOyZpr3Pk1KAFu5T3UrD/udw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716969470; c=relaxed/simple; bh=tuhDNpVzo1xa35qGjlNusFwAWrauQt+AXDxakUkaKNs=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=Yp6a9a5cDri5zFm7h01RLcmvkionjDzpTVqOp2gerL5bHgBw2iOBCROiSiLN6vNirCQ6bEfVSCGPEJ24ChCM1kd26TFGDOR/q/ePTpw7VQ/yqQeswue1l8VvSTGFtKvwy4mi+rO9H8tCX3uV7TzF5QRrImdakblaThfT7KXe/9I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JKqrJZ42; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7178DC2BD10; Wed, 29 May 2024 07:57:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716969469; bh=tuhDNpVzo1xa35qGjlNusFwAWrauQt+AXDxakUkaKNs=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=JKqrJZ42EoDOCh0dv5zOo/M2sV5HF9ABzQr/fD9xn9/IOmsjy9d77N8ohi+1Y/811 HgoGVhXfLiDwaLceowPsxIbWuuZGHGwWq1jfxIeEDBOfoecsr0dCbdElKdW5HnLIln Yit1trhvsxtKgvPwZOUOqElh/u+As5jgYppkC5/RKv8US/7CYHUrJstSGJVdS8FeB/ jKv33ssf7dg2oECrRIXnOYbrWvSnzawftRS0PI200G/7IYb6P5qfg5bA6wWDZ8bNjT F7W27hAi3qY4KfzhCgM1WaXc2Gbaq1V5WwM0h2K5saABACpdtY3jh7Pa1ELCG6xQib 1I2/dgKm4raVA== From: Kalle Valo To: Baochen Qiang Cc: Jeff Johnson , Harshitha Prem , , Subject: Re: [PATCH v7 0/8] wifi: ath12k: Introduce device group abstraction References: <20240528063547.1400700-1-quic_hprem@quicinc.com> <396d645d-6f3b-4c1b-9d4b-d056fad36192@quicinc.com> <7b92a6cd-187d-4b6d-8cfb-af54365751fc@quicinc.com> Date: Wed, 29 May 2024 10:57:46 +0300 In-Reply-To: <7b92a6cd-187d-4b6d-8cfb-af54365751fc@quicinc.com> (Baochen Qiang's message of "Wed, 29 May 2024 11:13:42 +0800") Message-ID: <87fru16oed.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 Baochen Qiang writes: > On 5/29/2024 6:04 AM, Jeff Johnson wrote: >> On 5/27/2024 11:35 PM, Harshitha Prem wrote: >>> To support multi-link operation, multiple devices with different bands say >>> 2 GHz or 5 GHz or 6 GHz can be combined together as a group and provide >>> an abstraction to mac80211. >>> >>> Device group abstraction - when there are multiple devices that are >>> connected by any means of communication interface between them, then these >>> devices can be combined together as a single group using a group id to form >>> a group abstraction. In ath12k driver, this abstraction would be named as >>> ath12k_hw_group (ag). >>> >>> Please find below illustration of device group abstraction with two >>> devices. >>> >>> Grouping of multiple devices (in future) >>> +------------------------------------------------------------------------+ >>> | +-------------------------------------+ +-------------------+ | >>> | | +-----------+ | | +-----------+ | | +-----------+ | | >>> | | | ar (2GHz) | | | | ar (5GHz) | | | | ar (6GHz) | | | >>> | | +-----------+ | | +-----------+ | | +-----------+ | | >>> | | ath12k_base (ab) | | ath12k_base (ab) | | >>> | | (Dual band device) | | | | >>> | +-------------------------------------+ +-------------------+ | >>> | ath12k_hw_group (ag) based on group id | >>> +------------------------------------------------------------------------+ >>> >>> Say for example, device 1 has two radios (2 GHz and 5 GHz band) and >>> device 2 has one radio (6 GHz). >>> >>> In existing code - >>> device 1 will have two hardware abstractions hw1 (2 GHz) and hw2 >>> (5 GHz) will be registered separately to mac80211 as phy0 and phy1 >>> respectively. Similarly, device 2 will register its hw (6GHz) as >>> phy2 to mac80211. >>> >>> In future, with multi-link abstraction >>> >>> combination 1 - Different group id for device1 and device 2 >>> Device 1 will create a single hardware abstraction hw1 >>> (2 GHz and 5 GHz) and will be registered to mac80211 as >>> phy0. similarly, device 2 will register its hardware >>> (6 GHz) to mac80211 as phy1. >>> >>> combination 2 - Same group id for device1 and device 2 >>> Both device details are combined together as a group, say >>> group1, with single hardware abstraction of radios 2 GHz, >>> 5 GHz and 6 GHz band details and will be registered to >>> mac80211 as phy0. >>> >>> Add base infrastructure changes to add device grouping abstraction with >>> a single device. >>> >>> This patch series brings the base code changes with following order: >>> 1. Refactor existing code which would facilitate in introducing >>> device group abstraction. >>> 2. Create a device group abstraction during device probe. >>> 3. Start the device group only after QMI firmware ready event is >>> received for all the devices that are combined in the group. >>> 4. Move the hardware abstractions (ath12k_hw - ah) from device >>> (ath12k_base - ab) to device group abstraction (ag) as it would >>> ease in having different combinations of group abstraction that >>> can be registered to mac80211. >>> >>> v7: >>> - Added linux-wireless mailer to cc. >>> - Removed Acked-by tag from "[PATCH v6 8/8]" as it has minor change. >>> >>> v6: >>> - Addressed smatch error seen on "[PATCH v5 8/8] wifi: ath12k: move >>> ath12k_hw from per soc to group" >>> - Rebased to ToT >>> v5: >>> - on "[PATCH 8/8] wifi: ath12k: move ath12k_hw from per soc to >>> group", refactor the ath12k_mac_hw_allocate() api based on ag rather >>> than ab and update hardware abstraction array size in ath12k_hw_group >>> as ATH12K_GROUP_MAX_RADIO. >>> - Rebased to ToT >>> v4: >>> - Modified the cover letter >>> v3: >>> - Removed depends-on tag of "wifi: ath12k: Refactor the hardware recovery >>> procedures" as it is merged to ToT >>> - Addressed the deadlock warning seen during rmmod. >>> >>> v2: >>> - Rebased to ToT >>> >>> Karthikeyan Periyasamy (8): >>> wifi: ath12k: Refactor core start api >>> wifi: ath12k: Add helpers to get or set ath12k_hw >>> wifi: ath12k: Add ath12k_get_num_hw api >>> wifi: ath12k: Introduce QMI firmware ready flag >>> wifi: ath12k: move ATH12K_FLAG_REGISTERED flag set to mac_register api >>> wifi: ath12k: Introduce device group abstraction >>> wifi: ath12k: refactor core start based on hardware group >>> wifi: ath12k: move ath12k_hw from per device to group >>> >>> drivers/net/wireless/ath/ath12k/core.c | 431 +++++++++++++++++++++---- >>> drivers/net/wireless/ath/ath12k/core.h | 87 ++++- >>> drivers/net/wireless/ath/ath12k/dp.c | 19 +- >>> drivers/net/wireless/ath/ath12k/dp.h | 2 +- >>> drivers/net/wireless/ath/ath12k/mac.c | 117 ++++--- >>> drivers/net/wireless/ath/ath12k/mac.h | 9 +- >>> drivers/net/wireless/ath/ath12k/pci.c | 2 + >>> drivers/net/wireless/ath/ath12k/qmi.c | 10 +- >>> 8 files changed, 544 insertions(+), 133 deletions(-) >>> >>> >>> base-commit: f8320064a28242448eeb9fece08abd865ea8a226 >> >> With this series I'm seeing a firmware crash upon resume from hibernation, but >> I'm not sure if it is the same intermittent crash I reported in another thread >> where firmware is not correctly handling a low physical memory address. >> >> Baochen & Kalle, since this issue may be specific to my laptop, can you >> validate hibernation on your setups? > > I can also see a firmware crash upon resume. I am using > ath-202405281746 as code base. I also noticed that my WCN7850 resume tests were failing with an older version of this patch. But I cannot provide more information as I'm bisecting the v6.10-rc1 regression right now. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches