Missing video console after install

2015-01-13 Thread Tony Asleson
Note: re-sending updated email, as sendbug didn't appear to get through.

> Synopsis: No video after rebooting new install
> Category: kernel
> Environment:
System  : OpenBSD 5.6
Details : OpenBSD 5.6-stable (GENERIC) #0: Mon Jan  5 21:14:39 CST 
2015
 root@testing:/usr/src/sys/arch/i386/compile/GENERIC

Architecture: OpenBSD.i386
Machine : i386
> Description:
   I booted to CD and did a default install of 5.6.  After install was done
   I rebooted the system and system has video output until it reaches the boot
   where it tries to initialize drm, then it goes blank:

   error: [drm:pid0:i915_gem_object_bind_to_gtt] *ERROR* Attempting to bind an 
object larger than the aperture
   error: [drm:pid0:intelfb_create] *ERROR* failed to pin fb: -7

   Motherboard is a: 
   http://www.dfi-itox.com/pages/products/mothers/revcontrol/g5m100-n.php
   
   I updated source tree to latest 5.6 branch, rebuilt and issue remains.  
   Attempts to change video settings in BIOS do not change outcome.

   VGA output worked for OpenBSD 5.1, I have not tried versions 5.1-5.5
 
> How-To-Repeat:
Boot the system

> Fix:
Workaround over ssh

# config -ef /bsd
disable inteldrm
quit
# reboot 


