]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-pci: clear shadow doorbell memory on resets
authorKeith Busch <kbusch@kernel.org>
Thu, 14 Oct 2021 16:45:42 +0000 (09:45 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 20 Oct 2021 17:23:29 +0000 (19:23 +0200)
commit8797003fadabec33fa1334487492114a808586bd
tree99d693288812f084c2cd71ff1226b873962b800d
parent2b146a11150b734eade39a8d517289d1535ec376
nvme-pci: clear shadow doorbell memory on resets

The host memory doorbell and event buffers need to be initialized on
each reset so the driver doesn't observe stale values from the previous
instantiation.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Tested-by: John Levon <john.levon@nutanix.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/pci.c