From owner-freebsd-current@FreeBSD.ORG Fri May 4 20:07:29 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D21C11065672; Fri, 4 May 2012 20:07:27 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.freebsd.org (Postfix) with ESMTP id 787FD8FC0C; Fri, 4 May 2012 20:07:27 +0000 (UTC) Received: from ncsc.bris.ac.uk ([137.222.10.41]) by dirg.bris.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1SQOmk-0002aV-5F; Fri, 04 May 2012 21:07:26 +0100 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncsc.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1SQOmj-0002Bq-27; Fri, 04 May 2012 21:07:25 +0100 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5) with ESMTP id q44K7OOS030514; Fri, 4 May 2012 21:07:24 +0100 (BST) (envelope-from mexas@bris.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5/Submit) id q44K7OGw030513; Fri, 4 May 2012 21:07:24 +0100 (BST) (envelope-from mexas@bris.ac.uk) X-Authentication-Warning: mech-cluster241.men.bris.ac.uk: mexas set sender to mexas@bris.ac.uk using -f Date: Fri, 4 May 2012 21:07:24 +0100 From: Anton Shterenlikht To: John Baldwin Message-ID: <20120504200724.GA30502@mech-cluster241.men.bris.ac.uk> Mail-Followup-To: John Baldwin , Anton Shterenlikht , freebsd-current@freebsd.org References: <20120426224215.GA79891@mech-cluster241.men.bris.ac.uk> <201205031446.18914.jhb@freebsd.org> <20120504115133.GA27547@mech-cluster241.men.bris.ac.uk> <201205041108.00016.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201205041108.00016.jhb@freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: freebsd-current@freebsd.org, Anton Shterenlikht Subject: Re: updating from r231158 to 234465: mounting from ufs:/dev/ad4s1a failed with error 19 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 May 2012 20:07:30 -0000 On Fri, May 04, 2012 at 11:07:59AM -0400, John Baldwin wrote: > On Friday, May 04, 2012 7:51:33 am Anton Shterenlikht wrote: > > On Thu, May 03, 2012 at 02:46:18PM -0400, John Baldwin wrote: > > > On Thursday, May 03, 2012 11:35:19 am Anton Shterenlikht wrote: > > > > On Tue, May 01, 2012 at 12:35:26PM +0100, Anton Shterenlikht wrote: > > > > > On Mon, Apr 30, 2012 at 08:43:14AM -0400, John Baldwin wrote: > > > > > > > > > > > > > > I also see: > > > > > > > > > > > > > > ata0: stat0=0x00 err=0x01 lsb=0x14 msb=0exb > > > > > > > ata0: stat1=0x00 err=0x00 lsb=0x00 msb=0x00 > > > > > > > ata0: reset tp2 stat0=00 stat1=00 devices=0x10000 > > > > > > > > > > > > Hmmm, I don't know how to grok these lines, but does your disk work > at > > > all now > > > > > > with any kernel? It may be that your disk has died (or a cable, > etc.) > > > and it > > > > > > just happened to coincide with your upgrade? > > > > > > > > > > I reverted back to r231158, built world and generic > > > > > kernel (minus all modules, i.e. "option MODULES_OVERRIDE="). > > > > > This works, see the verbose boot dmesg at the end. > > > > > > > > > > I think I'll just do a binary search. > > > > > > > > I traced it to r233677. > > > > The only change from 233676 to 233677 is > > > > in /sys/dev/pci/pci.c > > > > > > > > My kernel is GENERIC with no modules > > > > and with various bits removed, e.g. all raid devices > > > > and PCI network devices, which I definitely > > > > haven't got on this laptop. > > > > > > > > Below is the verbose boot with r233676. > > > > Apparently at the beginning there's also > > > > the previous unsuccessful boot with r233677. > > > > Is this a new feature? I didn't know the > > > > previous dmesg is preserved after a reboot. > > > > Anyway, you can see clearly the error with r233677. > > > > > > > > I guess this is something to do with > > > > ata -> ada change? > > > > > > I don't think so. > > > > > > Please try just this change: > > > > > > Index: pci.c > > > =================================================================== > > > --- pci.c (revision 234928) > > > +++ pci.c (working copy) > > > @@ -2822,10 +2822,14 @@ pci_add_map(device_t bus, device_t dev, int reg, s > > > * from the parent. > > > */ > > > resource_list_delete(rl, type, reg); > > > - } else { > > > + start = 0; > > > + device_printf(bus, > > > + "pci%d:%d:%d:%d bar %#x failed to allocate", > > > + pci_get_domain(dev), pci_get_bus(dev), pci_get_slot(dev), > > > + pci_get_function(dev), reg); > > > + } else > > > start = rman_get_start(res); > > > - pci_write_bar(dev, pm, start); > > > - } > > > + pci_write_bar(dev, pm, start); > > > return (barlen); > > > } > > > > > > > That helped, thank you. > > Bizarre, can you get a regular dmesg with that change applied? Copyright (c) 1992-2012 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 is a registered trademark of The FreeBSD Foundation. FreeBSD 9.9-CURRENT #1 r234928M: Fri May 4 15:12:26 BST 2012 root@mech-aslap239.men.bris.ac.uk:/usr/obj/usr/src/sys/GEN4 amd64 WARNING: WITNESS option enabled, expect reduced performance. CPU: AMD Turion(tm) 64 X2 Mobile Technology TL-60 (1994.95-MHz K8-class CPU) Origin = "AuthenticAMD" Id = 0x60f82 Family = f Model = 68 Stepping = 2 Features=0x178bfbff Features2=0x2001 AMD Features=0xea500800 AMD Features2=0x11f real memory = 3221225472 (3072 MB) avail memory = 2954690560 (2817 MB) Event timer "LAPIC" quality 400 ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ACPI Error: 32/64X address mismatch in Pm2ControlBlock: 0x00008800/0x0000000000008100, using 32 (20120420/tbfadt-474) ioapic0: Changing APIC ID to 2 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 ctl: CAM Target Layer loaded acpi0: on motherboard acpi0: Power Button (fixed) unknown: I/O range not supported acpi0: reservation of 0, 8000000 (3) failed acpi0: reservation of 100000, fff00000 (3) failed cpu0: on acpi0 cpu1: on acpi0 attimer0: port 0x40-0x43 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 atrtc0: port 0x70-0x71,0x72-0x73 irq 8 on acpi0 Event timer "RTC" frequency 32768 Hz quality 0 Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0 acpi_ec0: port 0x62,0x66 on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pcib0: Length mismatch for 3 range: 11ff000 vs 11fefff pci0: on pcib0 pci0: pci0:0:20:2 bar 0x10 failed to allocatepcib1: at device 1.0 on pci0 pci1: on pcib1 vgapci0: port 0x4000-0x40ff mem 0xc0000000-0xc7ffffff,0xcc200000-0xcc20ffff,0xcc300000-0xcc3fffff irq 19 at device 5.0 on pci1 pcib2: at device 4.0 on pci0 pci16: on pcib2 bge0: mem 0xcc000000-0xcc00ffff irq 16 at device 0.0 on pci16 bge0: CHIP ID 0x0000c002; ASIC REV 0x0c; CHIP REV 0xc0; PCI-E miibus0: on bge0 brgphy0: PHY 1 on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, auto-flow bge0: Ethernet address: 00:1a:4b:89:4b:4e pcib3: at device 5.0 on pci0 pci32: on pcib3 ahci0: port 0x9000-0x9007,0x9008-0x900b,0x9010-0x9017,0x5018-0x501b,0x5020-0x502f mem 0xcc409000-0xcc4093ff irq 16 at device 18.0 on pci0 ahci0: AHCI v1.10 with 4 3Gbps ports, Port Multiplier not supported ahcich0: at channel 0 on ahci0 ohci0: mem 0xcc401000-0xcc401fff irq 23 at device 19.0 on pci0 usbus0 on ohci0 ohci1: mem 0xcc402000-0xcc402fff irq 17 at device 19.1 on pci0 usbus1 on ohci1 ohci2: mem 0xcc403000-0xcc403fff irq 17 at device 19.2 on pci0 usbus2 on ohci2 ohci3: mem 0xcc404000-0xcc404fff irq 17 at device 19.3 on pci0 usbus3 on ohci3 ohci4: mem 0xcc405000-0xcc405fff irq 17 at device 19.4 on pci0 usbus4 on ohci4 ehci0: mem 0xcc406000-0xcc4060ff irq 23 at device 19.5 on pci0 ehci0: AMD SB600/700 quirk applied usbus5: EHCI version 1.0 usbus5 on ehci0 pci0: at device 20.0 (no driver attached) atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x5040-0x504f irq 16 at device 20.1 on pci0 ata0: at channel 0 on atapci0 hdac0: irq 16 at device 20.2 on pci0 isab0: at device 20.3 on pci0 isa0: on isab0 pcib4: at device 20.4 on pci0 pcib4: failed to allocate initial memory window: 0xcc100000-0xcc1fffff pci2: on pcib4 pci2: pci0:2:4:0 bar 0x10 failed to allocatecbb0: irq 20 at device 4.0 on pci2 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 battery0: on acpi0 battery1: on acpi0 acpi_acad0: on acpi0 acpi_button0: on acpi0 acpi_lid0: on acpi0 acpi_tz0: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model IntelliMouse, device ID 3 orm0: at iomem 0xd0000-0xd0fff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 acpi_throttle0: on cpu0 powernow0: on cpu0 acpi_throttle1: on cpu1 acpi_throttle1: failed to attach P_CNT device_attach: acpi_throttle1 attach returned 6 powernow1: on cpu1 Timecounters tick every 1.000 msec IP Filter: v4.1.28 initialized. Default = block all, Logging = enabled hdacc0: at cad 0 on hdac0 hdaa0: at nid 1 on hdacc0 pcm0: at nid 5,6 and 8,9 on hdaa0 hdacc1: at cad 1 on hdac0 unknown: at nid 1 on hdacc1 (no driver attached) usbus0: 12Mbps Full Speed USB v1.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 12Mbps Full Speed USB v1.0 usbus3: 12Mbps Full Speed USB v1.0 usbus4: 12Mbps Full Speed USB v1.0 usbus5: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ugen2.1: at usbus2 uhub2: on usbus2 ugen3.1: at usbus3 uhub3: on usbus3 ugen4.1: at usbus4 uhub4: on usbus4 ugen5.1: at usbus5 uhub5: on usbus5 uhub0: 2 ports with 2 removable, self powered uhub1: 2 ports with 2 removable, self powered uhub2: 2 ports with 2 removable, self powered uhub3: 2 ports with 2 removable, self powered uhub4: 2 ports with 2 removable, self powered siba_bwn0: mem 0xcc502000-0xcc503fff irq 20 at device 0.0 on cardbus0 bwn0 on siba_bwn0 bwn0: WLAN (chipid 0x4318 rev 9) PHY (analog 3 type 2 rev 7) RADIO (manuf 0x17f ver 0x2050 rev 8) bwn0: DMA (32 bits) ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: ATA-7 SATA 1.x device ada0: 150.000MB/s transfers (SATA 1.x, UDMA5, PIO 8192bytes) ada0: 152627MB (312581808 512 byte sectors: 16H 63S/T 16383C) ada0: Previously was known as ad4 cd0 at ata0 bus 0 scbus1 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 16.700MB/s transfers (WDMA2, ATAPI 12bytes, PIO 65534bytes) cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed SMP: AP CPU #1 Launched! WARNING: WITNESS option enabled, expect reduced performance. Root mount waiting for: usbus5 uhub5: 10 ports with 10 removable, self powered Trying to mount root from ufs:/dev/ada0s1a [rw]... -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423