Skip to content

Commit eceec44

Browse files
davejiangVinod Koul
authored andcommitted
ioatdma: skip silicon bug workaround for pq_align for cb3.3
The alignment workaround is only necessary for cb3.2 or earlier platforms. Signed-off-by: Dave Jiang <dave.jiang@intel.com> Acked-by: Dan Williams <djbw@fb.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
1 parent 3f09ede commit eceec44

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

‎drivers/dma/ioat/dma_v3.c‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1521,10 +1521,14 @@ int ioat3_dma_probe(struct ioatdma_device *device, int dca)
15211521
dma_cap_set(DMA_XOR_VAL, dma->cap_mask);
15221522
dma->device_prep_dma_xor_val = ioat3_prep_xor_val;
15231523
}
1524+
15241525
if (cap & IOAT_CAP_PQ) {
15251526
is_raid_device = true;
15261527
dma_set_maxpq(dma, 8, 0);
1527-
dma->pq_align = 6;
1528+
if (is_xeon_cb32(pdev))
1529+
dma->pq_align = 6;
1530+
else
1531+
dma->pq_align = 0;
15281532

15291533
dma_cap_set(DMA_PQ, dma->cap_mask);
15301534
dma->device_prep_dma_pq = ioat3_prep_pq;
@@ -1534,7 +1538,10 @@ int ioat3_dma_probe(struct ioatdma_device *device, int dca)
15341538

15351539
if (!(cap & IOAT_CAP_XOR)) {
15361540
dma->max_xor = 8;
1537-
dma->xor_align = 6;
1541+
if (is_xeon_cb32(pdev))
1542+
dma->xor_align = 6;
1543+
else
1544+
dma->xor_align = 0;
15381545

15391546
dma_cap_set(DMA_XOR, dma->cap_mask);
15401547
dma->device_prep_dma_xor = ioat3_prep_pqxor;
@@ -1543,6 +1550,7 @@ int ioat3_dma_probe(struct ioatdma_device *device, int dca)
15431550
dma->device_prep_dma_xor_val = ioat3_prep_pqxor_val;
15441551
}
15451552
}
1553+
15461554
if (is_raid_device && (cap & IOAT_CAP_FILL_BLOCK)) {
15471555
dma_cap_set(DMA_MEMSET, dma->cap_mask);
15481556
dma->device_prep_dma_memset = ioat3_prep_memset_lock;

0 commit comments

Comments
 (0)