From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50040.outbound.protection.outlook.com [40.107.5.40]) by dpdk.org (Postfix) with ESMTP id 4B79EAAF1 for ; Fri, 27 Apr 2018 19:05:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=gZiQb1oBAhziabG4DeuoC17KdNnE2AUfodB04GIcauo=; b=rHgpLfAUwmKEYcUl7YK1mG9XhMwEIsXi0u3dUIf8hGoqgW4FY2W6azKMnjgAjuE0DDF/DIKp6sSEz7ZpILLTAQtO9UwojStMizqgRnY3Ty+UWnMYP71vQngWoVDXktsKi6HNxHKxCYxg5gEQHwbHrXbaMW/vOgF9fxkERvXb/vs= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; Received: from Tophie.ap.freescale.net (14.142.187.166) by AM5PR0402MB2770.eurprd04.prod.outlook.com (2603:10a6:203:98::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.13; Fri, 27 Apr 2018 17:05:04 +0000 From: Shreyansh Jain To: thomas@monjalon.net, dev@dpdk.org Cc: hemant.agrawal@nxp.com, akhil.goyal@nxp.com, anatoly.burakov@intel.com, Shreyansh Jain Date: Fri, 27 Apr 2018 22:50:55 +0530 Message-Id: <20180427172058.26850-1-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180427162556.22781-1-shreyansh.jain@nxp.com> References: <20180427162556.22781-1-shreyansh.jain@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: TYAPR04CA0016.apcprd04.prod.outlook.com (2603:1096:404:15::28) To AM5PR0402MB2770.eurprd04.prod.outlook.com (2603:10a6:203:98::12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM5PR0402MB2770; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0402MB2770; 3:Pmse/C2v7Et2e05SBFJ/UolWH0cgl5d1+K3q7Y1kHgRkAliRxYeof0D9hjFpkDCMGrZ69NcQXgWIIvboq6Djujpsl0kxNVp7LCR9AJlMk9TnogiYZXI77A2ej2iFF3tJjYmNVXK+8QBhX6hKtdUJw+M2trq5XQQw2TdBD/v8eDZV/MJicFLqOEVTJAt78w8rZc/qTMsNI53vzDE3m4Ypk2RlcYkMe/jGn3tQ+5A2lMqkL+o/t9KLrTPO56uSRiAx; 25:Dn3QpKIOKEG1rJz4DOmX4tsOHWuyWc5dFnjhiyY7fDek2OBRNOVUxvar03drkprdRK08GzVmupvt31N16h6VniLTNZX5FxfjXi1TPph8sXSpmsDBpevXUAgYQncDqmvImtGixv+kQOia6yXSPPiqKIaH8Ic23l+eFvjLkbNA7JOLOYSCFNj2uFS80SiWRr5fbAf8qceECwM2Qr7jxmiyZ1OCh2w42BqJoV2WCvFOZsYeCkY98DbuUexL7EGBGlTr4KV9PYdyBkqt4xA3c/URXRPbV0+uKig1IbiXmmLSoljXyIQo03XjWrqJRnpRCDgBhm4/QjRY52Gw44Pugzs5Tg==; 31:VViWKjiwtjH167UuBSjOEuVIzeCyLGFYH1t5OE/NtUkRsrU/x08U4jZ9/AdmyhwKJOQN2nBmOC8q/sGMZ64HtURM6Zv3DuOTIO87/i4W8gMGGopDsbs4EhLvhlCp+BSDNiuOLXe6W4sHYElAvpFCrFCwEhq4Lo1M/FbTaXrZcaQnssh42GThzMahDC6ik/XF9OTqe6+CRHj3UIRjd5FlebUyvX/tt2RBgusI4K8et3M= X-MS-TrafficTypeDiagnostic: AM5PR0402MB2770: X-Microsoft-Exchange-Diagnostics: 1; AM5PR0402MB2770; 20:2Xjtd+9aLovoxlo1woFBz6xg0cxAumeufR735bgDvfFWPhCaN8Fm/yqLEi/BvLPDzNnVeBVyF9zjuJm5GxoC/7NktvSE9xItrIsn1SXAEEuzGsz4rFbfNPFpboBlGFBa9VKZcl0HHRdyyNn1IFeyjRATVzGvPM6OodcbVe9dr6WS10rn/miQMtl45BTBfvrOL55LXo5/1cvDxtqaogWRI5Ms7ZnF0WkKx3t1jISVP3mzK6aFDWeWhJ7ESTs0CL4bIbdqUYhOo5Y+SSfzg5K3zTh9RXGYurzL4negdGTtPNc2lmk2YZJU0k8XZPQcAAEpZAbYA/dBsC8zCRvEvGyQeVSI/+e35K97yNqclXnKKMgj9LSshZ6Vcnua3yW5LA1Sn+uTuuBGbCqzDilndf4QPmLvfYkyTVdppBW4nKx/GL6VoCbv6kKffX22Ux1t1uhWdvO28hqjT1njcbivxvBQFP8NOmihoCOoBF6dtV4z3DYr+OtHXju0mR7IlTngGebp; 4:Zg+H3Qp4RCkxzUU6xLGrMM1QF189Md+ig4OrS/gcUmsYLRD2a+hEHodNpLWbE/neNcsMB7qn/1UL/IkZTol0BwC0kSkqwbpzw6QYsXZWA80qA4FFJLoYb8XO9P3qjhMY2RHMJ1l64aeN7eEedljryN/jhbepCMshH64qrX1mUl2y7NQgHDQGXLQB2kloeKXeQ3p11zZZUIONAfVCFpiTJMbBd6OyQDBUVdBUAKszdqCIX6L4AzV9zjBmZwSlGejNX+x6ADM+TKZ8iQa5vVVBSiPv1BFn5sGkQR2GbmS3IXJmsFtw+UhfA0CgVCJoJM/U X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(10201501046)(3231232)(944501410)(52105095)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123560045)(20161123558120)(6072148)(201708071742011); SRVR:AM5PR0402MB2770; BCL:0; PCL:0; RULEID:; SRVR:AM5PR0402MB2770; X-Forefront-PRVS: 0655F9F006 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(39380400002)(396003)(376002)(366004)(346002)(189003)(199004)(2906002)(66066001)(106356001)(186003)(6512007)(8936002)(4326008)(81156014)(81166006)(25786009)(53936002)(50226002)(8676002)(48376002)(47776003)(6486002)(105586002)(50466002)(36756003)(486006)(6116002)(6666003)(68736007)(316002)(446003)(86362001)(956004)(11346002)(97736004)(55236004)(5660300001)(1076002)(26005)(3846002)(476003)(478600001)(51416003)(305945005)(7736002)(16526019)(76176011)(44832011)(16586007)(6506007)(386003)(2616005)(52116002)(5009440100003)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM5PR0402MB2770; H:Tophie.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR0402MB2770; 23:NULO4htGB2fc8OP1hrZwGHhxANnEBdQBXyDuPn5?= =?us-ascii?Q?KXZ1fmUA4liJyoCXm3LN2+sv+TPWVKVk5I+SVBp4WyuG5RONTTVUHojBuB22?= =?us-ascii?Q?CZbvsb6aqFn5D1NzcoLPV61ySJ/NeMSidCZZeZ83IDbDVYdU7BXalDk5okkm?= =?us-ascii?Q?maAz4mHEXwitSo60KNXXsaFJWOJtuyR+fMyJMo41qG0FXE5rCSveJlO4Vtne?= =?us-ascii?Q?RDMuLBUxYhfIII43mf2KiAaocj2fi+nVfhTaU2eIN+E5EfKxS5cxmhKYmdGT?= =?us-ascii?Q?7XMJmnH7Y7r09tuBfrT+gdY90X224zh9nyk43SvJvyQaJZ0o+kFdwO0cx01b?= =?us-ascii?Q?12pMv2URIG2+zo7jqtcPk9FJMl21noEI/WZCKIvvB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3iwJvpvL8aX2Kw?= X-Microsoft-Antispam-Message-Info: 18zSjd2INXM2xfsAhc7Dlf0Z1Z4dUzvxTgLnm4U0hB4U8TRGOSs01OGY51t6AXQSd/cNtjQEmxWSbJ299Cw9XV3tCgxhXM23fZglROMn6e1ilVoUthpIBHdIKXVQF5SMNfbheJ389fKYUqTd/hKHH1k0G6EfLm/bObMW7WbJRikoEa0CKAqQ+DltR9ARLaOd X-Microsoft-Exchange-Diagnostics: 1; AM5PR0402MB2770; 6:yWcOXGrHi1TdonKpVUbFsRfTLpcsCrmNpL4GUgCeRQPKmJno1RLv9hH+B0A5vM3Rw2WHF4OL4Z3Ehcz0xcBSrr5mYKb3/v+tv99/WAiTHohQGsPF1at8N0sl8a6IyVUoRW0I5uI8rDLlL6rVwZN5wh5SpsP5uJBded0U3HIWvGuVzML7PIdCt+XNxwgmW3+Jv7eYxEQHCFsLzxxsR9Wh0XuSc4zn88KkZqPWTXTSvs0yqYdlHmBXtq9bt+9Tm6HDyx37s1bnm72iKyTNHrqJE0AajjO/wrelltVgcHKhJt230CuVvuSl31zGhCVWA4q4Mlun0Uvy40OdWfYnhMaiGVwbayhCitVoQcOxuuAw8GWFcWy22zBk4ki+kvTpvxQOq2A2gEiKVJxAD5r109+gMPynMFUUxn8QM9aqLiOoT2EqXB3PhGFeiaNHVUJx5Aq6O7MXQBkYgqCrkfv/AqyMog==; 5:n01WwcuJU15a4kl3DSOKISeHPLzW4oBYHP/QzTnHF4l5SP6pTNN0MqkH//WlD+IOy+jncgD+6AZV0d92Q/IotiED8lPs3k58mpbJRfDBE8X3tjucFIamySMxCVkyJhMJag39oR94mfZivMMkQe0WDCRZfnUM+1kSAra1en9iuI0=; 24:U/6XOcseQdX617keOI4rMwv6xpp+P6Q3wxXRaKbgcd8jVKAA6NFzhPP0hkTWHOWx8ZoZmAzISINlUOb0L52n2vjLa+V8IXY+CKtNfTviMhw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM5PR0402MB2770; 7:GrxMtsbDBBhi1wM3xmAMlEjvvNJxcxqlcDLAoBh/+cTcaWL0V5YsHzzmsp/Y4IUNSxbItiAwR/jwlqfEzdCnfsaqP/jQAnLoPZBgtRmIKmy/4fHHt8O9MbAqmrCZUcbi2L6lTuetbDnKmPunW9Kio3I2OUiZ0SP008DspgiWI92kG4LIeFCQFwtQPR7JZxKeHMCX2SLEDYG8/uhAGCHByIqDRf0beAdw4awjGSTEPzd6yQp4+kuyk39jhACl2QvX X-MS-Office365-Filtering-Correlation-Id: 5df0a3d4-6306-4863-32bd-08d5ac6107a9 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Apr 2018 17:05:04.9449 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5df0a3d4-6306-4863-32bd-08d5ac6107a9 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0402MB2770 Subject: [dpdk-dev] [PATCH v2 0/3] Optimization for DPAA/DPAA2 for PA/VA Addressing 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, 27 Apr 2018 17:05:10 -0000 Once the hotplugging (6b42f7563) patchset were merged, DPAA2 Physical Addressing mode and DPAA observed drastic performance drop (~95%) This was because of an inherent assumption while doing some memory translation that memsegs would be physically contiguous This series attempts to add a workaround for that - a intermediary one while complete solution is integrated This work around creates a linked list of referenced buffers and attempts to search through it during physical to virtual translations. :Change history: v2: - fixed spelling mistakes in patch as commit Shreyansh Jain (3): crypto/dpaa_sec: remove ctx based offset for PA-VA conversion bus/fslmc: optimize physical to virtual address searching bus/dpaa: optimize physical to virtual address searching drivers/bus/dpaa/rte_dpaa_bus.h | 27 +++++++++++++++++- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 23 +++++++++++++++ drivers/crypto/dpaa_sec/dpaa_sec.c | 49 +++++++++++++------------------- drivers/mempool/dpaa/dpaa_mempool.c | 33 ++++++++++++++++++++- drivers/mempool/dpaa2/dpaa2_hw_mempool.c | 43 ++++++++++++++++++++++++++++ 5 files changed, 144 insertions(+), 31 deletions(-) -- 2.14.1