linux-stable/drivers/dma/idxd
Dave Jiang dcb7718a80 dmaengine: idxd: fix wq settings post wq disable
commit 0f225705cf upstream.

By the spec, wq size and group association is not changeable unless device
is disabled. Exclude clearing the shadow copy on wq disable/reset. This
allows wq type to be changed after disable to be re-enabled.

Move the size and group association to its own cleanup and only call it
during device disable.

Fixes: 0dcfe41e9a ("dmanegine: idxd: cleanup all device related bits after disabling device")
Reported-by: Lucas Van <lucas.van@intel.com>
Tested-by: Lucas Van <lucas.van@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/163951291732.2987775.13576571320501115257.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-01-27 11:05:23 +01:00
..
bus.c Bus: Make remove callback return void tag 2021-07-27 19:12:14 +05:30
cdev.c dmaengine: idxd: remove interrupt disable for dev_lock 2021-08-29 19:14:20 +05:30
compat.c dmaengine: idxd: Fix a possible NULL pointer dereference 2021-08-02 12:35:10 +05:30
device.c dmaengine: idxd: fix wq settings post wq disable 2022-01-27 11:05:23 +01:00
dma.c dmaengine: idxd: fix resource leak on dmaengine driver disable 2021-11-18 19:17:04 +01:00
idxd.h dmanegine: idxd: add software command status 2021-07-28 17:56:55 +05:30
init.c dmanegine: idxd: fix resource free ordering on driver removal 2021-11-18 19:17:03 +01:00
irq.c dmaengine: idxd: fix calling wq quiesce inside spinlock 2021-12-22 09:32:38 +01:00
Makefile dmaengine: idxd: move dsa_drv support to compatible mode 2021-07-21 10:09:16 +05:30
perfmon.c dmaengine: idxd: Add IDXD performance monitor support 2021-04-25 21:46:12 +05:30
perfmon.h dmaengine: idxd: Add IDXD performance monitor support 2021-04-25 21:46:12 +05:30
registers.h dmaengine: idxd: add halt interrupt support 2021-12-22 09:32:38 +01:00
submit.c dmaengine: idxd: fix missed completion on abort path 2021-12-22 09:32:41 +01:00
sysfs.c dmaengine: idxd: remove interrupt disable for dev_lock 2021-08-29 19:14:20 +05:30