On Wed, May 8, 2019 at 2:55 PM Solene Rapenne <[email protected]> wrote:

> On Wed, May 08, 2019 at 02:22:32PM -0400, Brent Cook wrote:
> > I have been poking at this with a similar 2011 Mac Mini. It seems to be
> > caused by the sdhc/sdmmc device:
> >
> > sdhc0 at pci9 dev 0 function 1 "Broadcom SD Host Controller" rev 0x10:
> apic
> > 2 int 17
> > sdhc0: SDHC 3.0, 200 MHz base clock
> > sdmmc0 at sdhc0: 8-bit, sd high-speed, mmc high-speed, dma
> >
> > There doesn't seem to be a recorded interrupt stat in vmstat that
> accounts
> > for it, but I found that disabling sdmmc/sdhc in ukc frees up the CPU. I
> am
> > poking at the interrupt handler to see which status is triggered when, if
> > that ends up being the root problem (have a hunch on the insert/remove
> > event never stopping).
> >
> > On Wed, Jul 4, 2018 at 2:52 AM <[email protected]> wrote:
> >
> > > >Synopsis:      2012 Mac Mini shows ~50% intr in CPU thread 0
> > > >Category:      system
> > > >Environment:
> > >         System      : OpenBSD 6.3
> > >         Details     : OpenBSD 6.3-current (GENERIC.MP) #83: Mon Jul  2
> > > 10:36:36 MDT 2018
> > >                          [email protected]:
> > > /usr/src/sys/arch/amd64/compile/GENERIC.MP
> > >
> > >         Architecture: OpenBSD.amd64
> > >         Machine     : amd64
>
> You reply to a 9 months old bug report using a now obsolete release,
> about a problem you see on another arch, without sending even a dmesg
> output.
>

Thanks for the tip!

The bug appears to have been that the BCM4331 Wireless adapter was left
enabled by the Mac EFI, which continued to send interrupts after
transferring control to OpenBSD. The fix is committed and should be in
snapshots soon. The revised dmesg should look like this to indicate that we
are disabling the device (adding a full driver for it would probably not be
worth the time for such an old chip).

Let me know how this works for you, or I can send you a diff.

OpenBSD 6.5-current (GENERIC.MP) #21: Fri May 10 11:28:59 CDT 2019
    [email protected]:/sys/arch/amd64/compile/GENERIC.MP
