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)
committerVinod Koul <vkoul@kernel.org>
Wed, 28 Dec 2022 07:00:50 +0000 (12:30 +0530)
commit9735bde36487da43d3c3fc910df49639f72decbf
tree981096770707936e6f87ef4cdeeeadf0213dc51d
parent5840c8915a2f2becd760ba3a700ee7832d13c53f
dmaengine: idxd: Set traffic class values in GRPCFG on DSA 2.0

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: ea7c8f598c32 ("dmaengine: idxd: restore traffic class defaults after wq reset")
Fixes: ade8a86b512c ("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>
drivers/dma/idxd/device.c
drivers/dma/idxd/init.c
drivers/dma/idxd/sysfs.c