From nobody Mon Feb 9 08:56:53 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1593513546; cv=none; d=zohomail.com; s=zohoarc; b=dLKPKHwM7PPmkSzz0MUx9mOMOz4D8U7z9CP+bzPVjgkR6CFtNcJiSuySHD9pr9i7GHAjIf35dUVipwOENn5Zacz9+f22MnpF9yO4rk0gh+oBiiYP9UZ/jzWnwB+hrBWyh+DN+oR1NvYD4mchu8W3icmUUrNPXzW6S4ZxNluco7o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1593513546; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=07ct4LP1waPEbEUp/nBsoiz2BrOfaHiWs7K68B/S55o=; b=VgVKgkuPPU9tQjUoT1W5AA2oelLxKv9GySUgaqf9JEdPkZf7jz3yT2aQJINvDok8hRlPaUfUlFtqinyVOc3plp9NYlMJMuneDcpzcLi07iCQB+AB5KHZ7KF/q+4DtnoifQIdJA1Y9l/w/r8UtwLpw7foNiCUXggDaIDAvNiNWJ0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 15935135468905.047725889493904; Tue, 30 Jun 2020 03:39:06 -0700 (PDT) Received: from localhost ([::1]:60050 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jqDfN-0008WH-LF for importer@patchew.org; Tue, 30 Jun 2020 06:39:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40028) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jqDeL-0006pE-Du for qemu-devel@nongnu.org; Tue, 30 Jun 2020 06:38:01 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:55052 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 1jqDeK-0002IO-0g for qemu-devel@nongnu.org; Tue, 30 Jun 2020 06:38:01 -0400 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-491-LOvzEYUZNN-xBlMHzlVbCA-1; Tue, 30 Jun 2020 06:37:57 -0400 Received: by mail-ed1-f71.google.com with SMTP id d3so2875477edq.14 for ; Tue, 30 Jun 2020 03:37:57 -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 lj18sm1676744ejb.43.2020.06.30.03.37.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jun 2020 03:37:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1593513479; 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=07ct4LP1waPEbEUp/nBsoiz2BrOfaHiWs7K68B/S55o=; b=A4WrfqLEo0zxy/BVcb4BAAeduO/KQpYMT6CGRg31iae7j/qprk12D4ZJ0EBhg0MjP/K2Z1 02CLWxl3SnxKimzKoq8njeIN2JdFfAxMSSY4CR/6ZAkElDuDFuFhtg6Oc+EnFm50SNmaSE 8yYvfXNydJ0kkZT254rGs4fUexD17n4= X-MC-Unique: LOvzEYUZNN-xBlMHzlVbCA-1 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=07ct4LP1waPEbEUp/nBsoiz2BrOfaHiWs7K68B/S55o=; b=uOrQkbW8bzhviB0I4VMfO2PG/fHDYyppKCZKN/Y+hFD6Cgbom8K5VYs2rBbsD5p79R z+cugJ9virrQ4s/8VHThGnY6Vb/aIfqBeKiTuxks+DHak0LLzHxu7PzKxLRkPc+5H7g6 RKqNKcLDGPR+VEQXzTMZPYoOdWBdfN+wHugCmXHVC7eErb06kyuTu59ypPakbcqhbMUx Jc4ryk6TfYmnFHxD2HR7ozyPLs+Es42oDskA3SqPqYgYGCzVH0YS/W/DBrDVwYwx9gUR nefrzmeU+Us4DSQcdzt2WwXg4b1n+SN+6shz/5VawGVek41TMmBsd8HDo+SKVkcLmu4l aO5Q== X-Gm-Message-State: AOAM530NXpWJayPNVeIiD3aY3SQ8vUfl6ir+8LCyMBD32YCfrIf7JXHB M0YkzLvxGcVouUbgxGFTNgajavxk5BOSrC5dExp4LhvjbzikYOukuwdP3O0As8X1MEiysmI5zqH +Kuc3oNTi5XjwUcI= X-Received: by 2002:a50:f08c:: with SMTP id v12mr21817174edl.119.1593513476389; Tue, 30 Jun 2020 03:37:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRkx0DAQKnDdDHqoeNpSfMkF+Ch6VdicM4WS42wesTeAvNpntDA9EgVIswaL5NEQPKHS4CvQ== X-Received: by 2002:a50:f08c:: with SMTP id v12mr21817165edl.119.1593513476262; Tue, 30 Jun 2020 03:37:56 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v2 3/4] hw/block/nvme: Fix pmrmsc register size Date: Tue, 30 Jun 2020 12:37:38 +0200 Message-Id: <20200630103739.9715-4-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200630103739.9715-1-philmd@redhat.com> References: <20200630103739.9715-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 Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; 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 , Klaus Jensen , Andrzej Jakowski , Keith Busch , Max Reitz , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) 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 Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Klaus Jensen --- Cc: Andrzej Jakowski Cc: Keith Busch --- 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; =20 enum NvmeCapShift { --=20 2.21.3