From eugen@dadv.grosbein.pp.ru  Mon May  9 13:08:58 2005
Return-Path: <eugen@dadv.grosbein.pp.ru>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id 7504C16A4E7; Mon,  9 May 2005 13:08:58 +0000 (GMT)
Received: from dadv.grosbein.pp.ru (grgw.svzserv.kemerovo.su [213.184.64.130])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id 618C143D9C; Mon,  9 May 2005 13:08:53 +0000 (GMT)
	(envelope-from eugen@dadv.grosbein.pp.ru)
Received: from dadv.grosbein.pp.ru (localhost [127.0.0.1])
	by dadv.grosbein.pp.ru (8.13.3/8.13.1) with ESMTP id j497fllF030485;
	Mon, 9 May 2005 15:41:47 +0800 (KRAST)
	(envelope-from eugen@dadv.grosbein.pp.ru)
Received: (from eugen@localhost)
	by dadv.grosbein.pp.ru (8.13.3/8.13.1/Submit) id j497flk0030484;
	Mon, 9 May 2005 15:41:47 +0800 (KRAST)
	(envelope-from eugen)
Message-Id: <200505090741.j497flk0030484@dadv.grosbein.pp.ru>
Date: Mon, 9 May 2005 15:41:47 +0800 (KRAST)
From: Eugene Grosbein <eugen@kuzbass.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc: stable@freebsd.org
Subject: ACPI(pci_link) problem in 5.4-STABLE: TIMEOUT - WRITE_DMA retrying
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         80815
>Category:       kern
>Synopsis:       ACPI(pci_link) problem in 5.4-STABLE: TIMEOUT - WRITE_DMA retrying
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-acpi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 09 13:10:03 GMT 2005
>Closed-Date:    Tue Feb 14 14:39:23 GMT 2006
>Last-Modified:  Tue Feb 14 14:39:23 GMT 2006
>Originator:     Eugene Grosbein
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
Svyaz Service JSC
>Environment:
System: FreeBSD dadv.grosbein.pp.ru 5.4-STABLE FreeBSD 5.4-STABLE #1: Sun May 8 21:16:52 KRAST 2005 root@dadv.grosbein.pp.ru:/mnt/old/home/obj/usr/local/src/sys/DADV i386

>Description:
	
	RELENG_5 (sources of 4 may 2005) runs fine on Iwill BD100+
	motherboard (440BX chipset) when ACPI is disabled at boot time.
	
	With ACPI enabled, it suffers from delays using ATA drives
	and the GENERIC kernel prints:

ad4: TIMEOUT - WRITE_DMA retrying (2 retries left) LBA=146992553
ad6: TIMEOUT - WRITE_DMA retrying (2 retries left) LBA=2228575
ad4: FAILURE - ATA_IDENTIFY timed out
ad6: TIMEOUT - READ_DMA retrying (2 retries left) LBA=7895167

	And so on, but no data corruption is observed.

>How-To-Repeat:

	Take Iwill BD100+ motherboard, install 5.3-RELEASE and
	update it to RELENG_5 (boot with ACPI disabled to upgrade).
	
>Fix:

	Unknown.
	
	There is a workaround, add to /boot/loader.conf:

debug.acpi.disabled="pci_link"
	
	With this workaround, the problem disappears.

	Here comes dmesg.boot (custom kernel, ACPI enabled, pci_link disabled,
	atapicam enabled):

Copyright (c) 1992-2005 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 5.4-STABLE #1: Sun May  8 21:16:52 KRAST 2005
    root@dadv.grosbein.pp.ru:/mnt/old/home/obj/usr/local/src/sys/DADV
