]> www.infradead.org Git - users/jedix/linux-maple.git/commit
NVMe: reverse IO direction for VUC command code F7
authorAshok Vairavan <ashok.vairavan@oracle.com>
Fri, 9 Dec 2016 21:39:59 +0000 (13:39 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 20 Jan 2017 08:20:44 +0000 (00:20 -0800)
commita9ddbd6640c88276b8cc8bea5201bf45df7ab71e
tree0de96d630d7bfcfb3a0446c1f56608d024e1a93b
parentddedbbc79288885adb4c5f1e410472ee1017cde4
NVMe: reverse IO direction for VUC command code F7

Orabug: 25258071

Samsung uses D2H command with Vendor Uniq Command (VUC) code F7
(the 0th bit of which is 1) for retrieving memory dump. In UEK4,
Bit 0 of the D2H command code has to be 0. Because of this voilation,
the nvmecli is unable to do crash and memory dumps in UEK4.

As the Samsung firmware can only understand VUC command code F7,
the IO direction is reversed for this vendor command code to
retrieve memory and crash dump.

Signed-off-by: Ashok Vairavan <ashok.vairavan@oracle.com>
drivers/nvme/host/pci.c