On Wed, May 8, 2019 at 2:55 PM Solene Rapenne 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 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
> > > dera...@amd64.openbsd.org:
> > > /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
bc...@santo.lan:/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 0xfee0: 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