From patchwork Thu Oct 29 09:32:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 1389980 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=MFnPE342; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CMKyh1HRnz9sS8 for ; Thu, 29 Oct 2020 20:34:17 +1100 (AEDT) Received: from localhost ([::1]:50308 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kY4Jx-0005Wu-P5 for incoming@patchwork.ozlabs.org; Thu, 29 Oct 2020 05:34:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59882) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kY4J3-0005Wf-LE for qemu-devel@nongnu.org; Thu, 29 Oct 2020 05:33:17 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:35312) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1kY4J0-0006JB-MN for qemu-devel@nongnu.org; Thu, 29 Oct 2020 05:33:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1603963993; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tCDSHB17lPz5sYX0KNrveY3UW9EMK+LXYAbuoRs4SOo=; b=MFnPE342L/fwNjGhOQwublEiB6ycYHT9Z8/zMQf27IJwyZTereXY82zPJ9Y2IFS6dq0BUD yN1F2qsUPiJUCKrQgaWU9EXH8Mcd4H/kHqyF51sKCYYN+FPK9qWpucIEVqOo04Odn0at9o sgqVc+xCmTmz6JC11Bpex6+aZknIYWI= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-141-0qWAZsQEMIuAxFAlnlQ5EA-1; Thu, 29 Oct 2020 05:33:11 -0400 X-MC-Unique: 0qWAZsQEMIuAxFAlnlQ5EA-1 Received: by mail-ed1-f69.google.com with SMTP id dn20so938274edb.14 for ; Thu, 29 Oct 2020 02:33:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=RtZehlgqGDhf61IIYJPAvL+XtEgpPW7xS4gotJB+tsQ=; b=LhlHamfQtfmf4IYvGVRreRmKc55AjpQCJkxxpG1+p6jqNq6NeFhRmHmUWiJowEAIUL IDoDpMJY2/H1GjUwceboDL2WOwEQ0BMbUFBdt79eH6CxBcdUsDnAnzreTarrOJrUslN3 xF/fbn5jxUSydEFd7Wo/Avakl8ATmewBcXaGdq6EkKvaw5O09T4EkUXj/LkgDdbIRCBa zkfZoqn+gLqWolaFvFSIu/SxjLeM5XWsaJtMG+ENFGYu+FSIsF2co6t0dJCqj/+z7s2M kDv5tIW5wx/EzR9YHtjutBPvd4BGuWAP8dYqoKAECue6+FTOkLJtCTV4B3Prz6JF/1e+ 5ggQ== X-Gm-Message-State: AOAM5314dtrmMjWj9EiWd09rJqJQd5KlxzMx5i/ApQb1EUJXLOGqrbSb LB1UlceiKerW0XGvz/35ZkVARpif3Ro8iPYxL02QtcohdPrbe8knBva2boww3qxFwrTnbng9ir9 qYNxsSWdSTBzUgjM= X-Received: by 2002:a17:906:e292:: with SMTP id gg18mr3150450ejb.278.1603963989947; Thu, 29 Oct 2020 02:33:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmnF+JfAcCPGoEsu5J7RhLGEdrVNR5cQy635MVNHflf2LAqQjuV8oPWM4QzoSJgEukikSCqw== X-Received: by 2002:a17:906:e292:: with SMTP id gg18mr3150423ejb.278.1603963989680; Thu, 29 Oct 2020 02:33:09 -0700 (PDT) Received: from x1w.redhat.com (234.red-83-42-66.dynamicip.rima-tde.net. [83.42.66.234]) by smtp.gmail.com with ESMTPSA id w16sm1133626eds.81.2020.10.29.02.33.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 02:33:08 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH-for-5.2 v2 00/25] block/nvme: Fix Aarch64 or big-endian hosts Date: Thu, 29 Oct 2020 10:32:41 +0100 Message-Id: <20201029093306.1063879-1-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Received-SPF: pass client-ip=216.205.24.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/29 00:47:54 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , Fam Zheng , qemu-block@nongnu.org, Max Reitz , Keith Busch , Eric Auger , Stefan Hajnoczi , Klaus Jensen , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Add a bit of tracing, clean around to finally fix few bugs. In particular, restore NVMe on Aarch64 host. Since v1: - addressed Stefan and Eric review comments - dropped unnecessary patches - added BE fix reported by Keith Patches missing review: #10, #24, #25 Supersedes: <20201027135547.374946-1-philmd@redhat.com> Eric Auger (4): block/nvme: Change size and alignment of IDENTIFY response buffer block/nvme: Change size and alignment of queue block/nvme: Change size and alignment of prp_list_pages block/nvme: Align iov's va and size on host page size Philippe Mathieu-Daudé (21): MAINTAINERS: Cover 'block/nvme.h' file block/nvme: Use hex format to display offset in trace events block/nvme: Report warning with warn_report() block/nvme: Trace controller capabilities block/nvme: Trace nvme_poll_queue() per queue block/nvme: Improve nvme_free_req_queue_wait() trace information block/nvme: Trace queue pair creation/deletion block/nvme: Move definitions before structure declarations block/nvme: Use unsigned integer for queue counter/size block/nvme: Make nvme_identify() return boolean indicating error block/nvme: Make nvme_init_queue() return boolean indicating error block/nvme: Introduce Completion Queue definitions block/nvme: Use definitions instead of magic values in add_io_queue() block/nvme: Correctly initialize Admin Queue Attributes block/nvme: Simplify ADMIN queue access block/nvme: Simplify nvme_cmd_sync() block/nvme: Set request_alignment at initialization block/nvme: Correct minimum device page size block/nvme: Fix use of write-only doorbells page on Aarch64 arch block/nvme: Fix nvme_submit_command() on big-endian host block/nvme: Simplify Completion Queue Command Identifier field use include/block/nvme.h | 18 ++-- block/nvme.c | 213 ++++++++++++++++++++++++------------------- MAINTAINERS | 2 + block/trace-events | 30 +++--- 4 files changed, 150 insertions(+), 113 deletions(-)