From: Francisco Jerez Date: Thu, 5 Aug 2010 20:58:42 +0000 (+0200) Subject: drm/nv04: Fix up SGRAM density detection. X-Git-Tag: MMI-PSA29.97-13-9~22407^2~4^2~25 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0746b5da53af533e3e525aeea47d1020c8f99c67;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git drm/nv04: Fix up SGRAM density detection. Signed-off-by: Francisco Jerez Signed-off-by: Ben Skeggs --- diff --git a/drivers/gpu/drm/nouveau/nouveau_bios.c b/drivers/gpu/drm/nouveau/nouveau_bios.c index 8464d205e41c..6df8b3fbe746 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bios.c +++ b/drivers/gpu/drm/nouveau/nouveau_bios.c @@ -2250,7 +2250,7 @@ nv04_init_compute_mem(struct nvbios *bios) NV04_PFB_BOOT_0_RAM_AMOUNT, NV04_PFB_BOOT_0_RAM_AMOUNT_4MB); - } else if (peek_fb(dev, fb, 0) == patt) { + } else if (peek_fb(dev, fb, 0) != patt) { if (read_back_fb(dev, fb, 0x800000, patt)) bios_md32(bios, NV04_PFB_BOOT_0, NV04_PFB_BOOT_0_RAM_AMOUNT,