Re: updating from r231158 to 234465: mounting from ufs:/dev/ad4s1a failed with error 19

From: Anton Shterenlikht <mexas_at_bristol.ac.uk>
Date: Fri, 4 May 2012 21:07:24 +0100
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)
> > > _at__at_ -2822,10 +2822,14 _at__at_ 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_at_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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x2001<SSE3,CX16>
  AMD Features=0xea500800<SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+,3DNow!>
  AMD Features2=0x11f<LAHF,CMP,SVM,ExtAPIC,CR8,Prefetch>
real memory  = 3221225472 (3072 MB)
avail memory = 2954690560 (2817 MB)
Event timer "LAPIC" quality 400
ACPI APIC Table: <HP     0944    >
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 <Version 2.1> irqs 0-23 on motherboard
kbd1 at kbdmux0
ctl: CAM Target Layer loaded
acpi0: <HPQOEM SLIC-MPC> 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: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
atrtc0: <AT realtime clock> 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: <Embedded Controller: GPE 0x11> port 0x62,0x66 on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pcib0: Length mismatch for 3 range: 11ff000 vs 11fefff
pci0: <ACPI PCI bus> on pcib0
pci0: pci0:0:20:2 bar 0x10 failed to allocatepcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
vgapci0: <VGA-compatible display> port 0x4000-0x40ff mem 0xc0000000-0xc7ffffff,0xcc200000-0xcc20ffff,0xcc300000-0xcc3fffff irq 19 at device 5.0 on pci1
pcib2: <ACPI PCI-PCI bridge> at device 4.0 on pci0
pci16: <ACPI PCI bus> on pcib2
bge0: <Broadcom BCM5906 A2, ASIC rev. 0x00c002> mem 0xcc000000-0xcc00ffff irq 16 at device 0.0 on pci16
bge0: CHIP ID 0x0000c002; ASIC REV 0x0c; CHIP REV 0xc0; PCI-E
miibus0: <MII bus> on bge0
brgphy0: <BCM5906 10/100baseTX media interface> PHY 1 on miibus0
brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, auto-flow
bge0: Ethernet address: 00:1a:4b:89:4b:4e
pcib3: <ACPI PCI-PCI bridge> at device 5.0 on pci0
pci32: <ACPI PCI bus> on pcib3
ahci0: <ATI IXP600 AHCI SATA controller> 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: <AHCI channel> at channel 0 on ahci0
ohci0: <OHCI (generic) USB controller> mem 0xcc401000-0xcc401fff irq 23 at device 19.0 on pci0
usbus0 on ohci0
ohci1: <OHCI (generic) USB controller> mem 0xcc402000-0xcc402fff irq 17 at device 19.1 on pci0
usbus1 on ohci1
ohci2: <OHCI (generic) USB controller> mem 0xcc403000-0xcc403fff irq 17 at device 19.2 on pci0
usbus2 on ohci2
ohci3: <OHCI (generic) USB controller> mem 0xcc404000-0xcc404fff irq 17 at device 19.3 on pci0
usbus3 on ohci3
ohci4: <OHCI (generic) USB controller> mem 0xcc405000-0xcc405fff irq 17 at device 19.4 on pci0
usbus4 on ohci4
ehci0: <EHCI (generic) USB 2.0 controller> 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: <serial bus, SMBus> at device 20.0 (no driver attached)
atapci0: <ATI IXP600 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x5040-0x504f irq 16 at device 20.1 on pci0
ata0: <ATA channel> at channel 0 on atapci0
hdac0: <ATI SB600 HDA Controller> irq 16 at device 20.2 on pci0
isab0: <PCI-ISA bridge> at device 20.3 on pci0
isa0: <ISA bus> on isab0
pcib4: <ACPI PCI-PCI bridge> at device 20.4 on pci0
pcib4: failed to allocate initial memory window: 0xcc100000-0xcc1fffff
pci2: <ACPI PCI bus> on pcib4
pci2: pci0:2:4:0 bar 0x10 failed to allocatecbb0: <RF5C476 PCI-CardBus Bridge> irq 20 at device 4.0 on pci2
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
battery0: <ACPI Control Method Battery> on acpi0
battery1: <ACPI Control Method Battery> on acpi0
acpi_acad0: <AC Adapter> on acpi0
acpi_button0: <Sleep Button> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_tz0: <Thermal Zone> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse, device ID 3
orm0: <ISA Option ROM> at iomem 0xd0000-0xd0fff 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
acpi_throttle0: <ACPI CPU Throttling> on cpu0
powernow0: <PowerNow! K8> on cpu0
acpi_throttle1: <ACPI CPU Throttling> on cpu1
acpi_throttle1: failed to attach P_CNT
device_attach: acpi_throttle1 attach returned 6
powernow1: <PowerNow! K8> on cpu1
Timecounters tick every 1.000 msec
IP Filter: v4.1.28 initialized.  Default = block all, Logging = enabled
hdacc0: <Analog Devices AD1981HD HDA CODEC> at cad 0 on hdac0
hdaa0: <Analog Devices AD1981HD HDA CODEC Audio Function Group> at nid 1 on hdacc0
pcm0: <Analog Devices AD1981HD HDA CODEC PCM (Analog 2.0+HP/2.0)> at nid 5,6 and 8,9 on hdaa0
hdacc1: <Lucent/Agere Systems (0x1040) HDA CODEC> at cad 1 on hdac0
unknown: <Lucent/Agere Systems (0x1040) HDA CODEC Modem Function Group> 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: <ATI> at usbus0
uhub0: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ugen1.1: <ATI> at usbus1
uhub1: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
ugen2.1: <ATI> at usbus2
uhub2: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2
ugen3.1: <ATI> at usbus3
uhub3: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3
ugen4.1: <ATI> at usbus4
uhub4: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus4
ugen5.1: <ATI> at usbus5
uhub5: <ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> 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: <Broadcom BCM4318 802.11b/g Wireless> 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: <ST9160821AS 3.BHE> 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: <MATSHITA DVD-RAM UJ-861H 1.50> 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
Received on Fri May 04 2012 - 18:07:29 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:26 UTC