Date: Sat, 19 Feb 2000 19:40:49 +0100 From: Philipp Mergenthaler <un1i@rz.uni-karlsruhe.de> To: Bryan Liesner <bleez@netaxs.com> Cc: Soren Schmidt <sos@freebsd.dk>, current@FreeBSD.ORG Subject: Re: Big ATA problems Message-ID: <20000219194049.A7428@rz.uni-karlsruhe.de> In-Reply-To: <Pine.BSF.4.21.0002191031200.446-100000@gravy.kishka.net> References: <Pine.BSF.4.20.0002191506500.52008-100000@devils.maquina.com> <Pine.BSF.4.21.0002191031200.446-100000@gravy.kishka.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Feb 19, 2000 at 10:39:42AM -0500, Bryan Liesner wrote: > Jose, the problem seems to be resolved by rebuilding the boot > loader. Or bypass the loader altogether. > > cd /usr/src/sys/boot > make obj > make all install > > and you'll be able to boot the kernel with the latest ata stuff. Do you use KLMs? When I load the kernel alone, it detects the ATA devices normally. When I let the loader load a module in addition to the kernel (I tried it with each of vinum, netgraph, linux, splash_bmp and joy), it fails with these messages: ata0-slave: WARNING: WAIT_INTR active=ATA_WAIT_READY ata0-slave: ata_command: timeout waiting for intr ata0-slave: identify failed (The primary slave is a CDROM.) This was with linux.ko; with joy.ko, the line "WARNING:..." wasn't printed. (BTW, with kernel+umap.ko, the ATA detection succeeded.) Every access to an ATA device then fails like this: # fdisk ad0 fdisk: cannot open disk /dev/rad0: Device not configured # ls -l *ad0 crw-r----- 1 root operator 116, 0x00010002 Feb 19 17:03 ad0 crw-r----- 1 root operator 116, 0x00010002 Feb 19 17:03 rad0 This is with an updated /boot/loader and the "lun=2" patch applied. Bye, Philipp P.S.: Here's a diff between a successful and an unsuccessful verbose boot: ~%diff -1000 -u /var/tmp/dmesgv_ok /var/tmp/dmesgv_fail --- /var/tmp/dmesgv_ok Sat Feb 19 18:55:55 2000 +++ /var/tmp/dmesgv_fail Sat Feb 19 19:51:41 2000 @@ -1,247 +1,205 @@ Copyright (c) 1992-2000 The FreeBSD Project. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 4.0-CURRENT #145: Sat Feb 19 18:13:37 CET 2000 p@i609.hadiko.de:/usr/src/sys/compile/I609 -Calibrating clock(s) ... TSC clock: 233862696 Hz, i8254 clock: 1193178 Hz +Calibrating clock(s) ... TSC clock: 233862171 Hz, i8254 clock: 1193176 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 -Timecounter "TSC" frequency 233864747 Hz -CPU: AMD-K6tm w/ multimedia extensions (233.86-MHz 586-class CPU) +Timecounter "TSC" frequency 233865033 Hz +CPU: AMD-K6tm w/ multimedia extensions (233.87-MHz 586-class CPU) Origin = "AuthenticAMD" Id = 0x562 Stepping = 2 Features=0x8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX> AMD Features=0x400<<b10>> Data TLB: 128 entries, 2-way associative Instruction TLB: 64 entries, 1-way associative L1 data cache: 32 kbytes, 32 bytes/line, 2 lines/tag, 2-way associative L1 instruction cache: 32 kbytes, 32 bytes/line, 2 lines/tag, 2-way associative Write Allocate Enable Limit: 96M bytes Write Allocate 15-16M bytes: Enable Hardware Write Allocate Control: Disable real memory = 100663296 (98304K bytes) Physical memory chunk(s): 0x00001000 - 0x0009efff, 647168 bytes (158 pages) -0x0033f000 - 0x05ff5fff, 97218560 bytes (23735 pages) -avail memory = 94158848 (91952K bytes) +0x00353000 - 0x05ff5fff, 97136640 bytes (23715 pages) +avail memory = 94076928 (91872K bytes) bios32: Found BIOS32 Service Directory header at 0xc00f9a20 bios32: Entry = 0xf04e0 (c00f04e0) Rev = 0 Len = 1 pcibios: PCI BIOS entry at 0x510 pnpbios: Found PnP BIOS data at 0xc00fcf10 pnpbios: Entry = f0000:cf40 Rev = 1.0 pnpbios: OEM ID cd041 Other BIOS signatures found: ACPI: 00000000 -Preloaded elf kernel "kernel" at 0xc0326000. +Preloaded elf kernel "kernel" at 0xc033a000. +Preloaded elf module "linux.ko" at 0xc033a09c. module_register_init: MOD_LOAD (vesa, c0240a78, 0) error 6 md0: Malloc disk Creating DISK md0 pci_open(1): mode 1 addr port (0x0cf8) is 0x8000005c pci_open(1a): mode1res=0x80000000 (0x80000000) pci_cfgcheck: device 0 [class=060000] [hdr=00] is there (id=71008086) npx0: <math processor> on motherboard npx0: INT 16 interface -i586_bzero() bandwidth = 43677658 bytes/sec -bzero() bandwidth = 46259888 bytes/sec +i586_bzero() bandwidth = 43664308 bytes/sec +bzero() bandwidth = 46249190 bytes/sec pci_open(1): mode 1 addr port (0x0cf8) is 0x00000000 pci_open(1a): mode1res=0x80000000 (0x80000000) pci_cfgcheck: device 0 [class=060000] [hdr=00] is there (id=71008086) pcib0: <Host to PCI bridge> on motherboard found-> vendor=0x8086, dev=0x7100, revid=0x01 class=06-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 found-> vendor=0x8086, dev=0x7110, revid=0x01 class=06-01-00, hdrtype=0x00, mfdev=1 subordinatebus=0 secondarybus=0 found-> vendor=0x8086, dev=0x7111, revid=0x01 class=01-01-80, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 map[20]: type 1, range 32, base 0000e000, size 4 found-> vendor=0x8086, dev=0x7112, revid=0x01 class=0c-03-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=d, irq=255 map[20]: type 1, range 32, base 0000d800, size 5 found-> vendor=0x8086, dev=0x7113, revid=0x01 class=06-80-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 map[90]: type 1, range 32, base 0000e800, size 4 found-> vendor=0x5333, dev=0x88c1, revid=0x00 class=00-01-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 found-> vendor=0x1000, dev=0x0004, revid=0x04 class=01-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=11 map[10]: type 1, range 32, base 0000d400, size 8 map[14]: type 1, range 32, base e6800000, size 8 pci0: <PCI bus> on pcib0 isab0: <Intel 82371AB PCI to ISA bridge> at device 1.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <Intel PIIX4 ATA33 controller> port 0xe000-0xe00f at device 1.1 on pci0 ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0xe000 ata0: mask=03 status0=50 status1=00 ata0: mask=03 status0=50 status1=00 ata0: devices = 0x9 ata0: at 0x1f0 irq 14 on atapci0 ata1: iobase=0x0170 altiobase=0x0376 bmaddr=0xe008 ata1: mask=03 status0=50 status1=00 ata1: mask=03 status0=50 status1=00 ata1: devices = 0x1 ata1: at 0x170 irq 15 on atapci0 pci0: Intel 82371AB/EB (PIIX4) USB controller (vendor=0x8086, dev=0x7112) at 1.2 intpm0: <Intel 82371AB Power management controller> port 0xe800-0xe80f irq 9 at device 1.3 on pci0 intpm0: I/O mapped e800 intpm0: intr IRQ 9 enabled revision 0 smbus0: <System Management Bus> on intsmb0 smb0: <SMBus general purpose I/O> on smbus0 intpm0: PM I/O mapped e400 pci0: S3 864 graphics accelerator (vendor=0x5333, dev=0x88c1) at 11.0 ncr0: <ncr 53c815 fast10 scsi> port 0xd400-0xd4ff mem 0xe6800000-0xe68000ff irq 11 at device 12.0 on pci0 ncr0: minsync=25, maxsync=206, maxoffs=8, 16 dwords burst, normal dma fifo ncr0: single-ended, open drain IRQ driver ncr0: driver is using old-style compatability shims 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 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 fd1: <1200-KB 5.25" drive> on fdc0 drive 1 WARNING: "fd" is usurping "fd"'s cdevsw[] WARNING: "fd" is usurping "fd"'s bmaj atkbdc0: <keyboard controller (i8042)> at port 0x60-0x6f on isa0 atkbd0: <AT Keyboard> irq 1 on atkbdc0 atkbd: the current kbd controller command byte 0067 atkbd: keyboard ID 0x41ab (2) kbdc: RESET_KBD return code:00fa kbdc: RESET_KBD status:00aa kbd0: atkbd0, AT 101/102 (2), config:0x0, flags:0x3d0000 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> on isa0 sc0: VGA <12 virtual consoles, flags=0x200> sc0: fb0, kbd0, terminal emulator: sc (syscons terminal) sio0: irq maps: 0x41 0x51 0x41 0x41 sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1: irq maps: 0x41 0x49 0x41 0x41 sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A ppc0: parallel port found at 0x378 ppc0: ECP SPP ECP+EPP SPP ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/9 bytes threshold ppbus0: IEEE1284 device found /NIBBLE/NIBBLE_ID/Extensibility Link Probing for PnP devices on ppbus0: ppbus0: <EPSON Stylus COLOR 600> PRINTER ESCPL2,BDC lpt0: <Printer> on ppbus0 lpt0: Interrupt-driven port ed0 at port 0x300-0x31f iomem 0xd8000 irq 10 on isa0 ed0: address 00:80:ad:b0:8e:e4, type NE2000 (16 bit) bpf: ed0 attached sbc0: <ESS 688> at port 0x220-0x22f irq 5 drq 1 on isa0 pcm0: <SB DSP 3.01 (ESS mode)> on sbc0 -pcm: setmap 20000, ff00; 0xc69f0000 -> 20000 -pcm: setmap 30000, ff00; 0xc6a00000 -> 30000 +pcm: setmap 20000, ff00; 0xc69e7000 -> 20000 +pcm: setmap 30000, ff00; 0xc69f7000 -> 30000 pca0 at port 0x40 on isa0 joy0 at port 0x201 on isa0 isa_probe_children: probing PnP devices BIOS Geometries: 0:03fe1f3f 0..1022=1023 cylinders, 0..31=32 heads, 1..63=63 sectors 1:03fe1f3f 0..1022=1023 cylinders, 0..31=32 heads, 1..63=63 sectors 2:020efe3f 0..526=527 cylinders, 0..254=255 heads, 1..63=63 sectors 0 accounted for Device configuration finished. -IP packet filtering initialized, divert disabled, rule-based forwarding disabled, default to deny, logging limited to 40 packets/entry by default bpf: lo0 attached -ata0-master: success setting up WDMA2 mode on PIIX4 chip -ad0: <ST32140A/08.08.01> ATA-0 disk at ata0 as master -ad0: 2015MB (4127760 sectors), 4095 cyls, 16 heads, 63 S/T, 512 B/S -ad0: 16 secs/int, 1 depth queue, WDMA2 -ad0: piomode=4 dmamode=2 udmamode=-1 cblid=0 -Creating DISK ad0 -Creating DISK wd0 -ata1-master: success setting up UDMA2 mode on PIIX4 chip -ad1: <IBM-DTTA-351010/T56OA73A> ATA-4 disk at ata1 as master -ad1: 9671MB (19807200 sectors), 19650 cyls, 16 heads, 63 S/T, 512 B/S -ad1: 16 secs/int, 32 depth queue, UDMA33 -ad1: piomode=4 dmamode=2 udmamode=2 cblid=0 -Creating DISK ad1 -Creating DISK wd1 -ata0-slave: piomode=3 dmamode=-1 udmamode=-1 dmaflag=0 -ata0-slave: success setting up PIO3 mode on generic chip -acd0: <FX001DE/G06> CDROM drive at ata0 as slave -acd0: read 689KB/s (689KB/s), 128KB buffer, PIO3 -acd0: Reads: -acd0: Audio: play, 255 volume levels -acd0: Mechanism: ejectable tray -acd0: Medium: no/blank disc inside, unlocked +IP packet filtering initialized, divert disabled, rule-based forwarding disabled, default to deny, logging limited to 40 packets/entry by default +Linux-ELF exec handler installed +ata0-slave: WARNING: WAIT_INTR active=ATA_WAIT_READY +ata0-slave: ata_command: timeout waiting for intr +ata0-slave: identify failed Waiting 2 seconds for SCSI devices to settle ncr0: restart (scsi reset). Creating DISK da0 pass0 at ncr0 bus 0 target 0 lun 0 pass0: <IBM DCAS-34330 S65A> Fixed Direct Access SCSI-2 device pass0: Serial Number F3TT5812 pass0: 10.000MB/s transfers (10.000MHz, offset 8) Mounting root from ufs:/dev/da0s1a da0 at ncr0 bus 0 target 0 lun 0 da0: <IBM DCAS-34330 S65A> Fixed Direct Access SCSI-2 device da0: Serial Number F3TT5812 da0: 10.000MB/s transfers (10.000MHz, offset 8) da0: 4134MB (8467200 512 byte sectors: 255H 63S/T 527C) da0s1: type 0xa5, start 63, end = 4176899, size 4176837 : OK da0s2: type 0xa5, start 4176900, end = 5397839, size 1220940 : OK da0s3: type 0xa5, start 5397840, end = 6201089, size 803250 : OK start_init: trying /sbin/init -ad1s1: type 0xa5, start 63, end = 8388575, size 8388513 : OK -ad1s2: type 0xa9, start 8391600, end = 9621359, size 1229760 : OK -ad1s3: type 0xa5, start 9621360, end = 10644479, size 1023120 : OK -ad0s1: type 0xa5, start 4032, end = 2874815, size 2870784 : OK -ad0s2: type 0x6, start 3298176, end = 4127759, size 829584 : OK -ad0s3: type 0x7, start 2874879, end = 3298175, size 423297 : OK -ad0s2: rejecting partition in BSD label: it isn't entirely within the slice -ad0s2: start 8391600, end 9621359, size 1229760 -ad0s2d: start 0, end 19807199, size 19807200 -ad0s1: type 0xa5, start 4032, end = 2874815, size 2870784 : OK -ad0s2: type 0x6, start 3298176, end = 4127759, size 829584 : OK -ad0s3: type 0x7, start 2874879, end = 3298175, size 423297 : OK -ad0s1: type 0xa5, start 4032, end = 2874815, size 2870784 : OK -ad0s2: type 0x6, start 3298176, end = 4127759, size 829584 : OK -ad0s3: type 0x7, start 2874879, end = 3298175, size 423297 : OK -ad0s1: type 0xa5, start 4032, end = 2874815, size 2870784 : OK -ad0s2: type 0x6, start 3298176, end = 4127759, size 829584 : OK -ad0s3: type 0x7, start 2874879, end = 3298175, size 423297 : OK -ad1s1: type 0xa5, start 63, end = 8388575, size 8388513 : OK -ad1s2: type 0xa9, start 8391600, end = 9621359, size 1229760 : OK -ad1s3: type 0xa5, start 9621360, end = 10644479, size 1023120 : OK -ad1s2: rejecting partition in BSD label: it isn't entirely within the slice -ad1s2: start 8391600, end 9621359, size 1229760 -ad1s2d: start 0, end 19807199, size 19807200 -ipfw: 3800 Deny UDP 172.20.43.72:513 172.20.63.255:513 in via ed0 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000219194049.A7428>