Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Mar 2002 14:41:44 +0300 (MSK)
From:      Dmitry Afanasiev <dima@KOT.SPb.Ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/36228: hw.ata.tags=1 does not work
Message-ID:  <200203231141.g2NBfi720282@orion.ifmo.ru>

next in thread | raw e-mail | index | archive | help

>Number:         36228
>Category:       kern
>Synopsis:       hw.ata.tags=1 does not work
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 23 03:50:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Afanasiev
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
n/a
>Environment:
System: FreeBSD green 4.5-STABLE FreeBSD 4.5-STABLE #9: Thu Mar 21 01:52:12 MSK 2002 root@green:/usr/obj/usr/src/sys/MATPOCKuH  i386

>Description:
After upgrade to latest ata(4) driver and setting hw.ata.tags to 1 in /boot/loader.conf, the disk is not responding to system requests.
Full boot log:

Console: serial port
BIOS drive A: is disk0
BIOS drive C: is disk1
BIOS 639kB/523200kB available memory

FreeBSD/i386 bootstrap loader, Revision 0.8
(root@green, Thu Mar 21 01:42:14 MSK 2002)
Loading /boot/defaults/loader.conf 
/kernel text=0x1c151f data=0x3dd44+0x1ca30 syms=[0x4+0x2f8b0+0x4+0x35355]

Hit [Enter] to boot immediately, or any other key for command prompt.


Type '?' for a list of commands, 'help' for more detailed help.
ok boot -v
SMAP type=01 base=00000000 00000000 len=00000000 0009fc00
SMAP type=02 base=00000000 0009fc00 len=00000000 00000400
SMAP type=02 base=00000000 000f0000 len=00000000 00010000
SMAP type=02 base=00000000 ffff0000 len=00000000 00010000
SMAP type=01 base=00000000 00100000 len=00000000 1fef0000
SMAP type=03 base=00000000 1fff3000 len=00000000 0000d000
SMAP type=04 base=00000000 1fff0000 len=00000000 00003000
Copyright (c) 1992-2002 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 4.5-STABLE #9: Thu Mar 21 01:52:12 MSK 2002
    root@green:/usr/obj/usr/src/sys/MATPOCKuH
Calibrating clock(s) ... TSC clock: 914687975 Hz, i8254 clock: 1193185 Hz
CLK_USE_I8254_CALIBRATION not specified - using default frequency
Timecounter "i8254"  frequency 1193182 Hz
CLK_USE_TSC_CALIBRATION not specified - using old calibration method
CPU: AMD Athlon(tm) Processor (914.70-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x642  Stepping = 2
  Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
  AMD Features=0xc0440000<<b18>,AMIE,DSP,3DNow!>
Data TLB: 24 entries, fully associative
Instruction TLB: 16 entries, fully associative
L1 data cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L2 internal cache: 256 kbytes, 64 bytes/line, 1 lines/tag, 8-way associative
real memory  = 536805376 (524224K bytes)
Physical memory chunk(s):
0x00001000 - 0x0009efff, 647168 bytes (158 pages)
0x003aa000 - 0x1ffe7fff, 532930560 bytes (130110 pages)
avail memory = 519163904 (506996K bytes)
bios32: Found BIOS32 Service Directory header at 0xc00faf90
bios32: Entry = 0xfb400 (c00fb400)  Rev = 0  Len = 1
pcibios: PCI BIOS entry at 0xb430
pnpbios: Found PnP BIOS data at 0xc00fbf00
pnpbios: Entry = f0000:bf30  Rev = 1.0
Other BIOS signatures found:
ACPI: 000f7ce0
Preloaded elf kernel "kernel" at 0xc0383000.
Pentium Pro MTRR support enabled
pci_open(1):    mode 1 addr port (0x0cf8) is 0x80003840
pci_open(1a):   mode1res=0x80000000 (0x80000000)
pci_cfgcheck:   device 0 [class=060000] [hdr=00] is there (id=03051106)
Using $PIR table, 9 entries at 0xc00fddd0
pcib-: pcib0 exists, using next available unit number
apm0: <APM BIOS> on motherboard
apm: found APM BIOS v1.2, connected at v1.2
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
found-> vendor=0x1106, dev=0x0305, revid=0x02
        class=06-00-00, hdrtype=0x00, mfdev=0
        subordinatebus=0        secondarybus=0
        map[10]: type 1, range 32, base d8000000, size 26
found-> vendor=0x1106, dev=0x8305, revid=0x00
        class=06-04-00, hdrtype=0x01, mfdev=0
        subordinatebus=1        secondarybus=1
found-> vendor=0x1106, dev=0x0686, revid=0x22
        class=06-01-00, hdrtype=0x00, mfdev=1
        subordinatebus=0        secondarybus=0
found-> vendor=0x1106, dev=0x0571, revid=0x10
        class=01-01-8a, hdrtype=0x00, mfdev=0
        subordinatebus=0        secondarybus=0
        map[20]: type 1, range 32, base 0000d000, size  4
found-> vendor=0x1106, dev=0x3038, revid=0x10
        class=0c-03-00, hdrtype=0x00, mfdev=0
        subordinatebus=0        secondarybus=0
        intpin=d, irq=9
        map[20]: type 1, range 32, base 0000d400, size  5
found-> vendor=0x1106, dev=0x3038, revid=0x10
        class=0c-03-00, hdrtype=0x00, mfdev=0
        subordinatebus=0        secondarybus=0
        intpin=d, irq=9
        map[20]: type 1, range 32, base 0000d800, size  5
found-> vendor=0x1106, dev=0x3057, revid=0x30
        class=06-00-00, hdrtype=0x00, mfdev=0
        subordinatebus=0        secondarybus=0
found-> vendor=0x10b7, dev=0x5900, revid=0x00
        class=02-00-00, hdrtype=0x00, mfdev=0
        subordinatebus=0        secondarybus=0
        intpin=a, irq=11
        map[10]: type 1, range 32, base 0000dc00, size  5
found-> vendor=0x109e, dev=0x036e, revid=0x11
        class=04-00-00, hdrtype=0x00, mfdev=1
        subordinatebus=0        secondarybus=0
        intpin=a, irq=9
        map[10]: type 1, range 32, base df000000, size 12
found-> vendor=0x109e, dev=0x0878, revid=0x11
        class=04-80-00, hdrtype=0x00, mfdev=1
        subordinatebus=0        secondarybus=0
        intpin=a, irq=9
        map[10]: type 1, range 32, base df001000, size 12
found-> vendor=0x10ec, dev=0x8139, revid=0x10
        class=02-00-00, hdrtype=0x00, mfdev=0
        subordinatebus=0        secondarybus=0
        intpin=a, irq=10
        map[10]: type 1, range 32, base 0000e000, size  8
        map[14]: type 1, range 32, base df002000, size  8
found-> vendor=0x1102, dev=0x0002, revid=0x07
        class=04-01-00, hdrtype=0x00, mfdev=1
        subordinatebus=0        secondarybus=0
        intpin=a, irq=10
        map[10]: type 1, range 32, base 0000e400, size  5
found-> vendor=0x1102, dev=0x7002, revid=0x07
        class=09-80-00, hdrtype=0x00, mfdev=1
        subordinatebus=0        secondarybus=0
        map[10]: type 1, range 32, base 0000e800, size  3
pci0: <PCI bus> on pcib0
pcib2: <VIA 8363 (Apollo KT133) PCI-PCI (AGP) bridge> at device 1.0 on pci0
found-> vendor=0x1002, dev=0x5157, revid=0x00
        class=03-00-00, hdrtype=0x00, mfdev=0
        subordinatebus=0        secondarybus=0
        intpin=a, irq=5
        map[10]: type 1, range 32, base d0000000, size 27
        map[14]: type 1, range 32, base 0000c000, size  8
        map[18]: type 1, range 32, base dd000000, size 16
pci1: <PCI bus> on pcib2
pci1: <ATI model 5157 graphics accelerator> (vendor=0x1002, dev=0x5157) at 0.0 irq 5
isab0: <VIA 82C686 PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 82C686 ATA66 controller> port 0xd000-0xd00f at device 7.1 on pci0
ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0xd000
ata0: mask=03 ostat0=50 ostat2=00
ata0-master: ATAPI 00 00
ata0-slave: ATAPI 00 00
ata0: mask=03 stat0=52 stat1=00
ata0-master: ATA 01 a5
ata0: devices=01
ata0: at 0x1f0 irq 14 on atapci0
ata1: iobase=0x0170 altiobase=0x0376 bmaddr=0xd008
ata1: mask=03 ostat0=50 ostat2=01
ata1-master: ATAPI 14 eb
ata1-slave: ATAPI 00 00
ata1: mask=03 stat0=00 stat1=01
ata1-slave: ATA 04 00
ata1: devices=04
ata1: at 0x170 irq 15 on atapci0
uhci0: <VIA 83C572 USB controller> port 0xd400-0xd41f irq 9 at device 7.2 on pci0
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <VIA 83C572 USB controller> port 0xd800-0xd81f irq 9 at device 7.3 on pci0
        using shared irq9.
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
vx0: <3COM 3C590 Etherlink III PCI> port 0xdc00-0xdc1f irq 11 at device 9.0 on pci0
utp/aui/bnc[*utp*] address 00:20:af:d4:a6:86
bpf: vx0 attached
Warning! Defective early revision adapter!
vx0: driver is using old-style compatibility shims
bktr0: <BrookTree 878> mem 0xdf000000-0xdf000fff irq 9 at device 11.0 on pci0
iicbb0: <I2C generic bit-banging driver> on bti2c0
iicbus0: <Philips I2C bus> on iicbb0 master-only
iicbus: iic devclass not found
smbus0: <System Management Bus> on bti2c0
smbus: smb devclass not found
brooktree0: PCI bus latency is 32.
bktr0: buffer size 3555328, addr 0x5000000
bktr0: GPIO is 0x00d6fff3
bktr0: subsystem 0x1461 0x0003
bktr0: AVer Media TV/FM, Philips FR1216 PAL FM tuner.
pci0: <unknown card> (vendor=0x109e, dev=0x0878) at 11.1 irq 9
rl0: <RealTek 8139 10/100BaseTX> port 0xe000-0xe0ff mem 0xdf002000-0xdf0020ff irq 10 at device 13.0 on pci0
rl0: Ethernet address: 00:c0:26:a8:ca:d3
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
bpf: rl0 attached
pcm0: <Creative EMU10K1> port 0xe400-0xe41f irq 10 at device 15.0 on pci0
emu: setmap (21000, 800), nseg=1, error=0
emu: setmap (3aa000, 1000), nseg=1, error=0
pcm0: ac97 codec id 0x83847608 (SigmaTel STAC9708/9711)
pcm0: ac97 codec features 18 bit DAC, 18 bit ADC, 5 bit master volume, SigmaTel 3D Enhancement
pcm0: ac97 primary codec extended features surround DAC
        using shared irq10.
emu: setmap (3ea000, 1000), nseg=1, error=0
emu: setmap (42a000, 1000), nseg=1, error=0
emu: setmap (46a000, 1000), nseg=1, error=0
emu: setmap (4aa000, 1000), nseg=1, error=0
pcm: setmap 4ea000, 1000; 0xd301a000 -> 4ea000
pci-: pci1 exists, using next available unit number
pcib1: <Host to PCI bridge> on motherboard
pci2: <PCI bus> on pcib1
ata-: ata0 exists, using next available unit number
ata-: ata1 exists, using next available unit number
Trying Read_Port at 203
Trying Read_Port at 243
Trying Read_Port at 283
Trying Read_Port at 2c3
Trying Read_Port at 303
Trying Read_Port at 343
Trying Read_Port at 383
Trying Read_Port at 3c3
isa_probe_children: disabling PnP devices
isa_probe_children: probing non-PnP devices
orm0: <Option ROM> at iomem 0xc0000-0xcbfff on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ata2 failed to probe at port 0x1f0 irq 14 on isa0
ata3 failed to probe at port 0x170 irq 15 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
atkbd: the current kbd controller command byte 0047
atkbd: keyboard ID 0x41ab (2)
kbdc: RESET_KBD return code:00fa
kbdc: RESET_KBD status:00aa
kbd0 at atkbd0
kbd0: atkbd0, AT 101/102 (2), config:0x1, flags:0x1d0000
psm0: current command byte:0047
kbdc: TEST_AUX_PORT status:0000
kbdc: RESET_AUX return code:00fa
kbdc: RESET_AUX status:00aa
kbdc: RESET_AUX ID:0000
psm: status 00 02 64
psm: status 00 03 06
psm: status 00 33 55
psm: data 08 00 00
psm: status 00 02 64
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model NetMouse/NetScroll Optical, device ID 0-00, 3 buttons
psm0: config:00000000, flags:00000000, packet size:4
psm0: syncmask:08, syncbits:08
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
fb0: vga0, vga, type:VGA (5), flags:0x7007f
fb0: port:0x3c0-0x3df, crtc:0x3d4, mem:0xa0000 0x20000
fb0: init mode:24, bios mode:3, current mode:24
fb0: window:0xc00b8000 size:32k gran:32k, buf:0 size:32k
VGA parameters upon power-up
50 18 10 00 00 00 03 00 02 67 5f 4f 50 82 55 81 
bf 1f 00 4f 0e 0f 00 00 07 80 9c 8e 8f 28 1f 96 
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff 
VGA parameters in BIOS for mode 24
50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 
bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff 
EGA/VGA parameters to be used for mode 24
50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 
bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff 
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x100>
sc0: fb0, kbd0, terminal emulator: sc (syscons terminal)
sio0: irq maps: 0x2401 0x2411 0x2401 0x2401
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A, console
sio1: irq maps: 0x2401 0x2409 0x2401 0x2401
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: parallel port found at 0x378
ppc0: using extended I/O port range
ppc0: EPP SPP
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
isa_probe_children: probing PnP devices
BIOS Geometries:
 0:03fffe3f 0..1023=1024 cylinders, 0..254=255 heads, 1..63=63 sectors
 0 accounted for
Device configuration finished.
bpf: lo0 attached
bpf: ppp0 attached
new masks: bio 68c240, tty 63169a, net 671e9a
IP packet filtering initialized, divert enabled, rule-based forwarding enabled, default to deny, logging limited to 100 packets/entry by default
Linux ELF exec handler installed
ad0: success setting UDMA4 on VIA chip
Creating DISK ad0
ad0: <IBM-DPTA-372050/P76OA30A> ATA-4 disk at ata0-master
ad0: 19574MB (40088160 sectors), 39770 C, 16 H, 63 S, 512 B
ad0: 16 secs/int, 32 depth queue, tagged UDMA66
ad0: piomode=4 dmamode=2 udmamode=4 cblid=1
ata1-master: piomode=4 dmamode=2 udmamode=-1 dmaflag=1
ata1-master: success setting WDMA2 on VIA chip
acd0: <CD-W58E/1.0A> CD-RW drive at ata1 as master
acd0: read 5512KB/s (3271KB/s) write 1377KB/s (1377KB/s), 1280KB buffer, WDMA2
acd0: Reads: CD-R, CD-RW, CD-DA stream, packet
acd0: Writes: CD-R, CD-RW, test write
acd0: Audio: play, 256 volume levels
acd0: Mechanism: ejectable tray, unlocked
acd0: Medium: no/blank disc
Mounting root from ufs:/dev/ad0s2a
ad0: invalid primary partition table: no magic
ad0: timeout waiting for READY
ad0: invalidating queued requests
 - resetting
ata0: resetting devices .. ata0: mask=03 ostat0=51 ostat2=00
ad0: ATAPI 00 00
ata0-slave: ATAPI 00 00
ata0: mask=03 stat0=50 stat1=00
ad0: ATA 01 a5
ata0: devices=01
ad0: invalidating queued requests
ad0: success setting UDMA4 on VIA chip
done
ad0: no request for tag=0
ad0: invalidating queued requests
ad0: READ command timeout tag=0 serv=0 - resetting
ad0: invalidating queued requests
ata0: resetting devices .. ata0: mask=03 ostat0=51 ostat2=00
ad0: ATAPI 00 00
ata0-slave: ATAPI 00 00
ata0: mask=03 stat0=50 stat1=00
ad0: ATA 01 a5
ata0: devices=01


Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x70
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc01584c4
stack pointer           = 0x10:0xc02c43f8
frame pointer           = 0x10:0xc02c4420
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = Idle
interrupt mask          = net tty bio cam 
trap number             = 12
panic: page fault

syncing disks... 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 
giving up on 1 buffers
Uptime: 12s
Automatic reboot in 15 seconds - press a key on the console to abort
--> Press a key on the console to reboot,
--> or switch off the system now.



>How-To-Repeat:
On system with UDMA66 controller and IBM-DPTA drive:
echo 'hw.ata.tags="1"' >> /boot/loader.conf
reboot

>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203231141.g2NBfi720282>