From patchwork Tue Jun 30 11:04:28 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: 11633765 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9668014B7 for ; Tue, 30 Jun 2020 11:06:59 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 6C9FF2065F for ; Tue, 30 Jun 2020 11:06:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="YoREJ7cz" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6C9FF2065F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:34484 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jqE6M-0002V4-Nj for patchwork-qemu-devel@patchwork.kernel.org; Tue, 30 Jun 2020 07:06:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46854) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jqE4M-0007Uh-2H for qemu-devel@nongnu.org; Tue, 30 Jun 2020 07:04:54 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:57202 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jqE4K-0006R0-H3 for qemu-devel@nongnu.org; Tue, 30 Jun 2020 07:04:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1593515091; 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: in-reply-to:in-reply-to:references:references; bh=YZCe5OgsdLzHyTw8HV351yv3jE/x9fSK5ohsnhOc0Kk=; b=YoREJ7czVVrCBVPZvQbL02ZSdIv36qOH3/h9CwxjzWtje/GmAu+uuhVwClt6DCzljbGS9X MjUKfMAP0aBdy/ypN+h8i7F0mb7yTpBOlHw1vtx/zqPyLy1h4AnTqaHp8gJtlvqJdC/4bk Yub96knXQHBSmHHzsnLVWo1JHYRhFVM= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-189-40z8NBxTN1ybQt7q1hqBdg-1; Tue, 30 Jun 2020 07:04:47 -0400 X-MC-Unique: 40z8NBxTN1ybQt7q1hqBdg-1 Received: by mail-ed1-f71.google.com with SMTP id 92so16630270edl.8 for ; Tue, 30 Jun 2020 04:04:47 -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:in-reply-to :references:mime-version:content-transfer-encoding; bh=YZCe5OgsdLzHyTw8HV351yv3jE/x9fSK5ohsnhOc0Kk=; b=a6kzgnNl/Tecl6WmW2zZpPdxNo18ktB6nOwWM8z4e8LWQ4mPOQoLCQQ+EEENFguJiD 8wp7UcHa/Cgfh//d43bCf42idn/GLI4oldu726XzEeLOpj/YPeEP4mESd594QmFw55v2 0/hkekkv/04vzA4pgzXuYsFj0Fx6u+tL+PB5HZ39LmhF8nMj5U13DTTd8X6xBwpf+J+L Hic8Cl/+osP534ks72VjslUIOF37iVabLOUQjT717q8pbpxVRrf+t5eUYfuspzyVrauc h0tbjtsBNcW7GaRMB8sTNi/5983e9+ZV5EnqVWj0pyELpkKdC/vm4otnhG+utqNuw0Qp pkIA== X-Gm-Message-State: AOAM5317AamaFCH6LaSqMemj5+dNPYW3NbqE47zsGVvjA9eyq7DIxkz5 kaJ1Y0QvpU2KODzDfJMFj9+b5qvlxKGe/gSeB0Zuwv+N8avs8PAx2ZM4QVfmSd7cejmJpQkX/FG /pBMCc8t6wrehxJw= X-Received: by 2002:a17:906:2851:: with SMTP id s17mr18057134ejc.347.1593515086525; Tue, 30 Jun 2020 04:04:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxquEY1ayhYdraosdZZbxagGQCURPcP1PP5/ZbIJQXa3Ch69ikv0ig+if7CiLz0O1U9PJeqpQ== X-Received: by 2002:a17:906:2851:: with SMTP id s17mr18057121ejc.347.1593515086374; Tue, 30 Jun 2020 04:04:46 -0700 (PDT) Received: from x1w.redhat.com (1.red-83-51-162.dynamicip.rima-tde.net. [83.51.162.1]) by smtp.gmail.com with ESMTPSA id sa10sm1756669ejb.79.2020.06.30.04.04.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jun 2020 04:04:45 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 3/4] hw/block/nvme: Fix pmrmsc register size Date: Tue, 30 Jun 2020 13:04:28 +0200 Message-Id: <20200630110429.19972-4-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200630110429.19972-1-philmd@redhat.com> References: <20200630110429.19972-1-philmd@redhat.com> 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=207.211.31.81; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/30 02:00:02 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1, 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_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN 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 , qemu-block@nongnu.org, Klaus Jensen , Maxim Levitsky , Andrzej Jakowski , Keith Busch , Max Reitz , =?utf-8?q?P?= =?utf-8?q?hilippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" The Persistent Memory Region Controller Memory Space Control register is 64-bit wide. See 'Figure 68: Register Definition' of the 'NVM Express Base Specification Revision 1.4'. Fixes: 6cf9413229 ("introduce PMR support from NVMe 1.4 spec") Reported-by: Klaus Jensen Reviewed-by: Klaus Jensen Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Dmitry Fomichev --- Cc: Andrzej Jakowski --- include/block/nvme.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/block/nvme.h b/include/block/nvme.h index 71c5681912..82c384614a 100644 --- a/include/block/nvme.h +++ b/include/block/nvme.h @@ -21,7 +21,7 @@ typedef struct QEMU_PACKED NvmeBar { uint32_t pmrsts; uint32_t pmrebs; uint32_t pmrswtp; - uint32_t pmrmsc; + uint64_t pmrmsc; } NvmeBar; enum NvmeCapShift {