On 5/18/16, Sebastien Marie <[email protected]> wrote:
> On Wed, May 18, 2016 at 04:15:59AM -0400, James Hastings wrote:
>> Zero messages now.
>
> ok, thanks. So it seems related.
>
> In order to be sure about the code path, could you apply the following
> patch on top of -current (so without the revert previously sent).
>
> It just adds printf:
> - in TRIPS initialisation (called by notify)
> - in acpitz_setfan
>
> Keep it running for several cycles (so 30 or 40 seconds to have 3 or 4
> cycles), and send to us the dmesg.
>
> Thanks.
> --
> Sebastien Marie
>
>
> Index: acpitz.c
> ===================================================================
> RCS file: /cvs/src/sys/dev/acpi/acpitz.c,v
> retrieving revision 1.50
> diff -u -p -r1.50 acpitz.c
> --- acpitz.c 26 Apr 2016 09:42:57 -0000 1.50
> +++ acpitz.c 18 May 2016 16:04:37 -0000
> @@ -136,10 +136,12 @@ acpitz_init(struct acpitz_softc *sc, int
>
> /* Read trip points */
> if (flag & ACPITZ_TRIPS) {
> + printf("%s: acpitz_init(ACPITZ_TRIPS)\n", DEVNAME(sc));
> sc->sc_psv = acpitz_getreading(sc, "_PSV");
> for (i = 0; i < ACPITZ_MAX_AC; i++) {
> snprintf(name, sizeof(name), "_AC%d", i);
> sc->sc_ac[i] = acpitz_getreading(sc, name);
> + printf("%s: sc_ac[%d]=%d sc_ac_stat[%d]=%d\n",
> DEVNAME(sc), i,
> sc->sc_ac[i], i, sc->sc_ac_stat[i]);
> }
> }
>
> @@ -276,7 +278,7 @@ acpitz_setfan(struct acpitz_softc *sc, i
> int64_t sta;
> struct acpi_devlist *dl;
>
> - dnprintf(20, "%s: acpitz_setfan(%d, %s)\n", DEVNAME(sc), i, method);
> + printf("%s: acpitz_setfan(%d, %s)\n", DEVNAME(sc), i, method);
>
> x = 0;
> snprintf(name, sizeof(name), "_AL%d", i);
>
>
OpenBSD 6.0-beta (GENERIC) #1: Wed May 18 13:34:23 EDT 2016
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 2934833152 (2798MB)
avail mem = 2841522176 (2709MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xf0000 (25 entries)
bios0: vendor Phoenix Technologies, LTD version "5.59" date 05/20/2010
bios0: Compaq-Presario BT473AA-ABA CQ5604F
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP SLIC SSDT HPET MCFG APIC
acpi0: wakeup devices HUB0(S5) XVR0(S5) XVR1(S5) XVR2(S5) PS2M(S4)
PS2K(S4) USB0(S3) USB2(S3) AZAD(S5) MMAC(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 25000000 Hz
acpimcfg0 at acpi0 addr 0xf0000000, bus 0-63
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon(tm) II 170u Processor, 2009.49 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,LONG,3DNOW2,3DNOW,LAHF,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,ITSC
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB
64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative
cpu0: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative
cpu0: AMD erratum 721 detected and fixed
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 200MHz
cpu0: mwait min=64, max=64, IBE
ioapic0 at mainbus0: apid 4 pa 0xfec00000, version 11, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (HUB0)
acpicpu0 at acpi0: C1(@1 halt!), PSS
acpitz0 at acpi0: critical temperature is 75 degC
acpitz0: acpitz_init(ACPITZ_TRIPS)
acpitz0: sc_ac[0]=3462 sc_ac_stat[0]=0
acpitz0: sc_ac[1]=-1 sc_ac_stat[1]=0
acpitz0: sc_ac[2]=-1 sc_ac_stat[2]=0
acpitz0: sc_ac[3]=-1 sc_ac_stat[3]=0
acpitz0: sc_ac[4]=-1 sc_ac_stat[4]=0
acpitz0: sc_ac[5]=-1 sc_ac_stat[5]=0
acpitz0: sc_ac[6]=-1 sc_ac_stat[6]=0
acpitz0: sc_ac[7]=-1 sc_ac_stat[7]=0
acpitz0: sc_ac[8]=-1 sc_ac_stat[8]=0
acpitz0: sc_ac[9]=-1 sc_ac_stat[9]=0
acpibtn0 at acpi0: PWRB
"PNP0F13" at acpi0 not configured
"PNP0303" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
cpu0: 2009 MHz: speeds: 2000 1500 800 MHz
pci0 at mainbus0 bus 0
"NVIDIA MCP61 Memory" rev 0xa1 at pci0 dev 0 function 0 not configured
pcib0 at pci0 dev 1 function 0 "NVIDIA MCP61 ISA" rev 0xa2
nviic0 at pci0 dev 1 function 1 "NVIDIA MCP61 SMBus" rev 0xa2
iic0 at nviic0
spdmem0 at iic0 addr 0x50: 1GB DDR2 SDRAM non-parity PC2-6400CL6
spdmem1 at iic0 addr 0x51: 2GB DDR2 SDRAM non-parity PC2-6400CL6
iic1 at nviic0
"NVIDIA MCP61 Memory" rev 0xa2 at pci0 dev 1 function 2 not configured
ohci0 at pci0 dev 2 function 0 "NVIDIA MCP61 USB" rev 0xa3: apic 4 int
11, version 1.0, legacy support
ehci0 at pci0 dev 2 function 1 "NVIDIA MCP61 USB" rev 0xa3: apic 4 int 7
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "NVIDIA EHCI root hub" rev 2.00/1.00 addr 1
ppb0 at pci0 dev 4 function 0 "NVIDIA MCP61" rev 0xa1
pci1 at ppb0 bus 1
azalia0 at pci0 dev 5 function 0 "NVIDIA MCP61 HD Audio" rev 0xa2: apic 4 int 11
azalia0: codecs: Realtek ALC888
audio0 at azalia0
nfe0 at pci0 dev 7 function 0 "NVIDIA MCP61 LAN" rev 0xa2: apic 4 int
5, address 70:71:bc:7e:87:12
rlphy0 at nfe0 phy 1: RTL8201L 10/100 PHY, rev. 1
pciide0 at pci0 dev 8 function 0 "NVIDIA MCP61 SATA" rev 0xa2: DMA
pciide0: using apic 4 int 11 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: <ST3500418AS>
wd0: 16-sector PIO, LBA48, 476940MB, 976773168 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: <hp, CDDVDW TS-H653R, 0E00> ATAPI
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 5
pciide1 at pci0 dev 8 function 1 "NVIDIA MCP61 SATA" rev 0xa2: DMA
pciide1: using apic 4 int 10 for native-PCI interrupt
ppb1 at pci0 dev 9 function 0 "NVIDIA MCP61 PCIE" rev 0xa2
pci2 at ppb1 bus 2
ppb2 at pci0 dev 11 function 0 "NVIDIA MCP61 PCIE" rev 0xa2
pci3 at ppb2 bus 3
ppb3 at pci0 dev 12 function 0 "NVIDIA MCP61 PCIE" rev 0xa2
pci4 at ppb3 bus 4
vga1 at pci0 dev 13 function 0 "NVIDIA GeForce 6100 nForce 430" rev 0xa2
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pchb0 at pci0 dev 24 function 0 "AMD AMD64 10h HyperTransport" rev 0x00
pchb1 at pci0 dev 24 function 1 "AMD AMD64 10h Address Map" rev 0x00
pchb2 at pci0 dev 24 function 2 "AMD AMD64 10h DRAM Cfg" rev 0x00
km0 at pci0 dev 24 function 3 "AMD AMD64 10h Misc Cfg" rev 0x00
pchb3 at pci0 dev 24 function 4 "AMD AMD64 10h Link Cfg" rev 0x00
isa0 at pcib0
isadma0 at isa0
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
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 "NVIDIA OHCI root hub" rev 1.00/1.00 addr 1
acpitz0: acpitz_setfan(0, _OFF)
acpitz0: _AL0[0] _PR0 failed
umass0 at uhub0 port 8 configuration 1 interface 0 "Generic Mass
Storage Device" rev 2.00/1.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, initiator 0
sd0 at scsibus2 targ 1 lun 0: <Multi, Flash Reader, 1.00> SCSI0
0/direct removable serial.058f6366058F63666471
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
root on wd0a (97383ee33de28b79.a) swap on wd0b dump on wd0b
acpitz0: acpitz_setfan(0, _OFF)
acpitz0: _AL0[0] _PR0 failed
acpitz0: acpitz_setfan(0, _OFF)
acpitz0: _AL0[0] _PR0 failed
acpitz0: acpitz_setfan(0, _OFF)
acpitz0: _AL0[0] _PR0 failed
acpitz0: acpitz_setfan(0, _OFF)
acpitz0: _AL0[0] _PR0 failed
acpitz0: acpitz_setfan(0, _OFF)
acpitz0: _AL0[0] _PR0 failed
acpitz0: acpitz_setfan(0, _OFF)
acpitz0: _AL0[0] _PR0 failed
acpitz0: acpitz_setfan(0, _OFF)
acpitz0: _AL0[0] _PR0 failed