]> git.hungrycats.org Git - linux/commit
dmaengine: idxd: Allow ATS disable update only for configurable devices
authorFenghua Yu <fenghua.yu@intel.com>
Fri, 11 Aug 2023 01:26:34 +0000 (18:26 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Sep 2023 07:48:36 +0000 (09:48 +0200)
commitdf212ed77384b55bd15ed0ca1cd28f70868f63f7
treead23190e3e521ea18606ea3fecbbc61b689adb6d
parente5d80eb3764cdce1e3fa5372637d65e035d94577
dmaengine: idxd: Allow ATS disable update only for configurable devices

[ Upstream commit 0056a7f07b0a63e6cee815a789eabba6f3a710f0 ]

ATS disable status in a WQ is read-only if the device is not configurable.
This change ensures that the ATS disable attribute can be modified via
sysfs only on configurable devices.

Fixes: 92de5fa2dc39 ("dmaengine: idxd: add ATS disable knob for work queues")
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-1-fenghua.yu@intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/dma/idxd/sysfs.c