Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 371571
b: refs/heads/master
c: fffeba2
h: refs/heads/master
i:
  371569: 88a0c20
  371567: cdefab5
v: v3
  • Loading branch information
Ben Skeggs committed Apr 26, 2013
1 parent 820ea19 commit 3ca78ce
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c5bd028baae4b738075f16d00f9f857eb439cd93
refs/heads/master: fffeba2a21a8ad6276066898108c94fe84e3a842
17 changes: 9 additions & 8 deletions trunk/drivers/gpu/drm/nouveau/core/subdev/fb/nvc0.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ nvc0_fb_init(struct nouveau_object *object)
if (ret)
return ret;

nv_wr32(priv, 0x100c10, priv->r100c10 >> 8);
if (priv->r100c10_page)
nv_wr32(priv, 0x100c10, priv->r100c10 >> 8);
return 0;
}

Expand Down Expand Up @@ -217,13 +218,13 @@ nvc0_fb_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
priv->base.ram.put = nv50_fb_vram_del;

priv->r100c10_page = alloc_page(GFP_KERNEL | __GFP_ZERO);
if (!priv->r100c10_page)
return -ENOMEM;

priv->r100c10 = pci_map_page(device->pdev, priv->r100c10_page, 0,
PAGE_SIZE, PCI_DMA_BIDIRECTIONAL);
if (pci_dma_mapping_error(device->pdev, priv->r100c10))
return -EFAULT;
if (priv->r100c10_page) {
priv->r100c10 = pci_map_page(device->pdev, priv->r100c10_page,
0, PAGE_SIZE,
PCI_DMA_BIDIRECTIONAL);
if (pci_dma_mapping_error(device->pdev, priv->r100c10))
return -EFAULT;
}

return nouveau_fb_preinit(&priv->base);
}
Expand Down

0 comments on commit 3ca78ce

Please sign in to comment.