Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp517746pxb; Sat, 20 Feb 2021 11:22:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5D4HULmBpjjBWE4xQRnUn/MTpmIktClTqlWAOZeEVa5fr8TQQddE+xDKW1ln5mN8X0hpW X-Received: by 2002:a17:906:9147:: with SMTP id y7mr12745563ejw.243.1613848973494; Sat, 20 Feb 2021 11:22:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613848973; cv=none; d=google.com; s=arc-20160816; b=pVjnfuajTAUpdhPTqZ/FsaKxliBDSOLabSSE1vSJySz5fIOM0azxAuCX5DPtumIFLh NkLIAgZtADMDn3K4IaiYGFGHedCjgRsqiZ+FpB+gt5aH8wzGUDnWViftAhupAlxmo3x2 PbrxdoEHN6dRVqvea++DMB+aCYRsvpiueXLXjldLyXzfCvul1dO+Y5i/ko/gmDrL+f79 5NHrtNAGgpTZoZ5uebnQJFjPldl3l42vIW9K8lwtwvMC8fkZAD7xj2HiV4hDU/As6rVp GWI1G9lZ6JLkIlppOWst9ituk0rjuLiC6n5gTd8MH4+PBIWOBIFiBP98e3s+/BB64ZF4 9erQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Fn/mL+pSvIf5HtuaqwK6WRkkkjpJzVW5aL3yk/D8KMU=; b=wl75i2q9MpBQ4SK1T0rVDy5j10E+5obtx2N/szKJTcQqcy37YQT5gp67pv2mTAd0DB paOL1B12/MD4Nyozm/5qGPn4S8XSfO0FRF9wcLwF2Ek1UGibzagTaXAmoypDUeDrLs3b ww/ja/YJFOXiDisnkBVGOnoQ4D35u2TmtTx6o+o8i017wIZ0Q8HlUtu3pJ0rp4gvKLH5 MK4gP8JWrBaVZFHdbEsUI21wQ6zU1R2m20Q2hMNm16/XAqrxqPgi8xnnNUQDwjeKC8cD bolSYeOslho12B8MHFCZ0yMJdZ9gio5Z7+CKOWYHwnjgYC2E5qnceRl/W1Q/kKN8p/bR AWDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lAzR3vLq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l3si8150915edk.141.2021.02.20.11.22.29; Sat, 20 Feb 2021 11:22:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lAzR3vLq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229891AbhBTTUN (ORCPT + 99 others); Sat, 20 Feb 2021 14:20:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:48552 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229808AbhBTTUI (ORCPT ); Sat, 20 Feb 2021 14:20:08 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5BF2264E51; Sat, 20 Feb 2021 19:19:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1613848768; bh=opkZV9+iiOg5i7CeRhciYmBMWsz/qz9Xmo/qIEL+++w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lAzR3vLqQJN7zA0sj+1l2vnXCMVW4WzYcT/7zoi2XEkR75dxEfZxsr9ZZXs0vfoPA MIIgjdK8Bfi/OCFnVUkAXbnH1QuOe78GE9Zog3tA5xLd9ntizTOGRftkJ5DbbTpQLW omYiai3857LXH2o97xCBrMSxBqmNpxN940EtlMYI230TK91985WJW6trAwt3FkdY/L VqIe5cfn3Bm95NdASEstDvnzMUXt7VhCJVGdKAJfJ58WvX9DqAgAts08MiZ6GAolne 0nuR0yF2z+6rnQQ4z7QrJaZEUfQQrwShmPsQQ1TDKXSeEoktfn9AzBO1+I/LSxew2+ 2ipaElzzXH/Mw== Date: Sun, 21 Feb 2021 04:19:21 +0900 From: Keith Busch To: David Laight Cc: 'SelvaKumar S' , "linux-nvme@lists.infradead.org" , "axboe@kernel.dk" , "damien.lemoal@wdc.com" , "hch@lst.de" , "sagi@grimberg.me" , "linux-block@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "dm-devel@redhat.com" , "snitzer@redhat.com" , "selvajove@gmail.com" , "joshiiitr@gmail.com" , "nj.shetty@samsung.com" , "joshi.k@samsung.com" , "javier.gonz@samsung.com" , "kch@kernel.org" , "linux-fsdevel@vger.kernel.org" Subject: Re: [RFC PATCH v5 0/4] add simple copy support Message-ID: <20210220191921.GA7968@redsun51.ssa.fujisawa.hgst.com> References: <20210219124517.79359-1-selvakuma.s1@samsung.com> <146c47907c2446d4a896830de400dd81@AcuMS.aculab.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <146c47907c2446d4a896830de400dd81@AcuMS.aculab.com> User-Agent: Mutt/1.12.1 (2019-06-15) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 20, 2021 at 06:01:56PM +0000, David Laight wrote: > From: SelvaKumar S > > Sent: 19 February 2021 12:45 > > > > This patchset tries to add support for TP4065a ("Simple Copy Command"), > > v2020.05.04 ("Ratified") > > > > The Specification can be found in following link. > > https://nvmexpress.org/wp-content/uploads/NVM-Express-1.4-Ratified-TPs-1.zip > > > > Simple copy command is a copy offloading operation and is used to copy > > multiple contiguous ranges (source_ranges) of LBA's to a single destination > > LBA within the device reducing traffic between host and device. > > Sounds to me like the real reason is that the copy just ends up changing > some indirect block pointers rather than having to actually copy the data. I guess an implementation could do that, but I think that's missing the point of the command. The intention is to copy the data to a new location on the media for host managed garbage collection.