Re: [acpi] kernel diagnostic assertion "(reg & 0x3) == 0" failed

2015-07-31 Thread Giovanni Bechis
On 07/31/15 09:08, Mike Larkin wrote:
> On Sat, Jul 25, 2015 at 03:44:26PM +0200, giova...@paclan.it wrote:
>>> Synopsis:   after acpi.c 1.289 commit my laptop cannot boot anymore
>>> Category:   kernel
>>> Environment:
>>  System  : OpenBSD 5.8
>>  Details : OpenBSD 5.8-beta (GENERIC.MP) #20: Wed Jul 22 13:24:32 
>> CEST 2015
>>   
>> giova...@bigio.paclan.it:/usr/src/sys/arch/amd64/compile/GENERIC.MP
>>
>>  Architecture: OpenBSD.amd64
>>  Machine : amd64
>>> Description:
>>  laptop cannot boot and enters ddb, kernel in dmesg is built
>> from src tree as of 07/22 with acpi.c rev 1.288
> 
> I think this is fixed by the recent acpi.c revert.
> 
> -ml
> 
exactly.
 Giovanni



Re: [acpi] kernel diagnostic assertion "(reg & 0x3) == 0" failed

2015-07-31 Thread Mike Larkin
On Sat, Jul 25, 2015 at 03:44:26PM +0200, giova...@paclan.it wrote:
> >Synopsis:after acpi.c 1.289 commit my laptop cannot boot anymore
> >Category:kernel
> >Environment:
>   System  : OpenBSD 5.8
>   Details : OpenBSD 5.8-beta (GENERIC.MP) #20: Wed Jul 22 13:24:32 
> CEST 2015
>
> giova...@bigio.paclan.it:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> 
>   Architecture: OpenBSD.amd64
>   Machine : amd64
> >Description:
>   laptop cannot boot and enters ddb, kernel in dmesg is built
> from src tree as of 07/22 with acpi.c rev 1.288

I think this is fixed by the recent acpi.c revert.

-ml

