OpenCloudOS-Kernel/drivers/dma/idxd
Fengqian Gao 0b8c97a1d8 dmaengine: idxd: fix RO device state error after been disabled/reset
When IDXD is not configurable, that means its WQ, engine, and group
configurations cannot be changed. But it can be disabled and its state
should be set as disabled regardless it's configurable or not.

Fix this by setting device state IDXD_DEV_DISABLED for read-only device
as well in idxd_device_clear_state().

Fixes: cf4ac3fef3 ("dmaengine: idxd: fix lockdep warning on device driver removal")
Signed-off-by: Fengqian Gao <fengqian.gao@intel.com>
Reviewed-by: Xiaochen Shen <xiaochen.shen@intel.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Fenghua Yu <fenghua.yu@intel.com>
Link: https://lore.kernel.org/r/20220930032835.2290-1-fengqian.gao@intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2022-11-08 10:43:56 +05:30
..
Makefile dmaengine: idxd: move dsa_drv support to compatible mode 2021-07-21 10:09:16 +05:30
bus.c Bus: Make remove callback return void tag 2021-07-27 19:12:14 +05:30
cdev.c dmaengine: idxd: Do not enable user type Work Queue without Shared Virtual Addressing 2022-10-19 19:02:10 +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 RO device state error after been disabled/reset 2022-11-08 10:43:56 +05:30
dma.c dmaengine: idxd: add missing callback function to support DMA_INTERRUPT 2022-05-16 23:18:21 +05:30
idxd.h dmaengine: idxd: Fix max batch size for Intel IAA 2022-11-08 10:43:55 +05:30
init.c dmaengine: idxd: Fix max batch size for Intel IAA 2022-11-08 10:43:55 +05:30
irq.c dmaengine: idxd: Remove unused struct idxd_fault 2022-09-29 13:11:33 +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 configuration for concurrent batch descriptor processing 2022-09-29 22:46:08 +05:30
submit.c dmaengine: idxd: fix retry value to be constant for duration of function call 2022-04-20 17:24:42 +05:30
sysfs.c dmaengine: idxd: Fix max batch size for Intel IAA 2022-11-08 10:43:55 +05:30