Skip to content

Commit

Permalink
drm/nv50/vram: fix incorrect detection of bank count on newer chipsets
Browse files Browse the repository at this point in the history
NVA3+ has an extra bit here compared to NV50:NVA3 chipsets.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Ben Skeggs committed Nov 9, 2011
1 parent dce411c commit 7b4b98f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/nv50_vram.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ nv50_vram_rblock(struct drm_device *dev)
colbits = (r4 & 0x0000f000) >> 12;
rowbitsa = ((r4 & 0x000f0000) >> 16) + 8;
rowbitsb = ((r4 & 0x00f00000) >> 20) + 8;
banks = ((r4 & 0x01000000) ? 8 : 4);
banks = 1 << (((r4 & 0x03000000) >> 24) + 2);

rowsize = parts * banks * (1 << colbits) * 8;
predicted = rowsize << rowbitsa;
Expand Down

0 comments on commit 7b4b98f

Please sign in to comment.