From patchwork Tue Apr 4 16:52:56 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: 9662059 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 3932D602BA for ; Tue, 4 Apr 2017 16:50:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2E45227F10 for ; Tue, 4 Apr 2017 16:50:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2206F28334; Tue, 4 Apr 2017 16:50:19 +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 B944027F10 for ; Tue, 4 Apr 2017 16:50:18 +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=6Y2xOtjJdiGKYtZ4vLOs1EN8Mp4e/lpK2/DvJ4t7I9U=; b=koAGyLfN/VDV1j bGp417ggPviEL8xV9bNb0a4V71Br/OmQ0qI9wbMB3gBSHcpi+f95drsFrTndwUcswfPhdxotYGLBJ 2aCA8RgYVUXFtjj7a38RsPf1O7DkYgegYsfy80G8OBT+OwhU4F/M7Y/PGmBwqTDWUFhXb9r2oW7gk Zi/gMJWbh0+Ai2BAywmifCf/6bBpSFNjKsSy5SJFS2gybqUt9P3fWF/3L2aRMQteN8oiQZ43yjneZ G1YlQlBj5WmUMHHVg9xDwZUE9JzqWX4yfpgq2S6rDasUGUkvoGo9kf6aLCMpZwzvyRz9r2pMnNWFX 195DEf/qLRBZtx9wjnXg==; 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 1cvRei-0006rh-Jt; Tue, 04 Apr 2017 16:50:08 +0000 Received: from wolverine01.qualcomm.com ([199.106.114.254]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cvRee-0005ev-OT for ath10k@lists.infradead.org; Tue, 04 Apr 2017 16:50:06 +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=1491324604; x=1522860604; h=from:to:cc:subject:date:message-id:mime-version; bh=7OGabjbgQdXMZgjuTQhwUvzpq8UpTqzpI59ePJX5D0M=; b=TTmtvGRSknAsO5TzzxSw7Nc2GSZkc4A90x4fvLUjy5iF2IqRNBP8rA4M zCYG1PrHmmJW0FM4uMafFh7E1XNXf7jqdgm/ZEvrCefvW3Vq96XaEYk9f oDwMNnVzJhx1ZA2MmdJ4KpuoIBw6I8DQFuUwvbM8fEBobJxy3wNkuwmSC s=; X-IronPort-AV: E=Sophos;i="5.36,275,1486454400"; d="scan'208";a="275915885" Received: from unknown (HELO ironmsg02-L.qualcomm.com) ([10.53.140.109]) by wolverine01.qualcomm.com with ESMTP; 04 Apr 2017 09:49:42 -0700 From: Mohammed Shafi Shajakhan X-IronPort-AV: E=McAfee;i="5800,7501,8488"; a="898833395" X-MGA-submission: =?us-ascii?q?MDHOCvWpfGSY8Al5DlzQVMLzuezyu8km/b9C5f?= =?us-ascii?q?Odf1Cb8EbLEmM2b17LW+ZbIxQl5f2EyC7mh5vtGqObDwX/PytrxOT4/m?= =?us-ascii?q?z7SV+c5MFMRMzPn89r3+1yJrdiLID8TRSi+FRYYmcyIMBCbw16WjkycY?= =?us-ascii?q?7/?= Received: from nasanexm01h.na.qualcomm.com ([10.85.0.34]) by ironmsg02-L.qualcomm.com with ESMTP/TLS/RC4-SHA; 04 Apr 2017 09:49:42 -0700 Received: from aphydexm01b.ap.qualcomm.com (10.252.127.11) by NASANEXM01H.na.qualcomm.com (10.85.0.34) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Tue, 4 Apr 2017 09:49:40 -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; Tue, 4 Apr 2017 22:19:33 +0530 Received: by qcmail1.qualcomm.com (sSMTP sendmail emulation); Tue, 04 Apr 2017 22:22:59 +0530 To: Subject: [PATCH] ath10k: Fix compile time sanity check for CE4 buffer size Date: Tue, 4 Apr 2017 22:22:56 +0530 Message-ID: <1491324776-8418-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: NASANEXM01B.na.qualcomm.com (10.85.0.82) 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-20170404_095004_920037_86ABA149 X-CRM114-Status: UNSURE ( 6.98 ) 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, Michal Kazior , 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 In 'ath10k_ce_alloc_pipe' the compile time sanity check to ensure that there is sufficient buffers in CE4 for HTT Tx MSDU descriptors, but this did not take into account of the case with 'peer flow control' enabled, fix this. Cc: Michal Kazior Signed-off-by: Mohammed Shafi Shajakhan --- [thanks to Michal for the suggestion] drivers/net/wireless/ath/ath10k/ce.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/ce.c b/drivers/net/wireless/ath/ath10k/ce.c index 9ac0a73..ee1090c 100644 --- a/drivers/net/wireless/ath/ath10k/ce.c +++ b/drivers/net/wireless/ath/ath10k/ce.c @@ -1051,7 +1051,7 @@ int ath10k_ce_alloc_pipe(struct ath10k *ar, int ce_id, */ BUILD_BUG_ON(2 * TARGET_NUM_MSDU_DESC > (CE_HTT_H2T_MSG_SRC_NENTRIES - 1)); - BUILD_BUG_ON(2 * TARGET_10X_NUM_MSDU_DESC > + BUILD_BUG_ON(2 * TARGET_10_4_NUM_MSDU_DESC_PFC > (CE_HTT_H2T_MSG_SRC_NENTRIES - 1)); BUILD_BUG_ON(2 * TARGET_TLV_NUM_MSDU_DESC > (CE_HTT_H2T_MSG_SRC_NENTRIES - 1));