]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: idxd: clear MSIX permission entry on shutdown
authorDave Jiang <dave.jiang@intel.com>
Mon, 12 Apr 2021 16:23:27 +0000 (09:23 -0700)
committerVinod Koul <vkoul@kernel.org>
Mon, 12 Apr 2021 16:38:38 +0000 (22:08 +0530)
commitba38ef51c8b6948dfca0280037a2ac70112b43a0
tree59331fb108b9e335d47fd9f42e152d7d2109cf81
parentc1181736189da4176fec2a60cb1c84774505dfa8
dmaengine: idxd: clear MSIX permission entry on shutdown

Add disabling/clearing of MSIX permission entries on device shutdown to
mirror the enabling of the MSIX entries on probe. Current code left the
MSIX enabled and the pasid entries still programmed at device shutdown.

Fixes: 29c01b2a5089 ("dmaengine: idxd: Add shared workqueue support")
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/161824457969.882533.6020239898682672311.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/device.c
drivers/dma/idxd/idxd.h
drivers/dma/idxd/init.c