From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0060.outbound.protection.outlook.com [104.47.32.60]) by dpdk.org (Postfix) with ESMTP id E1FCF7CBB for ; Thu, 13 Jul 2017 11:34:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=JnfnPebpsj1ZzEX6L0ovU1XfzHGz6nedc4Glz+d9U5Y=; b=hVBrpSnaEXXKsm0dlkcljKOIhsQ/NATI4Wft4DMOrEZanhf+yWLO8THsmFHaEPFW3F1tIJRK3nSzGjCyxirOtJ4MdwBh5+Nb38x0Kzr0X8JZs6WXcJ+yh0uqQlVWj1Bfgo4UkR56UMhnPffah5oNqtCVo0ZbD/v7G6WmcrFS+s8= Authentication-Results: monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost.localdomain (111.93.218.67) by CY4PR07MB3095.namprd07.prod.outlook.com (10.172.115.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1240.13; Thu, 13 Jul 2017 09:34:08 +0000 From: Santosh Shukla To: thomas@monjalon.net, dev@dpdk.org, olivier.matz@6wind.com Cc: jerin.jacob@caviumnetworks.com, hemant.agrawal@nxp.com, Santosh Shukla Date: Thu, 13 Jul 2017 09:32:55 +0000 Message-Id: <20170713093255.13986-7-santosh.shukla@caviumnetworks.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170713093255.13986-1-santosh.shukla@caviumnetworks.com> References: <20170621173248.1313-1-santosh.shukla@caviumnetworks.com> <20170713093255.13986-1-santosh.shukla@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BMXPR01CA0016.INDPRD01.PROD.OUTLOOK.COM (10.174.214.154) To CY4PR07MB3095.namprd07.prod.outlook.com (10.172.115.9) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 720e05e8-231c-4993-5556-08d4c9d2512c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CY4PR07MB3095; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3095; 3:+WZYzlchYZDdpMx70ZTKh4FuQxuD2fEelJ+9+JgU0ii2n/PjVZ5ChI824TwNTeL49b+oOA/3YZh9b1DBRe4Uj0iel3sHZU+b4/aXV3BCt/4CpKrCLrNJsJL5CtUb0irsmWThTx1l9CDDrgsU0aRRBmUtbLiBcsvLz8yjeoxtvUNJ46nZRaNYDnv8aHuIB3wOWQg65JnIwujDXFvsg+OJiRYo9SZFRdhrY0+GhKG2tk0pMDGa1ED02TdZvmXVa7PmWWEIKcq1apz5kxtpqPik+7JzCsTjVMlOHY2QrzDfKZKaci/A5YyVJN8Y21abhc6vJ2dff+ClUVUQGQtYOI0XZxhlnENK0zIBvk7z04ObVsdTSTBYXypLzTF9co50TFApeD07BHG8A/09U6nI3fGj1mPzGq7P2yezF3AwY7n4Rn3hB5IWrCKvsC8SuR/BF5YuNnaoyhBz8K3Mmx+NgezhayFE4YqHrb8nGskCvWLZYD0CrBa+1q8QPHcA7z4eT2Eymkf27HOn34PNB8zjEsNvKZos54YbtBs2ZPdFRPHTqXgb3tiqJ9ytVmlzPVY6S56nQyqczeoAmMThFjhlWFifUBulXCLPbAal7x6lrMLp4g44sfyz34jIXWGSskXwvBD4b7d7HywXnhG199A3ukX3NJDABtsT+1QJgkb854NE/cR/+uEBQWUxetJHiz5n/5X8V2Ws0PmyVF0SxgpkYdIZa3z8ix1QXDrJJq59wZ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0T92Hwc8OYeDnTzGpEisJ9esQ4QVBVOcKlzeJreKrU65iQbDJ1hVwALrbcMrtjRx3nkhJYNB+L+guVhEfsjqGXNsWPnjEV9etr1jDlmKcWZmsLNleoXUVnJGFgPyO6pzV/RIbRoQVvMuWJyKu4fHteRR61Ci1KUm7mDIIYtSjDMH1PR6YxYGL5OqI1/KhsJzHKAFmf0h+Yb6L/Yq0Bbv9sTKCbULMdG7IPYTll+qgonyu86sufHiAJ6vPNaLU1nc= X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(167848164394848); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(2017060910075)(100000703101)(100105400095)(93006095)(10201501046)(3002001)(6041248)(20161123558100)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR07MB3095; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR07MB3095; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3095; 4:EhlEYu4sdqY0mQDit32HJIyWGr0pFaYRzCk0MzeV6T?= =?us-ascii?Q?qEokqFexTythEiBZHU1tzAz1WPmGqNfxhm/SwReCDPqPFb1Ii9puqomDU62B?= =?us-ascii?Q?5ud38G9vhDsX0xr9xTwMkmn+8yfToprUCtnhFnhvSARwYiMppTOjEOkxA2Oe?= =?us-ascii?Q?G/UKlhBDaGMD8J7V7bNWoUDLav2HfLvznmmy4yw9OWC4jP/r/2wsJutTSsc1?= =?us-ascii?Q?O6PxZ0RMEp2w3FJVCgkna2fBCVSLz6RX8tw3H1eVtkKndR03+0QTznkaWOE0?= =?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6zM7EvylXDrMeji6/C1al?= =?us-ascii?Q?kPeaE5oSa4Dahe8Jy4eO776PzCWpewhmd7oUmMUh0eRN/yiP7bU46UaA=3D?= =?us-ascii?Q?=3D?= X-Forefront-PRVS: 0367A50BB1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(7370300001)(4630300001)(6069001)(6009001)(39840400002)(39400400002)(39410400002)(39450400003)(39850400002)(33646002)(15650500001)(305945005)(8656002)(47776003)(25786009)(4326008)(50466002)(8676002)(7350300001)(575784001)(48376002)(5009440100003)(50226002)(81166006)(110136004)(72206003)(5003940100001)(53936002)(76176999)(107886003)(7736002)(1076002)(42186005)(6486002)(66066001)(6116002)(2906002)(36756003)(5660300001)(38730400002)(189998001)(42882006)(6666003)(50986999)(478600001)(6506006)(6512007)(2950100002)(3846002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3095; H:localhost.localdomain; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3095; 23:AmRsrpp/GEq4j3b1DMJcrFZFwg+wGUpKRV0D1CaXO?= =?us-ascii?Q?gwckoAOSHnNK0/WBUV96WRIEvrDPFRJTW/Yb5jr6/Nz59m6jUgMZYFN0BByP?= =?us-ascii?Q?QQjOGUdPLhyaav/ZNMW/TYxjRKaDJNPEQzxFsetEPZkvHSgU10HgKoFe2XK+?= =?us-ascii?Q?Qtqd0cuMqD4dI661+y/Ec+QD2KpcCyt0XYLdr7iTwmzl1NNIxM66trBmtdGI?= =?us-ascii?Q?seEDQwVNkwPDESWTHoSvd3rTxejgWv2+dRY0eCdEAokDyHzIeWNZeuINOOib?= =?us-ascii?Q?qiEp2WucXqs67J29p2J5fmQkKTxYRf2TeNT5e0ZVHdyvT9Pph7e/DLfU9WrX?= =?us-ascii?Q?24WlrkxHvgdGqtbf8g8a19emmbxjTyI82rtbgfXwlr/uUkU55m5mq2Gx5eTX?= =?us-ascii?Q?U9XxHZ4GD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sna1LII3/dNQ4Kp3MLwwJ3PULBFpx0dQlr2krkKY74?= =?us-ascii?Q?9EbnsKPYM6gf4Z8IbxoHgngggHWjfwYdtpG2duCr1ZQVRxirxczvZ08jQ5By?= =?us-ascii?Q?D2dKYec2dk5QGcwPqjSoo5yuzGvrl8tXCqprOT+M/PdAKeWTz8cktX7kJR4Y?= =?us-ascii?Q?I=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3095; 5:J4YENV06stedcHi8l77YA+FMknk7KBNpervfTMrWc0K3Eqm1Mod1gN0FTSf4TTkV5HWvFrr+pRagE26CqgvIzKlDN7Dk7SD/cZr9n5tZxm5QazgQMw/MBoogEhIMdMx7UhNYPKbIb5yyWuX3Di7zzNcSeixT037FsU4/9fW8vVjZF2PJC9ekZgVRvxgY2bgV9ANoxo8v0A+Yy5gn6Ej10hSoJCIjcjSs8i8NHvRahNuZwEjamoJtLMlGB284Ht+iHHi45Q6bXPhcH1d2gnr7bk1pq2mPtWu5gpGvFlTJiUmRA8cHIIi6rrvArbbua3J5sbfnpnA3Sz0GWrgP04mC45mg+DvzNewEfHO//yB/CQ9YORV0lzSfKJZDDlKz6qGsRAf2ltUB8l/i9SyL1n+DLleNpe8F/IcHY4XFqAtUD+S+9A6f9X9JH9OehaoMuLpuqY5tsaBkopnM4fVW5DOUrsPLbdPkfXRWUhHl8Wf1aAZhGzWvGvEB20UujdAsDjWr; 24:2AXerGMHKPwmQoui8XYxAIMvjKmZhy/E81696KhVhZSV9LO7WaQJAOA42S56dl5kZBruqDt+G8gyoyo3GgCUPxyQVJTNY4NAlAD1eKPOSVE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3095; 7:pVBuYuQmALacbjTClb7yKTpw0GT9qbsnW7a4YcpuwJsf5C5bOyW4v7MTYqNG7Jb0GyEgOGbImPl5u2QGXobVHt624bgkFVkpCQlnYYrm/1I6eVYiv2MZYmjwkjreBq7oQDdIIhxZMrd5t0SDClJ68hVwNGctGvZidNVwCZU6Lt8qHD1NmNrSeWQxqBbA64Pm5fN5D1n2etKbq6v1JS3qcV9wTrbw8xa6nqB59CoS7/4ngp5NAC8/NmyOk6GLjtkd061s04DA/NEnq5LYAx/Jr41RMLOU6kFNwz5/7BSsIhgKZhih9SqYxBLcqOg3hsftem4tJb8a/so/5Y1Kr4/KWQZUyZjIPUqwKCI6su/KxS1VfUiKHt+BfLnhVOqAO8TlKScL+aOnfSPj4HbozZL9Ukpq2CvvNGsPAZYoDkmoU3ukbxViNlKq5El0pI+zrQ6sttEZcQDSZzGSZDlr1WAmKR0Qp5onoRmM4A5V0fOiRbp0yT6XhdxaFQD7qgxpqIkvCM/kTj5qRRxv912Qmi3Qqgn7pS/FxpbrPw0LIwItjQA7pBxMmy0Hi0iiQnA6rIR1EzjG7LVhwgT6nkFHJaX4DdKJP5+9FwDFUFapzWnx+sSiODZPHdOsPNZvlJZwV/pAqSdITrD67vnZTfMkdDdi0AblekD0L9+5GuuxMsZ8rYSKi/XIcAReJzGknxJXukjJ900etcx87YMzzdKRcXDJHsEXRFQvrmjzJsYul0+T0ORpkweerKBfvp21/cWVdcGXsp65aWwgkMzCS7fEUWupeHmeGXkQRZb3l4R2qsxXS1E= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jul 2017 09:34:08.7007 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3095 Subject: [dpdk-dev] [PATCH v2 6/6] mempool: update range info to pool 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: Thu, 13 Jul 2017 09:34:14 -0000 HW pool manager e.g. Octeontx SoC demands s/w to program start and end address of pool. Currently, there is no such handle in external mempool. Introducing rte_mempool_update_range handle which will let HW(pool manager) know when common layer selects hugepage: For each hugepage - update its start/end address to HW pool manager. Signed-off-by: Santosh Shukla Signed-off-by: Jerin Jacob --- v1 -- v2: - Added RTE_FUNC_PTR_OR_RET lib/librte_mempool/rte_mempool.c | 3 +++ lib/librte_mempool/rte_mempool.h | 22 ++++++++++++++++++++++ lib/librte_mempool/rte_mempool_ops.c | 13 +++++++++++++ lib/librte_mempool/rte_mempool_version.map | 1 + 4 files changed, 39 insertions(+) diff --git a/lib/librte_mempool/rte_mempool.c b/lib/librte_mempool/rte_mempool.c index 4ae2bde53..ea32b65a9 100644 --- a/lib/librte_mempool/rte_mempool.c +++ b/lib/librte_mempool/rte_mempool.c @@ -363,6 +363,9 @@ rte_mempool_populate_phys(struct rte_mempool *mp, char *vaddr, struct rte_mempool_memhdr *memhdr; int ret; + /* update range info to mempool */ + rte_mempool_ops_update_range(mp, vaddr, paddr, len); + /* create the internal ring if not already done */ if ((mp->flags & MEMPOOL_F_POOL_CREATED) == 0) { ret = rte_mempool_ops_alloc(mp); diff --git a/lib/librte_mempool/rte_mempool.h b/lib/librte_mempool/rte_mempool.h index d7c2416f4..b59a522cd 100644 --- a/lib/librte_mempool/rte_mempool.h +++ b/lib/librte_mempool/rte_mempool.h @@ -396,6 +396,11 @@ typedef unsigned (*rte_mempool_get_count)(const struct rte_mempool *mp); */ typedef int (*rte_mempool_get_capabilities_t)(struct rte_mempool *mp); +/** + * Update range info to mempool. + */ +typedef void (*rte_mempool_update_range_t)(const struct rte_mempool *mp, + char *vaddr, phys_addr_t paddr, size_t len); /** Structure defining mempool operations structure */ struct rte_mempool_ops { @@ -406,6 +411,7 @@ struct rte_mempool_ops { rte_mempool_dequeue_t dequeue; /**< Dequeue an object. */ rte_mempool_get_count get_count; /**< Get qty of available objs. */ rte_mempool_get_capabilities_t get_capabilities; /**< Get capability */ + rte_mempool_update_range_t update_range; /**< Update range to mempool */ } __rte_cache_aligned; #define RTE_MEMPOOL_MAX_OPS_IDX 16 /**< Max registered ops structs */ @@ -531,6 +537,22 @@ int rte_mempool_ops_get_capabilities(struct rte_mempool *mp); /** + * @internal wrapper for mempool_ops update_range callback. + * + * @param mp + * Pointer to the memory pool. + * @param vaddr + * Pointer to the buffer virtual address + * @param paddr + * Pointer to the buffer physical address + * @param len + * Pool size + */ +void +rte_mempool_ops_update_range(const struct rte_mempool *mp, + char *vaddr, phys_addr_t paddr, size_t len); + +/** * @internal wrapper for mempool_ops free callback. * * @param mp diff --git a/lib/librte_mempool/rte_mempool_ops.c b/lib/librte_mempool/rte_mempool_ops.c index 84b2f8151..c9df351f3 100644 --- a/lib/librte_mempool/rte_mempool_ops.c +++ b/lib/librte_mempool/rte_mempool_ops.c @@ -86,6 +86,7 @@ rte_mempool_register_ops(const struct rte_mempool_ops *h) ops->dequeue = h->dequeue; ops->get_count = h->get_count; ops->get_capabilities = h->get_capabilities; + ops->update_range = h->update_range; rte_spinlock_unlock(&rte_mempool_ops_table.sl); @@ -136,6 +137,18 @@ rte_mempool_ops_get_capabilities(struct rte_mempool *mp) return ops->get_capabilities(mp); } +/* wrapper to update range info to external mempool */ +void +rte_mempool_ops_update_range(const struct rte_mempool *mp, char *vaddr, + phys_addr_t paddr, size_t len) +{ + struct rte_mempool_ops *ops; + + ops = rte_mempool_get_ops(mp->ops_index); + RTE_FUNC_PTR_OR_RET(ops->update_range); + ops->update_range(mp, vaddr, paddr, len); +} + /* sets mempool ops previously registered by rte_mempool_register_ops. */ int rte_mempool_set_ops_byname(struct rte_mempool *mp, const char *name, diff --git a/lib/librte_mempool/rte_mempool_version.map b/lib/librte_mempool/rte_mempool_version.map index 392388bef..c0ed5a94f 100644 --- a/lib/librte_mempool/rte_mempool_version.map +++ b/lib/librte_mempool/rte_mempool_version.map @@ -46,5 +46,6 @@ DPDK_17.08 { global: rte_mempool_ops_get_capabilities; + rte_mempool_ops_update_range; } DPDK_16.07; -- 2.13.0