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: 9656097 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 0E02A60349 for ; Fri, 31 Mar 2017 11:56:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F22B928643 for ; Fri, 31 Mar 2017 11:56:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E607228684; Fri, 31 Mar 2017 11:56:28 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E34D28643 for ; Fri, 31 Mar 2017 11:56:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932922AbdCaL41 (ORCPT ); Fri, 31 Mar 2017 07:56:27 -0400 Received: from wolverine02.qualcomm.com ([199.106.114.251]:32795 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932838AbdCaL40 (ORCPT ); Fri, 31 Mar 2017 07:56:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qti.qualcomm.com; i=@qti.qualcomm.com; q=dns/txt; s=qcdkim; t=1490961386; x=1522497386; h=from:to:cc:subject:date:message-id:mime-version; bh=LXwZFxRPJFXQAoWjKdusukVWuOSHfiHQ/5q52lgy82Y=; b=Tl0tijgQgEiHij5lDmDK363N2mjKK8ZUwWGxanRjRcog+q1/cFLCgcpa OV1+4V3oULXWA6vs8NaJ7T5rF0oyPbMevmmzFPwdco5uCOFAuw5ux12zR E9lYgcPPCWVC7UtLm4jQge38ktOjxGaYYavAemqR1MS00/JfyYtj4AhmA o=; X-IronPort-AV: E=Sophos;i="5.36,251,1486454400"; d="scan'208";a="370477691" Received: from unknown (HELO ironmsg02-R.qualcomm.com) ([10.53.140.106]) by wolverine02.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: CC: , , "Mohammed Shafi Shajakhan" 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) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.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;