Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp304159lqh; Mon, 6 May 2024 22:14:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU7pmqGX7qJ5xzyLyr6z6z2S2Z5bgtuVvllWI1rQ1YuNo7RxCFec018EXoE0zdnQ5ND6WDIvjBUdtW1lWodbwCAjklM1vNAtLVj7CHE9A== X-Google-Smtp-Source: AGHT+IEGODOql089Xi/+qqn/pDCuvsTmrdBK0SZW6C/HzQ1LdsfKxjKWCuSYKEwER7+gBrsTSlZd X-Received: by 2002:a05:6122:2226:b0:4dc:d7ab:7f16 with SMTP id bb38-20020a056122222600b004dcd7ab7f16mr10901989vkb.8.1715058854985; Mon, 06 May 2024 22:14:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715058854; cv=pass; d=google.com; s=arc-20160816; b=bqUxgkvUGaxwWF74t4jDnvrweKBYka2MMig0j0d796UaJVICn8Zof5a/v18vkEM/lY tVKprcd2o1/ZwLRnI3RGyuqeJt3Fe0Rm38EtwskUxLblq2GgqGGJuEBjgqjZyIGanklk HU1cYl4cp8caTWZ1nk3zIjBZaIK/52q4/CScIp95bLRXKoq8hH6gyAlyVZEhuNV6mGNt 1I8PXgNSzCXrjL5y6+5+GG+9SfRpN1n5OhKtrUtR+3bbRtYjug2WCxfXb18nl/S/L5l2 phQStZt2q0ZybI0MfnI+LruK+cSlJKrwgKYMod1khHbJJQfXTVQiAiW8CYk9nRu+Kzc5 yAVQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=NsKaPD6RPSR0w5SeJG2VRD4+aO19po0YddELXxlZHSU=; fh=EPda7NDXOeyvL+qIGz5JjRLf3lrHmQERSm06bzucfuU=; b=jRHSLlEFBDYWunu+2omHzr9JJFfeD9R+xZArm6Jk++3WmwEBQHv8h7dPKTc4Dwj6R7 /JJJ9/cTGbWnKY/f6gPOQCDqVqW2dWNl0LmkNZF+bm3JXe+K8ZyNQbi8kZdsqcvpdjAz hxbb/2Rtu+08PpVnJge/UgdepCjSBWgak/c9anaPIKoE7X6zF+Gg0WZNN+0Us4NeYU5E y64gGjGDnWqWETWOegGXzfmUlHTZPtUxge8F1IMldJgtIejZ7wyUVaImCvXzKiV7BeBM DYdFTQ3bQyOBQosy/XB5sQEhXhLViDm+mLCy7FlEybjQcgsNY6+nqLZOXYHaSAGUnPDx 9/0w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="I/qFILjf"; 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-7270-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7270-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 br41-20020a05620a462900b00790ef75385csi11780364qkb.15.2024.05.06.22.14.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 22:14:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7270-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="I/qFILjf"; 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-7270-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7270-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 969201C239F8 for ; Tue, 7 May 2024 05:14:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E3A2C6F068; Tue, 7 May 2024 05:13:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="I/qFILjf" 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 8F9B16D1B0 for ; Tue, 7 May 2024 05:13:52 +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=1715058834; cv=none; b=oHUUmI8+pkkk4J/uYmW6zNgT0mA3t8Ug5TEPodUDl8hjeON9Jl8s3Awj226wDmEgDtpvQgfZBVmVtXWC1SfkKpAuCPTnLMy3x+kxVrZaxLvA2zRR4NLraiCVvN6E4VUQX3Eohc9J7lR3hJi3ky3KUyAVuEX+J4iQxoSv7h21muU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715058834; c=relaxed/simple; bh=3lKNNo28VQzuIpybvBWqeZ6onQpDK3f+8IThPcpoz4U=; h=Message-ID:Date:MIME-Version:Subject:From:To:CC:References: In-Reply-To:Content-Type; b=cu+sIJNhL+lYbkgwMxleBWqAz1igPC3G9HytMFjiWhrAhJkkrE2fvEchcItUM4U7hIKZ23E+CP+K6bg4xH+SphzarFAAJxaabFrbBz9GlzGGT4ItPzz5Tvu0Z0WULofK27tuTMnjkGuJ8GvhnP4Q4Rzm+vfRkbPbUyFutKHlonw= 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=I/qFILjf; 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 (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4471aifQ032375; Tue, 7 May 2024 05:13:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:from:to:cc:references :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=NsKaPD6RPSR0w5SeJG2VRD4+aO19po0YddELXxlZHSU=; b=I/ qFILjfRU9RBlYwWga9YHuwn3IbIVvUkmGjS2dtX82/7MKnPusVM10dTCWOllAxro dmTDjFTsAmMYWuVdq5lwocmCOdYh71LvJT24gTw9I3Vf5EU9IxudBwWiYTLtoMO7 eFXdrbBaiwsnbNcKme0EgBpK4Kza8mgTes3/ZYLNOZw7BpYXZ4YmiLHcNac1QiTG ZxYoZ4oyrbmvHUzbrMUyrfTYRZ51c49+UxOEM74UESQxFgV9DcS7LM4sWTT2Ta0B zphTlUwokuPDWJ316R1E8nTWfDB/XrgVIqhpltTqok4+RCyeV16TuloYErYTZZ9/ nVsCQ7hR+a+3BE4E7ljw== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xy15ehf68-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 07 May 2024 05:13:44 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 4475Dhox014608 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 7 May 2024 05:13:43 GMT Received: from [10.152.206.169] (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Mon, 6 May 2024 22:13:42 -0700 Message-ID: Date: Tue, 7 May 2024 10:43:38 +0530 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.0 Subject: Re: [PATCH v3 0/8] wifi: ath12k: Introduce device group abstraction From: Harshitha Prem To: CC: , Harshitha Prem References: <20240506173943.1747037-1-quic_hprem@quicinc.com> Content-Language: en-US In-Reply-To: <20240506173943.1747037-1-quic_hprem@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: b7SIgUoQCnxLdyz4uC6fVMtHQ_JFMuEI X-Proofpoint-ORIG-GUID: b7SIgUoQCnxLdyz4uC6fVMtHQ_JFMuEI 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-07_02,2024-05-06_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 adultscore=0 mlxscore=0 malwarescore=0 clxscore=1015 mlxlogscore=963 impostorscore=0 priorityscore=1501 lowpriorityscore=0 phishscore=0 suspectscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2405070035 On 5/6/2024 11:09 PM, Harshitha Prem wrote: > From: Harshitha Prem > > 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. > > > 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 soc to group > > drivers/net/wireless/ath/ath12k/core.c | 433 +++++++++++++++++++++---- > drivers/net/wireless/ath/ath12k/core.h | 87 ++++- > drivers/net/wireless/ath/ath12k/mac.c | 108 ++++-- > drivers/net/wireless/ath/ath12k/mac.h | 9 +- > drivers/net/wireless/ath/ath12k/pci.c | 2 + > drivers/net/wireless/ath/ath12k/qmi.c | 10 +- > 6 files changed, 534 insertions(+), 115 deletions(-) > > > base-commit: 2c4d8e19cf060744a9db466ffbaea13ab37f25ca Kindly ignore this patch series. Updated cover letter in next version. Thanks, Harshitha