From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0411FECAAD5 for ; Mon, 5 Sep 2022 13:59:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237748AbiIEN7A (ORCPT ); Mon, 5 Sep 2022 09:59:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236981AbiIEN67 (ORCPT ); Mon, 5 Sep 2022 09:58:59 -0400 Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37C065A170 for ; Mon, 5 Sep 2022 06:58:54 -0700 (PDT) Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20220905135847epoutp02137b470d084c1f7c64ff7fb690babc8a~R_46s1raa0327303273epoutp02r for ; Mon, 5 Sep 2022 13:58:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20220905135847epoutp02137b470d084c1f7c64ff7fb690babc8a~R_46s1raa0327303273epoutp02r DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1662386327; bh=WQiaXjoAxLwsbVRXHk8q1j932l/sJd1E66j7gQPnBbE=; h=From:To:Cc:Subject:Date:References:From; b=mBPTYXIcJXwtCAv/q1J3U5cgQeUGS6iyG+8Eh2t5r3kIPE7GtXe8M6lykVDGHRaZS 6Fgml9b+ZpluRs37pWzMp5o2obHhfx8tCtccUeFTkqK70lqZnHk7rZKTXIgrU6a64W uaxvhq7cl6atUjHWr7/YNTrcJQB4ZUgOvxtM0zyQ= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20220905135846epcas5p2b3e3a6346235629a4687347748ac97a0~R_45bLhe_0915909159epcas5p2V; Mon, 5 Sep 2022 13:58:46 +0000 (GMT) Received: from epsmges5p2new.samsung.com (unknown [182.195.38.175]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4MLqql5mJSz4x9Pp; Mon, 5 Sep 2022 13:58:43 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id A9.56.53458.39006136; Mon, 5 Sep 2022 22:58:43 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p4.samsung.com (KnoxPortal) with ESMTPA id 20220905135842epcas5p4835d74beb091f5f50490714d93fc58f2~R_42VhUbJ0624606246epcas5p4f; Mon, 5 Sep 2022 13:58:42 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20220905135842epsmtrp2ac063ff4e707fceebfe4e67b57019ca6~R_42U0aQJ0557505575epsmtrp2i; Mon, 5 Sep 2022 13:58:42 +0000 (GMT) X-AuditID: b6c32a4a-a5bff7000000d0d2-96-63160093d40e Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id BB.39.14392.29006136; Mon, 5 Sep 2022 22:58:42 +0900 (KST) Received: from localhost.localdomain (unknown [107.110.206.5]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220905135841epsmtip1af119d27e209f0d1d0ce2685d201d072~R_40-WnQg1139411394epsmtip1G; Mon, 5 Sep 2022 13:58:41 +0000 (GMT) From: Kanchan Joshi To: axboe@kernel.dk, hch@lst.de, kbusch@kernel.org, asml.silence@gmail.com Cc: io-uring@vger.kernel.org, linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, gost.dev@samsung.com, Kanchan Joshi Subject: [PATCH for-next v4 0/4] fixed-buffer for uring-cmd/passthru Date: Mon, 5 Sep 2022 19:18:29 +0530 Message-Id: <20220905134833.6387-1-joshi.k@samsung.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpjk+LIzCtJLcpLzFFi42LZdlhTU3cyg1iywb/buhZzVm1jtFh9t5/N 4uaBnUwWK1cfZbJ413qOxeLo/7dsFpMOXWO02HtL22L+sqfsDpweO2fdZfe4fLbUY9OqTjaP zUvqPXbfbGDz6NuyitHj8ya5APaobJuM1MSU1CKF1Lzk/JTMvHRbJe/geOd4UzMDQ11DSwtz JYW8xNxUWyUXnwBdt8wcoLuUFMoSc0qBQgGJxcVK+nY2RfmlJakKGfnFJbZKqQUpOQUmBXrF ibnFpXnpenmpJVaGBgZGpkCFCdkZe7+VFtzgqthxeDNbA+MWji5GTg4JAROJY7OvMHYxcnEI CexmlDj+5zcThPOJUWLHtYWsEM43RombKw8ww7S8vf6DBSKxl1Hix/KLzBDOZ0aJjftuAw3j 4GAT0JS4MLkUpEFEwEvi/u33YJOYBWYwSqzueM0OUiMs4CLxdZ4cSA2LgKrEhkUNjCA2r4C5 xMQ9J9kglslLzLz0nR0iLihxcuYTFhCbGSjevHU22F4JgbfsEvv+T2WHaHCRuLT3N5QtLPHq +BYoW0ri87u9UEOTJS7NPMcEYZdIPN5zEMq2l2g91c8Mchsz0P3rd+lD7OKT6P39hAkkLCHA K9HRJgRRrShxb9JTVghbXOLhjCVQtofE6p39YJuEBGIlJt1exjqBUW4Wkg9mIflgFsKyBYzM qxglUwuKc9NTi00LjPJSy+FRmZyfu4kRnCC1vHYwPnzwQe8QIxMH4yFGCQ5mJRHelB0iyUK8 KYmVValF+fFFpTmpxYcYTYHBOpFZSjQ5H5ii80riDU0sDUzMzMxMLI3NDJXEeadoMyYLCaQn lqRmp6YWpBbB9DFxcEo1MPleX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I+RbeW4W14sL5wXPstXvTb7cxeQy 99gfpgb//Y0ShzJidrx8eHTOLcGYNF7/oilPV5uWMXGd/Lam8l7D+YZjHr/UYnpuh/dKKk+Z l++WvH/2hbbV5xe/2iegUcDT2Hdz9iGBFoP/G6ZO/cR1y/rRBi9ZhY5vhVsefgnk7092C9t2 wfUea5AT47z4CQ+DltgmLGz5s2/9ZgZRLt/5U/+vup+kWb7VxrZViaU4I9FQi7moOBEAJmlR 5NECAAA= X-CMS-MailID: 20220905135842epcas5p4835d74beb091f5f50490714d93fc58f2 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220905135842epcas5p4835d74beb091f5f50490714d93fc58f2 References: Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org Hi, Currently uring-cmd lacks the ability to leverage the pre-registered buffers. This series adds that support in uring-cmd, and plumbs nvme passthrough to work with it. Using registered-buffers showed IOPS hike from 1.9M to 2.2M to me. Patch 1, 3 = prep/infrastructure Patch 2 = expand io_uring command to use registered-buffers Patch 4 = expand nvme passthrough to use registered-buffers Changes since v3: - uring_cmd_flags, change from u16 to u32 (Jens) - patch 3, add another helper to reduce code-duplication (Jens) Changes since v2: - Kill the new opcode, add a flag instead (Pavel) - Fix standalone build issue with patch 1 (Pavel) Changes since v1: - Fix a naming issue for an exported helper Anuj Gupta (2): io_uring: introduce io_uring_cmd_import_fixed io_uring: introduce fixed buffer support for io_uring_cmd Kanchan Joshi (2): block: add helper to map bvec iterator for passthrough nvme: wire up fixed buffer support for nvme passthrough block/blk-map.c | 94 +++++++++++++++++++++++++++++++---- drivers/nvme/host/ioctl.c | 38 +++++++++----- include/linux/blk-mq.h | 1 + include/linux/io_uring.h | 11 +++- include/uapi/linux/io_uring.h | 9 ++++ io_uring/uring_cmd.c | 29 ++++++++++- 6 files changed, 158 insertions(+), 24 deletions(-) -- 2.25.1