Date: Sun, 25 Sep 2005 15:36:01 -0500 From: Billy Newsom <smartweb@leadhill.net> To: freebsd-stable@freebsd.org Subject: Re: 5.4-STABLE changes breaks IDE boot (was Re: 5.3 -> 5.4 breaks ATA (Intel ICH2)) Message-ID: <43370A31.1080704@leadhill.net> In-Reply-To: <20050925142016.L7868@familysquires.net> References: <87y85nuqhy.fsf@beaker.data-secure.net> <4335D1D2.9060501@leadhill.net> <87r7bdt6o3.fsf@beaker.data-secure.net> <20050925142016.L7868@familysquires.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Michael L. Squires wrote: > This may be a similar problem to the one discussed in the Intel ICH2 > thread. > > System is a Toshiba 8100. System boots from a 5.4-STABLE kernel > compiled 5/3/2005 but locks up on boot with kernels compiled in the past > few days. > > I re-cvsup'd after the first lockup and build a GENERIC kernel, same > results. The atapci0 lines were divided by the mailer to fit into an 80 > col line, I've added the "\". > > The only difference I can see is that the working kernel allocates port > 0xfff0-0xffff to atapci0, and both the non-working kernels don't > allocate those ports. This is the only difference I can see between the > working and non-working output from the boot process. > I would like to concur with this sighting. I will repeat it to emphasize this for whoever can decipher this for bug fixes: 1. In recent 5-Stable 2. The IDE controller, atapci0, 3. seems to be detectected, but without a certain memory allocation 4. namely, 0xfff0-0xffff 5. while the other memory and I/O segments are detected fine. Furthermore, 6. It won't boot on the affected machines. 7. More than one controller is affected (ICH2, PIIX3, and possibly PIIX4) 8. Mine, at least, boots fine to a July 4th 5-Stable. Here is an example I found from someone reporting a similar issue (Julian Dunn) Look at this from his dmesg: *First* his good booting dmesg line: atapci0: <Intel PIIX4 UDMA33 controller> port 0xfff0-0xffff,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 2.1 on pci0 *Second* his non-booting dmesg line: atapci0: <Intel PIIX4 UDMA33 controller> port 0x376,0x170-0x177,0x3f6,0x1f0-0x1f atapci0: Lazy allocation of 0x10 bytes rid 0x20 type 4 at 0 7 at device 2.1 on pci0 Can I point out the fact that these two lines (first from the good, second from the bad dmesg) seem to say that atapci0 is not getting its memory segment detected -- the segment at 0xfff0-0xffff. I found this out prior to the post by Mr. Squires, independently. I'm starting to smell a PR, and perhaps some attention by the maintainer of the pci-ata code, which I think is sos@FreeBSD.org Billy > The complete old dmesg is attached. > > Mike Squires > > --hopefully relevant parts of old dmesg-- > FreeBSD 5.4-STABLE #0: Tue May 3 21:29:44 EST 2005 > root@mikes-port:/usr/src/sys/i386/compile/PORT > Timecounter "i8254" frequency 1193182 Hz quality 0 > CPU: Intel Pentium III (697.42-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0x686 Stepping = 6 > > Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE> > > real memory = 402522112 (383 MB) > avail memory = 384188416 (366 MB) > npx0: <math processor> on motherboard > npx0: INT 16 interface > acpi0: <TOSHIB 750> on motherboard > acpi0: Power Button (fixed) > Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000 > acpi_timer0: <24-bit timer at 3.579545MHz> port 0xfe08-0xfe0b on acpi0 > cpu0: <ACPI CPU (2 Cx states)> on acpi0 > pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0 > pci0: <ACPI PCI bus> on pcib0 > agp0: <Intel 82443BX (440 BX) host to PCI bridge> mem > 0xd0000000-0xdfffffff at device 0.0 on pci0 > pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0 > pci1: <ACPI PCI bus> on pcib1 > pci1: <display, VGA> at device 0.0 (no driver attached) > isab0: <PCI-ISA bridge> at device 3.0 on pci0 > isa0: <ISA bus> on isab0 > isab1: <PCI-ISA bridge> at device 5.0 on pci0 > device_attach: isab1 attach returned 6 > atapci0: <Intel PIIX4 UDMA33 controller> port \ > 0xfff0-0xffff,0x376,0x170-0x177,0x3f6,D0x1f0-0x1f7 at device 5.1 on pci0 > ata0: channel #0 on atapci0 > ata1: channel #1 on atapci0 > > ---nonworking atapci0 command, hand copied-- > > atapci0: <Intel PIIX4 UDMA33 controller> port \ > 0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 5.1 on pci0 > > > ------------------------------------------------------------------------ > > 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 #0: Tue May 3 21:29:44 EST 2005 > root@mikes-port:/usr/src/sys/i386/compile/PORT > Timecounter "i8254" frequency 1193182 Hz quality 0 > CPU: Intel Pentium III (697.42-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0x686 Stepping = 6 > Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE> > real memory = 402522112 (383 MB) > avail memory = 384188416 (366 MB) > npx0: <math processor> on motherboard > npx0: INT 16 interface > acpi0: <TOSHIB 750> on motherboard > acpi0: Power Button (fixed) > Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000 > acpi_timer0: <24-bit timer at 3.579545MHz> port 0xfe08-0xfe0b on acpi0 > cpu0: <ACPI CPU (2 Cx states)> on acpi0 > pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0 > pci0: <ACPI PCI bus> on pcib0 > agp0: <Intel 82443BX (440 BX) host to PCI bridge> mem 0xd0000000-0xdfffffff at device 0.0 on pci0 > pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0 > pci1: <ACPI PCI bus> on pcib1 > pci1: <display, VGA> at device 0.0 (no driver attached) > isab0: <PCI-ISA bridge> at device 3.0 on pci0 > isa0: <ISA bus> on isab0 > isab1: <PCI-ISA bridge> at device 5.0 on pci0 > device_attach: isab1 attach returned 6 > atapci0: <Intel PIIX4 UDMA33 controller> port 0xfff0-0xffff,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 5.1 on pci0 > ata0: channel #0 on atapci0 > ata1: channel #1 on atapci0 > uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xff80-0xff9f irq 11 at device 5.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 > pci0: <bridge> at device 5.3 (no driver attached) > pcib2: <ACPI PCI-PCI bridge> at device 6.0 on pci0 > pci2: <ACPI PCI bus> on pcib2 > sym0: <875> port 0xce00-0xceff mem 0xefefe000-0xefefefff,0xefefff00-0xefefffff irq 11 at device 1.0 on pci2 > sym0: Symbios NVRAM, ID 7, Fast-20, SE, parity checking > sym0: open drain IRQ line driver, using on-chip SRAM > sym0: using LOAD/STORE-based firmware. > atapci1: <CMD 648 UDMA66 controller> port 0xcdd0-0xcddf,0xcde4-0xcde7,0xcde8-0xcdef,0xcdf4-0xcdf7,0xcdf8-0xcdff irq 11 at device 3.0 on pci2 > ata2: channel #0 on atapci1 > ata3: channel #1 on atapci1 > pci0: <simple comms> at device 7.0 (no driver attached) > pci0: <wireless controller, iRDA> at device 9.0 (no driver attached) > cbb0: <ToPIC100 PCI-CardBus Bridge> at device 11.0 on pci0 > cardbus0: <CardBus bus> on cbb0 > pccard0: <16-bit PCCard bus> on cbb0 > cbb1: <ToPIC100 PCI-CardBus Bridge> at device 11.1 on pci0 > cardbus1: <CardBus bus> on cbb1 > pccard1: <16-bit PCCard bus> on cbb1 > pcm0: <Yamaha DS-1E (YMF744)> port 0xbf3c-0xbf3f,0xbf40-0xbf7f mem 0xefdf8000-0xefdfffff irq 11 at device 12.0 on pci0 > pcm0: <Unknown AC97 Codec (id = 0x414b4d05)> > xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xbe80-0xbeff mem 0xefdf7f80-0xefdf7fff irq 11 at device 15.0 on pci0 > miibus0: <MII bus> on xl0 > xlphy0: <3c905C 10/100 internal PHY> on miibus0 > xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > xl0: Ethernet address: 00:00:39:9b:35:2d > acpi_lid0: <Control Method Lid Switch> on acpi0 > acpi_cmbat0: <Control Method Battery> on acpi0 > acpi_cmbat1: <Control Method Battery> on acpi0 > acpi_acad0: <AC Adapter> on acpi0 > acpi_tz0: <Thermal Zone> on acpi0 > 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 Generic PS/2 mouse, device ID 0 > fdc0: <floppy drive controller> port 0x3f7,0x3f0-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 flags 0x10 on acpi0 > sio0: type 16550A > ppc0: <ECP parallel printer port> port 0x778-0x77a,0x378-0x37a irq 7 drq 3 on acpi0 > ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode > ppc0: FIFO with 16/16/8 bytes threshold > ppbus0: <Parallel port bus> on ppc0 > plip0: <PLIP network interface> on ppbus0 > lpt0: <Printer> on ppbus0 > lpt0: Interrupt-driven port > ppi0: <Parallel I/O> on ppbus0 > orm0: <ISA Option ROMs> at iomem 0xe8000-0xebfff,0xc0000-0xcbfff on isa0 > pmtimer0 on isa0 > sc0: <System console> at flags 0x100 on isa0 > sc0: VGA <16 virtual consoles, flags=0x300> > vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 > uhub1: Texas Instruments UT-USB41 hub, class 9/0, rev 1.00/1.00, addr 2 > uhub1: 4 ports with 4 removable, self powered > Timecounter "TSC" frequency 697417643 Hz quality 800 > Timecounters tick every 10.000 msec > ad0: 11513MB <TOSHIBA MK1214GAP/N0.15 G> [23392/16/63] at ata0-master UDMA33 > ad2: 28615MB <TOSHIBA MK3017GAP/A0.10 H> [58140/16/63] at ata1-master UDMA33 > Waiting 15 seconds for SCSI devices to settle > (noperiph:sym0:0:-1:-1): SCSI BUS reset delivered. > cd0 at sym0 bus 0 target 6 lun 0 > cd0: <PLEXTOR CD-ROM PX-12CS 1.00> Removable CD-ROM SCSI-2 device > cd0: 10.000MB/s transfers (10.000MHz, offset 15) > cd0: Attempt to query device size failed: NOT READY, Medium not present > Mounting root from ufs:/dev/ad2s2a
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43370A31.1080704>