Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp4843134pxb; Mon, 28 Mar 2022 04:26:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhF28kQFMyR76cHR26E4bTHhcAGqmCz3MGjcplib67+7yHlX1PpWrdME9sOG627uze5fRe X-Received: by 2002:a17:906:fc06:b0:6e0:d13f:65e4 with SMTP id ov6-20020a170906fc0600b006e0d13f65e4mr13634510ejb.71.1648466819032; Mon, 28 Mar 2022 04:26:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648466819; cv=none; d=google.com; s=arc-20160816; b=XRAamxn4IZvPk2+ePZkJ3lFbYmgeW0pZXMDl7Wruq9A9VF4l6IEZZgMBiTgIVU5RZZ n0rzBOSPvlppn75f+kaQ3IMDeF57rhZH8YEOhQf4YcqP2eO+BystjcQCLLDRCuX37UPa iLMGtT7oJk+u0VfB06jee0MVWv6TIPUJzAhxPDAc0LPWyprtwKUgPcVNLOmFhU8KdN8A qR7xIZuKMTJKrxMcT8t2N13R2S8/Vg4/ojlGQDznNlxMFH7cIODiMEmRO8AUwpTnTxoU 54M1vVYgcv8J6MFQyYUuG8BcV3KX6PYsd4sLptvTFSqRToqGYXG6OO44R/wHuLAcNuil GeAQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8S+bVEcyHGRAYP7LA7lx1oMoBf93I1QzQ/FaRoN4iTE=; b=K9ClDbo6qdAmvHon4JPF0cFfeQvbSrkzbt0shwZ+pnE04q80N9cNMSvZAsTsXjDfuD hQEtb8MRAnT9UUCl30VnFNU13+cEwNB3cWwyQ8JVVTugzEQjDrkkU5KhWMeG1EeGjW2t 00agJdNdz/EY1Ey5qnaaI0NV16bK976bAV7rIVn8aqN/vR55aUnxRAsalnYnodwC321X KKpwrMjc4a2d797rDm8kwfCGIYqKMHzVUvrbs7v3aVNEAGKJ55DfJfotAql29lI3Nn2I jGEMjJ1gGa27LlX4NzqKW/0XqERpZrTeHE0mUfN+nCGy3tFFWeCr+866DVKFSiIrvXMx Hq7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=LnswLR5K; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q18-20020aa7d452000000b0041958582d18si11993421edr.558.2022.03.28.04.26.41; Mon, 28 Mar 2022 04:26:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=LnswLR5K; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239974AbiC1JvJ (ORCPT + 68 others); Mon, 28 Mar 2022 05:51:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239960AbiC1JvI (ORCPT ); Mon, 28 Mar 2022 05:51:08 -0400 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 888BC43ED4; Mon, 28 Mar 2022 02:49:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1648460961; x=1679996961; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=8S+bVEcyHGRAYP7LA7lx1oMoBf93I1QzQ/FaRoN4iTE=; b=LnswLR5KsCU0qmOXyI9qKfck53vym2i5xnn0wvOJPg7Y2CZoQHRb/HV2 ZD08VwKaq0DIDlu6TQJ6Gv8cN8GPSr+2TdyDn/PdkU30WuDlg9o499v8b a9Dr7wOEOoJgmeD2ARzbZF1q83RccgxcT7akLaNj0a+lua9l7b4ipSu8l 4=; Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-01.qualcomm.com with ESMTP; 28 Mar 2022 02:49:21 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg02-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2022 02:49:21 -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; Mon, 28 Mar 2022 02:49:20 -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; Mon, 28 Mar 2022 02:49:18 -0700 From: Manikanta Pubbisetty To: CC: , , , Manikanta Pubbisetty Subject: [PATCH v3 09/12] ath11k: Do not put HW in DBS mode for WCN6750 Date: Mon, 28 Mar 2022 15:18:35 +0530 Message-ID: <20220328094838.14093-10-quic_mpubbise@quicinc.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220328094838.14093-1-quic_mpubbise@quicinc.com> References: <20220328094838.14093-1-quic_mpubbise@quicinc.com> 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=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Though WCN6750 is a single PDEV device, it is not a DBS solution. So, do not put HW in DBS mode for WCN6750. 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 Signed-off-by: Manikanta Pubbisetty --- drivers/net/wireless/ath/ath11k/core.c | 2 +- drivers/net/wireless/ath/ath11k/wmi.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/core.c b/drivers/net/wireless/ath/ath11k/core.c index 1955426ca549..d9a06629651c 100644 --- a/drivers/net/wireless/ath/ath11k/core.c +++ b/drivers/net/wireless/ath/ath11k/core.c @@ -1249,7 +1249,7 @@ static int ath11k_core_start(struct ath11k_base *ab, } /* put hardware to DBS mode */ - if (ab->hw_params.single_pdev_only) { + if (ab->hw_params.single_pdev_only && ab->hw_params.num_rxmda_per_pdev > 1) { ret = ath11k_wmi_set_hw_mode(ab, WMI_HOST_HW_MODE_DBS); if (ret) { ath11k_err(ab, "failed to send dbs mode: %d\n", ret); diff --git a/drivers/net/wireless/ath/ath11k/wmi.c b/drivers/net/wireless/ath/ath11k/wmi.c index 7f97c26bffd9..119fe1e6a07a 100644 --- a/drivers/net/wireless/ath/ath11k/wmi.c +++ b/drivers/net/wireless/ath/ath11k/wmi.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: BSD-3-Clause-Clear /* * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. + * Copyright (c) 2021, Qualcomm Innovation Center, Inc. All rights reserved. */ #include #include @@ -8196,7 +8197,7 @@ int ath11k_wmi_attach(struct ath11k_base *ab) ab->wmi_ab.preferred_hw_mode = WMI_HOST_HW_MODE_MAX; /* It's overwritten when service_ext_ready is handled */ - if (ab->hw_params.single_pdev_only) + if (ab->hw_params.single_pdev_only && ab->hw_params.num_rxmda_per_pdev > 1) ab->wmi_ab.preferred_hw_mode = WMI_HOST_HW_MODE_SINGLE; /* TODO: Init remaining wmi soc resources required */ -- 2.35.1