Re: [PATCH-for-5.2] block/nvme: Fix nvme_submit_command() on big-endian host

2020-10-28 Thread Stefan Hajnoczi
On Tue, Oct 27, 2020 at 05:04:07PM +0100, Philippe Mathieu-Daudé wrote: > The Completion Queue Command Identifier is a 16-bit value, > so nvme_submit_command() is unlikely to work on big-endian > hosts, as the relevant bits are truncated. > > The "Completion Queue Entry: DW 2" describes it as: >

[PATCH-for-5.2] block/nvme: Fix nvme_submit_command() on big-endian host

2020-10-27 Thread Philippe Mathieu-Daudé
The Completion Queue Command Identifier is a 16-bit value, so nvme_submit_command() is unlikely to work on big-endian hosts, as the relevant bits are truncated. The "Completion Queue Entry: DW 2" describes it as: This identifier is assigned by host software when the command is submitted to th