aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_mem.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_mem.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_mem.c b/drivers/gpu/drm/nouveau/nouveau_mem.c
index 36bec4807701..c3a5745e9c79 100644
--- a/drivers/gpu/drm/nouveau/nouveau_mem.c
+++ b/drivers/gpu/drm/nouveau/nouveau_mem.c
@@ -407,6 +407,12 @@ nouveau_mem_vram_init(struct drm_device *dev)
407 ret = pci_set_dma_mask(dev->pdev, DMA_BIT_MASK(dma_bits)); 407 ret = pci_set_dma_mask(dev->pdev, DMA_BIT_MASK(dma_bits));
408 if (ret) 408 if (ret)
409 return ret; 409 return ret;
410 ret = pci_set_consistent_dma_mask(dev->pdev, DMA_BIT_MASK(dma_bits));
411 if (ret) {
412 /* Reset to default value. */
413 pci_set_consistent_dma_mask(dev->pdev, DMA_BIT_MASK(32));
414 }
415
410 416
411 ret = nouveau_ttm_global_init(dev_priv); 417 ret = nouveau_ttm_global_init(dev_priv);
412 if (ret) 418 if (ret)
@@ -638,10 +644,10 @@ nouveau_mem_timing_init(struct drm_device *dev)
638 return; 644 return;
639 645
640 if (P.version == 1) 646 if (P.version == 1)
641 hdr = (struct nouveau_pm_tbl_header *) ROMPTR(bios, P.data[4]); 647 hdr = (struct nouveau_pm_tbl_header *) ROMPTR(dev, P.data[4]);
642 else 648 else
643 if (P.version == 2) 649 if (P.version == 2)
644 hdr = (struct nouveau_pm_tbl_header *) ROMPTR(bios, P.data[8]); 650 hdr = (struct nouveau_pm_tbl_header *) ROMPTR(dev, P.data[8]);
645 else { 651 else {
646 NV_WARN(dev, "unknown mem for BIT P %d\n", P.version); 652 NV_WARN(dev, "unknown mem for BIT P %d\n", P.version);
647 } 653 }