> Date: Fri, 6 Sep 2019 12:04:27 +0200 > From: Sebastien Marie <[email protected]> > > Hi, > > When trying to upgrade an amd64 using snapshot, bsd.rd has unable to found > any sd0 disk. > > RAMDISK_CD has: > ahci0 at pci0 dev 31 function 2 "Intel 82801I AHCI" rev 0x02: msi, > unable to reset controller > > whereas working GENERIC.MP has: > ahci0 at pci0 dev 31 function 2 "Intel 82801I AHCI" rev 0x02: msi, AHCI > 1.2 > ahci0: port 0: 3.0Gb/s > ahci0: port 1: 1.5Gb/s > ahci0: PHY offline on port 2 > ahci0: PHY offline on port 3 > ahci0: PHY offline on port 5 > scsibus1 at ahci0: 32 targets > sd0 at scsibus1 targ 0 lun 0: <ATA, ST3160815AS, 3.AD> SCSI3 0/direct > fixed t10.ATA_ST3160815AS_9RX7BKBD > > I bisecting the problem to 9a33df95e47f32536bea8cf06ab92d6e9378a78e > > Use ACPI information to attach PCI busses like we do on arm64. There > are a > few additional quirks though, and attaching the PCI busses is delayed to > replicate the existing code more closely. That may be changed in the > future. Also tweak how we handle MSI support and respect to ACPI flag > that says we shouldn't attempt to use MSIs. > > Some fallout is expected. > > ok patrick@ > > > > Full RAMDISK_CD dmesg (failing): > > > OpenBSD 6.6-beta (RAMDISK_CD) #270: Wed Sep 4 11:46:05 MDT 2019 > [email protected]:/usr/src/sys/arch/amd64/compile/RAMDISK_CD > real mem = 4141871104 (3949MB) > avail mem = 4012367872 (3826MB) > mainbus0 at root > bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xf0450 (80 entries) > bios0: vendor Dell Inc. version "A22" date 06/11/2012 > bios0: Dell Inc. OptiPlex 755 > acpi0 at bios0 > acpi0: TCPA checksum error: ACPI 3.0 > acpi0: tables DSDT FACP SSDT APIC BOOT ASF! MCFG HPET TCPA DMAR SLIC SSDT > SSDT SSDT > acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat > cpu0 at mainbus0: apid 0 (boot processor) > cpu0: Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz, 2660.40 MHz, 06-0f-0b > cpu0: > FPU,VME,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,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,MELTDOWN > cpu0: 4MB 64b/line 16-way L2 cache > cpu0: apic clock running at 332MHz > cpu at mainbus0: not configured > ioapic0 at mainbus0: apid 8 pa 0xfec00000, version 20, 24 pins, remapped > acpiprt0 at acpi0: bus 0 (PCI0) > acpiprt1 at acpi0: bus 3 (PCI4) > acpiprt2 at acpi0: bus 2 (PCI2) > acpiprt3 at acpi0: bus -1 (PCI3) > acpiprt4 at acpi0: bus 1 (PCI1) > acpiprt5 at acpi0: bus -1 (PCI5) > acpiprt6 at acpi0: bus -1 (PCI6) > acpicpu at acpi0 not configured > "PNP0C0C" at acpi0 not configured > acpipci0 at acpi0 PCI0 > acpicmos0 at acpi0 > pci0 at acpipci0 bus 0 > 0:3:0: mem address conflict 0xfedad000/0x10 > 0:31:2: mem address conflict 0xff970000/0x800 > pchb0 at pci0 dev 0 function 0 "Intel 82Q35 Host" rev 0x02 > ppb0 at pci0 dev 1 function 0 "Intel 82Q35 PCIE" rev 0x02: msi > pci1 at ppb0 bus 1 > vga1 at pci1 dev 0 function 0 "ATI Radeon HD 2400 Pro" rev 0x00 > wsdisplay1 at vga1 mux 1: console (80x25, vt100 emulation) > "Intel 82Q35 HECI" rev 0x02 at pci0 dev 3 function 0 not configured > pciide0 at pci0 dev 3 function 2 "Intel 82Q35 PT IDER" rev 0x02: DMA > (unsupported), channel 0 wired to native-PCI, channel 1 wired to native-PCI > pciide0: using apic 8 int 18 for native-PCI interrupt > pciide0: channel 0 ignored (not responding; disabled or no drives?) > pciide0: channel 1 ignored (not responding; disabled or no drives?) > "Intel 82Q35 KT" rev 0x02 at pci0 dev 3 function 3 not configured > em0 at pci0 dev 25 function 0 "Intel ICH9 IGP AMT" rev 0x02: msi, address > 00:1e:4f:f4:e8:50 > uhci0 at pci0 dev 26 function 0 "Intel 82801I USB" rev 0x02: apic 8 int 16 > uhci1 at pci0 dev 26 function 1 "Intel 82801I USB" rev 0x02: apic 8 int 17 > ehci0 at pci0 dev 26 function 7 "Intel 82801I USB" rev 0x02: apic 8 int 22 > 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 > "Intel 82801I HD Audio" rev 0x02 at pci0 dev 27 function 0 not configured > ppb1 at pci0 dev 28 function 0 "Intel 82801I PCIE" rev 0x02: msi > pci2 at ppb1 bus 2 > uhci2 at pci0 dev 29 function 0 "Intel 82801I USB" rev 0x02: apic 8 int 23 > uhci3 at pci0 dev 29 function 1 "Intel 82801I USB" rev 0x02: apic 8 int 17 > uhci4 at pci0 dev 29 function 2 "Intel 82801I USB" rev 0x02: apic 8 int 18 > ehci1 at pci0 dev 29 function 7 "Intel 82801I USB" rev 0x02: apic 8 int 23 > usb1 at ehci1: USB revision 2.0 > uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 > addr 1 > ppb2 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0x92 > pci3 at ppb2 bus 3 > sis0 at pci3 dev 2 function 0 "NS DP83815" rev 0x00, DP83816A: apic 8 int 18, > address 00:0f:b5:42:59:c0 > nsphyter0 at sis0 phy 0: DP83815 10/100 PHY, rev. 1 > "Intel 82801IO LPC" rev 0x02 at pci0 dev 31 function 0 not configured > ahci0 at pci0 dev 31 function 2 "Intel 82801I AHCI" rev 0x02: msi, unable to > reset controller > "Intel 82801I SMBus" rev 0x02 at pci0 dev 31 function 3 not configured > usb2 at uhci0: USB revision 1.0 > uhub2 at usb2 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 > addr 1 > usb3 at uhci1: USB revision 1.0 > uhub3 at usb3 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 > addr 1 > usb4 at uhci2: USB revision 1.0 > uhub4 at usb4 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 > addr 1 > usb5 at uhci3: USB revision 1.0 > uhub5 at usb5 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 > addr 1 > usb6 at uhci4: USB revision 1.0 > uhub6 at usb6 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 > addr 1 > isa0 at mainbus0 > com0 at isa0 port 0x3f8/8 irq 4: 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 wsdisplay1 > uhidev0 at uhub2 port 1 configuration 1 interface 0 "Dell Dell USB Keyboard" > rev 1.10/3.52 addr 2 > uhidev0: iclass 3/1 > ukbd0 at uhidev0 > wskbd1 at ukbd0 mux 1 > wskbd1: connecting to wsdisplay1 > uhidev1 at uhub2 port 2 configuration 1 interface 0 "vendor 0x413c Dell > Premium USB Optical Mouse" rev 2.00/29.00 addr 3 > uhidev1: iclass 3/1 > uhid at uhidev1 not configured > softraid0 at root > scsibus0 at softraid0: 256 targets > root on rd0a swap on rd0b dump on rd0b > > > > Full GENERIC.MP dmesg (working): > > > OpenBSD 6.6-beta (GENERIC.MP) #30: Tue Aug 27 13:25:22 CEST 2019 > [email protected]:/sys/arch/amd64/compile/GENERIC.MP > real mem = 4141871104 (3949MB) > avail mem = 4003663872 (3818MB) > mpath0 at root > scsibus0 at mpath0: 256 targets > mainbus0 at root > bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xf0450 (80 entries) > bios0: vendor Dell Inc. version "A22" date 06/11/2012 > bios0: Dell Inc. OptiPlex 755 > acpi0 at bios0 > acpi0: TCPA checksum error: ACPI 3.0 > acpi0: sleep states S0 S1 S3 S4 S5 > acpi0: tables DSDT FACP SSDT APIC BOOT ASF! MCFG HPET TCPA DMAR SLIC SSDT > SSDT SSDT > acpi0: wakeup devices VBTN(S4) PCI0(S5) PCI4(S5) PCI2(S5) PCI3(S5) PCI1(S5) > PCI5(S5) PCI6(S5) USB0(S3) USB1(S3) USB2(S3) USB3(S3) USB4(S3) USB5(S3) > acpitimer0 at acpi0: 3579545 Hz, 24 bits > acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat > cpu0 at mainbus0: apid 0 (boot processor) > cpu0: Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz, 2660.38 MHz, 06-0f-0b > cpu0: > FPU,VME,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,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,MELTDOWN > cpu0: 4MB 64b/line 16-way L2 cache > mtrr: Pentium Pro MTRR support, 7 var ranges, 88 fixed ranges > cpu0: apic clock running at 332MHz > cpu1 at mainbus0: apid 1 (application processor) > TSC skew=-12 > cpu1: Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz, 2659.99 MHz, 06-0f-0b > cpu1: > FPU,VME,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,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,MELTDOWN > cpu1: 4MB 64b/line 16-way L2 cache > ioapic0 at mainbus0: apid 8 pa 0xfec00000, version 20, 24 pins, remapped > acpimcfg0 at acpi0 > acpimcfg0: addr 0xe0000000, bus 0-255 > acpimcfg0: addr 0x0, bus 0-0 > acpihpet0 at acpi0: 14318179 Hz > acpiprt0 at acpi0: bus 0 (PCI0) > acpiprt1 at acpi0: bus 3 (PCI4) > acpiprt2 at acpi0: bus 2 (PCI2) > acpiprt3 at acpi0: bus -1 (PCI3) > acpiprt4 at acpi0: bus 1 (PCI1) > acpiprt5 at acpi0: bus -1 (PCI5) > acpiprt6 at acpi0: bus -1 (PCI6) > acpicpu0 at acpi0: C1(@1 halt!), PSS > acpicpu1 at acpi0: C1(@1 halt!), PSS > acpibtn0 at acpi0: VBTN > acpipci0 at acpi0 PCI0: _OSC failed > acpicmos0 at acpi0 > cpu0: Enhanced SpeedStep 2660 MHz: speeds: 2667, 2333, 2000 MHz > pci0 at mainbus0 bus 0 > pchb0 at pci0 dev 0 function 0 "Intel 82Q35 Host" rev 0x02 > ppb0 at pci0 dev 1 function 0 "Intel 82Q35 PCIE" rev 0x02: msi > pci1 at ppb0 bus 1 > radeondrm0 at pci1 dev 0 function 0 "ATI Radeon HD 2400 Pro" rev 0x00 > drm0 at radeondrm0 > radeondrm0: msi > "Intel 82Q35 HECI" rev 0x02 at pci0 dev 3 function 0 not configured > pciide0 at pci0 dev 3 function 2 "Intel 82Q35 PT IDER" rev 0x02: DMA > (unsupported), channel 0 wired to native-PCI, channel 1 wired to native-PCI > pciide0: using apic 8 int 18 for native-PCI interrupt > pciide0: channel 0 ignored (not responding; disabled or no drives?) > pciide0: channel 1 ignored (not responding; disabled or no drives?) > puc0 at pci0 dev 3 function 3 "Intel 82Q35 KT" rev 0x02: ports: 16 com > com4 at puc0 port 0 apic 8 int 17: ns16550a, 16 byte fifo > com4: probed fifo depth: 0 bytes > em0 at pci0 dev 25 function 0 "Intel ICH9 IGP AMT" rev 0x02: msi, address > 00:1e:4f:f4:e8:50 > uhci0 at pci0 dev 26 function 0 "Intel 82801I USB" rev 0x02: apic 8 int 16 > uhci1 at pci0 dev 26 function 1 "Intel 82801I USB" rev 0x02: apic 8 int 17 > ehci0 at pci0 dev 26 function 7 "Intel 82801I USB" rev 0x02: apic 8 int 22 > 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 > azalia0 at pci0 dev 27 function 0 "Intel 82801I HD Audio" rev 0x02: msi > azalia0: codecs: Analog Devices AD1984 > audio0 at azalia0 > ppb1 at pci0 dev 28 function 0 "Intel 82801I PCIE" rev 0x02: msi > pci2 at ppb1 bus 2 > uhci2 at pci0 dev 29 function 0 "Intel 82801I USB" rev 0x02: apic 8 int 23 > uhci3 at pci0 dev 29 function 1 "Intel 82801I USB" rev 0x02: apic 8 int 17 > uhci4 at pci0 dev 29 function 2 "Intel 82801I USB" rev 0x02: apic 8 int 18 > ehci1 at pci0 dev 29 function 7 "Intel 82801I USB" rev 0x02: apic 8 int 23 > usb1 at ehci1: USB revision 2.0 > uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 > addr 1 > ppb2 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0x92 > pci3 at ppb2 bus 3 > sis0 at pci3 dev 2 function 0 "NS DP83815" rev 0x00, DP83816A: apic 8 int 18, > address 00:0f:b5:42:59:c0 > nsphyter0 at sis0 phy 0: DP83815 10/100 PHY, rev. 1 > pcib0 at pci0 dev 31 function 0 "Intel 82801IO LPC" rev 0x02 > ahci0 at pci0 dev 31 function 2 "Intel 82801I AHCI" rev 0x02: msi, AHCI 1.2 > ahci0: port 0: 3.0Gb/s > ahci0: port 1: 1.5Gb/s > ahci0: PHY offline on port 2 > ahci0: PHY offline on port 3 > ahci0: PHY offline on port 5 > scsibus1 at ahci0: 32 targets > sd0 at scsibus1 targ 0 lun 0: <ATA, ST3160815AS, 3.AD> SCSI3 0/direct fixed > t10.ATA_ST3160815AS_9RX7BKBD > sd0: 152587MB, 512 bytes/sector, 312500000 sectors > cd0 at scsibus1 targ 1 lun 0: <HL-DT-ST, DVD+-RW GSA-H73N, B103> ATAPI > 5/cdrom removable > ichiic0 at pci0 dev 31 function 3 "Intel 82801I SMBus" rev 0x02: apic 8 int 18 > iic0 at ichiic0 > spdmem0 at iic0 addr 0x50: 1GB DDR2 SDRAM non-parity PC2-5300CL5 > spdmem1 at iic0 addr 0x51: 1GB DDR2 SDRAM non-parity PC2-5300CL5 > spdmem2 at iic0 addr 0x52: 1GB DDR2 SDRAM non-parity PC2-5300CL5 > spdmem3 at iic0 addr 0x53: 1GB DDR2 SDRAM non-parity PC2-5300CL5 > usb2 at uhci0: USB revision 1.0 > uhub2 at usb2 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 > addr 1 > usb3 at uhci1: USB revision 1.0 > uhub3 at usb3 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 > addr 1 > usb4 at uhci2: USB revision 1.0 > uhub4 at usb4 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 > addr 1 > usb5 at uhci3: USB revision 1.0 > uhub5 at usb5 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 > addr 1 > usb6 at uhci4: USB revision 1.0 > uhub6 at usb6 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 > addr 1 > isa0 at pcib0 > isadma0 at isa0 > com0 at isa0 port 0x3f8/8 irq 4: 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 > vmm0 at mainbus0: VMX (using slow L1TF mitigation) > uhidev0 at uhub2 port 1 configuration 1 interface 0 "Dell Dell USB Keyboard" > rev 1.10/3.52 addr 2 > uhidev0: iclass 3/1 > ukbd0 at uhidev0: 8 variable keys, 6 key codes > wskbd1 at ukbd0 mux 1 > uhidev1 at uhub2 port 2 configuration 1 interface 0 "Dell Dell Premium USB > Optical Mouse" rev 2.00/29.00 addr 3 > uhidev1: iclass 3/1 > ums0 at uhidev1: 5 buttons, Z and W dir > wsmouse0 at ums0 mux 0 > vscsi0 at root > scsibus2 at vscsi0: 256 targets > softraid0 at root > scsibus3 at softraid0: 256 targets > root on sd0a (f1307242b412e6c8.a) swap on sd0b dump on sd0b > initializing kernel modesetting (RV610 0x1002:0x94C3 0x1028:0x0402 0x00). > drm:pid0:r600_init *ERROR* Expecting atombios for R600 GPU > drm:pid0:radeondrm_attachhook *ERROR* Fatal error during GPU init > [TTM] Memory type 2 has not been initialized > drm0 detached > radeondrm0 detached > vga1 at pci1 dev 0 function 0 "ATI Radeon HD 2400 Pro" rev 0x00 > wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation), using wskbd0 > wskbd1: connecting to wsdisplay0 > wsdisplay0: screen 1-5 added (80x25, vt100 emulation) > > > > If required, I could try to get a dmesg from failing GENERIC.MP with > acpipci. It isn't provided for now, as I need to patch the kernel to > force a reboot to kept dmesg buffer.
What happens if you disable acpipci(4) when booting bsd.rd?
