]> www.infradead.org Git - users/jedix/linux-maple.git/commit
NVMe: use split lo_hi_{read,write}q
authorStephan Günther <guenther@tum.de>
Sun, 8 Nov 2015 01:07:02 +0000 (18:07 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 6 Jul 2016 23:32:04 +0000 (16:32 -0700)
commitd0c8b3d150df8176094808aa45d69ec6e483bc8f
tree78b8db5418a9a09fb3f3e2647d3050edbb221cf5
parentceae885f9db9dd10ca0de5219e08dda6a340d945
NVMe: use split lo_hi_{read,write}q

Some controllers may require ordered split transfers even on 64bit
machines, e.g. Apple's NVMe controller as found in the MacBook8,1 and
MacBookAir7,1 (256/512GB models).

This patch enforces ordered split transfers on 64bit platforms, which
works around that issue for all controllers. As pointed out by Christoph
[1] there should be no performance impact due to that modification.

[1] http://lists.infradead.org/pipermail/linux-nvme/2015-November/002965.html

Signed-off-by: Stephan Guenther <guenther@tum.de>
Signed-off-by: Maurice Leclaire <leclaire@in.tum.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Updated by me to explicitly use lo_hi_read/writeq instead of playing
define tricks.

Signed-off-by: Jens Axboe <axboe@fb.com>
(cherry picked from commit a310acd7a7ea53533886c11bb7edd11ffd61a036)

Orabug: 22620486
Signed-off-by: Jason Luo <zhangqing.luo@oracle.com>
drivers/nvme/host/pci.c