Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 168857
b: refs/heads/master
c: 228c4f5
h: refs/heads/master
i:
  168855: 00d17ce
v: v3
  • Loading branch information
Dan Williams committed Nov 20, 2009
1 parent b220f75 commit 2e6c7d9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e22dde9904c2d26a522f1a2b89854a8238bf0933
refs/heads/master: 228c4f5cfbf1cda411d9aa7204a612a63c89b1e8
2 changes: 1 addition & 1 deletion trunk/drivers/dma/ioat/dca.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ static int dca_enabled_in_bios(struct pci_dev *pdev)
return res;
}

static int system_has_dca_enabled(struct pci_dev *pdev)
int system_has_dca_enabled(struct pci_dev *pdev)
{
if (boot_cpu_has(X86_FEATURE_DCA))
return dca_enabled_in_bios(pdev);
Expand Down
6 changes: 6 additions & 0 deletions trunk/drivers/dma/ioat/dma_v3.c
Original file line number Diff line number Diff line change
Expand Up @@ -1117,6 +1117,7 @@ static int __devinit ioat3_dma_self_test(struct ioatdma_device *device)
int __devinit ioat3_dma_probe(struct ioatdma_device *device, int dca)
{
struct pci_dev *pdev = device->pdev;
int dca_en = system_has_dca_enabled(pdev);
struct dma_device *dma;
struct dma_chan *c;
struct ioat_chan_common *chan;
Expand All @@ -1137,6 +1138,11 @@ int __devinit ioat3_dma_probe(struct ioatdma_device *device, int dca)
dma->device_prep_dma_interrupt = ioat3_prep_interrupt_lock;

cap = readl(device->reg_base + IOAT_DMA_CAP_OFFSET);

/* dca is incompatible with raid operations */
if (dca_en && (cap & (IOAT_CAP_XOR|IOAT_CAP_PQ)))
cap &= ~(IOAT_CAP_XOR|IOAT_CAP_PQ);

if (cap & IOAT_CAP_XOR) {
is_raid_device = true;
dma->max_xor = 8;
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/dma/ioat/hw.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
#define IOAT_VER_3_0 0x30 /* Version 3.0 */
#define IOAT_VER_3_2 0x32 /* Version 3.2 */

int system_has_dca_enabled(struct pci_dev *pdev);

struct ioat_dma_descriptor {
uint32_t size;
union {
Expand Down

0 comments on commit 2e6c7d9

Please sign in to comment.