]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: idxd: fix wq config registers offset programming
authorDave Jiang <dave.jiang@intel.com>
Tue, 27 Oct 2020 21:34:09 +0000 (14:34 -0700)
committerVinod Koul <vkoul@kernel.org>
Wed, 28 Oct 2020 05:32:41 +0000 (11:02 +0530)
commit4d6442bd8f1b4d336f63f96b9401e279cb16abc0
treeeb6dbed5e736cacda803600d6e2a519e517615b9
parent68ed2672b8fdb9454c449f573990714135c93adc
dmaengine: idxd: fix wq config registers offset programming

DSA spec v1.1 [1] updated to include a stride size register for WQ
configuration that will specify how much space is reserved for the WQ
configuration register set. This change is expected to be in the final
gen1 DSA hardware. Fix the driver to use WQCFG_OFFSET() for all WQ
offset calculation and fixup WQCFG_OFFSET() to use the new calculated
wq size.

[1]: https://software.intel.com/content/www/us/en/develop/download/intel-data-streaming-accelerator-preliminary-architecture-specification.html

Fixes: 07fcafdc163e ("dmaengine: idxd: Init and probe for Intel data accelerators")
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/160383444959.48058.14249265538404901781.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/device.c
drivers/dma/idxd/idxd.h
drivers/dma/idxd/init.c
drivers/dma/idxd/registers.h