> ---
> Jul 22 13:07:57 bigio /bsd: cpu3: 256KB 64b/line 8-way L2 cache
> Jul 22 13:07:57 bigio /bsd: cpu3: smt 1, core 1, package 0
> Jul 22 13:07:57 bigio /bsd: ioapic0 at mainbus0: apid 2 pa 0xfec0, 
> version 20, 24 pins
> Jul 22 13:07:57 bigio /bsd: acpimcfg0 at acpi0 addr 0xf800, bus 0-63
> Jul 22 13:07:57 bigio /bsd: panic: kernel diagnostic assertion "(reg & 0x3) 
> == 0" failed: file "../../../../arch/amd64/pci/pci_machdep.c", line 272
> Jul 22 13:07:57 bigio /bsd: Stopped atDebugger+0x9:   leave   
> Jul 22 13:07:57 bigio /bsd: Debugger() at Debugger+0x9
> Jul 22 13:07:57 bigio /bsd: panic() at panic+0xfe
> Jul 22 13:07:57 bigio /bsd: __assert() at __assert+0x25
> Jul 22 13:07:57 bigio /bsd: pci_conf_read() at pci_conf_read+0x103
> Jul 22 13:07:57 bigio /bsd: acpi_gasio() at acpi_gasio+0x41d
> Jul 22 13:07:57 bigio /bsd: aml_rwgas() at aml_rwgas+0x2e7
> Jul 22 13:07:57 bigio /bsd: aml_rwfield() at aml_rwfield+0x205
> Jul 22 13:07:57 bigio /bsd: aml_store() at aml_store+0x1eb
> Jul 22 13:07:57 bigio /bsd: aml_parse() at aml_parse+0xf4c
> Jul 22 13:07:57 bigio /bsd: aml_eval() at aml_eval+0x1c8
> Jul 22 13:07:57 bigio /bsd: end trace frame: 0x81a28990, count: 0
> Jul 22 13:07:57 bigio /bsd: RUN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT 
> WHEN REPORTING THIS PANIC!
> Jul 22 13:07:57 bigio /bsd: IF RUNNING SMP, USE 'mach ddbcpu <#>' AND 'trace' 
> ON OTHER PROCESSORS, TOO.
> Jul 22 13:07:57 bigio /bsd: DO NOT EVEN BOTHER REPORTING THIS WITHOUT 
> INCLUDING THAT INFORMATION!
> Jul 22 13:07:57 bigio /bsd: ddb{0}> Debugger() at Debugger+0x9
> Jul 22 13:07:57 bigio /bsd: panic() at panic+0xfe
> Jul 22 13:07:57 bigio /bsd: __assert() at __assert+0x25
> Jul 22 13:07:57 bigio /bsd: pci_conf_read() at pci_conf_read+0x103
> Jul 22 13:07:57 bigio /bsd: acpi_gasio() at acpi_gasio+0x41d
> Jul 22 13:07:57 bigio /bsd: aml_rwgas() at aml_rwgas+0x2e7
> Jul 22 13:07:57 bigio /bsd: aml_rwfield() at aml_rwfield+0x205
> Jul 22 13:07:57 bigio /bsd: aml_store() at aml_store+0x1eb
> Jul 22 13:07:57 bigio /bsd: aml_parse() at aml_parse+0xf4c
> Jul 22 13:07:57 bigio /bsd: aml_eval() at aml_eval+0x1c8
> Jul 22 13:07:57 bigio /bsd: aml_evalnode() at aml_evalnode+0x74
> Jul 22 13:07:57 bigio /bsd: acpi_inidev() at acpi_inidev+0x57
> Jul 22 13:07:57 bigio /bsd: aml_find_node() at aml_find_node+0x92
> Jul 22 13:07:57 bigio /bsd: aml_find_node() at aml_find_node+0x87
> Jul 22 13:07:57 bigio last message repeated 3 times
> Jul 22 13:07:57 bigio /bsd: acpi_attach() at acpi_attach+0x496
> Jul 22 13:07:57 bigio /bsd: config_attach() at config_attach+0x1bc
> Jul 22 13:07:57 bigio /bsd: bios_attach() at bios_attach+0x23b
> Jul 22 13:07:57 bigio /bsd: config_attach() at config_attach+0x1bc
> Jul 22 13:07:57 bigio /bsd: mainbus_attach() at mainbus_attach+0x66
> Jul 22 13:07:57 bigio /bsd: config_attach() at config_attach+0x1bc
> Jul 22 13:07:57 bigio /bsd: cpu_configure() at cpu_configure+0x1b
> Jul 22 13:07:57 bigio /bsd: main() at main+0x40d
> Jul 22 13:07:57 bigio /bsd: end trace frame: 0x0, count: -25
> Jul 22 13:07:57 bigio /bsd: ddb{0}>PID   PPID   PGRPUID  S   
> FLAGS  WAIT  COMMAND 
> Jul 22 13:07:57 bigio /bsd: *0 -1  0  0  7 0x10200
> swapper 
> ---
> 
> >How-To-Repeat:
>   just boot the laptop with acpi.c 1.289 applied
> >Fix:
>   as a workaround I backout acpi.c to a previous revision on my tree
> 
> 
> dmesg:
> OpenBSD 5.8-beta (GENERIC.MP) #20: Wed Jul 22 13:24:32 CEST 2015
> giova...@bigio.paclan.it:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 3835400192 (3657MB)
> avail mem = 3715264512 (3543MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xdae3a000 (60 entries)
> bios0: vendor LENOVO version "H5ET69WW (1.12 )" date 11/15/2012
> bios0: LENOVO 62742QG
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S3 S4 S5
> acpi0: tables DSDT FACP SLIC SSDT ASF! HPET APIC MCFG FPDT SSDT SSDT UEFI 
> UEFI MSDM UEFI DBG2
> acpi0: wakeup devices P0P1(S4) GLAN(S4) EHC1(S3) EHC2(S3) XHC_(S3) HDEF(S4) 
> PXSX(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP04(S4) 
> PXSX(S4) RP05(S4) [...]
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpihpet0 at acpi0: 14318179 Hz
> ac

[acpi] kernel diagnostic assertion "(reg & 0x3) == 0" failed

2015-07-25 Thread giovanni
>Synopsis:  after acpi.c 1.289 commit my laptop cannot boot anymore
>Category:  kernel
>Environment:
System  : OpenBSD 5.8
Details : OpenBSD 5.8-beta (GENERIC.MP) #20: Wed Jul 22 13:24:32 
CEST 2015
 
giova...@bigio.paclan.it:/usr/src/sys/arch/amd64/compile/GENERIC.MP

Architecture: OpenBSD.amd64
Machine : amd64
>Description:
laptop cannot boot and enters ddb, kernel in dmesg is built
from src tree as of 07/22 with acpi.c rev 1.288
---
Jul 22 13:07:57 bigio /bsd: cpu3: 256KB 64b/line 8-way L2 cache
Jul 22 13:07:57 bigio /bsd: cpu3: smt 1, core 1, package 0
Jul 22 13:07:57 bigio /bsd: ioapic0 at mainbus0: apid 2 pa 0xfec0, version 
20, 24 pins
Jul 22 13:07:57 bigio /bsd: acpimcfg0 at acpi0 addr 0xf800, bus 0-63
Jul 22 13:07:57 bigio /bsd: panic: kernel diagnostic assertion "(reg & 0x3) == 
0" failed: file "../../../../arch/amd64/pci/pci_machdep.c", line 272
Jul 22 13:07:57 bigio /bsd: Stopped at  Debugger+0x9:   leave   
Jul 22 13:07:57 bigio /bsd: Debugger() at Debugger+0x9
Jul 22 13:07:57 bigio /bsd: panic() at panic+0xfe
Jul 22 13:07:57 bigio /bsd: __assert() at __assert+0x25
Jul 22 13:07:57 bigio /bsd: pci_conf_read() at pci_conf_read+0x103
Jul 22 13:07:57 bigio /bsd: acpi_gasio() at acpi_gasio+0x41d
Jul 22 13:07:57 bigio /bsd: aml_rwgas() at aml_rwgas+0x2e7
Jul 22 13:07:57 bigio /bsd: aml_rwfield() at aml_rwfield+0x205
Jul 22 13:07:57 bigio /bsd: aml_store() at aml_store+0x1eb
Jul 22 13:07:57 bigio /bsd: aml_parse() at aml_parse+0xf4c
Jul 22 13:07:57 bigio /bsd: aml_eval() at aml_eval+0x1c8
Jul 22 13:07:57 bigio /bsd: end trace frame: 0x81a28990, count: 0
Jul 22 13:07:57 bigio /bsd: RUN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT 
WHEN REPORTING THIS PANIC!
Jul 22 13:07:57 bigio /bsd: IF RUNNING SMP, USE 'mach ddbcpu <#>' AND 'trace' 
ON OTHER PROCESSORS, TOO.
Jul 22 13:07:57 bigio /bsd: DO NOT EVEN BOTHER REPORTING THIS WITHOUT INCLUDING 
THAT INFORMATION!
Jul 22 13:07:57 bigio /bsd: ddb{0}> Debugger() at Debugger+0x9
Jul 22 13:07:57 bigio /bsd: panic() at panic+0xfe
Jul 22 13:07:57 bigio /bsd: __assert() at __assert+0x25
Jul 22 13:07:57 bigio /bsd: pci_conf_read() at pci_conf_read+0x103
Jul 22 13:07:57 bigio /bsd: acpi_gasio() at acpi_gasio+0x41d
Jul 22 13:07:57 bigio /bsd: aml_rwgas() at aml_rwgas+0x2e7
Jul 22 13:07:57 bigio /bsd: aml_rwfield() at aml_rwfield+0x205
Jul 22 13:07:57 bigio /bsd: aml_store() at aml_store+0x1eb
Jul 22 13:07:57 bigio /bsd: aml_parse() at aml_parse+0xf4c
Jul 22 13:07:57 bigio /bsd: aml_eval() at aml_eval+0x1c8
Jul 22 13:07:57 bigio /bsd: aml_evalnode() at aml_evalnode+0x74
Jul 22 13:07:57 bigio /bsd: acpi_inidev() at acpi_inidev+0x57
Jul 22 13:07:57 bigio /bsd: aml_find_node() at aml_find_node+0x92
Jul 22 13:07:57 bigio /bsd: aml_find_node() at aml_find_node+0x87
Jul 22 13:07:57 bigio last message repeated 3 times
Jul 22 13:07:57 bigio /bsd: acpi_attach() at acpi_attach+0x496
Jul 22 13:07:57 bigio /bsd: config_attach() at config_attach+0x1bc
Jul 22 13:07:57 bigio /bsd: bios_attach() at bios_attach+0x23b
Jul 22 13:07:57 bigio /bsd: config_attach() at config_attach+0x1bc
Jul 22 13:07:57 bigio /bsd: mainbus_attach() at mainbus_attach+0x66
Jul 22 13:07:57 bigio /bsd: config_attach() at config_attach+0x1bc
Jul 22 13:07:57 bigio /bsd: cpu_configure() at cpu_configure+0x1b
Jul 22 13:07:57 bigio /bsd: main() at main+0x40d
Jul 22 13:07:57 bigio /bsd: end trace frame: 0x0, count: -25
Jul 22 13:07:57 bigio /bsd: ddb{0}>PID   PPID   PGRPUID  S   FLAGS  
WAIT  COMMAND 
Jul 22 13:07:57 bigio /bsd: *0 -1  0  0  7 0x10200  
  swapper 
---

>How-To-Repeat:
just boot the laptop with acpi.c 1.289 applied
>Fix:
as a workaround I backout acpi.c to a previous revision on my tree


dmesg:
OpenBSD 5.8-beta (GENERIC.MP) #20: Wed Jul 22 13:24:32 CEST 2015
giova...@bigio.paclan.it:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3835400192 (3657MB)
avail mem = 3715264512 (3543MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xdae3a000 (60 entries)
bios0: vendor LENOVO version "H5ET69WW (1.12 )" date 11/15/2012
bios0: LENOVO 62742QG
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SLIC SSDT ASF! HPET APIC MCFG FPDT SSDT SSDT UEFI UEFI 
MSDM UEFI DBG2
acpi0: wakeup devices P0P1(S4) GLAN(S4) EHC1(S3) EHC2(S3) XHC_(S3) HDEF(S4) 
PXSX(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP04(S4) 
PXSX(S4) RP05(S4) [...]
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) i3-2348M CPU @ 2.30GHz, 2295.13 MHz
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