From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 346E6C4345F for ; Fri, 19 Apr 2024 14:54:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:CC:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=sfSXhH4qGOV30gDA7bcJqB/xyZGAyNbZCGoYCwLQRsY=; b=m4aIgSlQbD/lFQQRvpVHDXSAx2 H3Yvak0YnbWmfs9s9vhQ12m2o8dTGwnf9qBax4gjS/IMt25SEH8ra32h/S7t/E0ZaRWv78Vsyo9Nb XfNF2MpUD1adnXzqJOOJtVzsVl8geNeCyM+V1whj2G01uP/a+/UJXcvweSvOVoG/ZvqoWWhZPwG/z O3e6VwLumrn+yikpEJDAeOVldwyK2VxA125yk+YWMKLdIb7n8eSW2kBloHH9vyToYJHf+vGUPxh1k gUApPMTIgQ7hI0ig5/pUVOeYVcf/JNtUs5p8Ys+yU8CSYl1g1ZlwRPUxK2MU+qgo0MKHJEIFA4gax Y6ZjU7Jw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rxpda-0000000630p-3hme for ath12k@archiver.kernel.org; Fri, 19 Apr 2024 14:54:50 +0000 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rxpdX-0000000630F-32xm for ath12k@lists.infradead.org; Fri, 19 Apr 2024 14:54:49 +0000 Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 43JDp9DI011105; Fri, 19 Apr 2024 14:54:45 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=sfSXhH4qGOV30gDA7bcJqB/xyZGAyNbZCGoYCwLQRsY=; b=C4 IcEJIFdcR/hz+7ts0zZ22z3oGkzONonNyq4L5fntWpaaqpU0HSALd6iiyh1YqymZ rZYklC7HreXznQllFJw1CbZZVWm5FkenvmCXDNKwMj6sn1pIgyb0yZL3+zeoF7kF MvqBjWTiDUY1W9/ixfW6U89K0RvpXhm3EiP5mAz0Y01mYkfUEG/fzmWIiwayWMj3 ZRdES3We8tpa/2GrPKTVq0mH6ZMVcccVDnuzl4W2OL+TrMvtNLMdnEm2zKIPtpog sOk69wUPRMGQFDw3NO2ES5U1ykKOGQhDDvOvPpfv2CUOTvJ16+neQlsZA3mt9sJp l4tnhIkbIn1WftjKcgmA== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xksuvr4ur-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 Apr 2024 14:54:44 +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 43JEsivr000476 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 Apr 2024 14:54:44 GMT Received: from [10.110.56.161] (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; Fri, 19 Apr 2024 07:54:43 -0700 Message-ID: <3f7b52da-70b0-4e37-b2c2-eb0b1985b068@quicinc.com> Date: Fri, 19 Apr 2024 07:54:42 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v8 1/4] wifi: ath12k: ACPI TAS support Content-Language: en-US To: Kalle Valo , CC: References: <20240418162019.1246749-1-kvalo@kernel.org> <20240418162019.1246749-2-kvalo@kernel.org> From: Jeff Johnson In-Reply-To: <20240418162019.1246749-2-kvalo@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit 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-GUID: RXK8rEFwnq2tAFqtovSEIGhhyWaTxiUT X-Proofpoint-ORIG-GUID: RXK8rEFwnq2tAFqtovSEIGhhyWaTxiUT X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-19_10,2024-04-19_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 bulkscore=0 clxscore=1015 impostorscore=0 lowpriorityscore=0 phishscore=0 mlxscore=0 adultscore=0 malwarescore=0 priorityscore=1501 spamscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404190112 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240419_075447_807589_D25E6710 X-CRM114-Status: GOOD ( 14.06 ) X-BeenThere: ath12k@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "ath12k" Errors-To: ath12k-bounces+ath12k=archiver.kernel.org@lists.infradead.org On 4/18/2024 9:20 AM, Kalle Valo wrote: > From: Lingbo Kong > > Currently, ath12k does not support Time-Average-SAR (TAS). In order to enable > TAS read the tables from ACPI and send them to the firmware using > WMI_PDEV_SET_BIOS_INTERFACE_CMDID command. Besides, ath12k registers an ACPI > event callback so that ACPI can notify ath12k to get the updated SAR power > table and sends it to the firmware when the device state is changed. > > ACPI is only enabled for WCN7850 using struct ath12k_hw_params::acpi_guid > field. Most likely QCN9274 will never support ACPI as the chip is not used in > laptops. > > Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4 > > Signed-off-by: Lingbo Kong > Signed-off-by: Kalle Valo > --- > drivers/net/wireless/ath/ath12k/Makefile | 1 + > drivers/net/wireless/ath/ath12k/acpi.c | 216 +++++++++++++++++++++++ > drivers/net/wireless/ath/ath12k/acpi.h | 45 +++++ > drivers/net/wireless/ath/ath12k/core.c | 7 + > drivers/net/wireless/ath/ath12k/core.h | 13 ++ > drivers/net/wireless/ath/ath12k/hw.c | 10 ++ > drivers/net/wireless/ath/ath12k/hw.h | 3 + > drivers/net/wireless/ath/ath12k/wmi.c | 44 +++++ > drivers/net/wireless/ath/ath12k/wmi.h | 17 ++ > 9 files changed, 356 insertions(+) > create mode 100644 drivers/net/wireless/ath/ath12k/acpi.c > create mode 100644 drivers/net/wireless/ath/ath12k/acpi.h Pending update of the copyright on these two new files, Acked-by: Jeff Johnson