Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1079393pxb; Wed, 6 Apr 2022 08:13:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBdfZORUhW9m+4lJkKAFAFaOknFgYStNRw6ltoFzyU+QYVkffwMFyBsuolen8oPJ+XCrrq X-Received: by 2002:aa7:90d5:0:b0:4e1:307c:d94a with SMTP id k21-20020aa790d5000000b004e1307cd94amr9251449pfk.38.1649258024815; Wed, 06 Apr 2022 08:13:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649258024; cv=none; d=google.com; s=arc-20160816; b=MKYgn/gBugXQKgKGg9EAIoHvAeLpBSovF1uOn03CgqIe3uEiIGcgHHnlsgS7exuyCH HMTaGW3ysfxfnPsXj+KKk/7mqlsGBM+IfKpyxkEKm6D9od5f5Nwrj/ogo3KdAPfy5yyM LgTTTomjtNQNNVhJZSX2zUClPU9caNCDgjDEP1Bp/sLs/lH9nYyHCMhYAx+79N1Y9Ty0 zdaBmMi3rBEzQH1r+Lw/0cbWf+DKa87nFONcDifq5RIuGRW0okxE7jU2cPXG53KGzVsz 1GnXtbyh/08HkhXxYwbo7+InE30bTXogOPSCXuYrS6im8dQIRixZblMK2OSKsMscUr3B wluQ== 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=vOrpD5jgVhvUeY/L30EOYHG7K94HlHWVId1//FPVq2Y=; b=usfRyl34WVohQqUt+h0XvPqgyH4dAZj+4MMc48Lih6K2wxD0OJDCDHPiIAo1oINiS0 trsc+5IE3SOjm2ilAjuhpax5FKJTBweatflpNAFnhhx0E0KwTl5wEN/9EwpP+nVTF1Yv r6iV/90Z4qoHWt8/Ykfzau6YVOCK/v5VQq2bkMCrMjvEbfDwebbDIStB0TbCjenKuUj1 DXOAmip0X0NkH+xBkx8ZVTidJkiY+njX0lTGU4bIOX1QIJehSJUe30McKrn3xgDOVK93 vh3Iv1OsYISvuUeoEq5Xm2dRhTec17cGKl+6doE5P4DlU2UVbxEIzAAnBSmGzoXE+4yd sACQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=wjbZDh9d; 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 o2-20020a639202000000b003816043f00bsi16178309pgd.512.2022.04.06.08.13.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 08:13:44 -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=wjbZDh9d; 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 9C1904A481B; Wed, 6 Apr 2022 06:07:29 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231450AbiDFNIg (ORCPT + 69 others); Wed, 6 Apr 2022 09:08:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231983AbiDFNIH (ORCPT ); Wed, 6 Apr 2022 09:08:07 -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 782584DF882; Wed, 6 Apr 2022 02:42:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1649238124; x=1680774124; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=vOrpD5jgVhvUeY/L30EOYHG7K94HlHWVId1//FPVq2Y=; b=wjbZDh9d8xy6fJnIhBS2EjSElCLlV/8Z3Yc0oH2Dx8qXzvhyf+Zllm1l CDe3j7/mCZ/iDQZZYmpxH3zlBgCBwS0XrlEZX0CMxTfKwpaPiNkhb6Olk aPZAfgM1DQs0hxsnyAAgz3IVP5OEfBwwgJh0YpnS6qDR1w33IT9ZJp7dZ 4=; Received: from unknown (HELO ironmsg03-sd.qualcomm.com) ([10.53.140.143]) by alexa-out-sd-01.qualcomm.com with ESMTP; 06 Apr 2022 02:41:50 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg03-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Apr 2022 02:41:50 -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:49 -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:47 -0700 From: Manikanta Pubbisetty To: CC: , , , , Manikanta Pubbisetty Subject: [PATCH v4 09/12] ath11k: Do not put HW in DBS mode for WCN6750 Date: Wed, 6 Apr 2022 15:11:03 +0530 Message-ID: <20220406094107.17878-10-quic_mpubbise@quicinc.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220406094107.17878-1-quic_mpubbise@quicinc.com> References: <20220406094107.17878-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=-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 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 297d024b1ef9..17db898166f0 100644 --- a/drivers/net/wireless/ath/ath11k/core.c +++ b/drivers/net/wireless/ath/ath11k/core.c @@ -1278,7 +1278,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 3af24b18204e..5b9fd9d8f06d 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 @@ -8208,7 +8209,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