Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2502445pxb; Sun, 16 Jan 2022 22:58:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJwv6kewWsMTjsjAo5/JpBCWmWW1Iank4ss2Gp5rqnCvNVMqrZBqeDfb7bNFHGRn4nAAe4Hz X-Received: by 2002:a17:90b:4ac6:: with SMTP id mh6mr3013394pjb.23.1642402685966; Sun, 16 Jan 2022 22:58:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642402685; cv=none; d=google.com; s=arc-20160816; b=WmU61QS3aeQvHAh+aBx+OxQmKhP1AW7ye/atydGGvdqCllAVD2bjBBpX5tI88JpAC7 ZhcQ53X/9mZttIYIJpFkXnqVCy5twj/U9RabSkFlQcF7eIKmu0NR3wXqigWvLZrcN9Ng UAjPKPby62SvTj65j9TAoRVcfvnhgeA02kmKt0Yb9EmYAWtFfBh4zph00kA3lcbfJ0Yv 34fqX37dyzh8ZgdXChzV1q1E/oALyeSOCKFdB2vnItX7PNCT4ZLKZ+wsr6sO3TSsQOlq EwwbsVFQjePSqoRD3OQEVLnHoK5d0FNCgXpXQMz2rxX5qxap/fgQc4ETvFlLzQBdFcA8 ZPjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=pApA5J/ocvBCnpyMpqVEyhp1lXSsM8R2P7y4YfluaP4=; b=xDx5gEjEcVYWsEFFDpmk757g/O2p/PWTGq4rH2hzKPAuHPP4c07OxQaRYdEny1yz32 5l3erIO9wHR5TUbRdA/V/Tv6yjgKx/+7Q58TNSwN1poZvjBMIndu1ZhtEGQbUmvUebV9 d87sEiCyXuTHwTNP6dZCz5Fl1dU2C6hkURsFrBHgKobmhMR3g6b1J3efMWj5+6LST2Af fEtUZFfSeexrQshgdoW1mqybF0FGmP3hrNtRV3V7I2U2D/5H8KyYQxXy/jLMhv6HQT9m DMFBFTTPytoNL2GH8GGXzOsOX0i/D2xReo36ls0Km9mxBMc4PlJmtwkQl0uGz59HA40Z 6bcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=mwgDNGfp; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id np1si4015453pjb.59.2022.01.16.22.57.57; Sun, 16 Jan 2022 22:58:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=mwgDNGfp; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 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 S235184AbiAPMsJ (ORCPT + 70 others); Sun, 16 Jan 2022 07:48:09 -0500 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]:3360 "EHLO alexa-out-sd-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235117AbiAPMsI (ORCPT ); Sun, 16 Jan 2022 07:48:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1642337288; x=1673873288; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=pApA5J/ocvBCnpyMpqVEyhp1lXSsM8R2P7y4YfluaP4=; b=mwgDNGfpJtkNSybYN4/yu+4muFXoERFemuV/Yx1OXCmg+C9hNUT7nn5S 1dj6IJ0HUvJ3jqV+riOUq+bElTUTJ7kqgJ1R/XLb0br28P4oUi9/OSXKp 4EdYqB9HCXUa+qrM+EqQncV2KLY5SAFIm+Q3ZlMSewIGHzPHJL7X+RnG7 E=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-02.qualcomm.com with ESMTP; 16 Jan 2022 04:48:07 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg01-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jan 2022 04:48:07 -0800 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.922.19; Sun, 16 Jan 2022 04:48:07 -0800 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.922.19; Sun, 16 Jan 2022 04:48:04 -0800 From: Manikanta Pubbisetty To: CC: , , , Manikanta Pubbisetty Subject: [PATCH v2 14/19] ath11k: Do not put HW in DBS mode for WCN6750 Date: Sun, 16 Jan 2022 18:17:10 +0530 Message-ID: <1642337235-8618-15-git-send-email-quic_mpubbise@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1642337235-8618-1-git-send-email-quic_mpubbise@quicinc.com> References: <1642337235-8618-1-git-send-email-quic_mpubbise@quicinc.com> MIME-Version: 1.0 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) 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 f65347c..7208849 100644 --- a/drivers/net/wireless/ath/ath11k/core.c +++ b/drivers/net/wireless/ath/ath11k/core.c @@ -1084,7 +1084,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 6b68ccf6..0cc8957 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 @@ -7851,7 +7852,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.7.4