Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Sep 2005 11:47:38 -0500 (CDT)
From:      Brent Casavant <bcasavan@tdkt.org>
To:        freebsd-stable@freebsd.org
Subject:   Garbled VGA text console
Message-ID:  <20050913111141.T1328@chenjesu.americas.sgi.com>

next in thread | raw e-mail | index | archive | help
Hello,

I've searched the bug database and Googled for the following problem,
to no avail, but hopefully querying -stable will help.

I am experiencing garbled text consoles on 5.4-RELEASE (sorry, no
prior data).  All sc consoles have repeated/missing/overwritten
characters across the entire screen.  Furthermore, as I move the
mouse cursor across the screen, the incorrect display continually
changes in the rows and columns near the cursor.  However, the mouse
is not a necessary component of the dyslexic (no offense intended,
I can certainly believe this is just what dyslexia sufferers would
perceive in their daily life) display -- a kernel configured without
mouse support at all still exhibits the problem.

The problem occurs as soon as the kernel is handed control from
the loader (the loader has no such problem, for what its worth) --
boot messages and the like are corrupted with the duplicated and
missing and overwritten characters.  This is an important point,
I believe, as corruption occurs even before the APs are launched.

As an example, here's what ttyv0 looks like at this moment:

--- cut here ---
Starting sshd.
StStting sendmail.
Initial i3i386 intialization.
  dititial ABIBIupuprt: : svipipsynuxpostfix/postfix-script: starting thththstfi
x maililys s  s s s
  vr4.4.
Startiti cron.
  vfs ruleset: error converting to n nber:r:/usrsrocalaltc/d/dfs.r.res
/etc/rc: WARNING: defvf_set_ruruset: unablblto s s rululuseseses/localaltc/devfs
.rules to /dev
devfs ruleleleror cocococong t tnumbmbo o usr/lolol/etc/devfs.rules
/etctc: WARNIARAR devfsvfs_s_s_ruleset: unable to apply ruleset $/usr/l/l/l/ltc/
devevevuleseso /d/d
Local packagaginititlization:Starting saslauthd1.
.
Additional TCP options:.
    t n  moused:.
Starting inetd.
Starting backgrorod file sle m sm chchks i i60 s sonds.