Timecounter "i8254" frequency 1193165 Hz quality 0
CPU: Intel Celeron (902.04-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x68a  Stepping = 10
  Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 603914240 (575 MB)
avail memory = 581259264 (554 MB)
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <AWARD AWRDACPI> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
cpu0: <ACPI CPU (3 Cx states)> port 0x530-0x537 on acpi0
acpi_throttle0: <ACPI CPU Throttling> on cpu0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0x5000-0x500f,0x4000-0x4041,0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib0: no PRT entry for 0.7.INTD
pcib0: no PRT entry for 0.16.INTA
pcib0: no PRT entry for 0.18.INTA
agp0: <Intel 82443BX (440 BX) host to PCI bridge> mem 0xe8000000-0xebffffff at device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pcib0: no PRT entry for 0.1.INTA
pci1: <display, VGA> at device 0.0 (no driver attached)
pci1: <display> at device 0.1 (no driver attached)
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port 0xf000-0xf00f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 7.1 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xd000-0xd01f irq 9 at device 7.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
intpm0: <Intel 82371AB Power management controller> port 0x5000-0x500f irq 9 at device 7.3 on pci0
intpm0: I/O mapped 5000
intpm0: intr IRQ 9 enabled revision 0
intsmb0: <Intel PIIX4 SMBUS Interface> on intpm0
smbus1: <System Management Bus> on intsmb0
smb0: <SMBus generic I/O> on smbus1
intpm0: PM I/O mapped 4000 
fxp0: <Intel 82557 Pro/100 Ethernet> port 0xd400-0xd41f mem 0xf0000000-0xf00fffff,0xf0104000-0xf0104fff irq 9 at device 16.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:a0:c9:89:95:1f
atapci1: <Promise PDC20268 UDMA100 controller> port 0xe800-0xe80f,0xe400-0xe403,0xe000-0xe007,0xdc00-0xdc03,0xd800-0xd807 mem 0xf0100000-0xf0103fff irq 10 at device 18.0 on pci0
ata2: channel #0 on atapci1
ata3: channel #1 on atapci1
acpi_tz0: <Thermal Zone> port 0x530-0x537 on acpi0
speaker0: <PC speaker> port 0x61 on acpi0
fdc0: <floppy drive controller> port 0x3f7,0x3f2-0x3f5 irq 6 drq 2 on acpi0
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
ppc0: <ECP parallel printer port> port 0x778-0x77b,0x378-0x37f irq 7 drq 3 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/16 bytes threshold
ppbus0: <Parallel port bus> on ppc0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model NetMouse/NetScroll Optical, device ID 0
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xd0000-0xd27ff,0xc0000-0xccfff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <24 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
pcm0: <Yamaha OPL-SAx> at port 0x370-0x371,0x330-0x331,0x388-0x38f,0x530-0x537,0x220-0x22f irq 5 drq 1,0 on isa0
uhid0: American Power Conversion Back-UPS 500 FW: 6.5.I USB FW: c1, rev 1.10/1.00, addr 2, iclass 3/0
uscanner0: Hewlett-Packard HP ScanJet 2200C, rev 1.10/1.00, addr 3
Timecounter "TSC" frequency 902037771 Hz quality 800
Timecounters tick every 10.000 msec
ipfw2 initialized, divert enabled, rule-based forwarding disabled, default to deny, logging unlimited
acd0: DVDR <NEC DVD RW ND-3500AG/2.18> at ata0-master UDMA33
acd1: CDRW <SONY CD-RW CRX140E/1.0n> at ata1-master UDMA33
ad4: 76319MB <WDC WD800JB-00FMA0/13.03G13> [155061/16/63] at ata2-master UDMA100
ad6: 39266MB <IC35L040AVER07-0/ER4OA45A> [79779/16/63] at ata3-master UDMA100
cd0 at ata0 bus 0 target 0 lun 0
cd0: <_NEC DVD_RW ND-3500AG 2.18> Removable CD-ROM SCSI-0 device 
cd0: 33.000MB/s transfers
cd0: cd present [2295104 x 2048 byte records]
cd1 at ata1 bus 0 target 0 lun 0
cd1: <SONY CD-RW  CRX140E 1.0n> Removable CD-ROM SCSI-0 device 
cd1: 33.000MB/s transfers
cd1: cd present [332114 x 2048 byte records]
Mounting root from ufs:/dev/ad6s1a

	Here comes output of pciconf -lv:
	
agp0@pci0:0:0:	class=0x060000 card=0x00000000 chip=0x71908086 rev=0x03 hdr=0x00
    vendor   = 'Intel Corporation'
    device   = '82443BX/ZX 440BX/ZX CPU to PCI Bridge (AGP Implemented)'
    class    = bridge
    subclass = HOST-PCI
pcib1@pci0:1:0:	class=0x060400 card=0x00000000 chip=0x71918086 rev=0x03 hdr=0x01
    vendor   = 'Intel Corporation'
    device   = '82443BX/ZX 440BX/ZX AGPset PCI-to-PCI bridge'
    class    = bridge
    subclass = PCI-PCI
isab0@pci0:7:0:	class=0x060100 card=0x00000000 chip=0x71108086 rev=0x02 hdr=0x00
    vendor   = 'Intel Corporation'
    device   = '82371AB/EB/MB PIIX4/4E/4M ISA Bridge'
    class    = bridge
    subclass = PCI-ISA
atapci0@pci0:7:1:	class=0x010180 card=0x00000000 chip=0x71118086 rev=0x01 hdr=0x00
    vendor   = 'Intel Corporation'
    device   = '82371AB/EB/MB PIIX4/4E/4M IDE Controller'
    class    = mass storage
    subclass = ATA
uhci0@pci0:7:2:	class=0x0c0300 card=0x00000000 chip=0x71128086 rev=0x01 hdr=0x00
    vendor   = 'Intel Corporation'
    device   = '82371AB/EB/MB PIIX4/4E/4M USB Interface'
    class    = serial bus
    subclass = USB
intpm0@pci0:7:3:	class=0x068000 card=0x00000000 chip=0x71138086 rev=0x02 hdr=0x00
    vendor   = 'Intel Corporation'
    device   = '82371AB/EB/MB PIIX4/4E/4M Power Management Controller'
    class    = bridge
fxp0@pci0:16:0:	class=0x020000 card=0x00018086 chip=0x12298086 rev=0x02 hdr=0x00
    vendor   = 'Intel Corporation'
    device   = '82550/1/7/8/9 EtherExpress PRO/100(B) Ethernet Adapter'
    class    = network
    subclass = ethernet
atapci1@pci0:18:0:	class=0x018085 card=0x4d68105a chip=0x4d68105a rev=0x02 hdr=0x00
    vendor   = 'Promise Technology Inc'
    device   = 'PDC20268 Ultra100 TX2 EIDE Controller'
    class    = mass storage
drm0@pci1:0:0:	class=0x030000 card=0x7c13174b chip=0x59611002 rev=0x01 hdr=0x00
    vendor   = 'ATI Technologies Inc'
    device   = 'Radeon 9200 Series (RV280)'
    class    = display
    subclass = VGA
none0@pci1:0:1:	class=0x038000 card=0x7c12174b chip=0x59411002 rev=0x01 hdr=0x00
    vendor   = 'ATI Technologies Inc'
    device   = 'RV280 ATI Radeon 9200 - Secondary'
    class    = display

	Here comes kernel config:

machine		i386
cpu		I686_CPU
options		CPU_ENABLE_SSE
ident		DADV
maxusers	0

options         CLK_USE_I8254_CALIBRATION
options         CPU_SUSP_HLT

options 	SCHED_4BSD		# 4BSD scheduler
options 	INET			# InterNETworking
options 	FFS			# Berkeley Fast Filesystem
options 	SOFTUPDATES		# Enable FFS soft updates support
options 	UFS_ACL			# Support for access control lists
options 	UFS_DIRHASH		# Improve performance on big directories
options 	NFSCLIENT		# Network Filesystem Client
options 	NFSSERVER		# Network Filesystem Server
options 	MSDOSFS			# MSDOS Filesystem
options 	CD9660			# ISO 9660 Filesystem
options 	GEOM_GPT		# GUID Partition Tables.
options 	COMPAT_43		# Compatible with BSD 4.3 [KEEP THIS!]
options 	KTRACE			# ktrace(1) support
options 	SYSVSHM			# SYSV-style shared memory
options 	SYSVMSG			# SYSV-style message queues
options 	SYSVSEM			# SYSV-style semaphores
options 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
options 	ADAPTIVE_GIANT		# Giant mutex is adaptive.

device		apic			# I/O APIC

# Bus support.  Do not remove isa, even if you have no isa slots
device		isa
device		pci

# Floppy drives
device		fdc

# ATA and ATAPI devices
device		ata
device		atadisk		# ATA disk drives
device		atapicd		# ATAPI CDROM drives
options 	ATA_STATIC_ID	# Static device numbering

# atkbdc0 controls both the keyboard and the PS/2 mouse
device		atkbdc		# AT keyboard controller
device		atkbd		# AT keyboard
device		psm		# PS/2 mouse

device		vga		# VGA video card driver

device		splash		# Splash screen and screen saver support

# syscons is the default console driver, resembling an SCO console
device		sc

device		agp		# support several AGP chipsets

# Floating point support - do not disable.
device		npx

# Add suspend/resume support for the i8254.
device		pmtimer

# Serial (COM) ports
device		sio		# 8250, 16[45]50 based serial ports

# Parallel port
device		ppc
device		ppbus		# Parallel port bus (required)
device		lpt		# Printer
device		ppi		# Parallel port interface device

# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
device		miibus		# MII bus support
device		fxp		# Intel EtherExpress PRO/100B (82557, 82558)

device		ep		# Etherlink III based cards

# Pseudo devices.
device		loop		# Network loopback
device		mem		# Memory and kernel memory devices
device		io		# I/O device
device		random		# Entropy device
device		ether		# Ethernet support
device		ppp		# Kernel PPP
device		pty		# Pseudo-ttys (telnet etc)
device		md		# Memory "disks"
device		gif		# IPv6 and IPv4 tunneling

# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
# Note that 'bpf' is required for DHCP.
device		bpf		# Berkeley packet filter

# USB support
device		uhci		# UHCI PCI->USB interface
device		usb		# USB Bus (required)
device		ugen		# Generic
device		uhid		# "Human Interface Devices"
device		umass		# Disks/Mass storage - Requires scbus and da
device		uscanner	# Scanners

options         PPP_BSDCOMP
options         PPP_DEFLATE
options         PPP_FILTER

options		AUTO_EOI_1

device          atapicam
device          scbus
device          cd
device          da
device          pass

options         VESA

options         MAXCONS=24
options         SC_HISTORY_SIZE=1000
options         SC_MOUSE_CHAR=0x03
options         SC_PIXEL_MODE

device		snp
device          speaker
device          sound
device		snd_mss

options         IPFIREWALL
options         IPFIREWALL_VERBOSE
options         IPDIVERT

options         DUMMYNET

device          smbus
device          intpm
device          smb

options         KDB
options         KDB_UNATTENDED
options         ALT_BREAK_TO_DEBUGGER

options         PQ_CACHESIZE=128
options         SHOW_BUSYBUFS
device          tap

device          agp
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->njl 
Responsible-Changed-By: glebius 
Responsible-Changed-When: Mon May 9 18:09:32 GMT 2005 
Responsible-Changed-Why:  
Seems to be ACPI related. Pass to Nate's review. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=80815 
Responsible-Changed-From-To: njl->freebsd-acpi 
Responsible-Changed-By: glebius 
Responsible-Changed-When: Mon May 9 18:52:07 GMT 2005 
Responsible-Changed-Why:  
By Nate's request. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=80815 

From: Eugene Grosbein <eugen@kuzbass.ru>
To: John Baldwin <jhb@FreeBSD.org>
Cc: freebsd-acpi@FreeBSD.org, bug-followup@FreeBSD.org
Subject: Re: kern/80815
Date: Tue, 10 May 2005 14:50:38 +0800

 > Are any of the IRQs different when you do use the pci_link code compared to
 > the dmesg when you have pci_link disabled?
 
 Additional information corcerning IRQs here.
 
 This machine has Award Modular BIOS 4.51PG of Dec.12.2000
 for BD100Plus/31311A. BIOS ID string is 12/12/2000-i440BX-W977EF-2A69KI3IC-00
 Machine is triple-boot: Windows 98SE, FreeBSD 4.11 and FreeBSD 5.4
 
 Some BIOS Setup settings:
 
 PNP OS Installed: YES
 Resources Controlled by: Manual
 Assign IRQ for VGA: yes		# required for DRM/OpenGL in RELENG_4
 Assign USB for USB: yes		# required for USB support in RELENG_4
 
 IRQ5 is assigned to 'Legacy ISA' (ISA PnP sound card),
 IRQ9 is assigned to 'Slot 2' (here is fxp0),
 IRQ10 is assigned to 'Slot 3' (here is Promise Ultra100 TX2 ATA controller).
 
 IRQ 5 and IRQ9 are fixed for FreeBSD 4.11, otherwise it assigns IRQ5
 for fxp0 and sound doesn't work. IRQ10 is fixed for 4.11 too,
 otherwise it assignes IRQ11 to ATA controller and radeon(4) fails later.
 
 Here comes diff for verbose dmesg.boot with and without pci_link enabled.
 
 --- dmesg_full_verbose	Tue May 10 14:22:48 2005
 +++ dmesg_no_pci_link_verbose	Tue May 10 14:24:16 2005
 @@ -1,3 +1,44 @@
 +Copyright (c) 1992-2005 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 5.4-STABLE #2: Mon May  9 23:12:18 KRAST 2005
 +    root@grosbein.pp.ru:/mnt/old/home/obj/usr/local/src/sys/DADV
 +Preloaded elf kernel "/boot/kernel/kernel" at 0xc0822000.
 +Preloaded elf module "/boot/modules/acpi.ko" at 0xc08221f4.
 +Calibrating clock(s) ... i8254 clock: 1193163 Hz
 +Timecounter "i8254" frequency 1193163 Hz quality 0
 +Calibrating TSC clock ... TSC clock: 902035418 Hz
 +CPU: Intel Celeron (902.04-MHz 686-class CPU)
 +  Origin = "GenuineIntel"  Id = 0x68a  Stepping = 10
 +  Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
 +real memory  = 603914240 (575 MB)
 +Physical memory chunk(s):
 +0x0000000000001000 - 0x000000000009efff, 647168 bytes (158 pages)
 +0x0000000000100000 - 0x00000000003fffff, 3145728 bytes (768 pages)
 +0x0000000000c25000 - 0x000000002359ffff, 580366336 bytes (141691 pages)
 +avail memory = 581259264 (554 MB)
 +bios32: Found BIOS32 Service Directory header at 0xc00faef0
 +bios32: Entry = 0xfb370 (c00fb370)  Rev = 0  Len = 1
 +pcibios: PCI BIOS entry at 0xf0000+0xb3a0
 +pnpbios: Found PnP BIOS data at 0xc00fbfc0
 +pnpbios: Entry = f0000:bfe8  Rev = 1.0
 +Other BIOS signatures found:
 +io: <I/O>
 +mem: <memory>
 +Pentium Pro MTRR support enabled
 +VESA: information block
 +56 45 53 41 00 02 00 01 00 01 01 00 00 00 22 00 
 +00 01 00 04 00 01 10 01 00 01 26 01 00 01 2b 01 
 +00 01 6a 00 02 01 04 01 82 01 0d 01 0e 01 0f 01 
 +20 01 92 01 93 01 94 01 95 01 96 01 a2 01 a3 01 
 +VESA: 56 mode(s) found
 +VESA: v2.0, 65536k memory, flags:0x1, mode table:0xc073bbe2 (1000022)
 +VESA: ATI RADEON 9200
 +VESA: ATI Technologies Inc. V280 01.00
 +null: <null device, zero device>
 +random: <entropy source, Software, Yarrow>
 +npx0: [FAST]
 +npx0: <math processor> on motherboard
  npx0: INT 16 interface
  acpi0: <AWARD AWRDACPI> on motherboard
  acpi0: [MPSAFE]
 @@ -43,7 +84,7 @@
  acpi_bus_number: root bus has no _BBN, assuming 0
  AcpiOsDerivePciId: bus 0 dev 7 func 0
  acpi0: Power Button (fixed)
 -ACPI timer: 0/16777185 0/4 0/4 0/4 0/4 0/4 0/4 0/3 0/16777186 0/16777209 -> 0
 +ACPI timer: 0/3 0/3 0/3 0/3 0/3 0/3 0/3 0/3 0/16777213 0/3 -> 0
  Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000
  acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
  cpu0: <ACPI CPU (3 Cx states)> on acpi0
 @@ -51,31 +92,6 @@
  acpi_throttle0: P_CNT from P_BLK 0x4010
  acpi_button0: <Power Button> on acpi0
  pcib0: <ACPI Host-PCI bridge> port 0x5000-0x500f,0x4000-0x4041,0xcf8-0xcff on acpi0
 -ACPI PCI link initial configuration:
 -\\_SB_.PCI0.ISA_.LNKA irq  0: [ 3  4  5  6  7 10 11 12 14 15] 11+ low,level,sharable 0.15.0
 -\\_SB_.PCI0.ISA_.LNKB irq  0: [ 3  4  5  6  7 10 11 12 14 15]  9+ low,level,sharable 0.15.1
 -\\_SB_.PCI0.ISA_.LNKC irq  0: [ 3  4  5  6  7 10 11 12 14 15] 10+ low,level,sharable 0.15.2
 -\\_SB_.PCI0.ISA_.LNKD irq  0: [ 3  4  5  6  7 10 11 12 14 15]  9+ low,level,sharable 0.15.3
 -\\_SB_.PCI0.ISA_.LNKB irq  0: [ 3  4  5  6  7 10 11 12 14 15]  9+ low,level,sharable 0.16.0
 -\\_SB_.PCI0.ISA_.LNKC irq  0: [ 3  4  5  6  7 10 11 12 14 15] 10+ low,level,sharable 0.16.1
 -\\_SB_.PCI0.ISA_.LNKD irq  0: [ 3  4  5  6  7 10 11 12 14 15]  9+ low,level,sharable 0.16.2
 -\\_SB_.PCI0.ISA_.LNKA irq  0: [ 3  4  5  6  7 10 11 12 14 15] 11+ low,level,sharable 0.16.3
 -\\_SB_.PCI0.ISA_.LNKC irq  0: [ 3  4  5  6  7 10 11 12 14 15] 10+ low,level,sharable 0.18.0
 -\\_SB_.PCI0.ISA_.LNKD irq  0: [ 3  4  5  6  7 10 11 12 14 15]  9+ low,level,sharable 0.18.1
 -\\_SB_.PCI0.ISA_.LNKA irq  0: [ 3  4  5  6  7 10 11 12 14 15] 11+ low,level,sharable 0.18.2
 -\\_SB_.PCI0.ISA_.LNKB irq  0: [ 3  4  5  6  7 10 11 12 14 15]  9+ low,level,sharable 0.18.3
 -\\_SB_.PCI0.ISA_.LNKD irq  0: [ 3  4  5  6  7 10 11 12 14 15]  9+ low,level,sharable 0.19.0
 -\\_SB_.PCI0.ISA_.LNKA irq  0: [ 3  4  5  6  7 10 11 12 14 15] 11+ low,level,sharable 0.19.1
 -\\_SB_.PCI0.ISA_.LNKB irq  0: [ 3  4  5  6  7 10 11 12 14 15]  9+ low,level,sharable 0.19.2
 -\\_SB_.PCI0.ISA_.LNKC irq  0: [ 3  4  5  6  7 10 11 12 14 15] 10+ low,level,sharable 0.19.3
 -\\_SB_.PCI0.ISA_.LNKA irq  0: [ 3  4  5  6  7 10 11 12 14 15] 11+ low,level,sharable 0.7.0
 -\\_SB_.PCI0.ISA_.LNKB irq  0: [ 3  4  5  6  7 10 11 12 14 15]  9+ low,level,sharable 0.7.1
 -\\_SB_.PCI0.ISA_.LNKC irq  0: [ 3  4  5  6  7 10 11 12 14 15] 10+ low,level,sharable 0.7.2
 -\\_SB_.PCI0.ISA_.LNKD irq  0: [ 3  4  5  6  7 10 11 12 14 15]  9+ low,level,sharable 0.7.3
 -\\_SB_.PCI0.ISA_.LNKA irq  0: [ 3  4  5  6  7 10 11 12 14 15] 11+ low,level,sharable 0.1.0
 -\\_SB_.PCI0.ISA_.LNKB irq  0: [ 3  4  5  6  7 10 11 12 14 15]  9+ low,level,sharable 0.1.1
 -\\_SB_.PCI0.ISA_.LNKC irq  0: [ 3  4  5  6  7 10 11 12 14 15] 10+ low,level,sharable 0.1.2
 -\\_SB_.PCI0.ISA_.LNKD irq  0: [ 3  4  5  6  7 10 11 12 14 15]  9+ low,level,sharable 0.1.3
  pci0: <ACPI PCI bus> on pcib0
  pci0: physical bus=0
  	map[10]: type 3, range 32, base e8000000, size 26, enabled
 @@ -101,22 +117,7 @@
  	cmdreg=0x0005, statreg=0x0280, cachelnsz=0 (dwords)
  	lattimer=0x20 (960 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
  	map[20]: type 4, range 32, base 0000d000, size  5, enabled
 -pcib0: matched entry for 0.7.INTD (src \\_SB_.PCI0.ISA_.LNKD)
 -pcib0: possible interrupts:  3  4  5  6  7 10 11 12 14 15
 -ACPI PCI link arbitrated settings:
 -\\_SB_.PCI0.ISA_.LNKA (references 6, priority 76470):
 -	interrupts:	    11    10     5    12     7     6     4     3    15    14
 -	penalty:	   240   240   290  5240  5240  5240  5240  5240 50240 50240
 -\\_SB_.PCI0.ISA_.LNKB (references 6, priority 76470):
 -	interrupts:	    11    10     5    12     7     6     4     3    15    14
 -	penalty:	   240   240   290  5240  5240  5240  5240  5240 50240 50240
 -\\_SB_.PCI0.ISA_.LNKC (references 6, priority 76470):
 -	interrupts:	    11    10     5    12     7     6     4     3    15    14
 -	penalty:	   240   240   290  5240  5240  5240  5240  5240 50240 50240
 -\\_SB_.PCI0.ISA_.LNKD (references 6, priority 76470):
 -	interrupts:	    11    10     5    12     7     6     4     3    15    14
 -	penalty:	   240   240   290  5240  5240  5240  5240  5240 50240 50240
 -pcib0: slot 7 INTD routed to irq 9 via \\_SB_.PCI0.ISA_.LNKD
 +pcib0: no PRT entry for 0.7.INTD
  found->	vendor=0x8086, dev=0x7112, revid=0x01
  	bus=0, slot=7, func=2
  	class=0c-03-00, hdrtype=0x00, mfdev=0
 @@ -132,19 +133,7 @@
  	map[10]: type 3, range 32, base f0104000, size 12, enabled
  	map[14]: type 4, range 32, base 0000d400, size  5, enabled
  	map[18]: type 1, range 32, base f0000000, size 20, enabled
 -pcib0: matched entry for 0.16.INTA (src \\_SB_.PCI0.ISA_.LNKB)
 -pcib0: possible interrupts:  3  4  5  6  7 10 11 12 14 15
 -ACPI PCI link arbitrated settings:
 -\\_SB_.PCI0.ISA_.LNKA (references 6, priority 77910):
 -	interrupts:	    11    10     5    12     7     6     4     3    15    14
 -	penalty:	   480   480   530  5480  5480  5480  5480  5480 50480 50480
 -\\_SB_.PCI0.ISA_.LNKB (references 6, priority 77910):
 -	interrupts:	    11    10     5    12     7     6     4     3    15    14
 -	penalty:	   480   480   530  5480  5480  5480  5480  5480 50480 50480
 -\\_SB_.PCI0.ISA_.LNKC (references 6, priority 77910):
 -	interrupts:	    11    10     5    12     7     6     4     3    15    14
 -	penalty:	   480   480   530  5480  5480  5480  5480  5480 50480 50480
 -pcib0: slot 16 INTA routed to irq 9 via \\_SB_.PCI0.ISA_.LNKB
 +pcib0: no PRT entry for 0.16.INTA
  found->	vendor=0x8086, dev=0x1229, revid=0x02
  	bus=0, slot=16, func=0
  	class=02-00-00, hdrtype=0x00, mfdev=0
 @@ -157,16 +146,7 @@
  	map[1c]: type 4, range 32, base 0000e400, size  2, enabled
  	map[20]: type 4, range 32, base 0000e800, size  4, enabled
  	map[24]: type 1, range 32, base f0100000, size 14, enabled
 -pcib0: matched entry for 0.18.INTA (src \\_SB_.PCI0.ISA_.LNKC)
 -pcib0: possible interrupts:  3  4  5  6  7 10 11 12 14 15
 -ACPI PCI link arbitrated settings:
 -\\_SB_.PCI0.ISA_.LNKA (references 6, priority 79350):
 -	interrupts:	    11    10     5    12     7     6     4     3    15    14
 -	penalty:	   720   720   770  5720  5720  5720  5720  5720 50720 50720
 -\\_SB_.PCI0.ISA_.LNKC (references 6, priority 79350):
 -	interrupts:	    11    10     5    12     7     6     4     3    15    14
 -	penalty:	   720   720   770  5720  5720  5720  5720  5720 50720 50720
 -pcib0: slot 18 INTA routed to irq 10 via \\_SB_.PCI0.ISA_.LNKC
 +pcib0: no PRT entry for 0.18.INTA
  found->	vendor=0x105a, dev=0x4d68, revid=0x02
  	bus=0, slot=18, func=0
  	class=01-80-85, hdrtype=0x00, mfdev=0
 @@ -191,14 +171,7 @@
  pcib1: device (null) requested decoded I/O range 0xc000-0xc0ff
  	map[18]: type 1, range 32, base ed000000, size 16, enabled
  pcib1: device (null) requested decoded memory range 0xed000000-0xed00ffff
 -pcib0: matched entry for 0.1.INTA (src \\_SB_.PCI0.ISA_.LNKA)
 -pcib0: possible interrupts:  3  4  5  6  7 10 11 12 14 15
 -ACPI PCI link arbitrated settings:
 -\\_SB_.PCI0.ISA_.LNKA (references 6, priority 80826):
 -	interrupts:	    11     5    10    12     7     6     4     3    15    14
 -	penalty:	   960  1010  1020  5960  5960  5960  5960  5960 50960 50960
 -pcib0: slot 1 INTA routed to irq 11 via \\_SB_.PCI0.ISA_.LNKA
 -pcib1: slot 0 INTA is routed to irq 11
 +pcib0: no PRT entry for 0.1.INTA
  found->	vendor=0x1002, dev=0x5961, revid=0x01
  	bus=1, slot=0, func=0
  	class=03-00-00, hdrtype=0x00, mfdev=1
 @@ -392,7 +365,7 @@
  uhid0: American Power Conversion Back-UPS 500 FW: 6.5.I USB FW: c1, rev 1.10/1.00, addr 2, iclass 3/0
  uscanner0: Hewlett-Packard HP ScanJet 2200C, rev 1.10/1.00, addr 3
  Device configuration finished.
 -Timecounter "TSC" frequency 902037119 Hz quality 800
 +Timecounter "TSC" frequency 902035418 Hz quality 800
  Timecounters tick every 10.000 msec
  lo0: bpf attached
  DUMMYNET initialized (011031)
 @@ -429,14 +402,18 @@
  ad6: <IC35L040AVER07-0/ER4OA45A> ATA-5 disk at ata3-master
  ad6: 39266MB (80418239 sectors), 79779 C, 16 H, 63 S, 512 B
  ad6: 16 secs/int, 1 depth queue, UDMA100
 -(probe1:ata0:0:1:0): error 22
 -(probe1:ata0:0:1:0): Unretryable Error
 -(probe3:ata1:0:1:0): error 22
 -(probe3:ata1:0:1:0): Unretryable Error
  (probe4:ata2:0:0:0): error 22
  (probe4:ata2:0:0:0): Unretryable Error
  (probe5:ata2:0:1:0): error 22
  (probe5:ata2:0:1:0): Unretryable Error
 +(probe4:ata2:0:0:0): error 22
 +(probe4:ata2:0:0:0): Unretryable Error
 +(probe5:ata2:0:1:0): error 22
 +(probe5:ata2:0:1:0): Unretryable Error
 +(probe1:ata0:0:1:0): error 22
 +(probe1:ata0:0:1:0): Unretryable Error
 +(probe3:ata1:0:1:0): error 22
 +(probe3:ata1:0:1:0): Unretryable Error
  (probe6:ata3:0:0:0): error 22
  (probe6:ata3:0:0:0): Unretryable Error
  (probe7:ata3:0:1:0): error 22
 @@ -445,10 +422,6 @@
  (probe1:ata0:0:1:0): Unretryable Error
  (probe3:ata1:0:1:0): error 22
  (probe3:ata1:0:1:0): Unretryable Error
 -(probe4:ata2:0:0:0): error 22
 -(probe4:ata2:0:0:0): Unretryable Error
 -(probe5:ata2:0:1:0): error 22
 -(probe5:ata2:0:1:0): Unretryable Error
  (probe6:ata3:0:0:0): error 22
  (probe6:ata3:0:0:0): Unretryable Error
  (probe7:ata3:0:1:0): error 22
 
 
 Eugene Grosbein

From: John Baldwin <jhb@freebsd.org>
To: bug-followup@freebsd.org, eugen@kuzbass.ru
Cc:  
Subject: Re: kern/80815: ACPI(pci_link) problem in 5.4-STABLE: TIMEOUT - WRITE_DMA retrying
Date: Mon, 13 Feb 2006 10:24:30 -0500

 Can you try 6.0 or a recent 6.x snapshot?  The pci link code in 6.x has been 
 rewritten from scratch.
 
 -- 
 John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
 "Power Users Use the Power to Serve"  =  http://www.FreeBSD.org

From: Eugene Grosbein <eugen@kuzbass.ru>
To: John Baldwin <jhb@freebsd.org>
Cc: bug-followup@freebsd.org
Subject: Re: kern/80815: ACPI(pci_link) problem in 5.4-STABLE: TIMEOUT - 
 WRITE_DMA retrying
Date: Tue, 14 Feb 2006 10:51:42 +0700

 John Baldwin wrote:
 > 
 > Can you try 6.0 or a recent 6.x snapshot?  The pci link code in 6.x has been
 > rewritten from scratch.
 
 I did already:
 http://www.FreeBSD.org/cgi/query-pr.cgi?pr=kern/91408
 
 In short: 6.0-RELEASE has problems, 7.0-CURRENT does not.
State-Changed-From-To: open->closed 
State-Changed-By: jhb 
State-Changed-When: Tue Feb 14 14:38:55 UTC 2006 
State-Changed-Why:  
Closed at submitter's request.  Superseded by PR 91408. 

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