Re: slow to boot
Soren Schmidt writes: ata1: mask=03 status0=a5 status1=a5 ..30+ seconds ata1: mask=00 status0=ffa5 status1=ffa5 Hmm, you could try to change the probe to something like: ... status1 = inb(scp-ioaddr + ATA_STATUS); if ((status0 0xf8) != 0xf8 status0 != 0xa5) mask |= 0x01; if ((status1 0xf8) != 0xf8 status1 != 0xa5) mask |= 0x02; if (bootverbose) ata_printf(scp, -1, "mask=%02x status0=%02x status1=%02x\n", mask, status0, status1); ... It seems that the 0xa5 value means "no device" too, on lots of controllers, and its not valid anyways, so it wouldn't hurt..." That works! The pause is gone and the reboot time is more than cut in half. I urge you to commit this ;-) Thanks! Drew -- Andrew Gallatin, Sr Systems Programmer http://www.cs.duke.edu/~gallatin Duke University Email: [EMAIL PROTECTED] Department of Computer Science Phone: (919) 660-6590 To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: slow to boot
It seems Andrew Gallatin wrote: It seems that the 0xa5 value means "no device" too, on lots of controllers, and its not valid anyways, so it wouldn't hurt..." That works! The pause is gone and the reboot time is more than cut in half. I urge you to commit this ;-) I will, its in the next megapatchfromhell to the ata driver :) -Søren To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: slow to boot
Soren Schmidt [[EMAIL PROTECTED]] wrote: It seems Dan Langille wrote: I have one box which is slow to boot under -current (mind you, I've never ... BUT if the second channel is enabled in the BIOS and the hardware plays foul on probe, it will be probed for devices for the std timeout which is 31s pr device, give or take... -Søren Is there any way to tell the driver not to reduce the timeout to something less than 31s? Or would it be easier for me to just #if 0 the lun1 (iobase_2..) code in ata_pciattach()? I'm asking because we have about 20 boxes like this. All of which are "rack" mounted don't have video cards, so getting at the BIOS is a royal PITA. They are all Asus P2BLS with: ata-pci0: Intel PIIX4 ATA-33 controller port 0xd800-0xd80f at device 4.1 on pci0 ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0xd800 ata0: mask=03 status0=50 status1=00 ata0: mask=03 status0=50 status1=00 ata0: devices = 0x1 ata0 at 0x01f0 irq 14 on ata-pci0 ata1: iobase=0x0170 altiobase=0x0376 bmaddr=0xd808 ata1: mask=03 status0=a5 status1=a5 ..30+ seconds ata1: mask=00 status0=ffa5 status1=ffa5 ... Thanks! -- Andrew Gallatin, Sr Systems Programmer http://www.cs.duke.edu/~gallatin Duke University Email: [EMAIL PROTECTED] Department of Computer Science Phone: (919) 660-6590 To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: slow to boot
It seems Andrew Gallatin wrote: Is there any way to tell the driver not to reduce the timeout to something less than 31s? Or would it be easier for me to just #if 0 the lun1 (iobase_2..) code in ata_pciattach()? I'm asking because we have about 20 boxes like this. All of which are "rack" mounted don't have video cards, so getting at the BIOS is a royal PITA. They are all Asus P2BLS with: ata-pci0: Intel PIIX4 ATA-33 controller port 0xd800-0xd80f at device 4.1 on pci0 ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0xd800 ata0: mask=03 status0=50 status1=00 ata0: mask=03 status0=50 status1=00 ata0: devices = 0x1 ata0 at 0x01f0 irq 14 on ata-pci0 ata1: iobase=0x0170 altiobase=0x0376 bmaddr=0xd808 ata1: mask=03 status0=a5 status1=a5 ..30+ seconds ata1: mask=00 status0=ffa5 status1=ffa5 Hmm, you could try to change the probe to something like: ... status1 = inb(scp-ioaddr + ATA_STATUS); if ((status0 0xf8) != 0xf8 status0 != 0xa5) mask |= 0x01; if ((status1 0xf8) != 0xf8 status1 != 0xa5) mask |= 0x02; if (bootverbose) ata_printf(scp, -1, "mask=%02x status0=%02x status1=%02x\n", mask, status0, status1); ... It seems that the 0xa5 value means "no device" too, on lots of controllers, and its not valid anyways, so it wouldn't hurt..." -Søren To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: slow to boot
It seems Dan Langille wrote: On 14 Feb 00, at 22:02, Dan Langille wrote: On 7 Feb 00, at 18:12, Dan Langille wrote: I have one box which is slow to boot under -current (mind you, I've never run anything but -current on this box). There are two pauses. One after ata0 appears and another after ata-isa0 appears. I'm reposting this as there has been no response and the box still exhibits the original problems. Make world is about 12 hours old from a recent cvsup. Original message follows. Any ideas? cheers The above message was prematurely ejected. Please ignore. Does that mean it works now ?? -Søren To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: slow to boot
On 7 Feb 00, at 18:12, Dan Langille wrote: I have one box which is slow to boot under -current (mind you, I've never run anything but -current on this box). There are two pauses. One after ata0 appears and another after ata-isa0 appears. I'm reposting this as there has been no response and the box still exhibits the original problems. Make world is about 12 hours old from a recent cvsup. Original message follows. Any ideas? cheers I have one box which is slow to boot under -current (mind you, I've never run anything but -current on this box). There are two pauses. One after ata0 appears and another after ata-isa0 appears. All times are approximate (I had to count, no watches to hand). This is written on the motherboard: P/I-P55TP4XE. tia folks. $ uname -a FreeBSD buff.unixathome.org 4.0-CURRENT FreeBSD 4.0-CURRENT #0: Sun Feb 6 18:05:58 NZDT 2000 [EMAIL PROTECTED]:/usr/src/sys/compile/BUFF i386 [dan@buff:/usr/home/dan] $ dmesg 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 #0: Sun Feb 6 18:05:58 NZDT 2000 [EMAIL PROTECTED]:/usr/src/sys/compile/BUFF Timecounter "i8254" frequency 1193182 Hz CPU: Pentium/P54C (99.47-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x525 Stepping = 5 Features=0x1bfFPU,VME,DE,PSE,TSC,MSR,MCE,CX8 real memory = 33554432 (32768K bytes) config di psm0 config di sn0 config di lnc0 config di le0 config di ie0 config di fe0 config di cs0 config di bt0 config di aic0 config di aha0 config di adv0 config q avail memory = 28835840 (28160K bytes) Preloaded elf kernel "kernel" at 0xc03b9000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc03b909c. Intel Pentium detected, installing workaround for F00F bug md0: Malloc disk npx0: math processor on motherboard npx0: INT 16 interface pcib0: Host to PCI bridge on motherboard pci0: PCI bus on pcib0 isab0: Intel 82371FB PCI to ISA bridge at device 7.0 on pci0 isa0: ISA bus on isab0 ata-pci0: Intel PIIX ATA controller port 0xe800-0xe80f at device 7.1 on pci0 ata0 at 0x01f0 irq 14 on ata-pci0 [insert approx 30s pause here] dc0: Macronix 98715/98715A 10/100BaseTX port 0xe400-0xe4ff mem 0xfbfa-0xfbfa00ff irq 11 at device 9.0 on pci0 dc0: Ethernet address: 00:80:ad:7f:4e:7b miibus0: MII bus on dc0 dcphy0: Intel 21143 NWAY media interface on miibus0 dcphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto vga-pci0: ATI Mach64-CT graphics accelerator mem 0xfa00- 0xfaff at device 12.0 on pci0 fe0: not probed (disabled) 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 ata-isa0: already registered as ata0 [insert approx 37s pause here] adv0: not probed (disabled) bt0: not probed (disabled) aha0: not probed (disabled) aic0: not probed (disabled) atkbdc0: keyboard controller (i8042) at port 0x60-0x6f on isa0 atkbd0: AT Keyboard irq 1 on atkbdc0 vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0 sc0: System console on isa0 sc0: VGA 16 virtual consoles, flags=0x200 pcic1: not probed (disabled) sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A sio2: not probed (disabled) sio3: not probed (disabled) ppc0: Parallel port at port 0x378-0x37f irq 7 on isa0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppi0: Parallel I/O on ppbus0 lpt0: Printer on ppbus0 lpt0: Interrupt-driven port plip0: PLIP network interface on ppbus0 ie0: not probed (disabled) le0: not probed (disabled) lnc0: not probed (disabled) cs0: not probed (disabled) sn0: not probed (disabled) IPsec: Initialized Security Association Processing. ad0: 1222MB QUANTUM FIREBALL1280A [2484/16/63] at ata0- master using WDMA2 Mounting root from ufs:/dev/ad0s1a -- Dan Langille - DVL Software Limited [I'm looking for more work] The FreeBSD Diary - http://www.freebsddiary.org/ NZ FreeBSD User Group - http://www.nzfug.nz.freebsd.org/ The Racing System - http://www.racingsystem.com/ unix @ home - http://www.unixathome.org/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: slow to boot
On 14 Feb 00, at 11:15, Soren Schmidt wrote: It seems Dan Langille wrote: On 14 Feb 00, at 22:02, Dan Langille wrote: On 7 Feb 00, at 18:12, Dan Langille wrote: I have one box which is slow to boot under -current (mind you, I've never run anything but -current on this box). There are two pauses. One after ata0 appears and another after ata-isa0 appears. I'm reposting this as there has been no response and the box still exhibits the original problems. Make world is about 12 hours old from a recent cvsup. Original message follows. Any ideas? cheers The above message was prematurely ejected. Please ignore. Does that mean it works now ?? No, it means a message I was composing got out before I finished my testing and evaluation. I'm still trying a few more things, like removing devices from the kernel. I should know more within an hour or two (this box takes a while to compile a kernel). -- Dan Langille - DVL Software Limited [I'm looking for more work] The FreeBSD Diary - http://www.freebsddiary.org/ NZ FreeBSD User Group - http://www.nzfug.nz.freebsd.org/ The Racing System - http://www.racingsystem.com/ unix @ home - http://www.unixathome.org/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: slow to boot
On 14 Feb 00, at 22:02, Dan Langille wrote: On 7 Feb 00, at 18:12, Dan Langille wrote: I have one box which is slow to boot under -current (mind you, I've never run anything but -current on this box). There are two pauses. One after ata0 appears and another after ata-isa0 appears. I'm reposting this as there has been no response and the box still exhibits the original problems. Make world is about 12 hours old from a recent cvsup. Original message follows. Any ideas? cheers The above message was prematurely ejected. Please ignore. -- Dan Langille - DVL Software Limited [I'm looking for more work] The FreeBSD Diary - http://www.freebsddiary.org/ NZ FreeBSD User Group - http://www.nzfug.nz.freebsd.org/ The Racing System - http://www.racingsystem.com/ unix @ home - http://www.unixathome.org/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: slow to boot
On 7 Feb 00, at 18:12, Dan Langille wrote: I have one box which is slow to boot under -current (mind you, I've never run anything but -current on this box). There are two pauses. One after ata0 appears and another after ata-isa0 appears. I'm reposting this as there has been no response and the box still exhibits the original problems. Make world is about 12 hours old from a recent cvsup. Original message follows. Any ideas? cheers I have one box which is slow to boot under -current (mind you, I've never run anything but -current on this box). In my previous message, there were two excessively long pauses. One after ata0 appears and another after ata-isa0 appears. I've been able to eliminate one of these pauses. I removed this from my kernel: device ata1at isa? port IO_WD2 irq 15 All times are approximate (I had to count, no watches to hand). This is written on the motherboard: P/I-P55TP4XE. tia folks. Here's dmesg after a boot -v. [dan@buff:/usr/home/dan] $ dmesg 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 #0: Tue Feb 15 00:23:48 NZDT 2000 [EMAIL PROTECTED]:/usr/src/sys/compile/BUFF Calibrating clock(s) ... TSC clock: 99464497 Hz, i8254 clock: 1193073 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: Pentium/P54C (99.47-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x525 Stepping = 5 Features=0x1bfFPU,VME,DE,PSE,TSC,MSR,MCE,CX8 real memory = 33554432 (32768K bytes) Physical memory chunk(s): 0x1000 - 0x0009, 651264 bytes (159 pages) 0x003cb000 - 0x01ff7fff, 2958 bytes (7213 pages) config di psm0 config di sn0 config di lnc0 config di le0 config di ie0 config di fe0 config di cs0 config di bt0 config di aic0 config di aha0 config di adv0 config q avail memory = 28868608 (28192K bytes) bios32: Found BIOS32 Service Directory header at 0xc00fb810 bios32: Entry = 0xfbcf0 (c00fbcf0) Rev = 0 Len = 1 pcibios: PCI BIOS entry at 0xbd20 pnpbios: Found PnP BIOS data at 0xc00fda40 pnpbios: Entry = f:580 Rev = 1.0 pnpbios: OEM ID cd041 Other BIOS signatures found: ACPI: Preloaded elf kernel "kernel" at 0xc03b2000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc03b20a8. Intel Pentium detected, installing workaround for F00F bug md0: Malloc disk Creating DISK md0 Math emulator present pci_open(1):mode 1 addr port (0x0cf8) is 0x805c pci_open(1a): mode1res=0x8000 (0x8000) pci_cfgcheck: device 0 [class=06] [hdr=00] is there (id=122d8086) npx0: math processor on motherboard npx0: INT 16 interface i586_bzero() bandwidth = 169348010 bytes/sec bzero() bandwidth = 633713561 bytes/sec pci_open(1):mode 1 addr port (0x0cf8) is 0x pci_open(1a): mode1res=0x8000 (0x8000) pci_cfgcheck: device 0 [class=06] [hdr=00] is there (id=122d8086) pcib0: Host to PCI bridge on motherboard found- vendor=0x8086, dev=0x122d, revid=0x02 class=06-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0secondarybus=0 found- vendor=0x8086, dev=0x122e, revid=0x02 class=06-01-00, hdrtype=0x00, mfdev=1 subordinatebus=0secondarybus=0 found- vendor=0x8086, dev=0x1230, revid=0x02 class=01-01-80, hdrtype=0x00, mfdev=0 subordinatebus=0secondarybus=0 map[20]: type 1, range 32, base e800, size 4 found- vendor=0x1002, dev=0x4354, revid=0x41 class=03-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0secondarybus=0 map[10]: type 1, range 32, base fa00, size 24 pci0: PCI bus on pcib0 CPU Inactivity timer: clocks Peer Concurrency: enabled CPU-to-PCI Write Bursting: enabled PCI Streaming: enabled Bus Concurrency: enabled Cache: NO asynchronous secondary; L1 enabled DRAM: no memory hole, 66 MHz refresh Read burst timing: x-2-2-2/x-3-3-3 Write burst timing: x-3-3-3 RAS-CAS delay: 3 clocks isab0: Intel 82371FB PCI to ISA bridge at device 7.0 on pci0 I/O Recovery Timing: 8-bit 1 clocks, 16-bit 1 clocks Extended BIOS: disabled Lower BIOS: enabled Coprocessor IRQ13: enabled Mouse IRQ12: disabled Interrupt Routing: A: disabled, B: disabled, C: disabled, D: disabled MB0: IRQ15, MB1: disabled isa0: ISA bus on isab0 ata-pci0: Intel PIIX ATA controller port 0xe800-0xe80f at device 7.1 on pci0 ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0xe800 ata0: mask=03 status0=50 status1=00 ata0: mask=03 status0=50 status1=00 ata0: devices = 0x1 ata0 at 0x01f0 irq 14 on ata-pci0 ata1: iobase=0x0170 altiobase=0x0376 bmaddr=0xe808 ata1: mask=03 status0=80 status1=80 [insert 37s pause here]
Re: slow to boot
It seems Dan Langille wrote: I have one box which is slow to boot under -current (mind you, I've never run anything but -current on this box). In my previous message, there were two excessively long pauses. One after ata0 appears and another after ata-isa0 appears. I've been able to eliminate one of these pauses. I removed this from my kernel: device ata1at isa? port IO_WD2 irq 15 All times are approximate (I had to count, no watches to hand). ATA and ATAPI devices device ata0at isa? port IO_WD1 irq 14 #device ata1at isa? port IO_WD2 irq 15 device ata device atadisk # ATA disk drives #device atapicd # ATAPI CDROM drives #device atapifd # ATAPI floppy drives #device atapist # ATAPI tape drives options ATA_STATIC_ID #Static device numbering #optionsATA_ENABLE_ATAPI_DMA#Enable DMA on ATAPI devices Did I miss anything else which might be useful? since this is a PCI system you should only have: device ata device atadisk # ATA disk drives options ATA_STATIC_ID #Static device numbering BUT if the second channel is enabled in the BIOS and the hardware plays foul on probe, it will be probed for devices for the std timeout which is 31s pr device, give or take... -Søren To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
slow to boot
I have one box which is slow to boot under -current (mind you, I've never run anything but -current on this box). There are two pauses. One after ata0 appears and another after ata-isa0 appears. All times are approximate (I had to count, no watches to hand). This is written on the motherboard: P/I-P55TP4XE. tia folks. $ uname -a FreeBSD buff.unixathome.org 4.0-CURRENT FreeBSD 4.0-CURRENT #0: Sun Feb 6 18:05:58 NZDT 2000 [EMAIL PROTECTED]:/usr/src/sys/compile/BUFF i386 [dan@buff:/usr/home/dan] $ dmesg 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 #0: Sun Feb 6 18:05:58 NZDT 2000 [EMAIL PROTECTED]:/usr/src/sys/compile/BUFF Timecounter "i8254" frequency 1193182 Hz CPU: Pentium/P54C (99.47-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x525 Stepping = 5 Features=0x1bfFPU,VME,DE,PSE,TSC,MSR,MCE,CX8 real memory = 33554432 (32768K bytes) config di psm0 config di sn0 config di lnc0 config di le0 config di ie0 config di fe0 config di cs0 config di bt0 config di aic0 config di aha0 config di adv0 config q avail memory = 28835840 (28160K bytes) Preloaded elf kernel "kernel" at 0xc03b9000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc03b909c. Intel Pentium detected, installing workaround for F00F bug md0: Malloc disk npx0: math processor on motherboard npx0: INT 16 interface pcib0: Host to PCI bridge on motherboard pci0: PCI bus on pcib0 isab0: Intel 82371FB PCI to ISA bridge at device 7.0 on pci0 isa0: ISA bus on isab0 ata-pci0: Intel PIIX ATA controller port 0xe800-0xe80f at device 7.1 on pci0 ata0 at 0x01f0 irq 14 on ata-pci0 [insert approx 30s pause here] dc0: Macronix 98715/98715A 10/100BaseTX port 0xe400-0xe4ff mem 0xfbfa-0xfbfa00ff irq 11 at device 9.0 on pci0 dc0: Ethernet address: 00:80:ad:7f:4e:7b miibus0: MII bus on dc0 dcphy0: Intel 21143 NWAY media interface on miibus0 dcphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto vga-pci0: ATI Mach64-CT graphics accelerator mem 0xfa00-0xfaff at device 12.0 on pci0 fe0: not probed (disabled) 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 ata-isa0: already registered as ata0 [insert approx 37s pause here] adv0: not probed (disabled) bt0: not probed (disabled) aha0: not probed (disabled) aic0: not probed (disabled) atkbdc0: keyboard controller (i8042) at port 0x60-0x6f on isa0 atkbd0: AT Keyboard irq 1 on atkbdc0 vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0 sc0: System console on isa0 sc0: VGA 16 virtual consoles, flags=0x200 pcic1: not probed (disabled) sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A sio2: not probed (disabled) sio3: not probed (disabled) ppc0: Parallel port at port 0x378-0x37f irq 7 on isa0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppi0: Parallel I/O on ppbus0 lpt0: Printer on ppbus0 lpt0: Interrupt-driven port plip0: PLIP network interface on ppbus0 ie0: not probed (disabled) le0: not probed (disabled) lnc0: not probed (disabled) cs0: not probed (disabled) sn0: not probed (disabled) IPsec: Initialized Security Association Processing. ad0: 1222MB QUANTUM FIREBALL1280A [2484/16/63] at ata0-master using WDMA2 Mounting root from ufs:/dev/ad0s1a -- Dan Langille - DVL Software Limited [I'm looking for more work] The FreeBSD Diary - http://www.freebsddiary.org/ NZ FreeBSD User Group - http://www.nzfug.nz.freebsd.org/ The Racing System - http://www.racingsystem.com/ unix @ home - http://www.unixathome.org/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message