]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: check the PRINFO bit before deciding the host buffer length
authorRevanth Rajashekar <revanth.rajashekar@intel.com>
Fri, 15 Jan 2021 01:55:07 +0000 (18:55 -0700)
committerChristoph Hellwig <hch@lst.de>
Mon, 18 Jan 2021 17:58:16 +0000 (18:58 +0100)
commit45b4b209e5e1b52892ee415ccc22ad420c2e8a60
tree47a2beda78c68f825156da3a1970ab0a5a0d19a7
parent7524314602e07d715e4c1671f8f94320c01f4963
nvme: check the PRINFO bit before deciding the host buffer length

According to NVMe spec v1.4, section 8.3.1, the PRINFO bit and
the metadata size play a vital role in deteriming the host buffer size.

If PRIFNO bit is set and MS==8, the host doesn't add the metadata buffer,
instead the controller adds it.

Signed-off-by: Revanth Rajashekar <revanth.rajashekar@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c