From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0085.outbound.protection.outlook.com [104.47.38.85]) by dpdk.org (Postfix) with ESMTP id 319527CD6 for ; Fri, 16 Jun 2017 07:32:59 +0200 (CEST) Received: from DM5PR03CA0048.namprd03.prod.outlook.com (10.174.189.165) by CY1PR03MB2395.namprd03.prod.outlook.com (10.167.8.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12; Fri, 16 Jun 2017 05:32:57 +0000 Received: from BY2FFO11FD029.protection.gbl (2a01:111:f400:7c0c::143) by DM5PR03CA0048.outlook.office365.com (2603:10b6:4:3b::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1178.14 via Frontend Transport; Fri, 16 Jun 2017 05:32:57 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD029.mail.protection.outlook.com (10.1.14.212) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1157.12 via Frontend Transport; Fri, 16 Jun 2017 05:32:56 +0000 Received: from Tophie.ap.freescale.net ([10.232.14.39]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v5G5WNFF001003; Thu, 15 Jun 2017 22:32:54 -0700 From: Shreyansh Jain To: CC: , Date: Fri, 16 Jun 2017 11:10:46 +0530 Message-ID: <1497591668-3320-17-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497591668-3320-1-git-send-email-shreyansh.jain@nxp.com> References: <1497591668-3320-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131420647765391451; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39380400002)(39400400002)(39450400003)(39860400002)(39840400002)(39850400002)(39410400002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(9170700003)(105606002)(305945005)(47776003)(189998001)(498600001)(54906002)(4326008)(86362001)(48376002)(50466002)(36756003)(8656002)(85426001)(356003)(53936002)(2351001)(6916009)(77096006)(106466001)(38730400002)(110136004)(50986999)(76176999)(104016004)(6666003)(33646002)(5003940100001)(8676002)(2906002)(50226002)(8936002)(2950100002)(81166006)(5660300001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB2395; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD029; 1:7D6Edqnq4f95Oe85P7lVCrA3aNW7KwLMK1F13VqxoHGKOqxgwIQdnDGY+g9UKe/mpU8EKxG78MuQcdtypFF+HCLnaHWs8SWSJ7hdEJ1hcZeERbjh2n1apUkpoXrvLerfj2JiEeXWClrZqdBKZb1eCAMPkWutX/eHbKvb3ja7Tjnj+ldgVnz42YxJINqB5lrx9FAjkgPvuV1eYxo7t3c2aRT8AdAYSNuyqn+12a68SU3Pi+ParXQHonv7hq87XgfIJBMIEOYH0nji8xeSoziB94k5b6GlRotoAXlfql/1dw84sjNnSbhbLh7ukn5LrC5sG6c5POG7/p06zCx82zDSBkAbT4BMs/0uC23NesszNSh7J5IbUvRtl5FZT3wWTRSCXw3l5fIbrrkH11KWKXdLTKEPkvtx90sLV/HVdGVOUKLfuq5TwpjRCY61feKmv8GP0sCKap2CNBzZIrKlq59vOb8hQVgTqqR4DvDz8lsIsKw+eMIGKWGoWU8LldNg24DgGzWWL6GS/8NM05G7fOgpGYBVv1aAGuGNCC1KA8enEapyP+0ki4fNSBIp+y+crBu0SDqqXv0UUFP9NimgtfZ+Tlb6VuZfOKz7l45QhLDdL1hXDcjbUHau299kV+Y0RLkI4aZzIYLLdmrGDnKraJtq4Raq4FGv2bNGERnIe9dxVzUSVrg5CB537o/6E+17ts/71XDgDRry2vJ0HyjjFyNfi3JkgthgOrsyLU5iAWPZ/2o= MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY1PR03MB2395: X-MS-Office365-Filtering-Correlation-Id: 2ad03465-ac85-46d2-385b-08d4b47924ac X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:CY1PR03MB2395; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2395; 3:u2EE8EuIHydTtelLQZ6Ll+O4ViJfqKaAarTJrmcDvAFFtf+EzHoQeJoPYyVs9yDNbQaygGMkqLl9CUv3Bpmk1WQI6R1ojG9hkvx9ZMICnLSUfXkZIOXYNZe5g+UwCQ8sS9fdcZ2Qp2NlbQGbPVnoSaHKtyxLMYBPYJ4HYjBez7bmDiBaQ5y6t6mpf6+q645wwevvAe+udnU5Dn1za/kheeFt51TLeMScVS+jARdFEz7tIplZIjLapowgEcqhQr1nALdIDztp4GlPiZ0+Y17XHR6FtakVcsRAHokhpsTXlQ1jYvPM+HrGjEj8nGKw/4pr9EqvWRKRu0tw4LrGtLdIdxpa6yM6Ba4N5xliMvVeRdHXJRjHd261BUMYabBaw5b69T6DQXAJAonKpwGoFrD1694r1yIfiKQPf2pBEiLpb7wHQ4sMI9O/KlRCtVURDhRu; 25:qjNUaz7RjkoLoU2/+Nkhes77PIWTaJUUMEI4TY3GYDU7jGY4z3aVQfVWVNtVoyy6bdhupHrvXr9hdx841vxN6rMlJctXbU7oe7Af/SQN5l6xJIQyrIhMx5OEge6fPb8MtyEyB3l4nyPnGB3kJ3BdBR/YsHMZmiA3dLkpjQpntrERj7Zj0e4AGZI5D+EJTRw4YGk+z77NBr9WgzgxQqO7CSg7kG/pUnv4M+Pxn00zmcy01tkq9DXIS2w9P0yIsBzVLDZ0gT8kU6s5F/E3KFG4XmbubwI68wdNv6u6QXWhtTq8vsR8zY1BmsbK9+G0JychbQT6oQujznHSJI3Y4NvI7Un243UUt0X/7T29OZEh5GsHAG5UaxqpsJwhu2A3RLkoEDvzyNzIjpRl+uNsxDQBMcXrExWW83fX8AnJfv4olAVsBacJk07NVaMH/T3F9rXFJXK+iWMS86H46Vu4LfftlSuFeJmgVpr3Cfcfn4T/tWE= X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2395; 31:9DXjEZDFur4vH8XKY9tViD7Q/1OFLpuCau2RWcI0q36SIcumo4D2LOowg8sWEKu81ZUmE58wkwyIovsyytKyH6txObP/oALLwfiE3uaWKRFTcm925Fy2PF0QF+7gGCElKrukaU8kwadd+bTXFpKuOmxZNZxHTFiPk3cPunQit2ibLGoyk/Cki+j76seTNnsJtiG13o2B68fbtqL8cuIjNhtGcTyd7Jrueo7La0G0INsiCFBotDFIzbiYYpCJQVl8FhHkxKInhG1kRI1jCvuTmYvFzqxTP2BrAD+LBJpoahw= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(5005006)(13016025)(8121501046)(13018025)(100000703101)(100105400095)(10201501046)(3002001)(93006095)(93001095)(6055026)(6096035)(20161123561025)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(20161123565025)(20161123559100)(20161123556025)(20161123563025)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR03MB2395; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR03MB2395; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR03MB2395; 4:QxMuDyst76Gphd7xWV2Bj33ZQOB9TxQgOK/F+4umVb?= =?us-ascii?Q?uZhK9ILKUKsGBYuSe+pOv0eFLugrlGmK9R4rLsXB7OdroKrZCZEtgkseLq/I?= =?us-ascii?Q?ARmzIoxlArn53hKIFEqi+LstYl+YTlm5qLspskpSGqK0jdTw55ZQGHTx9/Jt?= =?us-ascii?Q?23dwxYkyJ4XJsHwajXrliHbRoJnOV3QNtarPHehjXJQV9ywY017ARtKn9S/M?= =?us-ascii?Q?4XFnXgIHp41GoVcRD+Az0iyiw2WofCSNG7uyG+7K612C7cQhnZa2CLUpZJAM?= =?us-ascii?Q?oSNKr/Ed8Zsp3dwpyWWov32d+y+lEKtA+gFiJyShnO45Ah4fw+e3ICc8uLGJ?= =?us-ascii?Q?OxDiKz6QYrP6QQ/PoBYfM1XomXEK8uxjk7hGCEnNT25aCTMUyj9M6K4FH8wZ?= =?us-ascii?Q?fYiIBZYjHn8bl+eaJIUqyNIr0NlJRI+nO2F2YKTY/4KItieEYS4rLMEHtwUU?= =?us-ascii?Q?tdjRhFTTSonU3ZrtXhHd3/ajnHTYwMsEOkaoqmy/ADmXw7elHjOVrAcS8sza?= =?us-ascii?Q?FROA0JCBEd8KvVa777FZoXM9XAdnnYrnRJqwtZZK2eL0ylDpTYJhHPzjjikl?= =?us-ascii?Q?v7sXVEyAcEkqeTtIi7UB6cvnxYfeHNhAC1pzilL7UBmWLO4Q675ynkaIU6A5?= =?us-ascii?Q?9oxhKlmDmzbH55TX98NRb3h5cMiqB6UcAfP8q3OJ+CN4UoXTnTGWrVZ9eaFt?= =?us-ascii?Q?nJ+bCXXRcBVQKuGwSwneriHt1mzkm/bV9WTjbw9e5Rvd0snxk4jXfBVM5hRG?= =?us-ascii?Q?GNSe5E6SC0C63CIV52lwvxaLpZw9fugCD99pZR3At7P0i5p+qflBdIqL5ued?= =?us-ascii?Q?eDgVBWNAze6O5MS8d+2/RsuZhr7xx/KtIxMfwB5W5FFou593VFzShaHXerzU?= =?us-ascii?Q?ZX/ufgQJNIDMPx2Pw8JeA7YZCRf83bS/By9d04IORXed5Dptud8GZg7NUnKA?= =?us-ascii?Q?jOdprCljMTUx//ysUeOiy/B0bBZLDgnG5bdwbV0Sq4oVQ8KVg28cfc5+BrzK?= =?us-ascii?Q?qdCr41PviVggdc11bnEUz2jNo44K5VwhJ11tOXxLI9BiM7cYCeUCrB0SiSpz?= =?us-ascii?Q?nuVGd2E2EsWjwG18MpN58AGsjeD3plq+qhlQvbXIXX5ZqPo3OR2biLmhy04R?= =?us-ascii?Q?cgEv3Sli4C5+nIPS4lP3oDtHMW+HmbaWDjQH7IQUHHJLH/1qmCpv+rRf9buL?= =?us-ascii?Q?S08V4yVyr9dTt0NQeGJs0VHGNry6UGMaZAKnCf2qPYdaN2L5IQpbXNL2mcGH?= =?us-ascii?Q?tu6J0xSR8L1KGylDNj9f7xqxQ4hu/QP3kVtuWX?= X-Forefront-PRVS: 0340850FCD X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR03MB2395; 23:wX2YHMkaQtcsWnvrIC/+8UFsxLcN8Lo3liCaTBAlJ?= =?us-ascii?Q?1TZafpplNSWRSD8mYDbzQ9qYc7pPm73KqcS51SYdf3x8A2x4A0HlRJsa2l6d?= =?us-ascii?Q?Q3kAJSTjrSz26fVE5xttj6GVX6Xcq5TnZDktmNd0ty2h5eEFhfSsxQFAtR8g?= =?us-ascii?Q?tH1FrB1CyojJzzdbDDeY2LmcLxsgW9MmdK954epO8Bg7SJaafmvEzqMHWBze?= =?us-ascii?Q?b9omxjzT9je/1XC/CbfkFYAzhPxxymR2z7bJbyD4Pr5D/1wYUoS5jgZWXHMv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A5zHL1ZynNyoY4lnmFjPMN1DEpZUjLM8aFKGtuDiobasRf6MmrIUF1+cq26UemMBK3MFUcOoLgTz0L1K4DkNuJWSZ6rzW/K18P/7Gqgg1MYMcbHIZQPH3zOHDe4X3GiSUEEuB2G5rQIEQWW88sZGMytM7heUpgfNm8Gb5pIdBEkvUh7QjGPS0s6Q==; 24:ddleCq1Uzb2h2lZJJ17REAT5LDvlnOvh0qUhV8JQ9ByyYkjNEHGE+QzaQcz2KgBG+mafAovUYa5bc6WMbDuSZhxWhaq8yuE7sT5OYQ9cFaM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2395; 7:dGUnSYIhySkKtz33OnwkD5ZuLcNmbCLinV9fAZk4CNli3tyKHebcyaW5pDpggKCZKZL9NGkj4W/aOjYJrBrgWWuMl3E7aoHMN6g3mMm82JFn/UnIajUi5uOrA/x8VHjQ4L9+TPdoHoRfoXpXOMP3etSb9gVSFmzKFq1Q6JrScS9IN1HApT5W0AtFpRJNglL8k/kR1Yan3ad2tkwaeCf9Y5jsv9afD55inLUiNiBCXbKTxnxbhNp4GR20nQMGG8uNZPhmTsxbhP7AUK0clPFWcrDrVxfGjWW5JneNF3qYYFI59ugXO0vBq4G3DQ/gtj4Qn5fED7V/HpoKALQDz26oSg== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2017 05:32:56.3519 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB2395 Subject: [dpdk-dev] [PATCH 16/38] bus/dpaa: add fman flow control threshold setting X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2017 05:33:00 -0000 Signed-off-by: Geoff Thorpe Signed-off-by: Roy Pledge Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- drivers/bus/dpaa/base/fman/fman_hw.c | 28 ++++++++++++++++++++++++++++ drivers/bus/dpaa/include/fsl_fman.h | 7 +++++++ 2 files changed, 35 insertions(+) diff --git a/drivers/bus/dpaa/base/fman/fman_hw.c b/drivers/bus/dpaa/base/fman/fman_hw.c index 77908ec..7618fc1 100644 --- a/drivers/bus/dpaa/base/fman/fman_hw.c +++ b/drivers/bus/dpaa/base/fman/fman_hw.c @@ -37,6 +37,7 @@ */ #include #include +#include /* Instantiate the global variable that the inline CRC64 implementation (in * ) depends on. @@ -437,6 +438,33 @@ fman_if_set_bp(struct fman_if *fm_if, unsigned num __always_unused, } int +fman_if_get_fc_threshold(struct fman_if *fm_if) +{ + struct __fman_if *__if = container_of(fm_if, struct __fman_if, __if); + unsigned int *fmbm_mpd; + + assert(fman_ccsr_map_fd != -1); + + fmbm_mpd = &((struct rx_bmi_regs *)__if->bmi_map)->fmbm_mpd; + return in_be32(fmbm_mpd); +} + +int +fman_if_set_fc_threshold(struct fman_if *fm_if, u32 high_water, + u32 low_water, u32 bpid) +{ + struct __fman_if *__if = container_of(fm_if, struct __fman_if, __if); + unsigned int *fmbm_mpd; + + assert(fman_ccsr_map_fd != -1); + + fmbm_mpd = &((struct rx_bmi_regs *)__if->bmi_map)->fmbm_mpd; + out_be32(fmbm_mpd, FMAN_ENABLE_BPOOL_DEPLETION); + return bm_pool_set_hw_threshold(bpid, low_water, high_water); + +} + +int fman_if_get_fc_quanta(struct fman_if *fm_if) { struct __fman_if *__if = container_of(fm_if, struct __fman_if, __if); diff --git a/drivers/bus/dpaa/include/fsl_fman.h b/drivers/bus/dpaa/include/fsl_fman.h index 0aff22c..b94bc56 100644 --- a/drivers/bus/dpaa/include/fsl_fman.h +++ b/drivers/bus/dpaa/include/fsl_fman.h @@ -120,6 +120,13 @@ void fman_if_loopback_disable(struct fman_if *); void fman_if_set_bp(struct fman_if *fm_if, unsigned int num, int bpid, size_t bufsize); +/* Get Flow Control threshold parameters on specific interface */ +int fman_if_get_fc_threshold(struct fman_if *fm_if); + +/* Enable and Set Flow Control threshold parameters on specific interface */ +int fman_if_set_fc_threshold(struct fman_if *fm_if, + u32 high_water, u32 low_water, u32 bpid); + /* Get Flow Control pause quanta on specific interface */ int fman_if_get_fc_quanta(struct fman_if *fm_if); -- 2.7.4