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: 9662057 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 D2B44602BA for ; Tue, 4 Apr 2017 16:49:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C0E4A27F10 for ; Tue, 4 Apr 2017 16:49:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B582A28334; Tue, 4 Apr 2017 16:49:46 +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 E6EAF27F10 for ; Tue, 4 Apr 2017 16:49:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932129AbdDDQto (ORCPT ); Tue, 4 Apr 2017 12:49:44 -0400 Received: from wolverine02.qualcomm.com ([199.106.114.251]:28304 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932072AbdDDQtn (ORCPT ); Tue, 4 Apr 2017 12:49:43 -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=1491324583; x=1522860583; h=from:to:cc:subject:date:message-id:mime-version; bh=7OGabjbgQdXMZgjuTQhwUvzpq8UpTqzpI59ePJX5D0M=; b=iA1zv2azmnGSe4kFZDtVOxeg6p08fPXzzrWPDSNKq7Ag0XbY2/aRmzlo cQ/IaX/z29PHj9/sI/bTvOyZ+1zyp1R0K7McFZbsqLbHH6WYCFB7/iS24 r8KRuN78UyxMgovzZe+IGRqqUCuxrXhZ1sRo4fAmjpZfVA/LPa/A0mKvy I=; X-IronPort-AV: E=Sophos;i="5.36,275,1486454400"; d="scan'208";a="371331847" Received: from unknown (HELO ironmsg02-L.qualcomm.com) ([10.53.140.109]) by wolverine02.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: CC: , , "Mohammed Shafi Shajakhan" , Michal Kazior 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) 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 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));