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 A4FA1EE57D3 for ; Fri, 8 Sep 2023 06:09:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241857AbjIHGJu (ORCPT ); Fri, 8 Sep 2023 02:09:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229785AbjIHGJs (ORCPT ); Fri, 8 Sep 2023 02:09:48 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34E231BDA; Thu, 7 Sep 2023 23:09:42 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id E15C1218EC; Fri, 8 Sep 2023 06:09:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1694153380; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=P8F49nTEGpcf3Tsrq6gB2cLzMdUH0MJKv89igSWXxnM=; b=la6V6ou/e2WWjCjInvBTAoIcJNjIWTRkB/MPGo7fp92S9XUzGhQztsWsxtL3mRiXZebNqg jSfOJ3dBf+xSwlQYFEhtyz9vTWsGbKzIn3yJEhkee4xkwCsVfjrCuXwdeohTJFxt4pifj+ almdn9+/ZymSpEY/Z9c9PYYdZMCQ7O4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1694153380; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=P8F49nTEGpcf3Tsrq6gB2cLzMdUH0MJKv89igSWXxnM=; b=zr+gzmkKB3kFLLW5t+GeilEswq5cubBiIPy6C5FCfI+dfXUvPWovxCJSrbnvYpZWqO2Vy3 UiQzr+UNzhCr3TCA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 6E6A9131FD; Fri, 8 Sep 2023 06:09:40 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 2GXfGaS6+mQYaQAAMHmgww (envelope-from ); Fri, 08 Sep 2023 06:09:40 +0000 Message-ID: <2b568b29-c4f4-4058-9a83-b1f37290ae34@suse.de> Date: Fri, 8 Sep 2023 08:09:40 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v15 07/12] nvme: add copy offload support Content-Language: en-US To: Nitesh Shetty , Jens Axboe , Jonathan Corbet , Alasdair Kergon , Mike Snitzer , dm-devel@redhat.com, Keith Busch , Christoph Hellwig , Sagi Grimberg , Chaitanya Kulkarni , Alexander Viro , Christian Brauner Cc: martin.petersen@oracle.com, mcgrof@kernel.org, gost.dev@samsung.com, Kanchan Joshi , =?UTF-8?Q?Javier_Gonz=C3=A1lez?= , Anuj Gupta , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-nvme@lists.infradead.org, linux-fsdevel@vger.kernel.org References: <20230906163844.18754-1-nj.shetty@samsung.com> <20230906163844.18754-8-nj.shetty@samsung.com> From: Hannes Reinecke In-Reply-To: <20230906163844.18754-8-nj.shetty@samsung.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/6/23 18:38, Nitesh Shetty wrote: > Current design only supports single source range. > We receive a request with REQ_OP_COPY_SRC. > Parse this request which consists of src(1st) and dst(2nd) bios. > Form a copy command (TP 4065) > > trace event support for nvme_copy_cmd. > Set the device copy limits to queue limits. > > Signed-off-by: Kanchan Joshi > Signed-off-by: Nitesh Shetty > Signed-off-by: Javier González > Signed-off-by: Anuj Gupta > --- > drivers/nvme/host/constants.c | 1 + > drivers/nvme/host/core.c | 79 +++++++++++++++++++++++++++++++++++ > drivers/nvme/host/trace.c | 19 +++++++++ > include/linux/blkdev.h | 1 + > include/linux/nvme.h | 43 +++++++++++++++++-- > 5 files changed, 140 insertions(+), 3 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Ivo Totev, Andrew Myers, Andrew McDonald, Martje Boudien Moerman