nouveau: fix the comment and debug message for PCIGART size

main
Stephane Marchesin 2007-08-06 17:42:31 +02:00
parent 03c0490129
commit 76337bdb19
1 changed files with 3 additions and 3 deletions

View File

@ -439,11 +439,11 @@ int nouveau_mem_init(struct drm_device *dev)
struct drm_scatter_gather sgreq; struct drm_scatter_gather sgreq;
DRM_DEBUG("Allocating sg memory for PCI DMA\n"); DRM_DEBUG("Allocating sg memory for PCI DMA\n");
sgreq.size = 16 << 20; //4MB of PCI scatter-gather zone sgreq.size = 16 << 20; //16MB of PCI scatter-gather zone
if (drm_sg_alloc(dev, &sgreq)) { if (drm_sg_alloc(dev, &sgreq)) {
DRM_ERROR("Unable to allocate 4MB of scatter-gather" DRM_ERROR("Unable to allocate %dMB of scatter-gather"
" pages for PCI DMA!"); " pages for PCI DMA!",sgreq.size>>20);
} else { } else {
if (nouveau_mem_init_heap(&dev_priv->pci_heap, 0, if (nouveau_mem_init_heap(&dev_priv->pci_heap, 0,
dev->sg->pages * PAGE_SIZE)) { dev->sg->pages * PAGE_SIZE)) {