From patchwork Fri Mar 31 11:59:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mohammed Shafi Shajakhan X-Patchwork-Id: 9656099 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1065B60349 for ; Fri, 31 Mar 2017 11:56:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 00AF328643 for ; Fri, 31 Mar 2017 11:56:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E9C8F28684; Fri, 31 Mar 2017 11:56:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8477D28643 for ; Fri, 31 Mar 2017 11:56:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=htRa1maLd5c6mAM/FWT+xk1Vy33h5S7jloLgxN4NqYY=; b=OaN7yy/s2BG0aB CVW2wRcuN40+dIb2yCsJ6mTDs2woQGbCx8mSJVdh2WGf6yGKJViKVJzWn3MiHQgCHiOUjGRcw0sOr sDvoqGzl9zNe1pyljedM/fV2M1y+TKTBFCdEIxQ8lYT8+oUseeuMHabAarGjze+duempP2hXyHjSg unDqIWtUm2P0G7NTlvr0W6H/IAbVXvzrkyOCdKiOUvuu7qs9Hmz2GEvqTlbkYe6qeXe5dUS+dOCm/ vZKRrV7OzmLlTbUTkf27cqq/dlmnIg7NX7kSpCLfpqgLagwpw4Qm8Vqx1ek7yQQ2iomu5nP0m5dX+ tER4BMAXLCE9RjgLPVcA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1ctvAg-0006el-Pf; Fri, 31 Mar 2017 11:56:50 +0000 Received: from wolverine01.qualcomm.com ([199.106.114.254]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ctvAc-0006cI-19 for ath10k@lists.infradead.org; Fri, 31 Mar 2017 11:56:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qti.qualcomm.com; i=@qti.qualcomm.com; q=dns/txt; s=qcdkim; t=1490961406; x=1522497406; h=from:to:cc:subject:date:message-id:mime-version; bh=LXwZFxRPJFXQAoWjKdusukVWuOSHfiHQ/5q52lgy82Y=; b=CxEMOAvuqQAvj4atPwy57GmBVmiIG6SE0SnaZ1bXUhKk4Ltm4EnDDhtd XKwVi93dhgx3bCf5myjYJiI9iuvOZCf3pEhn/IV/Y7V7SB6I+KwApYOm4 7qd1puJod2p2VBvHu7eyxJpQGcgVokfks8rHPw5y3GNiOm+6qliOX6UiX Y=; X-IronPort-AV: E=Sophos;i="5.36,251,1486454400"; d="scan'208";a="275055551" Received: from unknown (HELO ironmsg02-R.qualcomm.com) ([10.53.140.106]) by wolverine01.qualcomm.com with ESMTP; 31 Mar 2017 04:56:25 -0700 From: Mohammed Shafi Shajakhan X-IronPort-AV: E=McAfee;i="5800,7501,8483"; a="930226963" X-MGA-submission: =?us-ascii?q?MDFM149EAbKBeTq8LoX3j5+73YicWDPAxFtkUq?= =?us-ascii?q?xZ0JK5bA2op3Kbiw5HdEy7sPSJRotD+StWSRjefsa03FewMvkh/pDa/C?= =?us-ascii?q?cUw6aFcBAejE1dBopxba3+sBGiladtOcUI8qSDKvYLMtuC/9Chi20NQr?= =?us-ascii?q?1i?= Received: from nasanexm01c.na.qualcomm.com ([10.85.0.83]) by ironmsg02-R.qualcomm.com with ESMTP/TLS/RC4-SHA; 31 Mar 2017 04:56:25 -0700 Received: from aphydexm01b.ap.qualcomm.com (10.252.127.11) by NASANEXM01C.na.qualcomm.com (10.85.0.83) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Fri, 31 Mar 2017 04:56:24 -0700 Received: from qcmail1.qualcomm.com (10.80.80.8) by aphydexm01b.ap.qualcomm.com (10.252.127.11) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Fri, 31 Mar 2017 17:26:16 +0530 Received: by qcmail1.qualcomm.com (sSMTP sendmail emulation); Fri, 31 Mar 2017 17:29:29 +0530 To: Subject: [PATCH] ath10k: Enable a HTC debug message during insufficient tx credits Date: Fri, 31 Mar 2017 17:29:26 +0530 Message-ID: <1490961566-328-1-git-send-email-mohammed@qca.qualcomm.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: NASANEXM01C.na.qualcomm.com (10.85.0.83) To aphydexm01b.ap.qualcomm.com (10.252.127.11) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170331_045646_195036_247EC410 X-CRM114-Status: UNSURE ( 6.92 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mohammed@codeaurora.org, linux-wireless@vger.kernel.org, Mohammed Shafi Shajakhan Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Mohammed Shafi Shajakhan Add an ath10k HTC debug message when insufficient tx credits are available to send the WMI commands. This is very useful in debugging issues like 'tx credit starvation' that could possibly happen with multiclient setup with constant roaming Signed-off-by: Mohammed Shafi Shajakhan --- drivers/net/wireless/ath/ath10k/htc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/htc.c b/drivers/net/wireless/ath/ath10k/htc.c index 9f6a915..f56f604 100644 --- a/drivers/net/wireless/ath/ath10k/htc.c +++ b/drivers/net/wireless/ath/ath10k/htc.c @@ -119,6 +119,9 @@ int ath10k_htc_send(struct ath10k_htc *htc, credits = DIV_ROUND_UP(skb->len, htc->target_credit_size); spin_lock_bh(&htc->tx_lock); if (ep->tx_credits < credits) { + ath10k_dbg(ar, ATH10K_DBG_HTC, + "htc insufficient credits ep %d required %d available %d\n", + eid, credits, ep->tx_credits); spin_unlock_bh(&htc->tx_lock); ret = -EAGAIN; goto err_pull;