* Jonathan Gray <j...@jsg.id.au> [2015-10-25 05:51]: > On Sat, Oct 24, 2015 at 11:48:01PM +0200, Mark Kettenis wrote: > > The diff below makes inteldrm(4) attach directly to pci(4) instead of > > vga(1). Because inteldrm(4) depends on intagp(4), this also make > > intagp(4) a child of inteldrm(4). Ultimately I'd like to integrate > > intagp(4) into inteldrm(4), but that's going to be a bit more work. > > > > This diff is needed to make inteldrm(4) work when OpenBSD gets booted > > by UEFI firmware. It will also make inteldrm(4) work on machines with > > discrete graphics. > > > > This diff needs to be tested on a wide range of hardware. So if you > > have a machine with inteldrm(4), please give it a shot. I'm > > particularly interested in testing on an x40. > > x40 before the diff: > > vga1 at pci0 dev 2 function 0 "Intel 82855GM Video" rev 0x02 > intagp0 at vga1 > agp0 at intagp0: aperture at 0xe0000000, size 0x8000000 > inteldrm0 at vga1 > drm0 at inteldrm0 > inteldrm0: apic 1 int 16 > inteldrm0: 1024x768 > wsdisplay0 at vga1 mux 1: console (std, vt100 emulation) > wsdisplay0: screen 1-5 added (std, vt100 emulation) > "Intel 82855GM Video" rev 0x02 at pci0 dev 2 function 1 not configured > > after with serial console: > > inteldrm0 at pci0 dev 2 function 0 "Intel 82855GM Video" rev 0x02 > intagp0 at inteldrm0 > agp0 at intagp0: aperture at 0xe0000000, size 0x8000000 > drm0 at inteldrm0 > inteldrm0: can't map mmio space > inteldrm1 at pci0 dev 2 function 1 "Intel 82855GM Video" rev 0x02 > intagp at inteldrm1 not configured > drm1 at inteldrm1 > inteldrm1: couldn't map interrupt > Memory manager not clean. Delaying takedown > > video mode doesn't switch and can't change to vt, goes multiuser and can > login via ssh. > > With glass console it hangs after "root on wd0a" with no mode switch.
I see similar behaviour on an Asus i386 laptop with 855GM. It stops after "root on wd0a". No video mode switch during boot and no ssh login possible, but ddb still works. See dmesg below without and with patch applied. Regards, Ralf OpenBSD 5.8-current (GENERIC) #1278: Tue Oct 20 09:46:53 MDT 2015 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel(R) Pentium(R) M processor 1400MHz ("GenuineIntel" 686-class) 1.41 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,TM,PBE,EST,TM2,PERF real mem = 527187968 (502MB) avail mem = 504582144 (481MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: date 03/08/04, SMBIOS rev. 2.3 @ 0xf5620 (37 entries) bios0: vendor American Megatrends Inc. version "0208" date 03/08/2004 bios0: ASUSTeK Computer Inc. M2N acpi0 at bios0: rev 0 acpi0: sleep states S0 S1 S3 S4 S5 acpi0: tables DSDT FACP OEMB acpi0: wakeup devices P0P1(S4) LAN0(S4) CBS0(S3) CBS1(S3) P394(S3) MODM(S3) USB1(S3) USB2(S3) USB3(S3) EHCI(S3) SLPB(S4) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpi0: WARNING EC not initialized acpi0: WARNING EC not initialized acpi0: WARNING EC not initialized acpi0: WARNING EC not initialized acpi0: WARNING EC not initialized acpi0: WARNING EC not initialized acpi0: WARNING EC not initialized acpi0: WARNING EC not initialized acpi0: WARNING EC not initialized acpi0: WARNING EC not initialized acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 1 (P0P1) acpiec0 at acpi0 acpicpu0 at acpi0: !C3(@101 io@0xe415), !C2(@1 io@0xe414), C1(@1 halt!), PSS acpitz0 at acpi0: critical temperature is 110 degC acpipwrres0 at acpi0: GFAN, resource for SBRG, FN00 acpiac0 at acpi0: AC unit online acpibat0 at acpi0: BAT0 model "M2N" serial type LIon oem "ASUSTEK" acpibtn0 at acpi0: SLPB acpibtn1 at acpi0: LID_ acpiasus at acpi0 not configured bios0: ROM list: 0xc0000/0xd200! 0xcd800/0x1000 cpu0 at mainbus0: (uniprocessor) mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges cpu0: Enhanced SpeedStep 1401 MHz: speeds: 1400, 1400, 1400, 1400, 1400, 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 "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 vga1 at pci0 dev 2 function 0 "Intel 82855GM Video" rev 0x02 intagp0 at vga1 agp0 at intagp0: aperture at 0xf0000000, size 0x8000000 inteldrm0 at vga1 drm0 at inteldrm0 inteldrm0: irq 5 inteldrm0: 1024x768 wsdisplay0 at vga1 mux 1: console (std, vt100 emulation) wsdisplay0: screen 1-5 added (std, 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 0x03: irq 5 uhci1 at pci0 dev 29 function 1 "Intel 82801DB USB" rev 0x03: irq 5 uhci2 at pci0 dev 29 function 2 "Intel 82801DB USB" rev 0x03: irq 5 ehci0 at pci0 dev 29 function 7 "Intel 82801DB USB" rev 0x03: irq 4 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 ppb0 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0x83 pci1 at ppb0 bus 1 cbb0 at pci1 dev 3 function 0 "Ricoh 5C476 CardBus" rev 0xa9: irq 5, CardBus support disabled cbb1 at pci1 dev 3 function 1 "Ricoh 5C476 CardBus" rev 0xa9: irq 5, CardBus support disabled "Ricoh 5C552 Firewire" rev 0x01 at pci1 dev 3 function 2 not configured rl0 at pci1 dev 4 function 0 "Realtek 8139" rev 0x10: irq 5, address 00:0e:a6:0b:e8:5d rlphy0 at rl0 phy 0: RTL internal PHY ipw0 at pci1 dev 5 function 0 "Intel PRO/Wireless 2100" rev 0x04: irq 5, address 00:04:23:7e:2f:f7 cardslot0 at cbb0 slot 0 flags 0 pcmcia0 at cardslot0 cardslot1 at cbb1 slot 1 flags 0 pcmcia1 at cardslot1 ichpcib0 at pci0 dev 31 function 0 "Intel 82801DBM LPC" rev 0x03 pciide0 at pci0 dev 31 function 1 "Intel 82801DBM IDE" rev 0x03: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility wd0 at pciide0 channel 0 drive 0: <SAMSUNG HM120JC> wd0: 16-sector PIO, LBA48, 114473MB, 234441648 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 atapiscsi0 at pciide0 channel 1 drive 0 scsibus1 at atapiscsi0: 2 targets cd0 at scsibus1 targ 0 lun 0: <TOSHIBA, DVD-ROM SD-R2312, 1708> ATAPI 5/cdrom removable cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 auich0 at pci0 dev 31 function 5 "Intel 82801DB AC97" rev 0x03: irq 5, ICH4 AC97 ac97: codec id 0x83847650 (SigmaTel STAC9750/51) ac97: codec features headphone, 20 bit DAC, 20 bit ADC, SigmaTel 3D audio0 at auich0 usb1 at uhci0: USB revision 1.0 uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb2 at uhci1: USB revision 1.0 uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb3 at uhci2: USB revision 1.0 uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1 isa0 at ichpcib0 isadma0 at isa0 com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo pckbc0 at isa0 port 0x60/5 irq 1 irq 12 pckbd0 at pckbc0 (kbd slot) wskbd0 at pckbd0: console keyboard, using wsdisplay0 pms0 at pckbc0 (aux slot) wsmouse0 at pms0 mux 0 pms0: Synaptics touchpad, firmware 4.6 pcppi0 at isa0 port 0x61 spkr0 at pcppi0 lpt0 at isa0 port 0x378/4 irq 7 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 vscsi0 at root scsibus2 at vscsi0: 256 targets softraid0 at root scsibus3 at softraid0: 256 targets root on wd0a (55d5aed9e690033c.a) swap on wd0b dump on wd0b OpenBSD 5.8-current (GENERIC) #0: Sun Oct 25 18:04:24 CET 2015 ralf@asus.internal:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel(R) Pentium(R) M processor 1400MHz ("GenuineIntel" 686-class) 1.41 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,TM,PBE,EST,TM2,PERF real mem = 527187968 (502MB) avail mem = 504582144 (481MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: date 03/08/04, SMBIOS rev. 2.3 @ 0xf5620 (37 entries) bios0: vendor American Megatrends Inc. version "0208" date 03/08/2004 bios0: ASUSTeK Computer Inc. M2N acpi0 at bios0: rev 0 acpi0: sleep states S0 S1 S3 S4 S5 acpi0: tables DSDT FACP OEMB acpi0: wakeup devices P0P1(S4) LAN0(S4) CBS0(S3) CBS1(S3) P394(S3) MODM(S3) USB1(S3) USB2(S3) USB3(S3) EHCI(S3) SLPB(S4) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpi0: WARNING EC not initialized acpi0: WARNING EC not initialized acpi0: WARNING EC not initialized acpi0: WARNING EC not initialized acpi0: WARNING EC not initialized acpi0: WARNING EC not initialized acpi0: WARNING EC not initialized acpi0: WARNING EC not initialized acpi0: WARNING EC not initialized acpi0: WARNING EC not initialized acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 1 (P0P1) acpiec0 at acpi0 acpicpu0 at acpi0: !C3(@101 io@0xe415), !C2(@1 io@0xe414), C1(@1 halt!), PSS acpitz0 at acpi0: critical temperature is 110 degC acpipwrres0 at acpi0: GFAN, resource for SBRG, FN00 acpiac0 at acpi0: AC unit online acpibat0 at acpi0: BAT0 model "M2N" serial type LIon oem "ASUSTEK" acpibtn0 at acpi0: SLPB acpibtn1 at acpi0: LID_ acpiasus at acpi0 not configured bios0: ROM list: 0xc0000/0xd200! 0xcd800/0x1000 cpu0 at mainbus0: (uniprocessor) mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges cpu0: Enhanced SpeedStep 1401 MHz: speeds: 1400, 1400, 1400, 1400, 1400, 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 "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 inteldrm0 at pci0 dev 2 function 0 "Intel 82855GM Video" rev 0x02 intagp0 at inteldrm0 agp0 at intagp0: aperture at 0xf0000000, size 0x8000000 drm0 at inteldrm0 inteldrm0: can't map mmio space inteldrm1 at pci0 dev 2 function 1 "Intel 82855GM Video" rev 0x02 intagp at inteldrm1 not configured drm1 at inteldrm1 inteldrm1: couldn't map interrupt Memory manager not clean. Delaying takedown uhci0 at pci0 dev 29 function 0 "Intel 82801DB USB" rev 0x03: irq 5 uhci1 at pci0 dev 29 function 1 "Intel 82801DB USB" rev 0x03: irq 5 uhci2 at pci0 dev 29 function 2 "Intel 82801DB USB" rev 0x03: irq 5 ehci0 at pci0 dev 29 function 7 "Intel 82801DB USB" rev 0x03: irq 4 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 ppb0 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0x83 pci1 at ppb0 bus 1 cbb0 at pci1 dev 3 function 0 "Ricoh 5C476 CardBus" rev 0xa9: irq 5, CardBus support disabled cbb1 at pci1 dev 3 function 1 "Ricoh 5C476 CardBus" rev 0xa9: irq 5, CardBus support disabled "Ricoh 5C552 Firewire" rev 0x01 at pci1 dev 3 function 2 not configured rl0 at pci1 dev 4 function 0 "Realtek 8139" rev 0x10: irq 5, address 00:0e:a6:0b:e8:5d rlphy0 at rl0 phy 0: RTL internal PHY ipw0 at pci1 dev 5 function 0 "Intel PRO/Wireless 2100" rev 0x04: irq 5, address 00:04:23:7e:2f:f7 cardslot0 at cbb0 slot 0 flags 0 pcmcia0 at cardslot0 cardslot1 at cbb1 slot 1 flags 0 pcmcia1 at cardslot1 ichpcib0 at pci0 dev 31 function 0 "Intel 82801DBM LPC" rev 0x03 pciide0 at pci0 dev 31 function 1 "Intel 82801DBM IDE" rev 0x03: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility wd0 at pciide0 channel 0 drive 0: <SAMSUNG HM120JC> wd0: 16-sector PIO, LBA48, 114473MB, 234441648 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 atapiscsi0 at pciide0 channel 1 drive 0 scsibus1 at atapiscsi0: 2 targets cd0 at scsibus1 targ 0 lun 0: <TOSHIBA, DVD-ROM SD-R2312, 1708> ATAPI 5/cdrom removable cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 auich0 at pci0 dev 31 function 5 "Intel 82801DB AC97" rev 0x03: irq 5, ICH4 AC97 ac97: codec id 0x83847650 (SigmaTel STAC9750/51) ac97: codec features headphone, 20 bit DAC, 20 bit ADC, SigmaTel 3D audio0 at auich0 usb1 at uhci0: USB revision 1.0 uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb2 at uhci1: USB revision 1.0 uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb3 at uhci2: USB revision 1.0 uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1 isa0 at ichpcib0 isadma0 at isa0 com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo pckbc0 at isa0 port 0x60/5 irq 1 irq 12 pckbd0 at pckbc0 (kbd slot) wskbd0 at pckbd0: console keyboard pms0 at pckbc0 (aux slot) wsmouse0 at pms0 mux 0 pms0: Synaptics touchpad, firmware 4.6 pcppi0 at isa0 port 0x61 spkr0 at pcppi0 lpt0 at isa0 port 0x378/4 irq 7 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 vscsi0 at root scsibus2 at vscsi0: 256 targets softraid0 at root scsibus3 at softraid0: 256 targets root on wd0a (55d5aed9e690033c.a) swap on wd0b dump on wd0b