Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp263537lqb; Tue, 28 May 2024 15:04:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVPHc1uLk6kmyl/QWLgFRGtM/uHw2f1KUEbbHph7/s1rlaz7eK+MUsp3Bpxg8+Wjb7Hud4r6EtoDpSB5DLky2j17jC/v6ibhjvN0vGItg== X-Google-Smtp-Source: AGHT+IHtvtI8C6pFzFyPrOp+GsDrm+u9R8NRmmXiR/SQSV11pUSNUXVprFVCN84z2IS5F8Jc/QMR X-Received: by 2002:a9d:7584:0:b0:6f2:5ce7:3f3e with SMTP id 46e09a7af769-6f8d0a93ff8mr14739005a34.2.1716933886725; Tue, 28 May 2024 15:04:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716933886; cv=pass; d=google.com; s=arc-20160816; b=ffP0GSsu3fcUUpMrhJ70+aLOXUG8zSO4GWziXgi4Ai7MLiudVXXdFUVa9NUXJvXTc7 MRUa/zRmHywMSigQtBpmIPHPQ07qAKWPmZEpqa7A+U4Q3av2o1X+ktMuyi/HwUJaStgz mDdcJeoA5ynXHZgfIBgzxFVLORUYJBZQMNBdmGuPG7YiiBo3ZtArzv/24ozaSJBrAIXj 7PjrqTVoQBe1K47bYYbYrJ6gejZwvoGLZ5Lr8rkWdCB3s6SBAVWn4H8ESBdid6ZU/7XE nJ/+FU/NIsvbpy8hGNW8Ej0v7frqogvQX2PeZIlpyUWhIT+JdNHr15IFb/SwALKZlERU IS5Q== 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=9sv0P9Ps19AIBqGH7Qwminv8nT9R2/SSGoOpb0W/kIc=; fh=bqQr7Umj4sZVZrgQNo+FwIfIhEq8lT2gobo8K5Rce5g=; b=IvGnuilMxhBmHpwXZQiVGQ1CYKAJ0zU4/t+5xrwAV5JT8qVY4dvr0l6Vxtf/+GfJ85 qQo/kadGFCAis9SHYh72f4D7zivbs5PrYmiAymEjSGXmB2nMVxeAJ639bvyx6D7p788/ yi4+ORKPcLmAbeSRLFEUiQEMcfbCma/f80MlfxY92gsa0YO1ZIDD6mG1XVUu56D8os+N fHsxneKsFtLJPspNbZQITpMzxCCzYLTMvxsgsRGtMQJLv1U+K9gNFzfOO1gvOzXTdze1 NFWyivevPVZ6XYWO8eSetm7oyTQ3L8yoJS8ydVzD1hv6+qF/EirZn1PE7G4sliC9pAO6 LjYQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="K7pv/AD1"; 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-8235-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8235-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 ada2fe7eead31-48b8a0dd809si1153488137.281.2024.05.28.15.04.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 15:04:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8235-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="K7pv/AD1"; 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-8235-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8235-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 5F6581C20943 for ; Tue, 28 May 2024 22:04:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C58821DFD2; Tue, 28 May 2024 22:04:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="K7pv/AD1" 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 0C5DB13DB9C for ; Tue, 28 May 2024 22:04:40 +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=1716933882; cv=none; b=DG7C5uvKQdVOM0mV1Kjf74z9HvplF4FklchiJ8brZD+wq8YndL9E5MChIjHsS4KmrvJU36nqi4hy+V3AzSL5ddN4zlqBGgx5jKjoE36m3PZ2R971l6A9vC8qHNdsZcd1wMGohHQnvTQG6ZIltg9R7Mw9DKwR87xkB/QcCqOUmXc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716933882; c=relaxed/simple; bh=/GjpP014MD5RJGlkSnb0HyQp8zyJB8gK0lA57Yj3Jls=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=ryY+qBFq/ifUjVtrRDLnj0ZTWGHmDRzNUF3/66vIqg5e+IRetALLVR0zg8Or9YEyPFfNHn0tnREfr2VJZtZMf7qOFksJDn2v5FfPgmIAd14mV+ACPd0xFluKPRv29NlDKtEeS/iGMkePy4VJ87CDtgHIEOj9Q394Vt9kV8iKmq0= 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=K7pv/AD1; 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 44SBU8UW002957; Tue, 28 May 2024 22:04:29 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 9sv0P9Ps19AIBqGH7Qwminv8nT9R2/SSGoOpb0W/kIc=; b=K7pv/AD1JUwuKVSB SkBY7O2Nb46mZqRD2UzqrZ/g3rbfEzKoMM3MWTmklr9i83ym0uCmm5mRAlo9GnJG pefDRlmiBqUlIsp+oKtoq7RTUCDZlYshoBXezu6DPs081DIBfQxK/xKW8S+yx0oD kZejgxcVOdHTpZbcr+EgyrFjy0fwXw+29WylhIxjxphaSvDiLT47NPXHSTOIjOX2 o5KPauweX04Wg9ce2eZ2AA24q0v/H5n0xPoW1YcuFqef2i4ukdtuTmXRgxq4udn8 +S26Irl1buj6etmojpFIXzDETlGUmjs5m+L7XDi4T9xiVcYJvk4o1L3g5GARnlFi dq0NOw== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3yba1k7e37-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 May 2024 22:04:28 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 44SM4Sxm028599 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 May 2024 22:04:28 GMT Received: from [10.110.122.222] (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; Tue, 28 May 2024 15:04:27 -0700 Message-ID: <396d645d-6f3b-4c1b-9d4b-d056fad36192@quicinc.com> Date: Tue, 28 May 2024 15:04:26 -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 v7 0/8] wifi: ath12k: Introduce device group abstraction Content-Language: en-US To: Harshitha Prem , CC: , Baochen Qiang References: <20240528063547.1400700-1-quic_hprem@quicinc.com> From: Jeff Johnson In-Reply-To: <20240528063547.1400700-1-quic_hprem@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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: P3TRlSD1MI3L9XF3sWUPjPuHtS1BMr9J X-Proofpoint-GUID: P3TRlSD1MI3L9XF3sWUPjPuHtS1BMr9J 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-28_14,2024-05-28_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 impostorscore=0 suspectscore=0 phishscore=0 clxscore=1015 priorityscore=1501 lowpriorityscore=0 bulkscore=0 spamscore=0 adultscore=0 malwarescore=0 mlxlogscore=918 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2405280164 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?