Tue SeSeSeSe9:4747:5:5:5200505

  eeBSD/i386 (chenjesususutyv0v0

login:
--- cut here ---

The most relevant details that I can think of that might matter are
that the machine is quad-processor (4x500MHz PIII Xeon), and has
two seperate VGA controllers.  The onboard VGA controller is a
Cirrus Logic GD 5480, but is (mostly?) disabled by the BIOS when
it detects the Matrox G400 card (dual-head configuration).

The X server doesn't encounter any problem, and configuring with
option VGA_SLOW_IOACCESS doesn't help.

To me this smells like a multiprocessor problem (e.g. we see some
output repeated 4 times in the example above, but never more than 4).

Does this sound familiar to anyone?

dmesg output and an lspci -v output are included below.  Note that
the Matrox card is identified as AGP in the lspci output, even
though it is actually a PCI card. *shrug*

--- cut here ---
chenjesu# dmesg
Copyright (c) 1992-2005 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 5.4-RELEASE-p7 #15: Mon Sep 12 20:11:55 CDT 2005
    bcasavan@chenjesu:/usr/obj/usr/src/sys/chenjesu
ACPI APIC Table: <Intel  Custom  >
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Pentium III/Pentium III Xeon/Celeron (500.15-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x672  Stepping = 2
  Features=0x387fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,PN,MMX,FXSR,SSE>
real memory  = 3221200896 (3071 MB)
avail memory = 3150848000 (3004 MB)
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
 cpu0 (BSP): APIC ID:  3
 cpu1 (AP): APIC ID:  0
 cpu2 (AP): APIC ID:  1
 cpu3 (AP): APIC ID:  2
ioapic0 <Version 1.3> irqs 0-63 on motherboard
lapic3: Forcing LINT1 to edge trigger
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <INTEL S450NX01> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0xc08-0xc0b on acpi0
cpu0: <ACPI CPU (2 Cx states)> on acpi0
cpu1: <ACPI CPU (2 Cx states)> on acpi0
cpu2: <ACPI CPU (2 Cx states)> on acpi0
cpu3: <ACPI CPU (2 Cx states)> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <PCI-PCI bridge> at device 6.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
pcm0: <Creative EMU10K1> port 0x2400-0x241f irq 17 at device 7.0 on pci0
pcm0: <eMicro EM28028 AC97 Codec>
sym0: <810a> port 0x2000-0x20ff mem 0xf8100000-0xf81000ff irq 58 at device 8.0 on pci0
sym0: No NVRAM, ID 7, Fast-10, SE, parity checking
fxp0: <Intel 82558 Pro/100 Ethernet> port 0x2420-0x243f mem 0xf8000000-0xf80fffff,0xf9200000-0xf9200fff irq 18 at device 9.0 on pci0
miibus0: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:90:27:aa:39:13
pci0: <display, VGA> at device 10.0 (no driver attached)
pci0: <base peripheral, interrupt controller> at device 11.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 12.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port 0x2460-0x246f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 12.1 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0x2440-0x245f irq 54 at device 12.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
intpm0: <Intel 82371AB Power management controller> port 0xcc0-0xccf irq 9 at device 12.3 on pci0
intpm0: I/O mapped cc0
intpm0: intr IRQ 9 enabled revision 0
intsmb0: <Intel PIIX4 SMBUS Interface> on intpm0
smbus1: <System Management Bus> on intsmb0
smb0: <SMBus generic I/O> on smbus1
intpm0: PM I/O mapped c00 
pcib2: <ACPI Host-PCI bridge> on acpi0
pci2: <ACPI PCI bus> on pcib2
ohci0: <NEC uPD 9210 USB controller> mem 0xfe004000-0xfe004fff irq 19 at device 1.0 on pci2
usb1: OHCI version 1.0
usb1: <NEC uPD 9210 USB controller> on ohci0
usb1: USB revision 1.0
uhub1: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
ohci1: <NEC uPD 9210 USB controller> mem 0xfe005000-0xfe005fff irq 29 at device 1.1 on pci2
usb2: OHCI version 1.0
usb2: <NEC uPD 9210 USB controller> on ohci1
usb2: USB revision 1.0
uhub2: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0: <NEC uPD 720100 USB 2.0 controller> mem 0xfe006000-0xfe0060ff irq 39 at device 1.2 on pci2
usb3: EHCI version 1.0
usb3: companion controllers, 3 ports each: usb1 usb2
usb3: <NEC uPD 720100 USB 2.0 controller> on ehci0
usb3: USB revision 2.0
uhub3: NEC EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub3: 5 ports with 5 removable, self powered
sym1: <896> port 0x3000-0x30ff mem 0xfe000000-0xfe001fff,0xfe006400-0xfe0067ff irq 57 at device 3.0 on pci2
sym1: No NVRAM, ID 7, Fast-40, LVD, parity checking
sym2: <896> port 0x3400-0x34ff mem 0xfe002000-0xfe003fff,0xfe006800-0xfe006bff irq 56 at device 3.1 on pci2
sym2: No NVRAM, ID 7, Fast-40, LVD, parity checking
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse Explorer, device ID 4
fdc0: <floppy drive controller> port 0x3f2-0x3f5 irq 6 drq 2 on acpi0
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
ppc0: <ECP parallel printer port> port 0x778-0x77f,0x378-0x37f irq 7 drq 1 on acpi0
ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: <Parallel port bus> on ppc0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xc9000-0xccfff,0xc0000-0xc8fff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
Timecounters tick every 10.000 msec
WARNING: apm_saver module requires apm enabled
acd0: CDROM <CD-532E-B/1.0A> at ata0-master PIO4
acd1: CDROM <CD-532E-A/1.0A> at ata0-slave PIO4
Waiting 2 seconds for SCSI devices to settle
pass5 at sym1 bus 0 target 6 lun 0
pass5: <ESG-SHV SCA HSBP M6 0.61> Fixed Processor SCSI-2 device 
pass5: 3.300MB/s transfers
pass6 at ata0 bus 0 target 0 lun 0
pass6: <TEAC CD-532E-B 1.0A> Removable CD-ROM SCSI-0 device 
pass6: 16.000MB/s transfers
pass7 at ata0 bus 0 target 1 lun 0
pass7: <TEAC CD-532E-A 1.0A> Removable CD-ROM SCSI-0 device 
pass7: 16.000MB/s transfers
da3 at sym1 bus 0 target 3 lun 0
da3: <IBM DDYS-T18350M S80D> Fixed Direct Access SCSI-3 device 
da3: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing Enabled
da3: 17501MB (35843670 512 byte sectors: 255H 63S/T 2231C)
da4 at sym1 bus 0 target 4 lun 0
da4: <QUANTUM ATLAS IV 9 SCA 0B0B> Fixed Direct Access SCSI-3 device 
da4: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing Enabled
da4: 8761MB (17942584 512 byte sectors: 255H 63S/T 1116C)
da0 at sym1 bus 0 target 0 lun 0
da0: <IBM DNES-318350Y SAA0> Fixed Direct Access SCSI-3 device 
da0: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing Enabled
da0: 17501MB (35843670 512 byte sectors: 255H 63S/T 2231C)
da2 at sym1 bus 0 target 2 lun 0
da2: <IBM DNES-318350Y SAA0> Fixed Direct Access SCSI-3 device 
da2: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing Enabled
da2: 17501MB (35843670 512 byte sectors: 255H 63S/T 2231C)
da1 at sym1 bus 0 target 1 lun 0
da1: <IBM DNES-318350Y SAA0> Fixed Direct Access SCSI-3 device 
da1: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing Enabled
da1: 17501MB (35843670 512 byte sectors: 255H 63S/T 2231C)
SMP: AP CPU #1 Launched!
SMP: AP CPU #2 Launched!
SMP: AP CPU #3 Launched!
Mounting root from ufs:/dev/da0s1a
arp: unknown hardware address format (0x0800)
arp: unknown hardware address format (0x0800)
# lspci -v
00:06.0 PCI bridge: Hint Corp HB1-SE33 PCI-PCI Bridge (rev 13) (prog-if 00 [Normal decode])
	Flags: bus master, medium devsel, latency 128
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=68
	Memory behind bridge: f8200000-f8ffffff
	Prefetchable memory behind bridge: 00000000fc000000-00000000fdf00000
	Capabilities: [80] Power Management version 2
	Capabilities: [90] #06 [0000]
	Capabilities: [a0] Vital Product Data

00:07.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 0a)
	Subsystem: Creative Labs: Unknown device 8065
	Flags: bus master, medium devsel, latency 128, IRQ 17
	I/O ports at 2400
	Capabilities: [dc] Power Management version 1

00:07.1 Input device controller: Creative Labs SB Live! MIDI/Game Port (rev 0a)
	Subsystem: Creative Labs Gameport Joystick
	Flags: bus master, medium devsel, latency 128
	I/O ports at 2470
	Capabilities: [dc] Power Management version 1

00:08.0 SCSI storage controller: LSI Logic / Symbios Logic 53c810 (rev 23)
	Subsystem: LSI Logic / Symbios Logic 8100S
	Flags: bus master, medium devsel, latency 128, IRQ 58
	I/O ports at 2000
	Memory at f8100000 (32-bit, non-prefetchable)
	Capabilities: [40] Power Management version 1

00:09.0 Ethernet controller: Intel Corp. 82557/8/9 [Ethernet Pro 100] (rev 05)
	Subsystem: Intel Corp. EtherExpress PRO/100+
	Flags: bus master, medium devsel, latency 128, IRQ 18
	Memory at f9200000 (32-bit, prefetchable)
	I/O ports at 2420
	Memory at f8000000 (32-bit, non-prefetchable)
	Capabilities: [dc] Power Management version 1

00:0a.0 VGA compatible controller: Cirrus Logic GD 5480 (rev 23) (prog-if 00 [VGA])
	Subsystem: Unknown device 3e3e:003e
	Flags: bus master, medium devsel, latency 64, IRQ 255
	Memory at <ignored> (32-bit, prefetchable) [disabled]
	Memory at <ignored> (32-bit, non-prefetchable) [disabled]

00:0b.0 PIC: Intel Corp. 683053 Programmable Interrupt Device (prog-if 03)
	Flags: bus master, medium devsel, latency 0

00:0c.0 ISA bridge: Intel Corp. 82371AB/EB/MB PIIX4 ISA (rev 02)
	Flags: bus master, medium devsel, latency 0

00:0c.1 IDE interface: Intel Corp. 82371AB/EB/MB PIIX4 IDE (rev 01) (prog-if 80 [Master])
	Flags: bus master, medium devsel, latency 64
	I/O ports at 2460

00:0c.2 USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB (rev 01) (prog-if 00 [UHCI])
	Flags: bus master, medium devsel, latency 64, IRQ 54
	I/O ports at 2440

00:0c.3 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 02)
	Flags: medium devsel

00:10.0 Host bridge: Intel Corp. 450NX - 82451NX Memory & I/O Controller (rev 03)
	Flags: fast devsel

00:12.0 Host bridge: Intel Corp. 450NX - 82454NX/84460GX PCI Expander Bridge (rev 02)
	Flags: bus master, medium devsel, latency 128

00:13.0 Host bridge: Intel Corp. 450NX - 82454NX/84460GX PCI Expander Bridge (rev 02)
	Flags: bus master, medium devsel, latency 128

01:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G400 AGP (rev 85) (prog-if 00 [VGA])
	Subsystem: Matrox Graphics, Inc.: Unknown device 0d43
	Flags: bus master, medium devsel, latency 128, IRQ 16
	Memory at fc000000 (32-bit, prefetchable)
	Memory at f8200000 (32-bit, non-prefetchable)
	Memory at f8800000 (32-bit, non-prefetchable)
	Capabilities: [dc] Power Management version 2
	Capabilities: [f0] AGP version 2.0


-- 
Brent Casavant			Dance like everybody should be watching.
www.angeltread.org
KD5EMB, EN34lv



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050913111141.T1328>