diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-11-23 21:19:44 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-11-23 21:19:44 +0000 |
commit | 4f825d96668fa96dcf469957b5a0bf14e02a8d09 (patch) | |
tree | 208c735ef6cd50833b69af9b769f45522db0f336 /sys/dev/pci/drm/i915_dma.c | |
parent | 62aebd64581a11f2c5857326e0d46370b52e1685 (diff) |
Pad the ringbuffer with NOOPs before wrapping around, instead of
wrapping our commands over.
The documentation says that wrap must not happen in the middle of
commands. and upstream have seen some odd bugs that may be attributed to
this.
Based on a diff by Chris Wilson (ickle) from Intel to the linux driver.
Diffstat (limited to 'sys/dev/pci/drm/i915_dma.c')
-rw-r--r-- | sys/dev/pci/drm/i915_dma.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/i915_dma.c b/sys/dev/pci/drm/i915_dma.c index bf6694256f0..4e79f63ea4e 100644 --- a/sys/dev/pci/drm/i915_dma.c +++ b/sys/dev/pci/drm/i915_dma.c @@ -117,7 +117,6 @@ static int i915_initialize(struct drm_device * dev, drm_i915_init_t * init) } dev_priv->ring.size = init->ring_size; - dev_priv->ring.tail_mask = dev_priv->ring.size - 1; if ((ret = bus_space_map(dev_priv->bst, init->ring_start, init->ring_size, 0, &dev_priv->ring.bsh)) != 0) { |