Bug 20534

Summary: ata panic: resource_list_alloc: resource entry is busy
Product: Base System Reporter: Andre Albsmeier <Andre.Albsmeier>
Component: kernAssignee: Søren Schmidt <sos>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.1-STABLE   
Hardware: Any   
OS: Any   

Description Andre Albsmeier 2000-08-11 11:20:04 UTC
The ata driver seems to have problem with a Siemens PCD5 (D842 board).
FreeBSD 3.5-STABLE runs fine. Also FreeBSD 4.1-STABLE runs when the
old wdc driver is used.

The error is (written down by hand):

atapci0: <RZ 100? ATA controller !WARNING! buggy chip data loss possible> port 0x374-0x377,0x170-0x1
77,0x3f4-0x3f7,0x1f0-0x1f7 at device 2.0 on pci0
atapci0: Busmastering DMA not supported
panic: resource_list_alloc: resource entry is busy


The relevant parts of the kernel config:

device		ata0	at isa? port IO_WD1 irq 14
device		ata1	at isa? port IO_WD2 irq 15
device		atadisk
device		atapicd
options		ATA_STATIC_ID
#options 	ATA_ENABLE_ATAPI_DMA

#device		wdc0	at isa? port "IO_WD1" irq 14 flags 0x80FF80FF
#device		wdc1	at isa? port "IO_WD2" irq 15 flags 0x80FF80FF
#device		wd0	at wdc0 drive 0
#device		wcd0


When using the wdc configuration, everything works:

wdc0 at port 0x1f0-0x1f7 irq 14 flags 0x80ff80ff on isa0
wdc0: unit 0 (wd0): <WDC AC2540F>, 32-bit, multi-block-16
wd0: 515MB (1056384 sectors), 1048 cyls, 16 heads, 63 S/T, 512 B/S
wdc0: driver is using old-style compatability shims
wdc1 at port 0x170-0x177 irq 15 flags 0x80ff80ff on isa0
wdc1: unit 0 (atapi): <NEC                 CD-ROM DRIVE:287/3.02>, removable, dma, iordy
wcd0: drive speed 1377 - 3445KB/sec, 128KB cache
wcd0: supported read types: CD-R, CD-DA
wcd0: Audio: play, 16 volume levels
wcd0: Mechanism: ejectable tray
wcd0: Medium: no/blank disc inside, unlocked
wdc1: driver is using old-style compatability shims

Fix: 

Use the old wdc controller :-) Seriously, I would be happy with that but I fear
it might go away in the future :-(
How-To-Repeat: 
Boot a Siemens PCD5 (D842 board) with a kernel where ata is enabled.
Comment 1 Sheldon Hearn freebsd_committer freebsd_triage 2000-08-11 11:47:23 UTC
Responsible Changed
From-To: freebsd-bugs->sos

Using wdc is definitely not a long-term solution.  You're 
doing exactly what Soren wants by reporting the bug. 
Thanks.
Comment 2 Søren Schmidt freebsd_committer freebsd_triage 2000-11-14 08:28:47 UTC
State Changed
From-To: open->closed


Fixed in 4.2 and later.