From nobody@FreeBSD.org  Mon Sep 11 07:48:54 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C3B6516A403
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 11 Sep 2006 07:48:54 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2E3E543D46
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 11 Sep 2006 07:48:54 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k8B7mrC0088263
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 11 Sep 2006 07:48:53 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k8B7mrnc088262;
	Mon, 11 Sep 2006 07:48:53 GMT
	(envelope-from nobody)
Message-Id: <200609110748.k8B7mrnc088262@www.freebsd.org>
Date: Mon, 11 Sep 2006 07:48:53 GMT
From: Timo Schoeler <timo.schoeler@riscworks.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ACPI bad reads/writes occur since upgrading from 6.1-RELEASE to -STABLE
X-Send-Pr-Version: www-2.3

>Number:         103125
>Category:       kern
>Synopsis:       [acpi] ACPI bad reads/writes occur since upgrading from 6.1-RELEASE to -STABLE (regression)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 11 07:50:23 GMT 2006
>Closed-Date:    Wed Jun 27 14:37:46 GMT 2007
>Last-Modified:  Wed Jun 27 14:37:46 GMT 2007
>Originator:     Timo Schoeler
>Release:        FreeBSD 6.1-STABLE
>Organization:
RISCworks
>Environment:
FreeBSD aldebaran.riscworks.net 6.1-STABLE FreeBSD 6.1-STABLE #0: Mon Sep 11 08:54:29 CEST 2006     root@aldebaran.riscworks.net:/usr/obj/usr/src/sys/ALDEBARAN_MP  i386
>Description:
hi,

since i upgraded from -RELEASE to -STABLE following entries occur (the
'bad' ones are new -- they didn't show up on -RELEASE; i have three
machines of this type, all show the same problem):

acpi0: <PTLTD   RSDT> on motherboard
acpi: bad write to port 0xcf8 (32), val 0x80000070
acpi: bad read from port 0xcfc (32)
acpi0: Power Button (fixed)
acpi: bad write to port 0xcf8 (32), val 0x80000344
acpi: bad read from port 0xcfc (32)
acpi: bad read from port 0xcfc (32)

full dmesg here:

