]> git.hungrycats.org Git - linux/commit
dmaengine: idxd: Expose ATS disable knob only when WQ ATS is supported
authorFenghua Yu <fenghua.yu@intel.com>
Wed, 12 Jul 2023 17:44:36 +0000 (10:44 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Sep 2023 07:48:36 +0000 (09:48 +0200)
commite5d80eb3764cdce1e3fa5372637d65e035d94577
tree259df2ff945bf660ae20d8867112674159aff3be
parent8f5137564c7a5857b761ce96302cb70fbb1cad7a
dmaengine: idxd: Expose ATS disable knob only when WQ ATS is supported

[ Upstream commit 62b41b656666d2d35890124df5ef0881fe6d6769 ]

WQ Advanced Translation Service (ATS) can be controlled only when
WQ ATS is supported. The sysfs ATS disable knob should be visible only
when the features is supported.

Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20230712174436.3435088-2-fenghua.yu@intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Stable-dep-of: 0056a7f07b0a ("dmaengine: idxd: Allow ATS disable update only for configurable devices")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/dma/idxd/sysfs.c