diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-09-08 20:42:57 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-09-08 20:42:57 -0400 |
commit | e61dacaeb3918cd00cd642e8fb0828324ac59819 (patch) | |
tree | 70c4acf1cf33502bdca8da16bd88c0daab2bbc29 /drivers | |
parent | 5669e31c5a4874f1634bc0ffba268a6e2fa0cdd2 (diff) |
ioat3: enable dca for completion writes
Tag completion writes for direct cache access to reduce the latency of
checking for descriptor completions.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/dma/ioat/dma_v3.c | 3 | ||||
-rw-r--r-- | drivers/dma/ioat/registers.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/dma/ioat/dma_v3.c b/drivers/dma/ioat/dma_v3.c index 22af78ec2573..0913d11e09ee 100644 --- a/drivers/dma/ioat/dma_v3.c +++ b/drivers/dma/ioat/dma_v3.c | |||
@@ -167,7 +167,8 @@ static void ioat3_cleanup_tasklet(unsigned long data) | |||
167 | struct ioat2_dma_chan *ioat = (void *) data; | 167 | struct ioat2_dma_chan *ioat = (void *) data; |
168 | 168 | ||
169 | ioat3_cleanup(ioat); | 169 | ioat3_cleanup(ioat); |
170 | writew(IOAT_CHANCTRL_RUN, ioat->base.reg_base + IOAT_CHANCTRL_OFFSET); | 170 | writew(IOAT_CHANCTRL_RUN | IOAT3_CHANCTRL_COMPL_DCA_EN, |
171 | ioat->base.reg_base + IOAT_CHANCTRL_OFFSET); | ||
171 | } | 172 | } |
172 | 173 | ||
173 | static void ioat3_restart_channel(struct ioat2_dma_chan *ioat) | 174 | static void ioat3_restart_channel(struct ioat2_dma_chan *ioat) |
diff --git a/drivers/dma/ioat/registers.h b/drivers/dma/ioat/registers.h index 85d04b8c563c..97d26ea6d72f 100644 --- a/drivers/dma/ioat/registers.h +++ b/drivers/dma/ioat/registers.h | |||
@@ -84,6 +84,7 @@ | |||
84 | /* DMA Channel Registers */ | 84 | /* DMA Channel Registers */ |
85 | #define IOAT_CHANCTRL_OFFSET 0x00 /* 16-bit Channel Control Register */ | 85 | #define IOAT_CHANCTRL_OFFSET 0x00 /* 16-bit Channel Control Register */ |
86 | #define IOAT_CHANCTRL_CHANNEL_PRIORITY_MASK 0xF000 | 86 | #define IOAT_CHANCTRL_CHANNEL_PRIORITY_MASK 0xF000 |
87 | #define IOAT3_CHANCTRL_COMPL_DCA_EN 0x0200 | ||
87 | #define IOAT_CHANCTRL_CHANNEL_IN_USE 0x0100 | 88 | #define IOAT_CHANCTRL_CHANNEL_IN_USE 0x0100 |
88 | #define IOAT_CHANCTRL_DESCRIPTOR_ADDR_SNOOP_CONTROL 0x0020 | 89 | #define IOAT_CHANCTRL_DESCRIPTOR_ADDR_SNOOP_CONTROL 0x0020 |
89 | #define IOAT_CHANCTRL_ERR_INT_EN 0x0010 | 90 | #define IOAT_CHANCTRL_ERR_INT_EN 0x0010 |