Copyright (c) 1992-2006 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD 6.1-STABLE #0: Mon Sep 11 08:54:29 CEST 2006
    root@aldebaran.riscworks.net:/usr/obj/usr/src/sys/ALDEBARAN_MP
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel Pentium III (863.94-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x683  Stepping = 3
  Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 1073676288 (1023 MB)
avail memory = 1041559552 (993 MB)
ACPI APIC Table: <PTLTD    APIC  >
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  1
 cpu1 (AP): APIC ID:  0
MADT: Forcing active-low polarity and level trigger for SCI
ioapic0 <Version 1.1> irqs 0-15 on motherboard
ioapic1 <Version 1.1> irqs 16-31 on motherboard
kbd1 at kbdmux0
acpi0: <PTLTD   RSDT> on motherboard
acpi: bad write to port 0xcf8 (32), val 0x80000070
acpi: bad read from port 0xcfc (32)
acpi0: Power Button (fixed)
unknown: I/O range not supported
acpi: bad write to port 0xcf8 (32), val 0x80000344
acpi: bad read from port 0xcfc (32)
acpi: bad read from port 0xcfc (32)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x508-0x50b on acpi0
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> at device 0.1 on pci0
pci1: <ACPI PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
atapci0: <Promise PDC40718 SATA300 controller> port 0x1400-0x147f,0x1000-0x10ff mem 0xe8121000-0xe8121fff,0xe8100000-0xe811ffff irq 18 at device 2.0 on pci0
ata2: <ATA channel 0> on atapci0
ata3: <ATA channel 1> on atapci0
ata4: <ATA channel 2> on atapci0
ata5: <ATA channel 3> on atapci0
fxp0: <Intel 82559 Pro/100 Ethernet> port 0x1480-0x14bf mem 0xe8122000-0xe8122fff,0xe8000000-0xe80fffff irq 26 at device 7.0 on pci0
miibus0: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:10:83:ff:e1:5a
isab0: <PCI-ISA bridge> port 0x580-0x58f at device 15.0 on pci0
isa0: <ISA bus> on isab0
atapci1: <ServerWorks ROSB4 UDMA33 controller> port 0x170-0x177,0x376,0x14c0-0x14cf at device 15.1 on pci0
ata6: <ATA channel 0> on atapci1
ata1: <ATA channel 1> on atapci1
pcib2: <ACPI Host-PCI bridge> on acpi0
pci2: <ACPI PCI bus> on pcib2
ahc0: <Adaptec 29160 Ultra160 SCSI adapter> port 0x1800-0x18ff mem 0xf8004000-0xf8004fff irq 22 at device 1.0 on pci2
ahc0: [GIANT-LOCKED]
aic7892: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs
skc0: <SysKonnect Gigabit Ethernet (V1.0)> port 0x2000-0x20ff mem 0xf8000000-0xf8003fff irq 24 at device 2.0 on pci2
skc0: Allied Telesyn AT-2970SX Gigabit Ethernet Adapter rev. (0x0)
sk0: <XaQti Corp. XMAC II> on skc0
sk0: Ethernet address: 00:0a:d2:39:d9:14
miibus1: <MII bus> on sk0
xmphy0: <XaQti Corp. XMAC II gigabit interface> on miibus1
xmphy0:  1000baseSX, 1000baseSX-FDX, auto
sk1: <XaQti Corp. XMAC II> on skc0
sk1: Ethernet address: 00:0a:d2:39:d9:15
miibus2: <MII bus> on sk1
xmphy1: <XaQti Corp. XMAC II gigabit interface> on miibus2
xmphy1:  1000baseSX, 1000baseSX-FDX, auto
acpi_button0: <Power Button> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
sio0: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 flags 0x10 on acpi0
sio0: type 16550A
ppc0: <ECP parallel printer port> port 0x378-0x37f,0x778-0x77f irq 7 drq 1 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
fdc0: <floppy drive controller> port 0-0x5,0 on acpi0
fdc0: cannot reserve interrupt line
device_attach: fdc0 attach returned 6
fdc0: <floppy drive controller> port 0-0x5,0 on acpi0
fdc0: cannot reserve interrupt line
device_attach: fdc0 attach returned 6
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xcc000-0xd0fff,0xe0000-0xe3fff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounters tick every 1.000 msec
Waiting 5 seconds for SCSI devices to settle
acd0: CDROM <FX4830T/R02J> at ata1-master UDMA33
ad6: 239372MB <WDC WD2500YD-01NVB1 10.02E01> at ata3-master SATA300
GEOM_MIRROR: Device gm1 created (id=3217152580).
GEOM_MIRROR: Device gm1: provider ad6 detected.
ad10: 239372MB <WDC WD2500YD-01NVB1 10.02E01> at ata5-master SATA300
GEOM_MIRROR: Device gm1: provider ad10 detected.
GEOM_MIRROR: Device gm1: provider ad10 activated.
GEOM_MIRROR: Device gm1: provider ad6 activated.
GEOM_MIRROR: Device gm1: provider mirror/gm1 launched.
da0 at ahc0 bus 0 target 0 lun 0
da0: <FUJITSU MAG3182LC 5210> Fixed Direct Access SCSI-2 device 
da0: 80.000MB/s transfers (40.000MHz, offset 63, 16bit), Tagged Queueing Enabled
da0: 17429MB (35694860 512 byte sectors: 255H 63S/T 2221C)
da1 at ahc0 bus 0 target 1 lun 0
da1: <FUJITSU MAG3182LC 5210> Fixed Direct Access SCSI-2 device 
da1: 80.000MB/s transfers (40.000MHz, offset 63, 16bit), Tagged Queueing Enabled
da1: 17429MB (35694860 512 byte sectors: 255H 63S/T 2221C)
SMP: AP CPU #1 Launched!
GEOM_MIRROR: Device gm0 created (id=3832172933).
GEOM_MIRROR: Device gm0: provider da0 detected.
GEOM_MIRROR: Device gm0: provider da1 detected.
GEOM_MIRROR: Device gm0: provider da1 activated.
GEOM_MIRROR: Device gm0: provider da0 activated.
GEOM_MIRROR: Device gm0: provider mirror/gm0 launched.
Trying to mount root from ufs:/dev/mirror/gm0s1a
IP Filter: v4.1.13 initialized.  Default = pass all, Logging = enabled
>How-To-Repeat:
build -STABLE, install, boot.
>Fix:
yes, please.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: gavin 
State-Changed-When: Wed Jun 27 14:31:25 UTC 2007 
State-Changed-Why:  

This is not a regression with FreeBSD, but is something which we now 
catch and log rather than ignoring.  Your BIOS is doing things which 
it shouldn't really be doing, and FreeBSD now logs these.  Windows XP 
also logs these attepts, and Windows Server 2003 blocks them.  Try 
upgrading your BIOS. 

See also http://lists.freebsd.org/pipermail/freebsd-acpi/2006-June/002890.html 

http://www.freebsd.org/cgi/query-pr.cgi?pr=103125 
>Unformatted:
