dmaengine: idxd: rotate portal address for better performance
authorDave Jiang <dave.jiang@intel.com>
Tue, 20 Jul 2021 20:42:04 +0000 (13:42 -0700)
committerVinod Koul <vkoul@kernel.org>
Wed, 28 Jul 2021 12:25:40 +0000 (17:55 +0530)
commita9c171527a3403cae6c1907744b1bc9ca301f912
treeebd6d0900995c21d96fd6a18f9215746bedf3a33
parent673d812d30be67942762bb9e8548abb26a3ba4a7
dmaengine: idxd: rotate portal address for better performance

The device submission portal is on a 4k page and any of those 64bit aligned
address on the page can be used for descriptor submission. By rotating the
offset through the 4k range and prevent successive writes to the same MMIO
address, performance improvement is observed through testing.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/162681372446.1968485.10634280461681015569.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/submit.c