nouveau: Make notifiers go into PCI memory

On some hardware notifers in AGP memory just don't work.
main
Pekka Paalanen 2007-10-12 23:43:31 +03:00
parent 9d779e2c88
commit 0d2554f83e
1 changed files with 2 additions and 11 deletions

View File

@ -36,17 +36,8 @@ nouveau_notifier_init_channel(struct nouveau_channel *chan)
struct drm_nouveau_private *dev_priv = dev->dev_private; struct drm_nouveau_private *dev_priv = dev->dev_private;
int flags, ret; int flags, ret;
/*TODO: PCI notifier blocks */ flags = (NOUVEAU_MEM_PCI | NOUVEAU_MEM_MAPPED |
#ifndef __powerpc__ NOUVEAU_MEM_FB_ACCEPTABLE);
if (dev_priv->agp_heap)
flags = NOUVEAU_MEM_AGP;
else
#endif
if (dev_priv->pci_heap)
flags = NOUVEAU_MEM_PCI;
else
flags = NOUVEAU_MEM_FB;
flags |= (NOUVEAU_MEM_MAPPED | NOUVEAU_MEM_FB_ACCEPTABLE);
chan->notifier_block = nouveau_mem_alloc(dev, 0, PAGE_SIZE, flags, chan->notifier_block = nouveau_mem_alloc(dev, 0, PAGE_SIZE, flags,
(struct drm_file *)-2); (struct drm_file *)-2);