]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: idxd: Set traffic class values in GRPCFG on DSA 2.0
authorFenghua Yu <fenghua.yu@intel.com>
Fri, 9 Dec 2022 17:21:41 +0000 (09:21 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:28 +0000 (09:33 +0100)
commitf172ae3a9a00d6be2fb755e92c0ad321183998f7
tree7cb164c164aeb99ee30e43f9fece8539e001307d
parent05b16d620691ebede33516f9a208421e8bc3ea3d
dmaengine: idxd: Set traffic class values in GRPCFG on DSA 2.0

[ Upstream commit f5b16da5f897cca5c9ed66d96c0cace271a3c918 ]

On DSA/IAX 1.0, TC-A and TC-B in GRPCFG are set as 1 to have best
performance and cannot be changed through sysfs knobs unless override
option is given.

The same values should be set on DSA 2.0 as well.

Fixes: b7c277231b08 ("dmaengine: idxd: restore traffic class defaults after wq reset")
Fixes: e870921fb80d ("dmaengine: idxd: Set defaults for GRPCFG traffic class")
Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20221209172141.562648-1-fenghua.yu@intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/dma/idxd/device.c
drivers/dma/idxd/init.c
drivers/dma/idxd/sysfs.c