raw/ioat: fix work-queue config size
authorBruce Richardson <bruce.richardson@intel.com>
Wed, 28 Oct 2020 12:45:34 +0000 (12:45 +0000)
committerDavid Marchand <david.marchand@redhat.com>
Fri, 30 Oct 2020 15:01:45 +0000 (16:01 +0100)
commita339694621359f4f4e5832cf6d7e7764172b7705
treed56518d4a29bad59ee5d5f6ffdc77787bc18abeb
parent4e3b2d4c76e6249e44b92ffa7c62c031eb23af81
raw/ioat: fix work-queue config size

According to latest DSA spec[1], the work-queue config register size
should be based off a value read from the WQ capabilities register.
Update driver to read this value and base the start of each WQ config
off that value.

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

Fixes: ff06fa2cf3ba ("raw/ioat: probe idxd PCI")

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Tested-by: Kevin Laatz <kevin.laatz@intel.com>
drivers/raw/ioat/idxd_pci.c
drivers/raw/ioat/ioat_private.h
drivers/raw/ioat/ioat_spec.h