[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/2] block/nvme: Properly display doorbell stride length in t
From: |
Klaus Jensen |
Subject: |
Re: [PATCH 1/2] block/nvme: Properly display doorbell stride length in trace event |
Date: |
Wed, 27 Jan 2021 22:30:01 +0100 |
On Jan 27 22:21, Philippe Mathieu-Daudé wrote:
> Commit 15b2260bef3 ("block/nvme: Trace controller capabilities")
> misunderstood the doorbell stride value from the datasheet, use
> the correct one. The 'doorbell_scale' variable used few lines
> later is correct.
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Klaus Jensen <k.jensen@samsung.com>
> ---
> block/nvme.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/block/nvme.c b/block/nvme.c
> index 5a6fbacf4a5..80c4318d8fc 100644
> --- a/block/nvme.c
> +++ b/block/nvme.c
> @@ -745,7 +745,7 @@ static int nvme_init(BlockDriverState *bs, const char
> *device, int namespace,
> trace_nvme_controller_capability("Contiguous Queues Required",
> NVME_CAP_CQR(cap));
> trace_nvme_controller_capability("Doorbell Stride",
> - 2 << (2 + NVME_CAP_DSTRD(cap)));
> + 1 << (2 + NVME_CAP_DSTRD(cap)));
> trace_nvme_controller_capability("Subsystem Reset Supported",
> NVME_CAP_NSSRS(cap));
> trace_nvme_controller_capability("Memory Page Size Minimum",
> --
> 2.26.2
>
>
--
One of us - No more doubt, silence or taboo about mental illness.
signature.asc
Description: PGP signature