forked from luck/tmp_suning_uos_patched
tdfxfb: fix SDRAM memory size detection
Fix memory detection on Voodoo3 cards with SDRAM memory. Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
a8823aefd1
commit
bf6910c0af
|
@ -426,7 +426,7 @@ static unsigned long do_lfb_size(struct tdfx_par *par, unsigned short dev_id)
|
|||
if (dev_id < PCI_DEVICE_ID_3DFX_VOODOO5) {
|
||||
/* Banshee/Voodoo3 */
|
||||
chip_size = 2;
|
||||
if (has_sgram && (draminit0 & DRAMINIT0_SGRAM_TYPE))
|
||||
if (has_sgram && !(draminit0 & DRAMINIT0_SGRAM_TYPE))
|
||||
chip_size = 1;
|
||||
} else {
|
||||
/* Voodoo4/5 */
|
||||
|
|
Loading…
Reference in New Issue
Block a user