]> git.baikalelectronics.ru Git - kernel.git/commit
drm: ati_pcigart: Need to use PCI_DMA_BIDIRECTIONAL.
authorDavid Miller <davem@davemloft.net>
Thu, 12 Feb 2009 10:15:34 +0000 (02:15 -0800)
committerDave Airlie <airlied@redhat.com>
Fri, 13 Mar 2009 04:24:00 +0000 (14:24 +1000)
commitf9283bc3dc544d9f18cdcb31f819f5b12f75a28a
tree35d729262bc42162d031da22bb830c8d6c1ef43c
parent42fde9fc97a3dddb1531048e413602e32bf99965
drm: ati_pcigart: Need to use PCI_DMA_BIDIRECTIONAL.

The buffers mapped by the PCI GART can be written to by the device,
not just read.

For example, this happens via the RB_RPTR writeback on Radeon.

So we can't use PCI_DMA_TODEVICE else we'll get protection faults
on IOMMU platforms.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/gpu/drm/ati_pcigart.c