dmaengine: idxd: cleanup completion record allocation
authorDave Jiang <dave.jiang@intel.com>
Mon, 25 Oct 2021 14:59:49 +0000 (07:59 -0700)
committerVinod Koul <vkoul@kernel.org>
Thu, 28 Oct 2021 17:24:44 +0000 (22:54 +0530)
commit2efe58cfaad4ad94eab888d287c174de5209a0c2
tree4b2594606b41514ab26342e05dbc025549be8465
parent1825ecc908d4e77735a993a72406e04e9dfbe5eb
dmaengine: idxd: cleanup completion record allocation

According to core-api/dma-api-howto.rst, the address from
dma_alloc_coherent is gauranteed to align to the smallest PAGE_SIZE order.
That supercedes the 64B/32B alignment requirement of the completion record.
Remove alignment adjustment code.

Tested-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/163517396063.3484297.7494385225280705372.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/device.c
drivers/dma/idxd/idxd.h