Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5508206pxb; Mon, 28 Mar 2022 13:28:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAsKxOsaR/9pbkPwg4Ue8KnR/t8zeFzIFnWaBQ6Ced6ae/bDI/YqlPMq/V5qflgm4F9EN2 X-Received: by 2002:ab0:6594:0:b0:354:69e6:42e6 with SMTP id v20-20020ab06594000000b0035469e642e6mr12894762uam.72.1648499325348; Mon, 28 Mar 2022 13:28:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648499325; cv=none; d=google.com; s=arc-20160816; b=H+7UkI3mgMTA1OZCoS907POM/uOkXN5DrJ/k8LXexgCf3TeFgTEL48FXkabx3oyYb2 jEJqLN8869SfL1cVV8uxsaQTjzDZhCouQBns+eSaMvzC096opD1feZzqSZIspzkTCCwE NEaMcdvx+x0Wg62fnQEj8xo8Unh6BLMOm63FfVmwy/xY183yMY5SQQmQMGyYGcytnI+S B9dzAy/b2rO9XqriU5tp2X0qhM7zRssPcKmQSU+B70PBFK6B2CdxyfceYjrSzvm6ogUs hhvJjc0iG368ojv8W4t08RaAb/749Ob9JrwMX9XHeXE2FIXdi6xOyYz1hX4SojTyWVhD Lp6w== 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=WXwj3YQtBlYzr9ajj+/AHLi+uWf8NGpjGBDaCk31xvM6owbJC2mBa23EhXAUvuTlQa jrL/AqK6qw12xuPt5UFi4UGVGrOrq9m9qiC/A8+ZYgvhXo1ygMcjauElcnPfFM0FJoYr cx7cDIFN3OKzE+A0RQmWP1oPBzkT5WtaiOGlLHkLrvjEqbL6UTbSUpO61V4EIrjQrLcL jU3RPusU3UMUJkJ4TlVwhDSYKRCyBbc1F3UfNaNbfIXgLeprCuZuFnQcar2HhkXLVyg4 qGfOyXcBFC4Xn17MNDwypDsAo6vgJEYTqsnUIus9f+VBcT4hNCkJ4JQNKm1u8EiCLNbJ LRFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b="jQhvn/cU"; 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 c16-20020a67ce90000000b003256801cb74si3003081vse.775.2022.03.28.13.28.32; Mon, 28 Mar 2022 13:28:45 -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="jQhvn/cU"; 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 S238302AbiC1GML (ORCPT + 68 others); Mon, 28 Mar 2022 02:12:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238304AbiC1GMJ (ORCPT ); Mon, 28 Mar 2022 02:12:09 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DABBB17066 for ; Sun, 27 Mar 2022 23:10:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1648447827; x=1679983827; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=8S+bVEcyHGRAYP7LA7lx1oMoBf93I1QzQ/FaRoN4iTE=; b=jQhvn/cU+Rhh9Gens7bsEjijOsbrgtznUH+Sm3kqza5w1ZQAMchKja/N 5bkO0XhXR2NzDZOgEAPPIWJtE/+5yntMav/QBFcoI28mA4KYhc658A8Yi ixXTW1nYfcREtqaqNda2AqAwfs7xsgAdwlmmFDcu67hAC4GEZDkS6HB0g Q=; Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-02.qualcomm.com with ESMTP; 27 Mar 2022 23:10:27 -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; 27 Mar 2022 23:10: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; Sun, 27 Mar 2022 23:10:27 -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; Sun, 27 Mar 2022 23:10:25 -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 11:39:34 +0530 Message-ID: <20220328060937.16738-10-quic_mpubbise@quicinc.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220328060937.16738-1-quic_mpubbise@quicinc.com> References: <20220328060937.16738-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