
16 Oct
2019
16 Oct
'19
12:14 p.m.
On Wed, Oct 16, 2019 at 2:42 PM Patrick Wildt patrick@blueri.se wrote:
Change the stack-allocated buffer for the identification command to explicitly allocate page-aligned buffers. Even though the spec seems to allow having admin queue commands on non page-aligned buffers, it seems to not be possible on my i.MX8MQ board with a a Silicon Power P34A80. Since all of the NVMe drivers I have seen always do admin commands on a page-aligned buffer, which does work on my system, it makes sense for us to do that as well.
Signed-off-by: Patrick Wildt patrick@blueri.se
Changes for v2:
- use dev->page_size instead of hardcoded value
drivers/nvme/nvme.c | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-)
Reviewed-by: Bin Meng bmeng.cn@gmail.com