dmaengine: idxd: fix setup sequence for MSIXPERM table
authorDave Jiang <dave.jiang@intel.com>
Thu, 24 Jun 2021 20:43:32 +0000 (13:43 -0700)
committerVinod Koul <vkoul@kernel.org>
Wed, 14 Jul 2021 06:57:28 +0000 (12:27 +0530)
commitd5c10e0fc8645342fe5c9796b00c84ab078cd713
treeb3556e0eb478f7455c873a3d85249ee705ff12ea
parentda435aedb00a4ef61019ff11ae0c08ffb9b1fb18
dmaengine: idxd: fix setup sequence for MSIXPERM table

The MSIX permission table should be programmed BEFORE request_irq()
happens. This prevents any possibility of an interrupt happening before the
MSIX perm table is setup, however slight.

Fixes: 6df0e6c57dfc ("dmaengine: idxd: clear MSIX permission entry on shutdown")
Sign-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/162456741222.1138073.1298447364671237896.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/init.c