linux/drivers/dma/ioat
Dan Williams 5d48b9b5d8 ioatdma: fix sed pool selection
The array to lookup the sed pool based on the number of sources
(pq16_idx_to_sedi) is 16 entries and expects a max source index.
However, we pass the total source count which runs off the end of the
array when src_cnt == 16.  The minimal fix is to just pass src_cnt-1,
but given we know the source count is > 8 we can just calculate the sed
pool by (src_cnt - 2) >> 3.

Cc: Dave Jiang <dave.jiang@intel.com>
Cc: <stable@vger.kernel.org>
Acked-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2013-11-14 11:04:41 -08:00
..
dca.c ioat/dca: Update DCA BIOS workarounds to use TAINT_FIRMWARE_WORKAROUND 2013-03-22 12:55:38 -04:00
dma_v2.c dmaengine: remove DMA unmap from drivers 2013-11-14 11:04:38 -08:00
dma_v2.h drivers/dma: remove unused support for MEMSET operations 2013-07-03 16:07:42 -07:00
dma_v3.c ioatdma: fix sed pool selection 2013-11-14 11:04:41 -08:00
dma.c dmaengine: remove DMA unmap flags 2013-11-14 11:04:38 -08:00
dma.h dmaengine: remove DMA unmap from drivers 2013-11-14 11:04:38 -08:00
hw.h drivers/dma: remove unused support for MEMSET operations 2013-07-03 16:07:42 -07:00
Makefile drivers/dma/ioat: Use the ccflag-y instead of EXTRA_CFLAGS 2010-12-04 15:03:06 -08:00
pci.c ioatdma: Adding support for 16 src PQ ops and super extended descriptors 2013-04-15 22:46:15 +05:30
registers.h ioatdma: Adding write back descriptor error status support for ioatdma 3.3 2013-04-15 22:46:15 +05:30