qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PULL for-6.0 0/2] emulated nvme fixes
@ 2021-04-05 17:34 Klaus Jensen
  2021-04-05 17:34 ` [PULL for-6.0 1/2] hw/block/nvme: remove description for zoned.append_size_limit Klaus Jensen
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Klaus Jensen @ 2021-04-05 17:34 UTC (permalink / raw)
  To: Peter Maydell, qemu-devel
  Cc: Kevin Wolf, qemu-block, Klaus Jensen, Max Reitz, Keith Busch,
	Klaus Jensen

From: Klaus Jensen <k.jensen@samsung.com>

Hi Peter,

The following changes since commit 25d75c99b2e5941c67049ee776efdb226414f4c6:

  Merge remote-tracking branch 'remotes/xtensa/tags/20210403-xtensa' into staging (2021-04-04 21:48:45 +0100)

are available in the Git repository at:

  git://git.infradead.org/qemu-nvme.git tags/nvme-fixes-for-6.0-pull-request

for you to fetch changes up to 498114b37bc99fddcfc24b92bff7f1323fb32672:

  hw/block/nvme: expose 'bootindex' property (2021-04-05 19:33:04 +0200)

----------------------------------------------------------------
emulated nvme fixes

----------------------------------------------------------------

Joelle van Dyne (1):
  hw/block/nvme: expose 'bootindex' property

Niklas Cassel (1):
  hw/block/nvme: remove description for zoned.append_size_limit

 hw/block/nvme.c | 16 +++-------------
 1 file changed, 3 insertions(+), 13 deletions(-)

-- 
2.31.1



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PULL for-6.0 1/2] hw/block/nvme: remove description for zoned.append_size_limit
  2021-04-05 17:34 [PULL for-6.0 0/2] emulated nvme fixes Klaus Jensen
@ 2021-04-05 17:34 ` Klaus Jensen
  2021-04-05 17:34 ` [PULL for-6.0 2/2] hw/block/nvme: expose 'bootindex' property Klaus Jensen
  2021-04-06  9:34 ` [PULL for-6.0 0/2] emulated nvme fixes Peter Maydell
  2 siblings, 0 replies; 4+ messages in thread
From: Klaus Jensen @ 2021-04-05 17:34 UTC (permalink / raw)
  To: Peter Maydell, qemu-devel
  Cc: Kevin Wolf, Niklas Cassel, qemu-block, Klaus Jensen, Max Reitz,
	Keith Busch, Klaus Jensen

From: Niklas Cassel <niklas.cassel@wdc.com>

The description was originally removed in commit 578d914b263c
("hw/block/nvme: align zoned.zasl with mdts") together with the removal
of the zoned.append_size_limit parameter itself.

However, it was (most likely accidentally), re-added in commit
f7dcd31885cb ("hw/block/nvme: add non-mdts command size limit for verify").

Remove the description again, since the parameter it describes,
zoned.append_size_limit, no longer exists.

Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
---
 hw/block/nvme.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/hw/block/nvme.c b/hw/block/nvme.c
index c54ec3c9523c..08c204d46c43 100644
--- a/hw/block/nvme.c
+++ b/hw/block/nvme.c
@@ -91,14 +91,6 @@
  *   the minimum memory page size (CAP.MPSMIN). The default value is 0 (i.e.
  *   defaulting to the value of `mdts`).
  *
- * - `zoned.append_size_limit`
- *   The maximum I/O size in bytes that is allowed in Zone Append command.
- *   The default is 128KiB. Since internally this this value is maintained as
- *   ZASL = log2(<maximum append size> / <page size>), some values assigned
- *   to this property may be rounded down and result in a lower maximum ZA
- *   data size being in effect. By setting this property to 0, users can make
- *   ZASL to be equal to MDTS. This property only affects zoned namespaces.
- *
  * nvme namespace device parameters
  * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  * - `subsys`
