]> git.dujemihanovic.xyz Git - u-boot.git/commit
nvme: use page-aligned buffer for identify command
authorPatrick Wildt <patrick@blueri.se>
Wed, 16 Oct 2019 06:42:04 +0000 (08:42 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 31 Oct 2019 11:22:53 +0000 (07:22 -0400)
commit2f83481dff9c4f253a6ac341911d78d4984ca07b
treeb87b5f33df1251608410c57b54e4a1235dc7447a
parent8c403402ca691c967516481b6bc2c879d683a73d
nvme: use page-aligned buffer for identify command

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>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/nvme/nvme.c