From: "Kwan (Hingkwan) Huen-SSI" <[email protected]>
The numd field of directive receive command takes number of dwords to
transfer. This fix has the correct calculation for numd.
Signed-off-by: Kwan (Hingkwan) Huen-SSI <[email protected]>
---
drivers/nvme/host/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index c49f1f8..95de9a5 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -336,7 +336,7 @@ static int nvme_get_stream_params(struct nvme_ctrl *ctrl,
c.directive.opcode = nvme_admin_directive_recv;
c.directive.nsid = cpu_to_le32(nsid);
- c.directive.numd = cpu_to_le32(sizeof(*s));
+ c.directive.numd = cpu_to_le32((sizeof(*s) >> 2) - 1);
c.directive.doper = NVME_DIR_RCV_ST_OP_PARAM;
c.directive.dtype = NVME_DIR_STREAMS;
--
2.7.4
On 08/09/2017 12:26 PM, [email protected] wrote:
> From: "Kwan (Hingkwan) Huen-SSI" <[email protected]>
>
> The numd field of directive receive command takes number of dwords to
> transfer. This fix has the correct calculation for numd.
Oops, that's my bad.
Reviewed-by: Jens Axboe <[email protected]>
--
Jens Axboe
On Wed, Aug 09, 2017 at 01:23:47PM -0600, Jens Axboe wrote:
> On 08/09/2017 12:26 PM, [email protected] wrote:
> > From: "Kwan (Hingkwan) Huen-SSI" <[email protected]>
> >
> > The numd field of directive receive command takes number of dwords to
> > transfer. This fix has the correct calculation for numd.
>
> Oops, that's my bad.
>
> Reviewed-by: Jens Axboe <[email protected]>
Do you want to take it directly for the block tree?
On Thu, Aug 10, 2017 at 10:36:50AM +0200, Christoph Hellwig wrote:
> Do you want to take it directly for the block tree?
I've actually got a set of nvme 4.13 patches now that I did a sweep
over the list, so I'd be happy to take it. There is one other
I want to merge pending an ok from Keith. With that I could send
you a PR tomorrow, so we could still get it into -rc5.
On 08/10/2017 05:09 AM, Christoph Hellwig wrote:
> On Thu, Aug 10, 2017 at 10:36:50AM +0200, Christoph Hellwig wrote:
>> Do you want to take it directly for the block tree?
>
> I've actually got a set of nvme 4.13 patches now that I did a sweep
> over the list, so I'd be happy to take it. There is one other
> I want to merge pending an ok from Keith. With that I could send
> you a PR tomorrow, so we could still get it into -rc5.
Please do just pick it up, as long as it gets queued up for 4.13.
--
Jens Axboe