Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1074744rdh; Mon, 25 Sep 2023 02:24:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGfd0xrLyGJXAO+HRTLzwTw6oPPNPDYzO4lB9ufYgT4RCezExmKUc21G9khMJzxBS52iXF3 X-Received: by 2002:a05:6a00:17a0:b0:692:6d3f:4858 with SMTP id s32-20020a056a0017a000b006926d3f4858mr5316748pfg.17.1695633863963; Mon, 25 Sep 2023 02:24:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695633863; cv=none; d=google.com; s=arc-20160816; b=BOhPMrQWCMa8wnd/7Ohod9fdGWKkT3L9u9ZWtq4SmIwdtxlkyx0oZ+mv8M8Kpyl7Mg /7B3PjKLKRAOyyCbqs1up+WoUv41AkGoolnfo2E0+2l8+8yWPW6Ww7F5lJjnmqhOwkk7 ooNtvwayLRWzIBvD6eL8rlw4NAqVOGmnJGl67mf9Ds4bddq0/as1PCQAhLtTPxeawXDc I3t5Iv7d1pav5XqoJDmoslf3eDOgjzFJxHWKkMP8gckymEBDsP5AiRkNzmI0tPJod4pS kSrqUUrd2YOiKnglJe3BdAx23q5nI3eXadA/dXXaU/pzbhR6ZNwB+ffRNXV46hp3631T lwJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=sQY/AggV8xQysCTNPgy9O/5Bm+uQD1+d/f+Kyo4SrRU=; fh=75CDHJDuowxspHrWYGyFkxqtTsCAv36FxKet5aSzFkk=; b=Xv0UXv6POwJV+MjXUTf7gcQZqBPgqw9d/xzdoyvk/IdsjdpyQmeFgI1EhSxj+isWd8 VdT1odz8Y+W7wZmhj3dqNDu/Cxze5SOrhH+dnNyt5e0UtWqtwr7fTEGmg+wakovVmYYp maPDLNAhsvzAzXwbBU3ipjkr4xrUeoac4/GtJay1SQRI9DXP4b5Oxt8lra8/AXRKB3CV 4Zccf4Vv9WvzCOMLBc6iYb5dMFWghAtMpu3TAQX47SEIcSFPKIbC9Jsdhm17uoPBWlm4 wawhd2zpfQOf+729FQ7LYgGQqPpA8Y6nRWfUcWlqnT5zMkkZL/GHRRgQCfuZ9g72F+8g o4Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ZQJdEEBD; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id by13-20020a056a00400d00b0068e3e4f5b90si9641516pfb.10.2023.09.25.02.24.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 02:24:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ZQJdEEBD; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 631C9818CCAF; Sun, 24 Sep 2023 22:42:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231940AbjIYFmq (ORCPT + 56 others); Mon, 25 Sep 2023 01:42:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229658AbjIYFmp (ORCPT ); Mon, 25 Sep 2023 01:42:45 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E99BBF for ; Sun, 24 Sep 2023 22:42:38 -0700 (PDT) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38P4pMG8001833; Mon, 25 Sep 2023 05:42:31 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=sQY/AggV8xQysCTNPgy9O/5Bm+uQD1+d/f+Kyo4SrRU=; b=ZQJdEEBDxV+Ik49vFExCw3PY6I6AJAewKOi2Y29KdfWWn7BKYNlk0ONMpyxZ+cRkn1b/ fwETAX67rh1RKpPjeKQglRQmx/7ADXs8ybyltciqNUOcms0ZHspT6TrPuOlu9g/3VNi7 Isz4Ft+BizwrXkcnqWbBiZPGrxag6z/yqaLqiF01aHuYRMpH3e5qUjbZyPUtZVPJ7Jk9 uH/3gP5+PIS33RjFc9uHzxc1cbVQ94zaPRBlb4YwS2X0Bp8F1FlwT7FL1/TjNp5JXKSS MoNocFS8z7mwKw5T15kkvh2mFihvRf4wRY5IdADY91kRUGVw79chuMUj7yRyslfbGX8O 9w== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t9safayr8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 25 Sep 2023 05:42:31 +0000 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 38P5gU0i024934 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 25 Sep 2023 05:42:30 GMT Received: from [10.201.207.136] (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.1118.36; Sun, 24 Sep 2023 22:41:56 -0700 Message-ID: <1c1391b6-9710-44c6-97b2-68ef23409c1b@quicinc.com> Date: Mon, 25 Sep 2023 11:11:48 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 13/13] wifi: ath11k: send TPC power to firmware for 6 GHz station To: Wen Gong , CC: , , References: <20230920082349.29111-1-quic_wgong@quicinc.com> <20230920082349.29111-14-quic_wgong@quicinc.com> <60aaa1fc-99cf-476c-af51-e5ad425792f9@quicinc.com> <145e9534-6610-9c11-b2b9-87fb8e50ef81@quicinc.com> Content-Language: en-US From: Aditya Kumar Singh In-Reply-To: <145e9534-6610-9c11-b2b9-87fb8e50ef81@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] 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: DwgMISsP-LKseHoU73c1sEfKFqZ6t9w_ X-Proofpoint-GUID: DwgMISsP-LKseHoU73c1sEfKFqZ6t9w_ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-25_03,2023-09-21_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 adultscore=0 mlxscore=0 priorityscore=1501 impostorscore=0 bulkscore=0 suspectscore=0 phishscore=0 malwarescore=0 mlxlogscore=999 spamscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2309250040 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sun, 24 Sep 2023 22:42:52 -0700 (PDT) On 9/25/23 07:45, Wen Gong wrote: > On 9/22/2023 9:25 PM, Aditya Kumar Singh wrote: >> On 9/22/23 15:42, Wen Gong wrote: >>> On 9/22/2023 5:24 PM, Aditya Kumar Singh wrote: >>>> On 9/20/23 13:53, Wen Gong wrote: >>>>> When station is connected to a 6 GHz AP, it has 2 way to configure >>>>> the power limit to firmware. The first way is to send 2 wmi command >>>>> WMI_PDEV_PARAM_TXPOWER_LIMIT2G/WMI_PDEV_PARAM_TXPOWER_LIMIT5G to >>>>> firmware, the second way is to send WMI_VDEV_SET_TPC_POWER_CMDID to >>>>> firmware which include more parameters for power control. >>>>> >>>>> The first way is disabled in previous patch >>>>> "ath11k: discard BSS_CHANGED_TXPOWER when EXT_TPC_REG_SUPPORT for 6 >>>>> GHz". >>>>> >>>>> Prepare the parameter for wmi command WMI_VDEV_SET_TPC_POWER_CMDID and >>>>> send the firmware after vdev start response success from firmware, it >>>>> is for the second way of power control. >>>>> >>>>> Tested-on: WCN6855 hw2.0 PCI >>>>> WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.23 >>>>> >>>>> Signed-off-by: Wen Gong >>>>> --- >>>>>   drivers/net/wireless/ath/ath11k/mac.c | 8 +++++++- >>>>>   1 file changed, 7 insertions(+), 1 deletion(-) >>>>> >>>>> diff --git a/drivers/net/wireless/ath/ath11k/mac.c >>>>> b/drivers/net/wireless/ath/ath11k/mac.c >>>>> index a8ae281d2635..f8b907a758b1 100644 >>>>> --- a/drivers/net/wireless/ath/ath11k/mac.c >>>>> +++ b/drivers/net/wireless/ath/ath11k/mac.c >>>>> @@ -7296,6 +7296,12 @@ ath11k_mac_vdev_start_restart(struct >>>>> ath11k_vif *arvif, >>>>>           return ret; >>>>>       } >>>>>   +    if (ath11k_mac_supports_station_tpc(ar, arvif, chandef)) { >>>>> +        ath11k_mac_fill_reg_tpc_info(ar, arvif->vif, >>>>> &arvif->chanctx); >>>> So we are passing local copy of channel context stored in >>>> arvif->chanctx. Do we need to update it when channel changes? >>>> >>>> I see that during assignment time, we are copying/updating it and >>>> accordingly the command will be sent to firmware, but what about >>>> when STA moves channel? arvif->chanctx should be updated and tpc >>>> command should be sent again in that case? >>> >>> This has been discussed before here per question of Johannes:"Could >>> this information change? Should we track it in beacons?": >>> >>> [PATCH 9/9] mac80211: save transmit power envelope element and power >>> constraint >>> >>> https://lore.kernel.org/linux-wireless/38e7d9d2eebafa7245a36a0a0396094526eb3efd.camel@sipsolutions.net/ >> That's fine. That's w.r.t to TX power change. I'm saying here about >> CSA? What when AP tries to switch channel? For that client need not >> disassociate and associate back right? >> >> In that case, channel context in mac80211 layer will change. But our >> driver's arvif->chanctx will have previous one only. We are using >> channel context to get the ieee80211_channel which has the PSD value, >> and that value we are sending to firmware via TPC command during >> intial association time. So when channel changes, firmware also should >> be updated with the latest PSD values via TPC command for the latest >> channel right? >> > You are right. CSA may be change channel bandwidth. > > Currently we could keep NOT support CSA as well as CSA for MLO since > these are the basic TPC support feature. > > We could make new patch later to support CSA fro TPC power, OK? Not supporting w.r.t MLO CSA is okay. That's WIP. But for non-MLO case, I think it should be supported. And if not, then may be explicitly mention it somewhere as _TODO_ ? What if by the time patch is sent for that, meanwhile a bug is filed? Anyways, I will let maintainers take a call on this. I don't have any further comments.