On Tue, Apr 24, 2018 at 02:25:24PM +0200, Alexander Bluhm wrote:
> On Tue, Apr 24, 2018 at 08:18:42PM +1000, Jonathan Gray wrote:
> > After spending some time trying to track this down I have come up with
> > the diff below and included it in ~jsg/radeon.diff.4 can you confirm
> > that it works for you as well?
> 
> With this diff my machine boots fine.  No monitor connect, so I
> cannot test X11.  When I blindly run startx and kill it with Ctrl-C,
> I get on the console:
> 
> Can't enable IRQ/MSI because no handler is installed

This is expected, the interrupt handler is only established when the ring
tests pass and acceleration is enabled.  When init is aborted after
firmware is not found acceleration is disabled.

> 
> I have no firmware, so I do not expect that it works.  No crash is
> enough for me.

Thanks for reporting and testing the fix.

> 
> bluhm
> 
> Copyright (c) 1982, 1986, 1989, 1991, 1993                                    
>   
>         The Regents of the University of California.  All rights reserved.    
>   
> Copyright (c) 1995-2018 OpenBSD. All rights reserved.  
> https://www.OpenBSD.org  
> 
> OpenBSD 6.3-current (GENERIC.MP) #0: Tue Apr 24 14:03:04 CEST 2018
>     [email protected]:/usr/src/sys/arch/i386/compile/GENERIC.MP
> real mem  = 2145783808 (2046MB)
> avail mem = 2091991040 (1995MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: date 07/12/06, BIOS32 rev. 0 @ 0xfd450, SMBIOS rev. 2.51 @ 
> 0x7feea000 (35 entries)
> bios0: vendor Phoenix Technologies LTD version "6.00" date 07/12/2006
> bios0: Supermicro PDSM4+
> acpi0 at bios0: rev 0
> acpi0: sleep states S0 S1 S4 S5
> acpi0: tables DSDT FACP MCFG APIC BOOT SSDT
> acpi0: wakeup devices PXHA(S5) PXHB(S5) DEV3(S5) EXP1(S5) EXP5(S5) EXP6(S5) 
> PCIB(S5) KBC0(S1) MSE0(S1) COM1(S5) COM2(S5) USB1(S4) USB2(S4) USB3(S4) 
> USB4(S4) EUSB(S4)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpimcfg0 at acpi0 addr 0xf0000000, bus 0-14
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz ("GenuineIntel" 686-class) 1.87 
> GHz
> cpu0: 
> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,LAHF,PERF,SENSOR
> mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> cpu0: apic clock running at 266MHz
> cpu0: mwait min=64, max=64, C-substates=0.2, IBE
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz ("GenuineIntel" 686-class) 1.87 
> GHz
> cpu1: 
> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,LAHF,PERF,SENSOR
> ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
> ioapic1 at mainbus0: apid 3 pa 0xfecc0000, version 20, 24 pins
> ioapic2 at mainbus0: apid 4 pa 0xfecc0400, version 20, 24 pins
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus 2 (PXHA)
> acpiprt2 at acpi0: bus 3 (PXHB)
> acpiprt3 at acpi0: bus -1 (DEV3)
> acpiprt4 at acpi0: bus 9 (EXP1)
> acpiprt5 at acpi0: bus 13 (EXP5)
> acpiprt6 at acpi0: bus 14 (EXP6)
> acpiprt7 at acpi0: bus 15 (PCIB)
> acpicpu0 at acpi0: C1(@1 halt!)
> acpicpu1 at acpi0: C1(@1 halt!)
> acpicmos0 at acpi0
> "PNP0A05" at acpi0 not configured
> acpibtn0 at acpi0: PWRB
> bios0: ROM list: 0xc0000/0xb000 0xcb000/0x1000 0xcc000/0x1000 0xcd000/0x2600
> ipmi at mainbus0 not configured
> cpu0: Enhanced SpeedStep disabled by BIOS
> pci0 at mainbus0 bus 0: configuration mode 1 (bios)
> pchb0 at pci0 dev 0 function 0 "Intel E7230 Host" rev 0xc0
> ppb0 at pci0 dev 1 function 0 "Intel E7230 PCIE" rev 0xc0: apic 2 int 16
> pci1 at ppb0 bus 1
> ppb1 at pci1 dev 0 function 0 "Intel 6700PXH PCIE-PCIX" rev 0x09
> pci2 at ppb1 bus 2
> em0 at pci2 dev 2 function 0 "Intel 82545GM" rev 0x04: apic 3 int 4, address 
> 00:04:23:cd:41:fb
> "Intel IOxAPIC" rev 0x09 at pci1 dev 0 function 1 not configured
> ppb2 at pci1 dev 0 function 2 "Intel 6700PXH PCIE-PCIX" rev 0x09
> pci3 at ppb2 bus 3
> em1 at pci3 dev 1 function 0 "Intel 82545GM" rev 0x04: apic 4 int 0, address 
> 00:1b:21:0e:6e:8e
> ami0 at pci3 dev 3 function 0 "Symbios Logic MegaRAID" rev 0x01: apic 4 int 4
> ami0: LSI 520, 64b/lhc, FW 1L47, BIOS vG121, 128MB RAM
> ami0: 1 channels, 0 FC loops, 2 logical drives
> scsibus1 at ami0: 40 targets
> sd0 at scsibus1 targ 0 lun 0: <AMI, Host drive #00, > SCSI2 0/direct fixed
> sd0: 35045MB, 512 bytes/sector, 71772160 sectors
> sd1 at scsibus1 targ 1 lun 0: <AMI, Host drive #01, > SCSI2 0/direct fixed
> sd1: 140271MB, 512 bytes/sector, 287275008 sectors
> scsibus2 at ami0: 16 targets
> "Intel IOxAPIC" rev 0x09 at pci1 dev 0 function 3 not configured
> ppb3 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x01: apic 2 int 17
> pci4 at ppb3 bus 9
> ppb4 at pci0 dev 28 function 4 "Intel 82801G PCIE" rev 0x01: apic 2 int 17
> pci5 at ppb4 bus 13
> em2 at pci5 dev 0 function 0 "Intel 82573E" rev 0x03: msi, address 
> 00:30:48:8c:50:20
> ppb5 at pci0 dev 28 function 5 "Intel 82801G PCIE" rev 0x01: apic 2 int 16
> pci6 at ppb5 bus 14
> em3 at pci6 dev 0 function 0 "Intel 82573L" rev 0x00: msi, address 
> 00:30:48:8c:50:21
> uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x01: apic 2 int 23
> uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x01: apic 2 int 19
> uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x01: apic 2 int 18
> uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x01: apic 2 int 16
> ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x01: apic 2 int 23
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 
> addr 1
> ppb6 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xe1
> pci7 at ppb6 bus 15
> radeondrm0 at pci7 dev 4 function 0 "ATI ES1000" rev 0x02
> drm0 at radeondrm0
> radeondrm0: apic 2 int 16
> ichpcib0 at pci0 dev 31 function 0 "Intel 82801GB LPC" rev 0x01: PM disabled
> pciide0 at pci0 dev 31 function 1 "Intel 82801GB IDE" rev 0x01: DMA, channel 
> 0 configured to compatibility, channel 1 configured to compatibility
> atapiscsi0 at pciide0 channel 0 drive 1
> scsibus3 at atapiscsi0: 2 targets
> cd0 at scsibus3 targ 0 lun 0: <Optiarc, DVD RW AD-7543A, 1-00> ATAPI 5/cdrom 
> removable
> cd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
> pciide0: channel 1 disabled (no drives)
> ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x01: apic 2 int 
> 19
> iic0 at ichiic0
> lm1 at iic0 addr 0x2d: W83627HF
> wbng0 at iic0 addr 0x2f: w83793g
> spdmem0 at iic0 addr 0x50: 1GB DDR2 SDRAM ECC PC2-4200CL5
> spdmem1 at iic0 addr 0x52: 1GB DDR2 SDRAM ECC PC2-4200CL5
> usb1 at uhci0: USB revision 1.0
> uhub1 at usb1 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 
> addr 1
> usb2 at uhci1: USB revision 1.0
> uhub2 at usb2 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 
> addr 1
> usb3 at uhci2: USB revision 1.0
> uhub3 at usb3 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 
> addr 1
> usb4 at uhci3: USB revision 1.0
> uhub4 at usb4 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 
> addr 1
> isa0 at ichpcib0
> isadma0 at isa0
> fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
> com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> com0: console
> 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
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> lpt0 at isa0 port 0x378/4 irq 7
> wbsio0 at isa0 port 0x2e/2: W83627HF rev 0x41
> lm2 at wbsio0 port 0x290/8: W83627HF
> lm1: disabling sensors due to alias with lm2
> npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
> vmm0 at mainbus0: VMX
> rum0 at uhub0 port 5 configuration 1 interface 0 "Ralink Technology RT2573" 
> rev 2.00/0.01 addr 2
> rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528, address d8:5d:4c:8f:29:2f
> vscsi0 at root
> scsibus4 at vscsi0: 256 targets
> softraid0 at root
> scsibus5 at softraid0: 256 targets
> root on sd0a (598436f1c318dcd5.a) swap on sd0b dump on sd0b
> initializing kernel modesetting (RV100 0x1002:0x515E 0x1002:0x515E).
> radeon_cp: Failed to load firmware "radeon/R100_cp.bin"
> error: [drm:pid0:r100_cp_init] *ERROR* Failed to load firmware!
> drm:pid0:r100_startup *ERROR* failed initializing CP (-2).
> drm:pid0:r100_init *ERROR* Disabling GPU acceleration
> Can't enable IRQ/MSI because no handler is installed
> radeondrm0: 1024x768, 8bpp
> wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0
> wsdisplay0: screen 1-5 added (std, vt100 emulation)
> fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
> Automatic boot in progress: starting file system checks.
> /dev/sd0a (598436f1c318dcd5.a): file system is clean; not checking
> /dev/sd0k (598436f1c318dcd5.k): file system is clean; not checking
> /dev/sd0d (598436f1c318dcd5.d): file system is clean; not checking
> /dev/sd0f (598436f1c318dcd5.f): file system is clean; not checking
> /dev/sd0g (598436f1c318dcd5.g): file system is clean; not checking
> /dev/sd0h (598436f1c318dcd5.h): file system is clean; not checking
> /dev/sd0j (598436f1c318dcd5.j): file system is clean; not checking
> /dev/sd0i (598436f1c318dcd5.i): file system is clean; not checking
> /dev/sd0e (598436f1c318dcd5.e): file system is clean; not checking
> setting tty flags
> pf enabled
> ddb.console: 0 -> 1
> kern.allowkmem: 0 -> 1
> kern.pool_debug: 1 -> 1
> kern.splassert: 1 -> 2
> net.inet.etherip.allow: 0 -> 1
> net.inet.ip.forwarding: 0 -> 1
> net.inet.ipcomp.enable: 0 -> 1
> net.inet.ipip.allow: 0 -> 1
> starting network
> add net 10.188.80.0/24: gateway 127.0.0.1
> add net fdd7:e83e:66bc:80::/64: gateway ::1
> add net 10.188.82.0/24: gateway 10.188.81.22
> add net 10.188.83.0/24: gateway 10.188.81.22
> add net 10.188.84.0/24: gateway 10.188.81.22
> add net 10.188.85.0/24: gateway 10.188.81.22
> add net 10.188.86.0/24: gateway 10.188.81.22
> add net 10.188.87.0/24: gateway 10.188.81.22
> add net 10.188.88.0/24: gateway 10.188.81.22
> add net 10.188.89.0/24: gateway 10.188.81.22
> add net 10.188.90.0/24: gateway 10.188.81.22
> add net 10.188.91.0/24: gateway 10.188.81.22
> add net fdd7:e83e:66bc:82::/64: gateway fdd7:e83e:66bc:81::22
> add net fdd7:e83e:66bc:83::/64: gateway fdd7:e83e:66bc:81::22
> add net fdd7:e83e:66bc:84::/64: gateway fdd7:e83e:66bc:81::22
> add net fdd7:e83e:66bc:85::/64: gateway fdd7:e83e:66bc:81::22
> add net fdd7:e83e:66bc:86::/64: gateway fdd7:e83e:66bc:81::22
> add net fdd7:e83e:66bc:87::/64: gateway fdd7:e83e:66bc:81::22
> add net fdd7:e83e:66bc:88::/64: gateway fdd7:e83e:66bc:81::22
> add net fdd7:e83e:66bc:89::/64: gateway fdd7:e83e:66bc:81::22
> add net fdd7:e83e:66bc:90::/64: gateway fdd7:e83e:66bc:81::22
> add net fdd7:e83e:66bc:91::/64: gateway fdd7:e83e:66bc:81::22
> add net fdd7:e83e:66bc:105::70/64: gateway fdd7:e83e:66bc:100::70
> add net 10.188.101.71/24: gateway 10.188.100.70
> add net fdd7:e83e:66bc:101::71/64: gateway fdd7:e83e:66bc:100::70
> add net 10.188.102.72/24: gateway 10.188.100.70
> add net fdd7:e83e:66bc:102::72/64: gateway fdd7:e83e:66bc:100::70
> add net 10.188.112.70/24: gateway 10.188.108.17
> add net fdd7:e83e:66bc:10c::70/64: gateway fdd7:e83e:66bc:108::17
> add net 10.188.113.70/24: gateway 10.188.108.17
> add net fdd7:e83e:66bc:10d::70/64: gateway fdd7:e83e:66bc:108::17
> add net 10.188.114.72/24: gateway 10.188.108.17
> add net fdd7:e83e:66bc:10e::72/64: gateway fdd7:e83e:66bc:108::17
> add net 10.188.115.72/24: gateway 10.188.108.17
> add net fdd7:e83e:66bc:10f::72/64: gateway fdd7:e83e:66bc:108::17
> add net fdd7:e83e:66bc:125::70/64: gateway fdd7:e83e:66bc:100::70
> add net 10.188.101.71/24: gateway 10.188.100.70
> add net fdd7:e83e:66bc:101::71/64: gateway fdd7:e83e:66bc:100::70
> add net 10.188.102.72/24: gateway 10.188.100.70
> add net fdd7:e83e:66bc:102::72/64: gateway fdd7:e83e:66bc:100::70
> add net 10.188.132.70/24: gateway 10.188.128.17
> add net fdd7:e83e:66bc:12c::70/64: gateway fdd7:e83e:66bc:128::17
> add net 10.188.133.70/24: gateway 10.188.128.17
> add net fdd7:e83e:66bc:12d::70/64: gateway fdd7:e83e:66bc:128::17
> add net 10.188.134.72/24: gateway 10.188.128.17
> add net fdd7:e83e:66bc:12e::72/64: gateway fdd7:e83e:66bc:128::17
> add net 10.188.135.72/24: gateway 10.188.128.17
> add net fdd7:e83e:66bc:12f::72/64: gateway fdd7:e83e:66bc:128::17
> add net fdd7:e83e:66bc:145::70/64: gateway fdd7:e83e:66bc:100::70
> add net 10.188.101.71/24: gateway 10.188.100.70
> add net fdd7:e83e:66bc:101::71/64: gateway fdd7:e83e:66bc:100::70
> add net 10.188.102.72/24: gateway 10.188.100.70
> add net fdd7:e83e:66bc:102::72/64: gateway fdd7:e83e:66bc:100::70
> add net 10.188.152.70/24: gateway 10.188.148.17
> add net fdd7:e83e:66bc:14c::70/64: gateway fdd7:e83e:66bc:148::17
> add net 10.188.153.70/24: gateway 10.188.148.17
> add net fdd7:e83e:66bc:14d::70/64: gateway fdd7:e83e:66bc:148::17
> add net 10.188.154.72/24: gateway 10.188.148.17
> add net fdd7:e83e:66bc:14e::72/64: gateway fdd7:e83e:66bc:148::17
> add net 10.188.155.72/24: gateway 10.188.148.17
> add net fdd7:e83e:66bc:14f::72/64: gateway fdd7:e83e:66bc:148::17
> add net fdd7:e83e:66bc:165::70/64: gateway fdd7:e83e:66bc:100::70
> add net 10.188.101.71/24: gateway 10.188.100.70
> add net fdd7:e83e:66bc:101::71/64: gateway fdd7:e83e:66bc:100::70
> add net 10.188.102.72/24: gateway 10.188.100.70
> add net fdd7:e83e:66bc:102::72/64: gateway fdd7:e83e:66bc:100::70
> add net 10.188.172.70/24: gateway 10.188.168.17
> add net fdd7:e83e:66bc:16c::70/64: gateway fdd7:e83e:66bc:168::17
> add net 10.188.173.70/24: gateway 10.188.168.17
> add net fdd7:e83e:66bc:16d::70/64: gateway fdd7:e83e:66bc:168::17
> add net 10.188.174.72/24: gateway 10.188.168.17
> add net fdd7:e83e:66bc:16e::72/64: gateway fdd7:e83e:66bc:168::17
> add net 10.188.175.72/24: gateway 10.188.168.17
> add net fdd7:e83e:66bc:16f::72/64: gateway fdd7:e83e:66bc:168::17
> add net fdd7:e83e:66bc:185::70/64: gateway fdd7:e83e:66bc:100::70
> add net 10.188.101.71/24: gateway 10.188.100.70
> add net fdd7:e83e:66bc:101::71/64: gateway fdd7:e83e:66bc:100::70
> add net 10.188.102.72/24: gateway 10.188.100.70
> add net fdd7:e83e:66bc:102::72/64: gateway fdd7:e83e:66bc:100::70
> add net 10.188.192.70/24: gateway 10.188.188.17
> add net fdd7:e83e:66bc:18c::70/64: gateway fdd7:e83e:66bc:188::17
> add net 10.188.193.70/24: gateway 10.188.188.17
> add net fdd7:e83e:66bc:18d::70/64: gateway fdd7:e83e:66bc:188::17
> add net 10.188.194.72/24: gateway 10.188.188.17
> add net fdd7:e83e:66bc:18e::72/64: gateway fdd7:e83e:66bc:188::17
> add net 10.188.195.72/24: gateway 10.188.188.17
> add net fdd7:e83e:66bc:18f::72/64: gateway fdd7:e83e:66bc:188::17
> em2: no link .... got link
> em2: bound to 10.0.1.21 from 10.0.1.1 (00:30:48:57:ed:0b)
> reordering libraries: done.
> starting early daemons: syslogd pflogd ntpd.
> starting RPC daemons:.
> savecore: no core dump
> checking quotas: done.
> clearing /tmp
> kern.securelevel: 0 -> 1
> turning on accounting
> creating runtime link editor directory cache.
> preserving editor files.
> starting network daemons: sshd smtpd sndiod.
> starting local daemons: cron.
> Tue Apr 24 14:13:24 CEST 2018
> 
> root@ot1:.../~# startx 
> xauth: (stdin):1:  bad display name "ot1.obsd-lab.genua.de:0" in "add" command
> 
> 
> X.Org X Server 1.19.6
> Release Date: 2017-12-20
> X Protocol Version 11, Revision 0
> Build Operating System: OpenBSD 6.3 i386 
> Current Operating System: OpenBSD ot1.obsd-lab.genua.de 6.3 GENERIC.MP#0 i386
> Build Date: 22 April 2018  08:45:48AM
>  
> Current version of pixman: 0.34.0
>         Before reporting problems, check http://wiki.x.org
>         to make sure that you have the latest version.
> Markers: (--) probed, (**) from config file, (==) default setting,
>         (++) from command line, (!!) notice, (II) informational,
>         (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
> (==) Log file: "/var/log/Xorg.0.log", Time: Tue Apr 24 14:18:35 2018
> (==) Using system config directory "/usr/X11R6/share/X11/xorg.conf.d"
> (II) [KMS] Kernel modesetting enabled.
> Can't enable IRQ/MSI because no handler is installed
> Agent pid 74126
> Identity added: /root/.ssh/id_rsa (/root/.ssh/id_rsa)
> ^Cxinit: connection to X server lost
> 
> waiting for X server to shut down xterm: fatal IO error 35 (Resource 
> temporarily unavailable) or KillClient on X server ":0"
> (II)Can't enable IRQ/MSI because no handler is installed
>  Server terminated successfully (0). Closing log file.
> 
> xinit: unexpected signal 2
> xauth: (argv):1:  bad display name "ot1.obsd-lab.genua.de:0" in "remove" 
> command
> 

Reply via email to