Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp583164rdg; Tue, 10 Oct 2023 22:01:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHuGPWc8bpRzhFR3XoY87W2OO6ipL3e6bM+RbUuVKWTL37z7DRQZiaqsheoz6H2mtcJcsdh X-Received: by 2002:a17:903:2307:b0:1c6:21b4:30bb with SMTP id d7-20020a170903230700b001c621b430bbmr22320751plh.15.1697000515699; Tue, 10 Oct 2023 22:01:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697000515; cv=none; d=google.com; s=arc-20160816; b=LWTO2uEy6LQmCied+C4ar1Ngw1AC+A6iO8xVYPig/2uViuqNIIdo8XZ8l8assp1iYC GvmhZMYA6FJEjXARidSV5JseBXyhDrimV2OiIJvAD1l/ODPF5DQ8S0q0BTQsx2NwyGvl A+h8m+I+iBaOtzk6Wu4RULrwFQXu8C42hinkeK2MOxjtHImFA8Kho54Gkh1WdezHKXGi YF9PV/nkw/v/iHMLGXCYsAZwenTMbCYWjxKC0rNoVYi/sCUIoQzsDfnOdQBeVjzjDgzo Vkux9UhBD+E1pxyqCRguc3BoRpnpZsO8XqUoWfFwDe1e5ZA1OpfyDEd7S1k+0/QEoKTM tYYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=GJX3fHYAIyq5rxahShgwddeQ9Rp96eEBAU0kaVpTujc=; fh=zKk2CcW+fIQJ7rLFmqrmpTg4LxAxIxobdeHGGmSf1HM=; b=oOwjYq4iU/w5se8xUApYp08xQVbTy5Dy6ynCBkIDDfTFAxP8LusMRY7OLDWZ30MOMr 05wwIZ3H2NFauX0/4+EwCK95Lrgijxdg0jSzWtSut1y0++svYBKkgbF/oHEpk3lyiy1D OsEehrwy6MAmC/8Vf+TqXPTTBDXo0Ym0bpyhJ84VFKtFwQ6rwb4392xnSM3mdObWORwR Tk/rAXSfDQhyR4NBCJYkMkUYJuKpT+tF7BY6pKtjI1sa1xbSGCAeviC/Fz4wbOR/fdiJ /2jcw4NKYpmRcodyliV/CvRTYtu0ghJImkz0FwT8KlWDCP9P7uZa/vyJ4KgXfi7WJkp7 XZAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=NbQVZTDn; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id li13-20020a170903294d00b001c6182d7d43si13068528plb.21.2023.10.10.22.01.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 22:01:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=NbQVZTDn; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id E07B1802669C; Tue, 10 Oct 2023 22:01:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345026AbjJKFA1 (ORCPT + 52 others); Wed, 11 Oct 2023 01:00:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbjJKFAZ (ORCPT ); Wed, 11 Oct 2023 01:00:25 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87B4E91 for ; Tue, 10 Oct 2023 22:00:24 -0700 (PDT) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39B3iRjU024160; Wed, 11 Oct 2023 05:00:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=GJX3fHYAIyq5rxahShgwddeQ9Rp96eEBAU0kaVpTujc=; b=NbQVZTDnozCJ5zFkV/fRLCVarHlwlFKMeqM3jZ41ch5LG9jMCHQPIGuXcLIbFXceBBpz t3HxHqNb3SAHhZiAhumgMe8NpDDNIdaFOwPzzI4anJRd0QuwTAYsN5PBY9wo1E2w6k4F gLJBvEwl33PF5sM7SAedoYxZrZCECezyoNt1lJzzmb+E+UPfz1pprNydlEoJjzpbdaXM QsjEL0FJZmnMjJDsg+ihVk398qUWwK7Wai/xtOFM+warqnIbdgNOx4Y1QEJsmQQi7XVu hkweedUV6oND3e/EGe3qgebV+8h2sZ7RCKbOJDXTEbeK6VSxObAzbGnT9DgNPkKD9PmV IA== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tmxjpjvm7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 Oct 2023 05:00:19 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 39B50IK0025702 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 Oct 2023 05:00:18 GMT Received: from lingbok-Latitude-E5440.qca.qualcomm.com (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.36; Tue, 10 Oct 2023 22:00:16 -0700 From: Lingbo Kong To: , CC: , Subject: [PATCH v6 0/4] wifi: ath12k: implement some functionalities through reading ACPI Table Date: Wed, 11 Oct 2023 01:00:00 -0400 Message-ID: <20231011050004.423413-1-quic_lingbok@quicinc.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: QAwEy8YKm2h9ALgNgavo_lzHsrV8AAjT X-Proofpoint-ORIG-GUID: QAwEy8YKm2h9ALgNgavo_lzHsrV8AAjT 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-10-10_19,2023-10-10_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 adultscore=0 phishscore=0 priorityscore=1501 suspectscore=0 clxscore=1015 impostorscore=0 spamscore=0 lowpriorityscore=0 mlxscore=0 mlxlogscore=635 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310110044 X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Tue, 10 Oct 2023 22:01:53 -0700 (PDT) X-Spam-Level: ** Through reading ACPI table, implement Time-Average-SAR(TAS), BIOS SAR, configuration of CCA threshold and band edge channel power functionalities. v6: 1.remove code that is not called v5: 1.rebase to the latest tag v4: 1.revise commit log using imperative voice 2.delete guid_is_null() v3: 1.remove unnecessary cpu_to_le32() 2.adjust the order of the macros 3.apply jeff's advice v2: 1.put in the include guard Lingbo Kong (4): wifi: ath12k: add TAS capability for WCN7850 wifi: ath12k: add BIOS SAR capability for WCN7850 wifi: ath12k: add adjust configuration of CCA threshold value for WCN7850 wifi: ath12k: add set band edge channel power for WCN7850 drivers/net/wireless/ath/ath12k/Makefile | 3 +- drivers/net/wireless/ath/ath12k/acpi.c | 358 +++++++++++++++++++++++ drivers/net/wireless/ath/ath12k/acpi.h | 60 ++++ drivers/net/wireless/ath/ath12k/core.c | 6 + drivers/net/wireless/ath/ath12k/core.h | 13 + drivers/net/wireless/ath/ath12k/hw.c | 10 + drivers/net/wireless/ath/ath12k/hw.h | 4 +- drivers/net/wireless/ath/ath12k/pci.c | 6 + drivers/net/wireless/ath/ath12k/wmi.c | 252 ++++++++++++++++ drivers/net/wireless/ath/ath12k/wmi.h | 47 ++- 10 files changed, 756 insertions(+), 3 deletions(-) create mode 100644 drivers/net/wireless/ath/ath12k/acpi.c create mode 100644 drivers/net/wireless/ath/ath12k/acpi.h base-commit: 1424328125660281e749480357c7eeda839c144e -- 2.34.1