dmesg:
OpenBSD 5.6-stable (GENERIC) #0: Mon Jan  5 21:14:39 CST 2015
root@testing:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) M processor 1.60GHz ("GenuineIntel" 686-class) 1.60 
GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,PBE,EST,TM2,PERF
real mem  = 1039626240 (991MB)
avail mem = 1010196480 (963MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 11/09/04, BIOS32 rev. 0 @ 0xfada0, SMBIOS 
rev. 2.2 @ 0xf0800 (34 entries)
bios0: vendor Phoenix Technologies, LTD version "6.00 PG" date 11/09/2004
acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP APIC
acpi0: wakeup devices SLPB(S5) HUB0(S5) UAR1(S5) UAR2(S5) USB0(S1) USB1(S1) 
USB2(S1) USBE(S1) MODM(S5) PCI0(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (HUB0)
acpicpu0 at acpi0
acpitz0 at acpi0: critical temperature is 100 degC
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: SLPB
bios0: ROM list: 0xc/0xc800! 0xd/0x8000!
cpu0: Enhanced SpeedStep 1600 MHz: speeds: 1600, 1400, 1200, 1000, 800, 600 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82855GM Host" rev 0x02
intelagp0 at pchb0
agp0 at intelagp0: aperture at 0xe800, size 0x40
"Intel 82855GM Memory" rev 0x02 at pci0 dev 0 function 1 not configured
"Intel 82855GM Config" rev 0x02 at pci0 dev 0 function 3 not configured
ppb0 at pci0 dev 1 function 0 "Intel 82855GME AGP" rev 0x02
pci1 at ppb0 bus 1
vga1 at pci0 dev 2 function 0 "Intel 82855GM Video" rev 0x02
intagp0 at vga1
agp1 at intagp0: aperture at 0xd800, size 0x800
inteldrm0 at vga1
drm0 at inteldrm0
error: [drm:pid0:i915_gem_object_bind_to_gtt] *ERROR* Attempting to bind an 
object larger than the aperture
error: [drm:pid0:intelfb_create] *ERROR* failed to pin fb: -7
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"Intel 82855GM Video" rev 0x02 at pci0 dev 2 function 1 not configured
uhci0 at pci0 dev 29 function 0 "Intel 82801DB USB" rev 0x02: apic 2 int 16
uhci1 at pci0 dev 29 function 1 "Intel 82801DB USB" rev 0x02: apic 2 int 19
uhci2 at pci0 dev 29 function 2 "Intel 82801DB USB" rev 0x02: apic 2 int 18
ehci0 at pci0 dev 29 function 7 "Intel 82801DB USB" rev 0x02: apic 2 int 23
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb1 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0x82
pci2 at ppb1 bus 2
fxp0 at pci2 dev 4 function 0 "Intel 8255x" rev 0x10, i82551: apic 2 int 17, 
address 00:01:29:f5:68:55
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
fxp1 at pci2 dev 8 function 0 "Intel PRO/100 VM" rev 0x82, i82562: apic 2 int 
20, address 00:01:29:f5:68:54
inphy1 at fxp1 phy 1: i82562EM 10/100 PHY, rev. 0
ral0 at pci2 dev 15 function 0 "Ralink RT2561S" rev 0x00: apic 2 int 16, 
address 00:1f:1f:3b:3c:65
ral0: MAC/BBP RT2561C, RF RT2527
ichpcib0 at pci0 dev 31 function 0 "Intel 82801DB LPC" rev 0x02
pciide0 at pci0 dev 31 function 1 "Intel 82801DB IDE" rev 0x02: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA48, 305245MB, 625142448 sectors
atapiscsi0 at pciide0 channel 0 drive 1
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0:  ATAPI 5/

Re: Missing video console after install

2015-01-13 Thread Mark Kettenis
> Date: Tue, 13 Jan 2015 13:13:59 -0600
> From: Tony Asleson 
> 
> pci0 at mainbus0 bus 0: configuration mode 1 (bios)
> pchb0 at pci0 dev 0 function 0 "Intel 82855GM Host" rev 0x02
> intelagp0 at pchb0
> agp0 at intelagp0: aperture at 0xe800, size 0x40
> "Intel 82855GM Memory" rev 0x02 at pci0 dev 0 function 1 not configured
> "Intel 82855GM Config" rev 0x02 at pci0 dev 0 function 3 not configured
> ppb0 at pci0 dev 1 function 0 "Intel 82855GME AGP" rev 0x02
> pci1 at ppb0 bus 1
> vga1 at pci0 dev 2 function 0 "Intel 82855GM Video" rev 0x02
> intagp0 at vga1
> agp1 at intagp0: aperture at 0xd800, size 0x800
> inteldrm0 at vga1
> drm0 at inteldrm0

Oh, that is interesting.  You have agp0 and agp1.  Given that the
aperture on agp0 (the real AGP bridge) is 4M, I suspect inteldrm(4)
gets confused and tries to use agp0 instead of agp1.  To confirm this,
can you try the following:

1. Boot with the -c options, i.e. trype

 bsd -c

   at the boot> prompt.

2. Disable intelagp, i.e. yupe

 disable intelagp

   at the UKC> prompt.

3. Type "quit" at the UKC> prompt.



Re: Missing video console after install

2015-01-13 Thread Tony Asleson
On 01/13/2015 01:39 PM, Mark Kettenis wrote:
>> Date: Tue, 13 Jan 2015 13:13:59 -0600
>> From: Tony Asleson 
>>
>> pci0 at mainbus0 bus 0: configuration mode 1 (bios)
>> pchb0 at pci0 dev 0 function 0 "Intel 82855GM Host" rev 0x02
>> intelagp0 at pchb0
>> agp0 at intelagp0: aperture at 0xe800, size 0x40
>> "Intel 82855GM Memory" rev 0x02 at pci0 dev 0 function 1 not configured
>> "Intel 82855GM Config" rev 0x02 at pci0 dev 0 function 3 not configured
>> ppb0 at pci0 dev 1 function 0 "Intel 82855GME AGP" rev 0x02
>> pci1 at ppb0 bus 1
>> vga1 at pci0 dev 2 function 0 "Intel 82855GM Video" rev 0x02
>> intagp0 at vga1
>> agp1 at intagp0: aperture at 0xd800, size 0x800
>> inteldrm0 at vga1
>> drm0 at inteldrm0
> 
> Oh, that is interesting.  You have agp0 and agp1.  Given that the
> aperture on agp0 (the real AGP bridge) is 4M, I suspect inteldrm(4)
> gets confused and tries to use agp0 instead of agp1.  To confirm this,
> can you try the following:
> 
> 1. Boot with the -c options, i.e. trype
> 
>  bsd -c
> 
>at the boot> prompt.
> 
> 2. Disable intelagp, i.e. yupe
> 
>  disable intelagp
> 
>at the UKC> prompt.
> 
> 3. Type "quit" at the UKC> prompt.

Hi Mark,

I re-enabled inteldrm and disabled intelagp and the system does indeed
come up with drm video working.  If you or someone else wants to post a
patch against the 5.6 branch, I'm willing to test it out.

Thanks!

Regards,
Tony