Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 349695
b: refs/heads/master
c: 526810a
h: refs/heads/master
i:
  349693: 2bfec32
  349691: aa76eda
  349687: 57a7922
  349679: 00d9833
  349663: 23c84be
  349631: 1dc92fb
  349567: f1ecf23
  349439: 3142730
  349183: 07a3f5b
v: v3
  • Loading branch information
Roy Spliet authored and Ben Skeggs committed Jan 31, 2013
1 parent 5e75bee commit 613abe4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 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: 1e98380cbd3894de2b3c1ea182d62e946555f7d0
refs/heads/master: 526810adb93554e17bdb83023a01cfa8758960b2
4 changes: 2 additions & 2 deletions trunk/drivers/gpu/drm/nouveau/core/subdev/fb/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ nouveau_fb_preinit(struct nouveau_fb *pfb)
return ret;
}

if (!nouveau_mm_initialised(&pfb->tags) && tags) {
ret = nouveau_mm_init(&pfb->tags, 0, ++tags, 1);
if (!nouveau_mm_initialised(&pfb->tags)) {
ret = nouveau_mm_init(&pfb->tags, 0, tags ? ++tags : 0, 1);
if (ret)
return ret;
}
Expand Down
5 changes: 3 additions & 2 deletions trunk/drivers/gpu/drm/nouveau/core/subdev/fb/nv50.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ nv50_fb_vram_init(struct nouveau_fb *pfb)
struct nouveau_bios *bios = nouveau_bios(device);
const u32 rsvd_head = ( 256 * 1024) >> 12; /* vga memory */
const u32 rsvd_tail = (1024 * 1024) >> 12; /* vbios etc */
u32 size;
u32 size, tags = 0;
int ret;

pfb->ram.size = nv_rd32(pfb, 0x10020c);
Expand Down Expand Up @@ -140,10 +140,11 @@ nv50_fb_vram_init(struct nouveau_fb *pfb)
return ret;

pfb->ram.ranks = (nv_rd32(pfb, 0x100200) & 0x4) ? 2 : 1;
tags = nv_rd32(pfb, 0x100320);
break;
}

return nv_rd32(pfb, 0x100320);
return tags;
}

static int
Expand Down

0 comments on commit 613abe4

Please sign in to comment.