From patchwork Wed Jan 13 14:01:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Kazior X-Patchwork-Id: 8025751 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A38289F1CC for ; Wed, 13 Jan 2016 14:00:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9AB6720519 for ; Wed, 13 Jan 2016 14:00:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AED2420503 for ; Wed, 13 Jan 2016 14:00:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760928AbcAMOAJ (ORCPT ); Wed, 13 Jan 2016 09:00:09 -0500 Received: from mail-lf0-f41.google.com ([209.85.215.41]:33125 "EHLO mail-lf0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759336AbcAMOAC (ORCPT ); Wed, 13 Jan 2016 09:00:02 -0500 Received: by mail-lf0-f41.google.com with SMTP id m198so108395924lfm.0 for ; Wed, 13 Jan 2016 06:00:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tieto.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vRZ9BYzsiHuDZ5Wp0+xMdyeLBMM0L3VardqGnnhcrBM=; b=08yhY6ROrsAk2swCz9QVKEbtZh0lf+fev20YkfpJf6WWXHC1q+ktJy9pbfrLbPN3a/ uV/xXCR9nnuNgIoR9t3hsJWzxUjpTf66XJcVKi9P+N3rnusp1+Af+IwuTGCnjscOxIB8 CHffDn+zOkQdXEnQF6LILXNi14EMnrGJoVLLM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=vRZ9BYzsiHuDZ5Wp0+xMdyeLBMM0L3VardqGnnhcrBM=; b=BTbT+f3JI5tm+GzsmMttlpOnZoVWTDWdFHAffZRCAkbtx4yIOUCk5/kvvr5s0C9/BE wlQPhMK7sCZA1P5cdhQw5eHdOBj38FC3OdF58cZlwH5er0iaVTu9IuE3DZmwmQ5kIZD8 jG8QOsQdBER4134X8xGLlEmt7APJt3JX9bwbSpdpbbhD6lLUaeHgmErAS7i8TUjp6XSf fjLRq2IHgtmkfEyUGjY3f/mm7hVAVsp+mrKQZFxLywUbMkBzBqxK8enMwZ8i58Gku/8r pDnQj700T97WbqzGqt7VloGohT3E6gdkdDDre9/UZkig0etGBsauLHxPXxp97DVnyneE ZOHQ== X-Gm-Message-State: ALoCoQlUAW1Z/Rr/NCMd2Ozscryu3odaqSMeIdEBfbDWzEg3wbx07zJuMTpPKf231y6Zo183w3pTrZwI98+iSm4LI/6uIBX+s1G7oXFcEnPMe7PP2x3U0+4heNfJGcH/YROQoyTIuAKUSGP4ps3v8Ymv5hBNAADzeQ== X-Received: by 10.25.20.22 with SMTP id k22mr4903509lfi.152.1452693600986; Wed, 13 Jan 2016 06:00:00 -0800 (PST) Received: from localhost.localdomain ([91.198.246.10]) by smtp.gmail.com with ESMTPSA id jx8sm195606lbc.29.2016.01.13.05.59.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Jan 2016 05:59:59 -0800 (PST) From: Michal Kazior To: ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Michal Kazior Subject: [PATCH 3/5] ath10k: add new FW_FEATURE_PEER_FLOW_CONTROL Date: Wed, 13 Jan 2016 15:01:06 +0100 Message-Id: <1452693668-30030-4-git-send-email-michal.kazior@tieto.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1452693668-30030-1-git-send-email-michal.kazior@tieto.com> References: <1452693668-30030-1-git-send-email-michal.kazior@tieto.com> X-DomainID: tieto.com Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This feature flag will be used for firmware which supports pull-push model where host shares it's software queue state with firmware and firmware generates fetch requests telling host which queues to dequeue tx from. Primary function of this is improved MU-MIMO performance with multiple clients. Signed-off-by: Michal Kazior --- drivers/net/wireless/ath/ath10k/core.c | 1 + drivers/net/wireless/ath/ath10k/core.h | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c index b41eb3f4ee56..48a26206c5c1 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -217,6 +217,7 @@ static const char *const ath10k_core_fw_feature_str[] = { [ATH10K_FW_FEATURE_RAW_MODE_SUPPORT] = "raw-mode", [ATH10K_FW_FEATURE_SUPPORTS_ADAPTIVE_CCA] = "adaptive-cca", [ATH10K_FW_FEATURE_MFP_SUPPORT] = "mfp", + [ATH10K_FW_FEATURE_PEER_FLOW_CONTROL] = "peer-flow-ctrl", }; static unsigned int ath10k_core_get_fw_feature_str(char *buf, diff --git a/drivers/net/wireless/ath/ath10k/core.h b/drivers/net/wireless/ath/ath10k/core.h index 7840cf3ef7a6..822e3195533a 100644 --- a/drivers/net/wireless/ath/ath10k/core.h +++ b/drivers/net/wireless/ath/ath10k/core.h @@ -510,6 +510,15 @@ enum ath10k_fw_features { /* Firmware supports management frame protection */ ATH10K_FW_FEATURE_MFP_SUPPORT = 12, + /* Firmware supports pull-push model where host shares it's software + * queue state with firmware and firmware generates fetch requests + * telling host which queues to dequeue tx from. + * + * Primary function of this is improved MU-MIMO performance with + * multiple clients. + */ + ATH10K_FW_FEATURE_PEER_FLOW_CONTROL = 13, + /* keep last */ ATH10K_FW_FEATURE_COUNT, };