linux-stable/drivers/dma/idxd
Fenghua Yu bfcf280533 dmaengine: idxd: Fix issues with PRS disable sysfs knob
[ Upstream commit 8cae665743 ]

There are two issues in the current PRS disable sysfs store function
wq_prs_disable_store():

1. Since PRS disable knob is invisible if PRS disable is not supported
   in WQ, it's redundant to check PRS support again in the store function
   again. Remove the redundant PRS support check.
2. Since PRS disable is read-only when the device is not configurable,
   PRS disable cannot be changed on the device. Add device configurable
   check in the store function.

Fixes: f2dc327131 ("dmaengine: idxd: add per wq PRS disable")
Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20230811012635.535413-2-fenghua.yu@intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-13 09:48:36 +02:00
..
bus.c Bus: Make remove callback return void tag 2021-07-27 19:12:14 +05:30
cdev.c dmaengine: idxd: Fix passing freed memory in idxd_cdev_open() 2023-05-17 12:15:09 +05:30
compat.c dmaengine: idxd: use const struct bus_type * 2023-03-23 13:21:42 +01:00
debugfs.c dmanegine: idxd: add debugfs for event log dump 2023-04-12 23:18:45 +05:30
device.c dmaengine: idxd: Clear PRS disable flag when disabling IDXD device 2023-08-16 18:32:28 +02:00
dma.c dmaengine: idxd: Remove the unused function set_completion_address() 2022-12-28 12:29:06 +05:30
idxd.h dmaengine updates for v6.4 2023-05-03 11:11:56 -07:00
init.c dmaengine updates for v6.4 2023-05-03 11:11:56 -07:00
irq.c dmaengine updates for v6.4 2023-05-03 11:11:56 -07:00
Makefile dmanegine: idxd: add debugfs for event log dump 2023-04-12 23:18:45 +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 per wq PRS disable 2023-04-12 23:18:46 +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 issues with PRS disable sysfs knob 2023-09-13 09:48:36 +02:00