real mem = 17069981696 (16279MB)
avail mem = 16542547968 (15776MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0x8ad34000 (81 entries)
bios0: vendor Apple Inc. version "MM51.88Z.0080.B00.1804091930" date
04/09/2018
bios0: Apple Inc. Macmini5,3
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET APIC SBST ECDT SSDT SSDT SSDT SSDT SSDT SSDT
SSDT SSDT SSDT SSDT SSDT MCFG
acpi0: wakeup devices P0P2(S4) GFX0(S4) PEG1(S4) EC__(S4) GMUX(S3) HDEF(S4)
GIGE(S4) SDXC(S3) RP01(S4) ARPT(S4) RP02(S4) RP03(S4) EHC1(S3) EHC2(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7-2635QM CPU @ 2.00GHz, 1995.75 MHz, 06-2a-07
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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1.2, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i7-2635QM CPU @ 2.00GHz, 1995.47 MHz, 06-2a-07
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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Core(TM) i7-2635QM CPU @ 2.00GHz, 1995.47 MHz, 06-2a-07
cpu2:
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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 6 (application processor)
cpu3: Intel(R) Core(TM) i7-2635QM CPU @ 2.00GHz, 1995.47 MHz, 06-2a-07
cpu3:
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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 0, core 3, package 0
cpu4 at mainbus0: apid 1 (application processor)
cpu4: Intel(R) Core(TM) i7-2635QM CPU @ 2.00GHz, 1995.47 MHz, 06-2a-07
cpu4:
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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu4: 256KB 64b/line 8-way L2 cache
cpu4: smt 1, core 0, package 0
cpu5 at mainbus0: apid 3 (application processor)
cpu5: Intel(R) Core(TM) i7-2635QM CPU @ 2.00GHz, 1995.47 MHz, 06-2a-07
cpu5:
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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu5: 256KB 64b/line 8-way L2 cache
cpu5: smt 1, core 1, package 0
cpu6 at mainbus0: apid 5 (application processor)
cpu6: Intel(R) Core(TM) i7-2635QM CPU @ 2.00GHz, 1995.47 MHz, 06-2a-07
cpu6:
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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu6: 256KB 64b/line 8-way L2 cache
cpu6: smt 1, core 2, package 0
cpu7 at mainbus0: apid 7 (application processor)
cpu7: Intel(R) Core(TM) i7-2635QM CPU @ 2.00GHz, 1995.47 MHz, 06-2a-07
cpu7:
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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu7: 256KB 64b/line 8-way L2 cache
cpu7: smt 1, core 3, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins, remapped
acpiec0 at acpi0
acpimcfg0 at acpi0
acpimcfg0: addr 0xe0000000, bus 0-156
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (P0P2)
acpiprt2 at acpi0: bus 6 (PEG1)
acpiprt3 at acpi0: bus 2 (RP01)
acpiprt4 at acpi0: bus 3 (RP02)
acpiprt5 at acpi0: bus 4 (RP03)
acpicpu0 at acpi0: C3(200@91 mwait.1@0x30), C2(500@64 mwait.1@0x10),
C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(200@91 mwait.1@0x30), C2(500@64 mwait.1@0x10),
C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C3(200@91 mwait.1@0x30), C2(500@64 mwait.1@0x10),
C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C3(200@91 mwait.1@0x30), C2(500@64 mwait.1@0x10),
C1(1000@1 mwait.1), PSS
acpicpu4 at acpi0: C3(200@91 mwait.1@0x30), C2(500@64 mwait.1@0x10),
C1(1000@1 mwait.1), PSS
acpicpu5 at acpi0: C3(200@91 mwait.1@0x30), C2(500@64 mwait.1@0x10),
C1(1000@1 mwait.1), PSS
acpicpu6 at acpi0: C3(200@91 mwait.1@0x30), C2(500@64 mwait.1@0x10),
C1(1000@1 mwait.1), PSS
acpicpu7 at acpi0: C3(200@91 mwait.1@0x30), C2(500@64 mwait.1@0x10),
C1(1000@1 mwait.1), PSS
acpipci0 at acpi0 PCI0: 0x00000004 0x00000011 0x00000001
acpicmos0 at acpi0
"APP0001" at acpi0 not configured
"APP000B" at acpi0 not configured
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: SLPB
acpivideo0 at acpi0: IGPU
cpu0: Enhanced SpeedStep 1995 MHz: speeds: 2001, 2000, 1900, 1800, 1700,
1600, 1500, 1400, 1300, 1200, 1100, 1000, 900, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 2G Host" rev 0x09
ppb0 at pci0 dev 1 function 0 "Intel Core 2G PCIE" rev 0x09: msi
pci1 at ppb0 bus 1
ppb1 at pci0 dev 1 function 1 "Intel Core 2G PCIE" rev 0x09: msi
pci2 at ppb1 bus 6
ppb2 at pci2 dev 0 function 0 "Intel 82524EF Thunderbolt" rev 0x00
pci3 at ppb2 bus 7
ppb3 at pci3 dev 0 function 0 "Intel 82524EF Thunderbolt" rev 0x00: msi
pci4 at ppb3 bus 8
"Intel 82524EF Thunderbolt" rev 0x00 at pci4 dev 0 function 0 not configured
ppb4 at pci3 dev 3 function 0 "Intel 82524EF Thunderbolt" rev 0x00: msi
pci5 at ppb4 bus 9
ppb5 at pci3 dev 4 function 0 "Intel 82524EF Thunderbolt" rev 0x00: msi
pci6 at ppb5 bus 10
ppb6 at pci3 dev 5 function 0 "Intel 82524EF Thunderbolt" rev 0x00: msi
pci7 at ppb6 bus 59
ppb7 at pci3 dev 6 function 0 "Intel 82524EF Thunderbolt" rev 0x00: msi
pci8 at ppb7 bus 108
inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics 3000" rev 0x09
drm0 at inteldrm0
inteldrm0: msi
"Intel 6 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
uhci0 at pci0 dev 26 function 0 "Intel 6 Series USB" rev 0x05: apic 2 int 21
ehci0 at pci0 dev 26 function 7 "Intel 6 Series USB" rev 0x05: 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
azalia0 at pci0 dev 27 function 0 "Intel 6 Series HD Audio" rev 0x05: msi
azalia0: codecs: Cirrus Logic CS4206, Intel/0x2805, using Cirrus Logic
CS4206
free with zero size: (2)
free with zero size: (2)
free with zero size: (2)
free with zero size: (2)
audio0 at azalia0
ppb8 at pci0 dev 28 function 0 "Intel 6 Series PCIE" rev 0xb5: msi
pci9 at ppb8 bus 2
bge0 at pci9 dev 0 function 0 "Broadcom BCM57765" rev 0x10, BCM57765 B0
(0x57785100): msi, address 3c:07:54:49:4a:0b
brgphy0 at bge0 phy 1: BCM57765 10/100/1000baseT PHY, rev. 4
sdhc0 at pci9 dev 0 function 1 "Broadcom SD Host Controller" rev 0x10: apic
2 int 17
sdhc0: SDHC 3.0, 200 MHz base clock
sdmmc0 at sdhc0: 8-bit, sd high-speed, mmc high-speed, dma
ppb9 at pci0 dev 28 function 1 "Intel 6 Series PCIE" rev 0xb5: msi
pci10 at ppb9 bus 3
bwi0 at pci10 dev 0 function 0 "Broadcom BCM4331" rev 0x02: disabling
ppb10 at pci0 dev 28 function 2 "Intel 6 Series PCIE" rev 0xb5: msi
pci11 at ppb10 bus 4
ppb11 at pci11 dev 0 function 0 "TI XIO2221 PCIE-PCI" rev 0x01
pci12 at ppb11 bus 5
"TI XIO2221 FireWire" rev 0x01 at pci12 dev 0 function 0 not configured
uhci1 at pci0 dev 29 function 0 "Intel 6 Series USB" rev 0x05: apic 2 int 19
ehci1 at pci0 dev 29 function 7 "Intel 6 Series USB" rev 0x05: apic 2 int 22
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
pcib0 at pci0 dev 31 function 0 "Intel HM65 LPC" rev 0x05
ahci0 at pci0 dev 31 function 2 "Intel 6 Series AHCI" rev 0x05: msi, AHCI
1.3
ahci0: port 0: 6.0Gb/s
ahci0: port 1: 3.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, Samsung SSD 850, EXM0> SCSI3 0/direct
fixed naa.50025388a070de6f
sd0: 244198MB, 512 bytes/sector, 500118192 sectors, thin
sd1 at scsibus1 targ 1 lun 0: <ATA, APPLE HDD HTS541, JA0A> SCSI3 0/direct
fixed naa.5000cca79ac4ff55
sd1: 953869MB, 512 bytes/sector, 1953525168 sectors
ichiic0 at pci0 dev 31 function 3 "Intel 6 Series SMBus" rev 0x05: apic 2
int 18
iic0 at ichiic0
iic0: addr 0x4a 01=20 0a=08 10=0a 11=04 20=f2 21=01 23=88 words 00=0020
01=2000 02=0000 03=0000 04=0000 05=0000 06=0000 07=0000
spdmem0 at iic0 addr 0x50: 8GB DDR3 SDRAM PC3-10600 SO-DIMM
spdmem1 at iic0 addr 0x52: 8GB DDR3 SDRAM PC3-10600 SO-DIMM
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
isa0 at pcib0
isadma0 at isa0
free with zero size: (2)
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
asmc0 at isa0 port 0x300/32: rev 1.77f577, 301 keys
vmm0 at mainbus0: VMX/EPT
efifb at mainbus0 not configured
uhub4 at uhub0 port 1 configuration 1 interface 0 "Standard Microsystems
Hub" rev 2.00/b.b3 addr 2
uhub5 at uhub4 port 1 configuration 1 interface 0 "Apple Inc. BRCM20702
Hub" rev 2.00/1.00 addr 3
uhidev0 at uhub5 port 1 configuration 1 interface 0 "Apple Computer product
0x820a" rev 2.00/1.00 addr 4
uhidev0: iclass 3/1, 1 report id
ukbd0 at uhidev0 reportid 1: 8 variable keys, 6 key codes
wskbd0 at ukbd0: console keyboard
uhidev1 at uhub5 port 2 configuration 1 interface 0 "Apple Computer product
0x820b" rev 2.00/1.00 addr 5
uhidev1: iclass 3/1, 2 report ids
ums0 at uhidev1 reportid 2: 3 buttons
wsmouse0 at ums0 mux 0
ugen0 at uhub5 port 3 "Apple Inc. Bluetooth USB Host Controller" rev
2.00/1.55 addr 6
uhub6 at uhub1 port 1 configuration 1 interface 0 "Standard Microsystems
Hub" rev 2.00/b.b3 addr 2
uhidev2 at uhub6 port 1 configuration 1 interface 0 "Apple Computer, Inc.
IR Receiver" rev 2.00/0.16 addr 3
uhidev2: iclass 3/0, 38 report ids
uhid0 at uhidev2 reportid 36: input=4, output=0, feature=0
uhid1 at uhidev2 reportid 37: input=4, output=0, feature=0
uhid2 at uhidev2 reportid 38: input=4, output=0, feature=0
umass0 at uhub6 port 2 configuration 1 interface 0 " Patriot Memory" rev
2.00/1.00 addr 4
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, initiator 0
sd2 at scsibus2 targ 1 lun 0: <, Patriot Memory, PMAP> SCSI4 0/direct
removable serial.13fe42004C8D05828894
sd2: 7388MB, 512 bytes/sector, 15130624 sectors
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
root on sd0a (36bfce6f8df4c5ec.a) swap on sd0b dump on sd0b
inteldrm0: 1920x1080, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation), using wskbd0
wsdisplay0: screen 1-5 added (std, vt100 emulation)

Reply via email to