Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1403014lqd; Thu, 25 Apr 2024 14:45:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXgPMrcVSpITRL0A8JV185qKJChPzX4qAG7W2O6Vo6tD0Ue8wriVWkaJSPCURMJwZGrk+N4AsWrb96lEnZQeZ2gfwWbYZOJJbU0hQYtWQ== X-Google-Smtp-Source: AGHT+IFkYelb6kwy8LDM81qQFaDmmAsIeWUM+Z2jU9gIqchgxn8JQad+YlIsmlv3qAggBaPH73Wh X-Received: by 2002:a05:6a00:1941:b0:6ea:f05d:d2e9 with SMTP id s1-20020a056a00194100b006eaf05dd2e9mr1277970pfk.15.1714081533086; Thu, 25 Apr 2024 14:45:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714081533; cv=pass; d=google.com; s=arc-20160816; b=LxBE11pQplstRiYlAFSx++L/Gf8hnxgOBFq8o3WKzcXXb/lu3PJT4Dg514ype4TeWs OJQlbpyzZn3DpYznuyiUvISviXu3JQ79o7gGEUnm8njtgIT1d+xklXs6vym7yZyJoeSZ 3fSuX8XJGOlInE5co2qJ4euz5v1hVL56VIjc+XieDBzioYgetCoyGyMQPvapFMymt8Sz ujrEvaVFSHk2Vcb8vEkl9bgbupDTt9gzPu3K3zJ/aWFabSZLjct2nOydqRPsv25qV3ut 5/1/hJnn3/ibkF9oZNmzyFoYkpMtmfLB5b3RXBj15kmhQTpU/DOG05CspRSnnmLjwvr+ vFag== 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=rinhOYxPbeUtP98TRNY7Po0KWhqCod5fOaW9iO+6Mx0=; fh=At257wWK3kSGIbGDktmWBGlDug++rPGntE82ReerWME=; b=DTB1pHGII7oh1yG8mCCEegJi8bK6hgUD88xvJpSWfKn9v5kLe7nH5rtkn8aGMX/vNm EEaSKnWeWMFmMwgrIfSb1w9+rnLQ2Ipp2wIXOJAvlloudvhQBJtBR8FFPLjVI0xJHJ3C klDkXzX4asUx+EecLyOl6NIBBF0GATrkQv2dHRhE4GzYRRJMO4LX8xO4aYTSfqAeTpwG Tn0YSMy+UjAQ31nUNfIxsdao0z0soqYB31wVAs+2qng7gEz/YoLNFYEhhiDmGjIzZ/96 1zpteMRygK6a157miFqcQe7BJ+lYFVjTxuPRjg0arooz4Jis4C195+7wl/ooI6g2pbsN w1Xg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=JuCju+Y8; 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-6889-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6889-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id y35-20020a634963000000b005d8b884ae31si13604256pgk.568.2024.04.25.14.45.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 14:45:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6889-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=JuCju+Y8; 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-6889-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6889-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E775EB2318C for ; Thu, 25 Apr 2024 21:41:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4BB8A1E880; Thu, 25 Apr 2024 21:40:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="JuCju+Y8" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 A6E2715575B for ; Thu, 25 Apr 2024 21:40:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714081219; cv=none; b=XkVb1YRixmYigM2hZ9K2kMToVQJd3wRUMisHNhVoHPzEqqgSmqMkhRns4byq9LRDeS0GdWzxkRppzkJtFSxWVcyvJYznhOiuMi3Hjk+K1yTkvRtVtdl/6cMpRu/0zi8BR9TnHenMkkCD77Ds+AGHigFULHcNLY3e4PMGCbZlNAc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714081219; c=relaxed/simple; bh=Poyo8V78sBmKaOTv4O/4juoqSk6o0J8mouzeWFiLzFk=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=IeC7YICbVI5pxpteyGg0EvmrQ+bdO5COv4oY3MZ72MktrD41vprJCjwYvugPHmlk9opm8HTJrUed9SUPiFm0AFLEfkLrTyH5FS6f0fWgatChZOUAhh4Z7+6jeBxCWQwZcXJ+4mulGKGkeAvXyeLQWUFQ2Uw0b4Q8QSCsj4sBI64= 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=JuCju+Y8; arc=none smtp.client-ip=205.220.168.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 (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 43PI9gv3016114; Thu, 25 Apr 2024 21:40:15 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=rinhOYxPbeUtP98TRNY7Po0KWhqCod5fOaW9iO+6Mx0=; b=Ju Cju+Y8G9Vlfg1+aTBnXB7gmIiCu7x6zzaw0fJYrfaX+0xfLg2LcrlkA327srPgSE BDWIvWZF/eUd3zkQ3JvuVwYJAaSZxNdWj53a2jBICZs8gPE+WMa4sUS/AC+okMAV MwjoYsl+UPN1vRuEUbVbiddouKSqDIAYG63ThykoZukw+TrjYw1X5ZJiUzfAXK6Z wHaZTX98l2rgb0wZ41O1teyjdwJOGmkNVvVFpjCWRe71qqSOc1n8+P+8CoXTRF0B vRie96WUsB69r/LANe0oTVeeikUY3eoVxAJMr+KqSteKPHrDPsJ6/2FkPFvrnRSz ALhFVBojfiUZ2gGo0GGQ== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xqengksrk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Apr 2024 21:40:15 +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 43PLeE5r010980 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Apr 2024 21:40:14 GMT Received: from [10.110.61.159] (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, 25 Apr 2024 14:40:13 -0700 Message-ID: Date: Thu, 25 Apr 2024 14:40:13 -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 v2 8/8] wifi: ath12k: move ath12k_hw from per soc to group Content-Language: en-US To: Harshitha Prem , CC: , Karthikeyan Periyasamy References: <20240425055759.1181165-1-quic_hprem@quicinc.com> <20240425055759.1181165-9-quic_hprem@quicinc.com> From: Jeff Johnson In-Reply-To: <20240425055759.1181165-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: v_mNK48RAJIXyHq1Qzp58ILt4XEeib5D X-Proofpoint-ORIG-GUID: v_mNK48RAJIXyHq1Qzp58ILt4XEeib5D X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-04-25_21,2024-04-25_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 bulkscore=0 mlxlogscore=934 phishscore=0 malwarescore=0 mlxscore=0 impostorscore=0 lowpriorityscore=0 adultscore=0 priorityscore=1501 clxscore=1015 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404250158 On 4/24/2024 10: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 Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3 Acked-by: Jeff Johnson