Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp579463lqp; Wed, 22 May 2024 12:58:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWdxnCp/aVhqk2JEm7N7Tzj172MlcSpCF9/mIUOdBPcLoG264KgyY501VN7e8gcGaDpaJpXkCVKg09iH+fH32L+4ccaKjoBcnjA6MJQzA== X-Google-Smtp-Source: AGHT+IFM+9hyTBQCD35PMjgLQgOD7I+5qXZyuHSbwblawndT/Kku1v0OLmSzUPHzeZOIDWIeAR9W X-Received: by 2002:a05:6808:118d:b0:3c9:9268:9ee8 with SMTP id 5614622812f47-3cdb5198596mr4424087b6e.18.1716407905157; Wed, 22 May 2024 12:58:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716407905; cv=pass; d=google.com; s=arc-20160816; b=omXeRNYJsDu6i2Gz82I+0Wmv1UHeQDHkVrtRHdtjyihd/DS3VP7kw6VOmny0ZlHxy7 hmZ9STCPkhZKkZgCMH9avcK1OZ6+xw4KUUjRy6x/hgriBOmbGOnxhLlcnAm9l+QOf4m3 8JztR+qL3HaOPeRjb0ucyQX0CF0Z8gtkrPc4/aCJImp6htu5yQ4jo4Gges49HTs2J7YT g6YLsf/ytY+DbI/GjJBrvC08pyrTzB1kBF8FrJpH1YDDeDK91oQJ0RCRuh2a1oapSMqC WkhrGgB49ooa6m+3SVsNRH3suWqqQSWBbPG7Vo+LVbXTYAX+t46PD3kRjZ+L4AvlxY+d kZIA== 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=NaEW2RwChTqcSG2V2838+X9xoazzhKbh2gYoqTqXVE0=; fh=At257wWK3kSGIbGDktmWBGlDug++rPGntE82ReerWME=; b=FHBzMbvoD5ix7GWnWsVoa0L4EfbLfy/lp9JzL25DVxIqI0fTaVxdskmjY3o6ODg5OV 2qR2x+NOaIZcaJfEU4/OLguR3PbvOkikZVUgYRGr0Wwt/58q/zmdxDrIkkzWPvKIq6rW SF8NWuBH2cA1+kR1euOzU6NPtEgV4P3SzutAfjZa/3MHV6JXwSdTjEWOzeY0t4sZSZOl kAc01p2XiC+0+b0ctxTxPUa4uMZ39QDzCw87jG/QdthX0lULlBpqUngAZTPABuYE8yNu P5E/JZdsSH6ht4LBO5XG385xp+B+lqxh2qeBP7pBzC+StUxdDrXxkWmeKjdHnU/FdJyp FP8g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=FFt0qZcG; 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-7965-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7965-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-792bf27734csi526375485a.19.2024.05.22.12.58.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 12:58:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7965-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=FFt0qZcG; 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-7965-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7965-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 CA33D1C20C73 for ; Wed, 22 May 2024 19:58:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B768E146588; Wed, 22 May 2024 19:58:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="FFt0qZcG" 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 064A9224FA for ; Wed, 22 May 2024 19:58:19 +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=1716407901; cv=none; b=H6DHpxZd0IS0vGVe3BaKVvWl6W6TsHnbhMH4iORTXHZfDdD0iygVColwB61bzCF05Mc+gJHjNJ1REPzCWpqYX+B+lIw5bdKDgvcXRhT0s3maPemlUG4iSelPLKIh163k8V4C5gtRUnHvFnOLDGAMANI3fYNht/epEdNulVrqe6I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716407901; c=relaxed/simple; bh=aXIs8oPnVw4bvjPhFLRcliBr3wHKPoo7bNgENjAiWGg=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=ieusMVYHjozlZgVXafYAbssIdsKAI+/kqhF3N3F1wmUAtG0MBhW9whpIeP5ro4wQU9GKPccHgALa0QoPEvBqsTcr2v/hKyljti0ItOUr2EOQpiC6iqH4VaixR2cXsvoSpcuPOEFJvHmCecWXky0Gp7/HrzmMWasYL80k94i1iOI= 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=FFt0qZcG; 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 44M97KEc011664; Wed, 22 May 2024 19:58:12 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=NaEW2RwChTqcSG2V2838+X9xoazzhKbh2gYoqTqXVE0=; b=FF t0qZcGhbrgTIXH2bEyAC42AupLXmsE+57S/dMoCcU56IQ6fI61LnbYD41JUWCL3m dB2OyaTB3bXecKMNquoIVAFE6DlsMpWO9Ei7vroFbVwQPye6QP/OQNpfcdhWtslw pwCCFt+PcGiVK/V4Q0+mGNeqTaBBkwh9yrphDiyWnTUyFq11GLyDXztESCG98uI/ ovu67l1jcDhkUf7AlPIsQLb/vZsjkVTSTpuaRuDwdjvz7ia6ogP2Tr7uh6n1kw0C KYiheYuIfWjfZdvdPonK8fsRbJaUQPpBUOQz4Y57n8E+o/v1fpWY7M8MvuKn+AaW 7TlMsEtv2wbLIc9hnivw== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3y6pr2stsh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 22 May 2024 19:58:12 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 44MJwBoN030619 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 22 May 2024 19:58:11 GMT Received: from [10.110.17.44] (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; Wed, 22 May 2024 12:58:11 -0700 Message-ID: Date: Wed, 22 May 2024 12:58:10 -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 v5 8/8] wifi: ath12k: move ath12k_hw from per soc to group Content-Language: en-US To: Harshitha Prem , CC: , Karthikeyan Periyasamy References: <20240522095439.2596989-1-quic_hprem@quicinc.com> <20240522095439.2596989-9-quic_hprem@quicinc.com> From: Jeff Johnson In-Reply-To: <20240522095439.2596989-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-ORIG-GUID: e1iHA0LGAbCBbx9EAe9ylllYolk_H6UG X-Proofpoint-GUID: e1iHA0LGAbCBbx9EAe9ylllYolk_H6UG X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-05-22_10,2024-05-22_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=968 bulkscore=0 malwarescore=0 spamscore=0 priorityscore=1501 impostorscore=0 clxscore=1015 lowpriorityscore=0 adultscore=0 suspectscore=0 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405010000 definitions=main-2405220138 On 5/22/2024 2:54 AM, 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