From patchwork Wed Apr 17 19:53:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Levitsky X-Patchwork-Id: 10906077 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F005317E0 for ; Wed, 17 Apr 2019 19:55:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DACE528B4D for ; Wed, 17 Apr 2019 19:55:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CF25528B75; Wed, 17 Apr 2019 19:55:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 648E328B4F for ; Wed, 17 Apr 2019 19:55:48 +0000 (UTC) Received: from localhost ([127.0.0.1]:58914 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hGqep-0001vG-8f for patchwork-qemu-devel@patchwork.kernel.org; Wed, 17 Apr 2019 15:55:47 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43381) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hGqdJ-0000Xv-Mt for qemu-devel@nongnu.org; Wed, 17 Apr 2019 15:54:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hGqdI-0006zz-T0 for qemu-devel@nongnu.org; Wed, 17 Apr 2019 15:54:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45714) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hGqdG-0006xY-RA; Wed, 17 Apr 2019 15:54:11 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 978045F73A; Wed, 17 Apr 2019 19:54:08 +0000 (UTC) Received: from maximlenovopc.usersys.redhat.com (unknown [10.35.206.34]) by smtp.corp.redhat.com (Postfix) with ESMTP id C598E5D6A6; Wed, 17 Apr 2019 19:54:04 +0000 (UTC) From: Maxim Levitsky To: qemu-block@nongnu.org Date: Wed, 17 Apr 2019 22:53:50 +0300 Message-Id: <20190417195355.16123-1-mlevitsk@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Wed, 17 Apr 2019 19:54:08 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v2 0/5] Few fixes for userspace NVME driver X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , Kevin Wolf , Max Reitz , qemu-devel@nongnu.org, Maxim Levitsky Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Hi! These are few assorted fixes and features for the userspace nvme driver. Tested that on my laptop with my Samsung X5 thunderbolt drive, which happens to have 4K sectors, support for discard and write zeros. Also bunch of fixes sitting in my queue from the period when I developed the nvme-mdev driver. Best regards, Maxim Levitsky Maxim Levitsky (5): block/nvme: don't flip CQ phase bits block/nvme: fix doorbell stride block/nvme: support larger that 512 bytes sector devices block/nvme: add support for write zeros block/nvme: add support for discard block/nvme.c | 193 +++++++++++++++++++++++++++++++++++++++++-- block/trace-events | 3 + include/block/nvme.h | 19 ++++- 3 files changed, 205 insertions(+), 10 deletions(-)