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)
commit58847f12fe7823c56f844218abcca6920901097d
tree99d693288812f084c2cd71ff1226b873962b800d
parent09748122009aed7bfaa7acc33c10c083a4758322
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