Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp228166lqo; Thu, 9 May 2024 19:23:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVtX0uBs5I995skHW/g/1tKBfm6Pndqpr5/UBy/NB5FruK0Dex0ymBhZ//JSVbUbadWDXj8mL8QxjfianevMKKP/GVyLWR/9jUUTjdHyQ== X-Google-Smtp-Source: AGHT+IEUOQ9zWiWbQDV6aPaA0MKB1HY3Th+IBtLyaPhzpg/adLmmKnPt9fuv/tYkh5dIDMKGOpx1 X-Received: by 2002:ac8:5f14:0:b0:43a:dcd6:6507 with SMTP id d75a77b69052e-43dfdb3ff9dmr12662011cf.50.1715307819119; Thu, 09 May 2024 19:23:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715307819; cv=pass; d=google.com; s=arc-20160816; b=cZi5wqa58M6/p5EYqOTaG0L00nQS6CWko06fBulURCOpxCeIH7VVAtYENSTgvraiKg YFvqP4nc3wnSgBw9LgRTjmUj5VbQv8NswcXgb+vTBJIVfj8rvAP0Lbsbq7Hhc66EUhIi U089oH5EFUsRnmK7tz5hfJrkETuSPh9O8u1VLIThSOR5SL4X9VQCH9dm70Nv6KKfgZNu 7BtlEvzJTP8BvFJA/K7K/oOwjqxeZL2kUeQ2peAwAoYu//WuwUgkHCnyH2a+F1PGsjD2 cWzxwyM6WDOAOGysJ4FXcw0mLWBZYaLMkNPvce+Rizuaxuh1q/H4vvn7T0bL2+HWQBwq Y4IQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=CLHe+tu1vfE27lUpIrbDS6lXsRANIrFc41BHHHfpt1Y=; fh=At257wWK3kSGIbGDktmWBGlDug++rPGntE82ReerWME=; b=XkX6qdvK3NXENwiGS+YcV8YyZtrcZdxyTAY9ykJoAr1jbltaZ6wHxhioM3M1um9xxN 0WTusyB7aoZNn1bjtdIKh+viCKKuPorZZ2lmz6gzV53WsJOClwcSgA7o4osIeeUHW0lt artl+oZbo4GaSyPWZIYvEAwML0wtT+H6rNlfF/0i3MsH51apiCO6daitVekDTAj9NbJb 6m5yQWkKVob3IXQLJ82syqpYF8isLovcjo74zIv5Nfh4Gj2vky218zAdiYtcImPMdscX PlemWvKy+6G3cUwVLAozTIxhiEiDbWND5j9vXk24Boce2p14XFyA/+Qmmnet8adbOP7n 8UUQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=cu6+uwzL; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-7412-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7412-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43df8d2e5ddsi20216061cf.369.2024.05.09.19.23.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 19:23:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7412-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=cu6+uwzL; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-7412-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7412-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B9B911C20D1D for ; Fri, 10 May 2024 02:23:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 76DDF13B7A7; Fri, 10 May 2024 02:23:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="cu6+uwzL" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (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 DD2DA33EE for ; Fri, 10 May 2024 02:23:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715307816; cv=none; b=ME5IjZ0axPqXaNq/r/Bl2+ekksvQ6nxAYfqvm2n6nCBmVCh9Juv9/riznEOKHox1YuxZeN6932k/ZNMIA0q4BDrSTcg+/vom4xxl+Hsp5sbptfv59m4aNrCGybCB967rO3ENQpkrhyQUTACvqjJk8JuUokcLZoB4bLL6nn8bQcM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715307816; c=relaxed/simple; bh=DwTVZ0P5wOLicXHcgcgE+Zkpk8XPtRyG2NEYqCnTrFs=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=vFHvwhXbFAkoRpz7MIC3wsSk6qTs23A5zcQvziCFkItdEKAvdIweV/XsyqAeILLVFjxTOYrPeF8xBDLhaEO9pCIgfMQQPnyhta3lgKCmlboKVKJa6pqst0PscVJCXDGsTx0PVsq+HWkdMSoZn5M27TnC05WctqS672UQyPb1+uc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=cu6+uwzL; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44A1Am8f011071; Fri, 10 May 2024 02:23:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=CLHe+tu1vfE27lUpIrbDS6lXsRANIrFc41BHHHfpt1Y=; b=cu 6+uwzL5wYLYmIlZta5d5EZun3qokencWHDOoYf3eoizj6REUcGw8WtoW+9D3ptPZ wZcV5V2KllYdk5uxUdNzORGYUpAMSs2xmO25mEBX+d/+mMCmFTwl4QugOKVyx0xs HsNfuwX7uLNeQwAXJ0agvLncKrkuj/Tw5Bsq+iilMBHHhltEGlJ6RCnWN+GIppRB cvxEZ73zkXOz4dxA1i/glDUGTS19D8DPUxNQQpRR0lDomGHjUbeqsrVnWWDWEpCF xD8r6bShC4+m6MVTqRd59kKBbo+T2CobBu0Tk7349E+xChLJSZbtQcARuaA+Qm0r YyW46EoLXHhX6dQzWarQ== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3y16w20buj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 10 May 2024 02:23:30 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 44A2NTnu015469 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 10 May 2024 02:23:29 GMT Received: from [10.110.100.57] (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.1544.9; Thu, 9 May 2024 19:23:28 -0700 Message-ID: Date: Thu, 9 May 2024 19:23:28 -0700 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 8/8] wifi: ath12k: move ath12k_hw from per soc to group Content-Language: en-US To: Harshitha Prem , CC: , Karthikeyan Periyasamy References: <20240507045702.2858954-1-quic_hprem@quicinc.com> <20240507045702.2858954-9-quic_hprem@quicinc.com> From: Jeff Johnson In-Reply-To: <20240507045702.2858954-9-quic_hprem@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: X2Kv8gBcKWlEXI3VCiqLwe-Z3vqtgj81 X-Proofpoint-ORIG-GUID: X2Kv8gBcKWlEXI3VCiqLwe-Z3vqtgj81 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-10_01,2024-05-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=923 suspectscore=0 clxscore=1015 phishscore=0 impostorscore=0 mlxscore=0 lowpriorityscore=0 spamscore=0 bulkscore=0 malwarescore=0 priorityscore=1501 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405010000 definitions=main-2405100015 On 5/6/2024 9:57 PM, Harshitha Prem wrote: > From: Karthikeyan Periyasamy > > Currently, hardware abstractions (ah) of different radio bands > are tightly coupled to a single device (ab). But, with hardware > device group abstraction (ag), multiple radios across different > devices in a group can possibly form different combinations of > hardware abstractions (ah) within the group. Hence, the mapping > between ah to ab can be removed and instead it can be mapped with ag. > > Please find below illustration of how mapping between ath12k_hw (ah), > ath12k_base (ab) and ath12k_hw_group (ag) is changed. > > current mapping of hardware abstraction (ah) with device (ab) > +------------------------------------------------+ > | +-------------------------------------+ | > | | +---------------+ +---------------+ | | > | | |ath12k_hw (ah) | |ath12k_hw (ah) | | | > | | +---------------+ +---------------+ | | > | | | | > | | +-----------+ | +-----------+ | | > | | | ar (2GHz) | | | ar (5GHz) | | | > | | +-----------+ | +-----------+ | | > | | Dual band device-1 (ab) | | > | +-------------------------------------+ | > | ath12k_hw_group (ag) based on group id | > +------------------------------------------------+ > > After, with hardware device group abstraction > (moving ah array out of ab to ag) > +----------------------------------------------+ > | +---------------+ +---------------+ | > | |ath12k_hw (ah) | |ath12k_hw (ah) | | > | +---------------+ +---------------+ | > | +-------------------------------------+ | > | | +-----------+ +-----------+ | | > | | | ar (2GHz) | | ar (5GHz) | | | > | | +-----------+ +-----------+ | | > | | Dual band device-1 (ab) | | > | +-------------------------------------+ | > | ath12k_hw_group (ag) based on group id | > +----------------------------------------------+ > > This decoupling of ath12k_hw (ah) from ath12k_base (ab) and mapping it > to ath12k_hw_group (ag) will help in forming different combinations of > multi-link devices. > > 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 (6 GHz) 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. > > Hence, Add changes to decouple ath12k_hw (ah) from ath12k_base (ab) and > map it to ath12k_hw_group (ag). > > Refactor the following APIs to help simplify the registration based on > ath12k_hw_group (ag) rather than ath12k_base (ab) > * ath12k_mac_allocate() > * ath12k_mac_destroy() > * ath12k_mac_register() > * ath12k_mac_unregister() > > Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 > > Signed-off-by: Karthikeyan Periyasamy > Signed-off-by: Harshitha Prem Acked-by: Jeff Johnson