mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
drm/nv04: Fix up SGRAM density detection.
Signed-off-by: Francisco Jerez <currojerez@riseup.net> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
c93ebb4021
commit
0746b5da53
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue