]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dmaengine: idxd: drain ATS translations when disabling WQ
authorNikhil Rao <nikhil.rao@intel.com>
Wed, 1 Oct 2025 01:22:26 +0000 (18:22 -0700)
committerVinod Koul <vkoul@kernel.org>
Thu, 16 Oct 2025 12:13:35 +0000 (17:43 +0530)
commitf80ea8566917c4bb680911db839a170873e5d17c
tree4597177600d5e725a0c0dedca35c38a8dc1990cd
parentbc2c39600212979b6fc836113bde1b707c02f442
dmaengine: idxd: drain ATS translations when disabling WQ

There's an errata[1], for the Disable WQ command that it
does not guaranteee that address translations are drained. If WQ
configuration is updated, pending address translations can use an
updated WQ configuration, resulting an invalid translation response
that is cached in the device translation cache.

Replace the Disable WQ command with a Drain WQ command followed by a
Reset WQ command, this guarantees that all ATS translations are
drained from the device before changing WQ configuration.

[1] https://cdrdv2.intel.com/v1/dl/getcontent/843306 ("Intel DSA May
Cause Invalid Translation Caching")

Signed-off-by: Nikhil Rao <nikhil.rao@intel.com>
Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/device.c