-- 
2.31.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PULL for-6.0 2/2] hw/block/nvme: expose 'bootindex' property
  2021-04-05 17:34 [PULL for-6.0 0/2] emulated nvme fixes Klaus Jensen
  2021-04-05 17:34 ` [PULL for-6.0 1/2] hw/block/nvme: remove description for zoned.append_size_limit Klaus Jensen
@ 2021-04-05 17:34 ` Klaus Jensen
  2021-04-06  9:34 ` [PULL for-6.0 0/2] emulated nvme fixes Peter Maydell
  2 siblings, 0 replies; 4+ messages in thread
From: Klaus Jensen @ 2021-04-05 17:34 UTC (permalink / raw)
  To: Peter Maydell, qemu-devel
  Cc: Kevin Wolf, qemu-block, Klaus Jensen, Max Reitz, Keith Busch,
	Joelle van Dyne, Klaus Jensen

From: Joelle van Dyne <j@getutm.app>

The check for `n->namespace.blkconf.blk` always fails because
this is in the initialization function.

Signed-off-by: Joelle van Dyne <j@getutm.app>
Reviewed-by: Klaus Jensen <k.jensen@samsung.com>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
---
 hw/block/nvme.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/hw/block/nvme.c b/hw/block/nvme.c
index 08c204d46c43..7244534a89e9 100644
--- a/hw/block/nvme.c
+++ b/hw/block/nvme.c
@@ -6328,11 +6328,9 @@ static void nvme_instance_init(Object *obj)
 {
     NvmeCtrl *n = NVME(obj);
 
-    if (n->namespace.blkconf.blk) {
-        device_add_bootindex_property(obj, &n->namespace.blkconf.bootindex,
-                                      "bootindex", "/namespace@1,0",
-                                      DEVICE(obj));
-    }
+    device_add_bootindex_property(obj, &n->namespace.blkconf.bootindex,
+                                  "bootindex", "/namespace@1,0",
+                                  DEVICE(obj));
 
     object_property_add(obj, "smart_critical_warning", "uint8",
                         nvme_get_smart_warning,
-- 
2.31.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PULL for-6.0 0/2] emulated nvme fixes
  2021-04-05 17:34 [PULL for-6.0 0/2] emulated nvme fixes Klaus Jensen
  2021-04-05 17:34 ` [PULL for-6.0 1/2] hw/block/nvme: remove description for zoned.append_size_limit Klaus Jensen
  2021-04-05 17:34 ` [PULL for-6.0 2/2] hw/block/nvme: expose 'bootindex' property Klaus Jensen
@ 2021-04-06  9:34 ` Peter Maydell
  2 siblings, 0 replies; 4+ messages in thread
From: Peter Maydell @ 2021-04-06  9:34 UTC (permalink / raw)
  To: Klaus Jensen
  Cc: Kevin Wolf, Qemu-block, Klaus Jensen, QEMU Developers, Max Reitz,
	Keith Busch

On Mon, 5 Apr 2021 at 18:34, Klaus Jensen <its@irrelevant.dk> wrote:
>
> From: Klaus Jensen <k.jensen@samsung.com>
>
> Hi Peter,
>
> The following changes since commit 25d75c99b2e5941c67049ee776efdb226414f4c6:
>
>   Merge remote-tracking branch 'remotes/xtensa/tags/20210403-xtensa' into staging (2021-04-04 21:48:45 +0100)
>
> are available in the Git repository at:
>
>   git://git.infradead.org/qemu-nvme.git tags/nvme-fixes-for-6.0-pull-request
>
> for you to fetch changes up to 498114b37bc99fddcfc24b92bff7f1323fb32672:
>
>   hw/block/nvme: expose 'bootindex' property (2021-04-05 19:33:04 +0200)
>
> ----------------------------------------------------------------
> emulated nvme fixes
>


Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/6.0
for any user-visible changes.

-- PMM


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-04-06  9:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-05 17:34 [PULL for-6.0 0/2] emulated nvme fixes Klaus Jensen
2021-04-05 17:34 ` [PULL for-6.0 1/2] hw/block/nvme: remove description for zoned.append_size_limit Klaus Jensen
2021-04-05 17:34 ` [PULL for-6.0 2/2] hw/block/nvme: expose 'bootindex' property Klaus Jensen
2021-04-06  9:34 ` [PULL for-6.0 0/2] emulated nvme fixes Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).