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 07D7DC6FA83 for ; Tue, 6 Sep 2022 06:37:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238499AbiIFGhd (ORCPT ); Tue, 6 Sep 2022 02:37:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238495AbiIFGhc (ORCPT ); Tue, 6 Sep 2022 02:37:32 -0400 Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F05EA6E2CA for ; Mon, 5 Sep 2022 23:37:27 -0700 (PDT) Received: from epcas5p1.samsung.com (unknown [182.195.41.39]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20220906063724epoutp022808430e5065be89bdec25c09149c6d7~SMg02Xvr40974909749epoutp02h for ; Tue, 6 Sep 2022 06:37:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20220906063724epoutp022808430e5065be89bdec25c09149c6d7~SMg02Xvr40974909749epoutp02h DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1662446244; bh=F3EnbytOd4XDhzc1QhFKf1tJcM00xrrzImkoAe68mCk=; h=From:To:Cc:Subject:Date:References:From; b=qLEF/61Lq1RNaTsFrztyM26NHExCGKo9M+3b/RFBPn4ASY4DiWqE9ID/vQgrgYLw1 JyTIVqVm0zObHXSLfFB2y90nNFngYup4kucoqYKw96Xy+/NP6SVU8x11jb3d/vsOE/ p0VNaKIQOx+sHFylbhOircNzqiBF8+L94ipFMxag= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20220906063724epcas5p1ce549e3745baf6799d8027d3ed25120d~SMg0M8hbd2227522275epcas5p11; Tue, 6 Sep 2022 06:37:24 +0000 (GMT) Received: from epsmges5p3new.samsung.com (unknown [182.195.38.180]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4MMG013zs8z4x9QB; Tue, 6 Sep 2022 06:37:21 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id 89.8B.54060.0AAE6136; Tue, 6 Sep 2022 15:37:20 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20220906063719epcas5p3157e79583a5412a3be81f3d96f8aaadd~SMgwKp4CF2989229892epcas5p3e; Tue, 6 Sep 2022 06:37:19 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220906063719epsmtrp132a27c1e5a73c0f31c80d86ae91b15da~SMgwJongO2539325393epsmtrp13; Tue, 6 Sep 2022 06:37:19 +0000 (GMT) X-AuditID: b6c32a4b-be1ff7000000d32c-a1-6316eaa0a6fb Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 87.45.14392.F9AE6136; Tue, 6 Sep 2022 15:37:19 +0900 (KST) Received: from localhost.localdomain (unknown [107.110.206.5]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220906063718epsmtip294d84ed493330f801dcdf42840f35cdb~SMguyIVBy2902729027epsmtip2d; Tue, 6 Sep 2022 06:37:18 +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 v5 0/4] fixed-buffer for uring-cmd/passthru Date: Tue, 6 Sep 2022 11:57:17 +0530 Message-Id: <20220906062721.62630-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+NgFmplk+LIzCtJLcpLzFFi42LZdlhTXXfBK7FkgxX/pSzmrNrGaLH6bj+b xc0DO5ksVq4+ymTxrvUci8XR/2/ZLCYdusZosfeWtsX8ZU/ZHTg9ds66y+5x+Wypx6ZVnWwe m5fUe+y+2cDm0bdlFaPH501yAexR2TYZqYkpqUUKqXnJ+SmZeem2St7B8c7xpmYGhrqGlhbm Sgp5ibmptkouPgG6bpk5QHcpKZQl5pQChQISi4uV9O1sivJLS1IVMvKLS2yVUgtScgpMCvSK E3OLS/PS9fJSS6wMDQyMTIEKE7Izpj3cwFSwkLti17SNrA2Mrzi6GDk4JARMJC7Plepi5OIQ EtjNKLF7515GCOcTo8S2eRuYIJxvQJkrx1m7GDnBOq5+XcsOkdjLKPH69G6oqs+MEg8aJjKC zGUT0JS4MLkUpEFEwEvi/u33rCA1zAIzGCVWd7xmB0kIC7hIHHp6kxnEZhFQlfg07QwbiM0r YCHxaOdcJoht8hIzL31nh4gLSpyc+YQFxGYGijdvnc0MMlRC4CW7xP5/5xghHnKRmPePB6JX WOLV8S3sELaUxMv+Nig7WeLSzHNQ80skHu85CGXbS7Se6mcGGcMMdP/6XfoQq/gken8/YYKY zivR0SYEUa0ocW/SU2iYiEs8nLEEyvaQ+NJ0COwYIYFYiXunkycwys1Ccv8sJPfPQti1gJF5 FaNkakFxbnpqsWmBcV5qOTwmk/NzNzGC06OW9w7GRw8+6B1iZOJgPMQowcGsJMKbskMkWYg3 JbGyKrUoP76oNCe1+BCjKTBQJzJLiSbnAxN0Xkm8oYmlgYmZmZmJpbGZoZI47xRtxmQhgfTE ktTs1NSC1CKYPiYOTqkGpkm6IY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x45GSshtxgT++7hUTN540af2sPwmeHTN2 ln9i3Tzb480Wk/0r+asDzgSdCg1rexg3bdUufiYVCclanySTyuUaj+dxuj9S/2B/OPl5GNeO vzvzxZ4ftNhoMy3lZKrpObHbh2qOX+5+1j6/xknpjV9G77S9ByfPfFI1PfhWAyNDfFza2jPl 8xg8/67NXKbL1PrnUG4AT/0bjTdaXstF4vYGBvy/lZL3NMnrixJLcUaioRZzUXEiAP91ej7R AgAA X-CMS-MailID: 20220906063719epcas5p3157e79583a5412a3be81f3d96f8aaadd X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220906063719epcas5p3157e79583a5412a3be81f3d96f8aaadd 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 v4: - Patch 1, 2: folded all review comments of Jens 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 | 28 ++++++++++- 6 files changed, 157 insertions(+), 24 deletions(-) -- 2.25.1