Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1080934pxb; Wed, 6 Apr 2022 08:15:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdd+WOM4gORZNX7CLDhdAk7czxB1V6uTNKEL3Ay4SMDQ6DjfdDKVQVB2pKHTt0V4zZZdGv X-Received: by 2002:a17:902:f70f:b0:153:ebfe:21b3 with SMTP id h15-20020a170902f70f00b00153ebfe21b3mr9026294plo.119.1649258139550; Wed, 06 Apr 2022 08:15:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649258139; cv=none; d=google.com; s=arc-20160816; b=KLfpcU8LM4tbL93yCGNkk/cbCqE0icyHt+uBS90yQ3f9M8ZT4WlA2cxBGHrJwSYq2b k/H8HQSywRqugf3LhgMEME0bU1wok8eyEw3giROvVrdyq/N595SmIdJFIyhOYKOeqGmq eeq1XolzSuk/7dwjb3qHgHhofZPP6/j2bsgrtYGuENv4RM/hfnk+KOTh2JuxWQK9f266 Kp2YqzmCE4fgUz+95Zjyx5Ld/WHhGAeMQeLGgTf6ryC2RWwnzd0Uv5ZySM5l1tJISq3B 1QZyBOksR3A+/Q5uJwfTYXWbkMqoPlSjEM61uareHzB5i/TFMNtvTRgQ15Wmjgbqn947 md6g== 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=DC9/dD5vE9ABuSr3zpKqd6KiCOzEC4l3tzPeOHBhjfc=; b=TX+hjUAHMnzQOUtHf2Vy2rUK5nF7u3McBGFLXiq2XX36fovwA7kMW8OlWkPJJ8IRl6 2X+Y83exH4dROQYKFSx37b/UTzMrNNyK92rhCLzr/L0vjJTRDfJa/5QzKC9EtwvKVvTp LHBKNqfP6iG0+Gl3J4F6kZxmPsuC32WNR6aSWe5c2aggw/ASVMTnhMcZNRdmelcfR7NQ /SrWXnTn7HSdhSSSDOtdT6MEVX04vx6taHRXqVkdR6kRKaG8ZoUw+BGerOU1AX1wtzQn xgOC03gfMopYQ0J9N9ZFPO2NckAbxlSQr5d+s3z7Im/988e4p5pdC6HEBlgfTtYzm6+W D8ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=COJcDJoU; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id t14-20020a170902e84e00b00153b2d165b1si16650020plg.441.2022.04.06.08.15.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 08:15:39 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=COJcDJoU; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CD3793B3F89; Wed, 6 Apr 2022 06:06:01 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231706AbiDFNHx (ORCPT + 69 others); Wed, 6 Apr 2022 09:07:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232695AbiDFNHi (ORCPT ); Wed, 6 Apr 2022 09:07:38 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E877A5E3C29; Wed, 6 Apr 2022 02:41:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1649238114; x=1680774114; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=DC9/dD5vE9ABuSr3zpKqd6KiCOzEC4l3tzPeOHBhjfc=; b=COJcDJoU3aEXc1tYC3LKoKWLT7r3Ig+ozYUzCz1g1nEbq/GQDGyYBdOq 8q4r+opeW1DncPWca0PIg3V8cS75V66ZwM1c5hj9LDFFKvX7f7r51IDRt uZusi8EQoNhzrjUiGTOKhQXp0utTQXS3qUJqMVvFFUAV+GvQceJ27uZ8k Q=; Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 06 Apr 2022 02:41:26 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Apr 2022 02:41:27 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 6 Apr 2022 02:41:25 -0700 Received: from mpubbise-linux.qualcomm.com (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.986.22; Wed, 6 Apr 2022 02:41:23 -0700 From: Manikanta Pubbisetty To: CC: , , , , Manikanta Pubbisetty Subject: [PATCH v4 00/12] add support for WCN6750 Date: Wed, 6 Apr 2022 15:10:54 +0530 Message-ID: <20220406094107.17878-1-quic_mpubbise@quicinc.com> X-Mailer: git-send-email 2.35.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 nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org WCN6750 is non-DBS 2x2 11AX chipset. Unlike QCA6390/WCN6855 which are DBS (dual band simultaneous) solutions (2 LMACs), WCN6750 has a single LMAC supporting 2G, 5G and 6G bands. It can be operated only on one band at any given point. WCN6750 is a PCIe device. Unlike other supported ATH11K PCIe devices which are directly attached to APSS (Application Processor SubSystem), WCN6750 is not attached to APSS, it is attached to the WPSS (Wireless Processor SubSystem) Q6 processor, the FW which runs on the Q6 processor will enumerate the PCIe device. Since APSS is unaware of such a device, it has to be registered as a platform device(AHB) to the kernel for device probing. Like other AHB devices, remoteproc APIs are used to boot up or shutdown of WCN6750. WCN6750 uses both AHB and PCIe ATH11K APIs for it's operation. It uses AHB APIs for device probe and booting of the remote processor. Once device is booted up, it uses ATH11K PCIe APIs for initialization and register access. Hence, it is referred as hybrid bus device in the rest of this series. Since the chip is enumerated by WPSS Q6, device information like BAR and BAR size is not known to the APSS processor. A new QMI message called device info QMI request will be sent to the target for fetching these details. STA and AP modes are supported; Basic connectivity and ping are verified in both the modes. An important point to note is that though WCN6750 is a PCIe device, it cannot be attached to any other platform except on Qualcomm Snapdragon SoCs due to the aforementioned reasons. Tested-on: WCN6750 hw1.0 AHB WLAN.MSL.1.0.1-00573-QCAMSLSWPLZ-1 Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-01720.1-QCAHSPSWPL_V1_V2_SILICONZ_LITE-1 Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.5.0.1-01100-QCAHKSWPL_SILICONZ-1 Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.4.0.1-00192-QCAHKSWPL_SILICONZ-1 Manikanta Pubbisetty (12): dt: bindings: net: add bindings of WCN6750 for ath11k ath11k: Add HW params for WCN6750 ath11k: Add bus params for WCN6750 ath11k: Add register access logic for WCN6750 ath11k: Fetch device information via QMI for WCN6750 ath11k: Add QMI changes for WCN6750 ath11k: HAL changes to support WCN6750 ath11k: Datapath changes to support WCN6750 ath11k: Do not put HW in DBS mode for WCN6750 ath11k: WMI changes to support WCN6750 ath11k: Update WBM idle ring HP after FW mode on ath11k: Add support for WCN6750 device --- V4: - Addressed comments on DT binding (Matthias Kaehlcke ) - Rebased on ToT SHAID: 607c3dc2750382befa0f3f20063943bd058a2bc1 V3: - Patch series with 19 patches is split in 2 patch series, this is the second one - Rebased on ToT SHAID: 7316a74e54318d0cd648242b18ea83cdef6dda96 - Addessed DT binding concerns - PCI common code is moved to ath11k.ko - Added a new HW param for WCN6750 which uses fixed firmware memory, this is needed to differentiate WCN6750 from other ATH11K chipsets - Modified the logic in patch "ath11k: Add support for WCN6750 device" based on the latest DT binding V2: - Rebased on ToT - Addressed comments on DT binding .../bindings/net/wireless/qcom,ath11k.yaml | 361 ++++++++++++------ drivers/net/wireless/ath/ath11k/Makefile | 5 +- drivers/net/wireless/ath/ath11k/ahb.c | 162 +++++++- drivers/net/wireless/ath/ath11k/ahb.h | 1 + drivers/net/wireless/ath/ath11k/ce.c | 4 +- drivers/net/wireless/ath/ath11k/core.c | 118 +++++- drivers/net/wireless/ath/ath11k/core.h | 5 + drivers/net/wireless/ath/ath11k/hal.c | 15 +- drivers/net/wireless/ath/ath11k/hal.h | 15 +- drivers/net/wireless/ath/ath11k/hw.c | 166 ++++++++ drivers/net/wireless/ath/ath11k/hw.h | 11 + drivers/net/wireless/ath/ath11k/pci.c | 4 + drivers/net/wireless/ath/ath11k/pcic.c | 76 ++-- drivers/net/wireless/ath/ath11k/qmi.c | 220 +++++++++-- drivers/net/wireless/ath/ath11k/qmi.h | 26 +- drivers/net/wireless/ath/ath11k/wmi.c | 13 +- 16 files changed, 976 insertions(+), 226 deletions(-) -- 2.35.1