Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 950c44b6 authored by Ben Skeggs's avatar Ben Skeggs
Browse files

drm/nvc0/fb: detect presense of second rank



Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent df26bc9c
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -116,6 +116,7 @@ nvc0_vram_init(struct drm_device *dev)
	NV_DEBUG(dev, "parts 0x%08x bcast_mem_amount 0x%08x\n", parts, bsize);
	NV_DEBUG(dev, "parts 0x%08x bcast_mem_amount 0x%08x\n", parts, bsize);


	dev_priv->vram_type = nouveau_mem_vbios_type(dev);
	dev_priv->vram_type = nouveau_mem_vbios_type(dev);
	dev_priv->vram_rank_B = !!(nv_rd32(dev, 0x10f200) & 0x00000004);


	/* read amount of vram attached to each memory controller */
	/* read amount of vram attached to each memory controller */
	part = 0;
	part = 0;