Summary: | [zfs] Cannot boot machine with recent gptzfsboot code [regression] | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | Brandon Gooch <jamesbrandongooch> | ||||||||||||||
Component: | kern | Assignee: | John Baldwin <jhb> | ||||||||||||||
Status: | Open --- | ||||||||||||||||
Severity: | Affects Only Me | CC: | allanjude, berniewinters, bsam, cpforbes, denn_28, dgeo, dmitryluhtionov, dor.bsd, eject.in.ua, elliot.robinson, emaste, geo, gert, grahamperrin, jhb, matt, mickey242, ranvel, ronald-lists, tablosazi.farahan, thefreemanmax, ubyt3m3, xchen | ||||||||||||||
Priority: | Normal | ||||||||||||||||
Version: | 9.0-CURRENT | ||||||||||||||||
Hardware: | Any | ||||||||||||||||
OS: | Any | ||||||||||||||||
Attachments: |
|
Description
Brandon Gooch
2010-02-23 15:20:01 UTC
Responsible Changed From-To: freebsd-bugs->freebsd-fs Over to maintainer(s). Could you please try with recent 9-CURRENT, 8-STABLE or try the patch from: kern/148655 ? I receive this error message on boot using a Dell Studio XPS 1640 w/ Core2 Duo. I have tested 9.3-RELEASE and 10.0-RELEASE with identical results. I have not yet attempted the original reporter's fix. Steps to reproduce: 1. Install FreeBSD 9.3 or 10 using the "ZFS" partitioning scheme with GPT on a Dell Studio XPS 1640. 2. Reboot I have attempted building sys/boot from commit 199714 under 9.3 (doesn't build under 10 with clang). It complains about the ZFS version being too new, so this is no longer an immediately viable fix under FreeBSD 10. Created attachment 146387 [details]
extra_debug_info.patch
Please try this patch. It will not fix the problem, but it will provide more details about the request that fails. Error code 1 from the BIOS is roughly equivalent to EINVAL. This will hopefully dump enough details that we can figure out the issue. Given that the reporter claims the issue cropped up when we started letting gptboot use memory above 1MB, my guess is that something in ZFS is doing I/O using a buffer allocated via malloc().
Note that the biosdisk.c code in the loader has more complicated logic to use bounce buffers to ensure that all I/O is done in a lower memory range. Probably this needs to be ported to drv.c for gptboot/gptzfsboot.
Created attachment 146392 [details]
bounce_buffer_1.patch
Here is a first cut at a bounce buffer patch for gptboot/gptzfsboot. I have not tested this at all (though it does compile). This might actually fix the issue however as it should use a bounce buffer for any I/O request to a destination buffer above 1MB.
Applied extra_debug_info.patch manually. Had to remove the conditional to get things to print, though it very well could have been a typo on my part. gptzfsboot: error 1 lba 48 drv c338c483 count 16 to 2000:0 gptzfsboot: error 1 lba 1 drv c338c483 count 1 to 2200:0 gptzfsboot: No ZFS pools located, can't boot. I couldn't get bounce_buffer_1.patch to apply against 10.0-RELEASE's source bundle. If you'll let me know which commit you're working from, I'll be happy to pull and test from there. Created attachment 146742 [details]
stable_10.patch
Sorry, this additional patch is relative to stable/10 and should apply to 10.0 (drv.c hasn't changed in stable/10 since 10.0 was branched).
This includes both of the previous patches.
Can you test the patch against 10? Thanks for the reminder and apologies for the delay. Work pressures have prevented taking down my primary laptop (the machine in question) so far, but it's still definitely on the plan. I'll see if I can replicate the issue over iSCSI this afternoon and, if so, test the patch. Even if I have to swap out the hard drives (again...), it should be tested this weekend. Compiled and installed patch. Prior to "No ZFS pools located", the loader makes 120 calls to drvread, all of which result in immediate calls to drvread_one via the sub-1MB buffer conditional. I too have experienced the problem reported here since installing 10.0-RELEASE on my Dell Vostro 1700 laptop. This laptop is a Core 2 Duo machine. For me though, the problem is intermittent. The boot failure only occurs occasionally, with the message: gptzfsboot: error 1 lba 32 gptzfsboot: error 1 lba 1 gptzfsboot: No ZFS pools located, can't boot Hitting CTRL+ALT+DEL at this point usually results in a successful boot the next time around. I also applied the stable_10.patch, rebuilt and reinstalled the pmbr and gptzfsboot code, but I see no additional output before the loader's BTX version banner appears. The procedure I followed was: # cd /usr/src/sys/boot/i386/common # patch drv.c < /root/stable_10.patch # cd ../../ # make # make install # gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0 I'm not too au fait with applying patches to FreeBSD source and installing it, so please let me know if I've done the wrong things here. Experiencing this issue on a Dell XPS M1530 with a new installation of FreeBSD 10.1, ZFS on root and encrypted. zfsboot: error 1 lba 64 zfsboot: error 1 lba 0 zfsboot: No ZFS pools located, can't boot Booting a shell from my installation media and running "zpool import" lists the bootpool and zroot pools as expected. Not sure I have anything else to contribute that wasn't already mentioned. Does forcing high_heap_size to 0 (and or acting as it if always zero like below) fix this? --- //depot/user/jhb/boot/sys/boot/i386/zfsboot/zfsboot.c 2014-07-11 18:05:58.000000000 0000 +++ /home/john/work/p4/boot/sys/boot/i386/zfsboot/zfsboot.c 2014-07-11 18:05:58.000000000 0000 @@ -445,7 +445,7 @@ bios_getmem(); - if (high_heap_size > 0) { + if (high_heap_size > 0 && 0) { heap_end = PTOV(high_heap_base + high_heap_size); heap_next = PTOV(high_heap_base); } else { I have the same issue trying to boot on an HP BL460c blade system with zfsroot. Testing the proposed patch, I get Attempting Boot From Hard Drive (C:) malloc failure Well, the previous comment was lacking context, sorry. - with the *last* patch proposed (the "if (high_heap_size > 0 && 0) {" one), I get "malloc failure" - the "stable_10.patch", does not make a difference for me, it still prints gptzfsboot: error 1 lba 32 gptzfsboot: error 1 lba 1 gptzfsboot: No ZFS pools located, can't boot Apologies (again). It has been a weird day, installation of this machine should only take an hour or so, not end up trying gptzfsboot compile variations while people kept interrupting... Applying the "stable_10.patch" against a 9.3 source was what I did before, and while it did apply and build nicely, it did not actually excercise the USE_XREAD code part, so the patch did not change anything. We don't generally do 10.x yet, so I had to find a suitable machine to build on 10.x first Building on 10.0 with the "stable_10.patch" leads to a gptzfsboot that prints: Attempting Boot From Hard Drive (C:) [this is HP bios] ZFS: unsupported feature: com.delphix:hole_birth gptzfsboot: No ZFS pools located, can't boot ... which I actually consider "success!" because it could finally locate the ZFS pool (and fails because this is a 9.3/10.1 feature which the 9.3 zfsroot installer put there...). Upgrading my lab box to 10.1-RELEASE right now, to build new gptzfsboot binaries there (with and without the patch) and then reporting again. Sorry for the chaotic comments, there does not seem to be an "edit comment" button :-( Final test result: - stock 10.1 gptzfsboot succeeds in booting my HP BL460c just fine, no patch needed. - 9.3 gptzfsboot fails with the "error 1" messages so, for me this is fixed by just replacing gptzfsboot on all affected 9.3-RELEASE systems with the 10.1 binary. Sorry for all the extra noise added to the ticket. (In reply to Gert Doering from comment #18) Good news. I'll attempt an install of 10.1-RELEASE this evening. I'm in the exact same situation as David O'Rourke, Dell XPS M1530 with FreeBSD 10.1. We have HP DL360 Gen6 servers with similiar issue: Attempting Boot From Hard Drive (C:) gptzfsboot: error 1 lba 32 gptzfsboot: error 1 lba 1 gptzfsboot: No ZFS pools located, can't boot ProLiant System BIOS - P68 (07/02/2013) iLO 3 S HP Smart Array P410i Controller (1024MB, v6.60) 1 Logical Drive> I've tried use /boot/gptzfsboot from -CURRENT base ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/amd64/11.0-CURRENT/base.txz gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 /dev/da0 Result: I'm still getting same error. @Gert Doering: may I ask you what generation of HP BL460c do you have? I did typo in my previous comment, it's ProLiant DL360 G7, not G6 Created attachment 159025 [details]
Makes the bootblocks find a vdev for booting by using the secondary lookup for all disks.
I had exact his message on my Dell Studio 1555 laptop with SSD + ZFS in it.
error 1 lba 48
error 1 lba 1
No ZFS pools located, can't boot
I could boot with bootblocks from usb-stick. Some digging around in gptzfsboot showed that the usb-stick-boot gets the ZFS pool from a second for-loop over all disks/slices instead of the first probe of the boot disk.
This for-loop skips the boot-disk in an 'if'. When I commented this 'if' the boot works as expected. See attachment.
NB: I'm running 11-CURRENT/amd64 and had the same problem on 10-STABLE/amd64 about a month ago.
(In reply to Ronald Klop from comment #23) I Confirm it works on freshly installed 10-1-RELEASE (zfs gpt made with bsdinstall) with latest updates via freebsd-update. that error still shows but system loads successfully and I can boot the system. my hardware is some old Acer Extensa with Core 2 Duo. (In reply to Ronald Klop from comment #23) I thought the issue was fixed with gptzfsboot from 10.1-release, but maybe that was just lucky chance because the machine in question had a ZFS *mirror* - so when it looked on "all but the boot device", it would of course find the zfs pool on the second disk... or so. Anyway, last week I installed a DL380G7 with 10.1 on a hardware-raid with zfs (so ZFS only sees a single disk) - and *bam*, didn't boot, with the "usual" lba error message. Ronald's patch in #23 will make it boot nicely. It still prints the LBA error, but then goes on with the spinning wheel and loads zfsloader fine. THANKS! I have encountered this same issue on an HP blade I am renting (HP BL260c G5) Ronald Klop's patch, to stop skipping the disk if the is the boot disk, solved the issue for me. I have written a cleaner version of that patch, that only skips the check if reading from the boot disk failed. This should avoid the potential for ZFS to see the same disk twice. Created attachment 172443 [details]
Fix for HP gptzfsboot LBA read error
I have also compiled a binary of the patch for people to try. Would also like reports from unaffected hardware, to ensure it doesn't break something. http://trooper.hml3.scaleengine.net/gptzfsboot_hp (In reply to Allan Jude from comment #26) Thanks for your work. It is a pity that all our patches are workarounds for the real issue. Why does the first probe of the disk fail? My wild guess is missing initialization needed on some hardware/BIOS. Because the parameters given to the IO routines are corrupted at first try, but ok afterwards. That's why there is an error about wrong LBA. Maybe for bootcode the workaround in this issue is ok. I'm seeing similar errors with 11.0-RC1 on a Dell T5400. Installed to a 2 disk mirror gptzfsboot: error 128 lba 488281248 gptzfsboot: error 128 lba 1 gptzfsboot: error 128 lba 488281248 gptzfsboot: error 128 lba 1 gptzfsboot: No ZFS pools located, can't boot This machine works fine with 10.3 with the same disk configuration. I am also having this problem on 11.0-RELEASE on a Dell Inspiron 1525. Boots from UFS fine but just won't boot from ZFS. If any more details are required will gladly provide them. I installed FreeBSD 11.0-RELEASE with zfs on HP Pavilion dm3-1130us notebook and after rebooting, I got the following messages: gptzfsboot: error 66 lba 48 error 72 gptzfsboot: error 66 lba 0 gptzfsboot: error 66 lba 1 gptzfsboot: No ZFS pools located, can't boot. I googled and tried different suggestions but nothing worked. After the desperation, I tried the gptzfsboot_hp from Allan Jude in Comment 28. What do you know, it boots up now! I still get the first 4 lines about error 66 but it boots now. Here is what I did: 1) After the installation, I went to shell instead of rebooting. 2) I fetched Allan's gptzfsboot_hp and replaced /boot/gptzfsboot with this new version (changed the name from gptzfsboot_hp to gptzfsboot). 3) Updated the bootcode with the following command: # gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0 4) Reboot I hope this would help... -gibb (In reply to Ronald Klop from comment #23) My problem went away with a current gptzfsboot of 12-CURRENT/amd64 (r313684) on the same laptop as in my previous comment. I don't have lba errors anymore at boot. And the default boot loader without patches boots fine. I have no idea since when this is working again, sorry. I guess somewhere last month (or two). (In reply to Ronald Klop from comment #33) How big of a disk was it that was giving you this trouble? HDD or SSD? (In reply to Allan Jude from comment #34) It is all on this SSD: $ grep ada0 /var/run/dmesg.boot ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: <Samsung SSD 840 EVO 500GB EXT0BB0Q> ACS-2 ATA SATA 3.x device ada0: Serial Number S1D**********1K ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada0: Command Queueing enabled ada0: 476940MB (976773168 512 byte sectors) ada0: quirks=0x3<4K,NCQ_TRIM_BROKEN> $ gpart show => 34 976773101 ada0 GPT (466G) 34 1024 1 freebsd-boot (512K) 1058 5086 - free - (2.5M) 6144 8386560 2 freebsd-swap (4.0G) 8392704 968380416 3 freebsd-zfs (462G) 976773120 15 - free - (7.5K) HP DL380 G7 has this problem on FreeBSD 11 and also 10.3. A gpt setup shows: gptzfsboot: error 1 lba 32 gptzfsboot: error 1 lba 1 An MBR: zfsboot: error 1 lba 32 I wanted to try the hp fix from Allan Jude but the link is no longer working. Also so me other info, I disabled the onboard Smart Array p410i and am using an LSI 9211 8i with IT firmware 20. Moving the controller and array into another machine and the zfsboot errors do not show, only this HP. I have produced an updated gptzfsboot binary to try to collect more information, please try this and post the results http://www.allanjude.com/bsd/gptzfsboot_hp_debug to try it: fetch http://www.allanjude.com/bsd/gptzfsboot_hp_debug gpart bootcode -b /boot/pmbr -p gptzfsboot_hp_debug -i 1 device where device is the disk you boot from, da0 or ada0 most likely. I get those errors for ZFS/GPT install: --- gptzfsboot: error 128 lba 3907027040 gptzfsboot: error 128 lba 1 gptzfsboot: no zfs pools located, can't boot --- The PC is circa 2009 with MB ASUS P5QL/EPU: --- CPU: Intel(R) Core(TM)2 Duo CPU E7400 @ 2.80GHz (2799.52-MHz K8-class CPU) Origin="GenuineIntel" Id=0x1067a Family=0x6 Model=0x17 Stepping=10 Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> Features2=0xc08e3bd<SSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,OSXSAVE> AMD Features=0x20100800<SYSCALL,NX,LM> AMD Features2=0x1<LAHF> VT-x: HLT,PAUSE TSC: P-state invariant, performance statistics real memory = 4294967296 (4096 MB) avail memory = 3324891136 (3170 MB) Event timer "LAPIC" quality 100 ACPI APIC Table: <A_M_I_ OEMAPIC > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) --- The disk is 2Tb SATA WD: --- 512 # sectorsize 2000397852160 # mediasize in bytes (1.8T) 3907027055 # mediasize in sectors 0 # stripesize 0 # stripeoffset 3876018 # Cylinders according to firmware. 16 # Heads according to firmware. 63 # Sectors according to firmware. WD-WMAUR0112162 # Disk ident. Not_Zoned # Zone Mode --- Here is the diagnostic with Allan's bootcode from Comment #37: --- ALLAN: calling probe_drive on 0 ALLAN: drive is size: 3907027055 (0) gptzfsboot: drvread: error 128 lba 3907027040 gptzfsboot: drvread: error 128 lba 1 ALLAN: retrying the boot drive with different parameters ALLAN: calling probe_drive on 0 gptzfsboot: drvread: error 128 lba 32 gptzfsboot: drvread: error 128 lba 544 gptzfsboot: drvread: error 128 lba 3907025952 gptzfsboot: drvread: error 128 lba 3907026464 ALLAN: drive is size: 3907027055 (0) gptzfsboot: drvread: error 128 lba 3907027040 gptzfsboot: drvread: error 128 lba 1 gptzfsboot: no zfs pools located, can't boot --- I have some progress here. If the Storage Configuration at BIOS is changed from AHCI to IDE, then the system boots. With some errors though: --- ALLAN: calling probe_drive on 0 ALLAN: drive is size: 3907027055 (0) gptzfsboot: drvread: error 4 lba 3907027040 ALLAN: skipping the boot drive as we already scanned it without error BTX loader 1.00 version is 1.02 Consoles: internal video/keyboard BIOS drive A: is disk0 BIOS drive C: is disk1 read 1 from 0 to 0xce076350, error: 0x80read 1 from 0 to 0xce076350, error: 0x80 BIOS 639kB/3406336kB available memory --- And the system proceed to boot. (In reply to Boris Samorodov from comment #39) Interesting 0x80 == 128, so same error still Hello, The technics from the https://wiki.freebsd.org/RootOnZFS/ZFSBootPartition resource were used in my current 10.3-RELEASE setup on Lenovo Thinkpad SL510 and the following output on booting can be observed: zfsboot: error 1 lba 48 zfsboot: error 1 lba 0 zfsboot: No ZFS pools located, can't boot. Is there anything we can do with that? Alan, do you have a zfsboot modification to test against? By the way, changing the SATA controller mode option from "AHCI" to "Compatibility" (IDE) in BIOS allows to go on with proper booting. I do not know whether this can be essential, but my SL510 BIOS excludes from boot choices a second drive, connected in caddy case (no matter what SATA controller option value is selected). If you need more details on that system, please let me know. Thank you. And one more thing - I did not have problems with 8.X and 9.X releases, as far as I remember. Maybe, I had been using the zfsboot from 8 version at those times... Oh, that was a separate UFS boot partition for booting the kernel and the remained space was a ZFS partition. I worked with Allan on this and applying the FreeBSD 12 gptzfsboot on all the boot drives worked. (In reply to Matthew Earl Nelson from comment #44) Thanks a lot, Matthew! I will give it a try an let you know the results. Will there be a chance to bring this patch to 11-STABLE? MARKED AS SPAM batch change: For bugs that match the following - Status Is In progress AND - Untouched since 2018-01-01. AND - Affects Base System OR Documentation DO: Reset to open status. Note: I did a quick pass but if you are getting this email it might be worthwhile to double check to see if this bug ought to be closed. Hello, My applogies, I did not provide you with the results for the mentioned Lenovo Thinkpad SL510. It is booting normally, though with the following error message present on the screen: error 1 lba 753665307 failed to clear pad2 area of primary vdev failed to read pad2 area of primary vdev That's it. Thanks. Same problem here on a dell r430 with H330 (LSI) HBA, after 11.1-> 11.2 upgrade (freebsd-update) Booting from Hard drive C: gptzfsboot: error 1 lba 585937488 gptzfsboot: error 1 lba 1 gptzfsboot: error 1 lba 585937488 gptzfsboot: error 1 lba 1 I tried using gptzfsboot from 12-ALPHA5 with same results 11.2-STABLE gave different error (that I've lost for now… the server is running in production for now, I can make some more tests later) reverting to gptzfsboot from 11.1-RELEASE works, but still displays: gptzfsboot: error 1 lba 585937488 gptzfsboot: error 1 lba 585937488 dmesg here: Copyright (c) 1992-2018 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 11.2-RELEASE-p3 #0: Thu Sep 6 07:14:16 UTC 2018 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 FreeBSD clang version 6.0.0 (tags/RELEASE_600/final 326565) (based on LLVM 6.0.0) VT(vga): resolution 640x480 CPU: Intel(R) Xeon(R) CPU E5-2603 v4 @ 1.70GHz (1698.07-MHz K8-class CPU) Origin="GenuineIntel" Id=0x406f1 Family=0x6 Model=0x4f Stepping=1 Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> Features2=0x7ffefbff<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,TSCDLT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND> AMD Features=0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM> AMD Features2=0x121<LAHF,ABM,Prefetch> Structured Extended Features=0x21cbfbb<FSGSBASE,TSCADJ,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,PQM,NFPUSG,PQE,RDSEED,ADX,SMAP,PROCTRACE> Structured Extended Features3=0x9c000000<IBPB,STIBP,SSBD> XSAVE Features=0x1<XSAVEOPT> VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID,VID,PostIntr TSC: P-state invariant, performance statistics real memory = 34359738368 (32768 MB) avail memory = 33041133568 (31510 MB) Event timer "LAPIC" quality 600 ACPI APIC Table: <DELL PE_SC3 > FreeBSD/SMP: Multiprocessor System Detected: 6 CPUs FreeBSD/SMP: 1 package(s) x 6 core(s) random: unblocking device. ioapic0 <Version 2.0> irqs 0-23 on motherboard ioapic1 <Version 2.0> irqs 24-47 on motherboard SMP: AP CPU #1 Launched! SMP: AP CPU #4 Launched! SMP: AP CPU #5 Launched! SMP: AP CPU #2 Launched! SMP: AP CPU #3 Launched! Timecounter "TSC" frequency 1698070884 Hz quality 1000 random: entropy device external interface kbd1 at kbdmux0 netmap: loaded module module_register_init: MOD_LOAD (vesa, 0xffffffff80ff4580, 0) error 19 random: registering fast source Intel Secure Key RNG random: fast provider: "Intel Secure Key RNG" nexus0 vtvga0: <VT VGA driver> on motherboard cryptosoft0: <software crypto> on motherboard acpi0: <DELL PE_SC3> on motherboard acpi0: Power Button (fixed) cpu0: <ACPI CPU> on acpi0 cpu1: <ACPI CPU> on acpi0 cpu2: <ACPI CPU> on acpi0 cpu3: <ACPI CPU> on acpi0 cpu4: <ACPI CPU> on acpi0 cpu5: <ACPI CPU> on acpi0 atrtc0: <AT realtime clock> port 0x70-0x71,0x74-0x77 irq 8 on acpi0 atrtc0: registered as a time-of-day clock, resolution 1.000000s Event timer "RTC" frequency 32768 Hz quality 0 attimer0: <AT timer> port 0x40-0x43,0x50-0x53 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 950 Event timer "HPET" frequency 14318180 Hz quality 550 Event timer "HPET1" frequency 14318180 Hz quality 440 Event timer "HPET2" frequency 14318180 Hz quality 440 Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 pcib0: <ACPI Host-PCI bridge> on acpi0 pcib0: _OSC returned error 0x10 pci0: <ACPI PCI bus> on pcib0 pci0: <dasp, performance counters> at device 11.1 (no driver attached) pci0: <dasp, performance counters> at device 11.2 (no driver attached) pci0: <dasp, performance counters> at device 16.1 (no driver attached) pci0: <dasp, performance counters> at device 16.6 (no driver attached) pci0: <dasp, performance counters> at device 18.1 (no driver attached) acpi_syscontainer0: <System Container> on acpi0 pcib1: <ACPI Host-PCI bridge> port 0xcf8-0xcff numa-domain 0 on acpi0 pci1: <ACPI PCI bus> numa-domain 0 on pcib1 pcib2: <ACPI PCI-PCI bridge> irq 47 at device 1.0 numa-domain 0 on pci1 pci2: <ACPI PCI bus> numa-domain 0 on pcib2 AVAGO MegaRAID SAS FreeBSD mrsas driver version: 06.712.04.00-fbsd mrsas0: <AVAGO Fury SAS Controller> port 0x2000-0x20ff mem 0x91d00000-0x91d0ffff,0x91c00000-0x91cfffff irq 26 at device 0.0 numa-domain 0 on pci2 mrsas0: Using MSI-X with 6 number of vectors mrsas0: FW supports <96> MSIX vector,Online CPU 6 Current MSIX <6> mrsas0: FW supports: UnevenSpanSupport=1 mrsas0: MSI-x interrupts setup success pcib3: <ACPI PCI-PCI bridge> irq 47 at device 2.0 numa-domain 0 on pci1 pci3: <ACPI PCI bus> numa-domain 0 on pcib3 pcib4: <ACPI PCI-PCI bridge> irq 47 at device 3.0 numa-domain 0 on pci1 pci4: <ACPI PCI bus> numa-domain 0 on pcib4 pci1: <unknown> at device 17.0 (no driver attached) ahci0: <Intel Wellsburg AHCI SATA controller> port 0x3078-0x307f,0x308c-0x308f,0x3070-0x3077,0x3088-0x308b,0x3040-0x305f mem 0x91e01000-0x91e017ff irq 16 at device 17.4 numa-domain 0 on pci1 ahci0: AHCI v1.30 with 4 6Gbps ports, Port Multiplier not supported ahcich0: <AHCI channel> at channel 0 on ahci0 ahcich1: <AHCI channel> at channel 1 on ahci0 ahcich2: <AHCI channel> at channel 2 on ahci0 ahcich3: <AHCI channel> at channel 3 on ahci0 ahciem0: <AHCI enclosure management bridge> on ahci0 pci1: <simple comms> at device 22.0 (no driver attached) pci1: <simple comms> at device 22.1 (no driver attached) ehci0: <Intel Wellsburg USB 2.0 controller> mem 0x91e03000-0x91e033ff irq 18 at device 26.0 numa-domain 0 on pci1 usbus0: EHCI version 1.0 usbus0 numa-domain 0 on ehci0 usbus0: 480Mbps High Speed USB v2.0 pcib5: <ACPI PCI-PCI bridge> irq 16 at device 28.0 numa-domain 0 on pci1 pcib5: [GIANT-LOCKED] pcib6: <ACPI PCI-PCI bridge> irq 17 at device 28.1 numa-domain 0 on pci1 pci5: <ACPI PCI bus> numa-domain 0 on pcib6 pcib7: <PCI-PCI bridge> at device 0.0 numa-domain 0 on pci5 pci6: <PCI bus> numa-domain 0 on pcib7 pcib8: <PCI-PCI bridge> at device 0.0 numa-domain 0 on pci6 pci7: <PCI bus> numa-domain 0 on pcib8 pcib9: <PCI-PCI bridge> at device 0.0 numa-domain 0 on pci7 pci8: <PCI bus> numa-domain 0 on pcib9 vgapci0: <VGA-compatible display> mem 0x90000000-0x90ffffff,0x91800000-0x91803fff,0x91000000-0x917fffff irq 17 at device 0.0 numa-domain 0 on pci8 vgapci0: Boot video device pcib10: <ACPI PCI-PCI bridge> irq 18 at device 28.2 numa-domain 0 on pci1 pci9: <ACPI PCI bus> numa-domain 0 on pcib10 bge0: <Broadcom NetXtreme Gigabit Ethernet, ASIC rev. 0x5720000> mem 0x91a30000-0x91a3ffff,0x91a40000-0x91a4ffff,0x91a50000-0x91a5ffff irq 18 at device 0.0 numa-domain 0 on pci9 bge0: APE FW version: NCSI v1.4.22.0 bge0: CHIP ID 0x05720000; ASIC REV 0x5720; CHIP REV 0x57200; PCI-E miibus0: <MII bus> numa-domain 0 on bge0 brgphy0: <BCM5720C 1000BASE-T media interface> PHY 1 on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow bge0: Using defaults for TSO: 65518/35/2048 bge0: Ethernet address: 18:66:da:74:75:1f bge1: <Broadcom NetXtreme Gigabit Ethernet, ASIC rev. 0x5720000> mem 0x91a00000-0x91a0ffff,0x91a10000-0x91a1ffff,0x91a20000-0x91a2ffff irq 19 at device 0.1 numa-domain 0 on pci9 bge1: APE FW version: NCSI v1.4.22.0 bge1: CHIP ID 0x05720000; ASIC REV 0x5720; CHIP REV 0x57200; PCI-E miibus1: <MII bus> numa-domain 0 on bge1 brgphy1: <BCM5720C 1000BASE-T media interface> PHY 2 on miibus1 brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow bge1: Using defaults for TSO: 65518/35/2048 bge1: Ethernet address: 18:66:da:74:75:20 pcib11: <ACPI PCI-PCI bridge> irq 19 at device 28.3 numa-domain 0 on pci1 pci10: <ACPI PCI bus> numa-domain 0 on pcib11 bge2: <Broadcom NetXtreme Gigabit Ethernet, ASIC rev. 0x5720000> mem 0x91b30000-0x91b3ffff,0x91b40000-0x91b4ffff,0x91b50000-0x91b5ffff irq 19 at device 0.0 numa-domain 0 on pci10 bge2: APE FW version: NCSI v1.4.22.0 bge2: CHIP ID 0x05720000; ASIC REV 0x5720; CHIP REV 0x57200; PCI-E miibus2: <MII bus> numa-domain 0 on bge2 brgphy2: <BCM5720C 1000BASE-T media interface> PHY 1 on miibus2 brgphy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow bge2: Using defaults for TSO: 65518/35/2048 bge2: Ethernet address: 18:66:da:74:75:21 bge3: <Broadcom NetXtreme Gigabit Ethernet, ASIC rev. 0x5720000> mem 0x91b00000-0x91b0ffff,0x91b10000-0x91b1ffff,0x91b20000-0x91b2ffff irq 16 at device 0.1 numa-domain 0 on pci10 bge3: APE FW version: NCSI v1.4.22.0 bge3: CHIP ID 0x05720000; ASIC REV 0x5720; CHIP REV 0x57200; PCI-E miibus3: <MII bus> numa-domain 0 on bge3 brgphy3: <BCM5720C 1000BASE-T media interface> PHY 2 on miibus3 brgphy3: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow bge3: Using defaults for TSO: 65518/35/2048 bge3: Ethernet address: 18:66:da:74:75:22 ehci1: <Intel Wellsburg USB 2.0 controller> mem 0x91e02000-0x91e023ff irq 18 at device 29.0 numa-domain 0 on pci1 usbus1: EHCI version 1.0 usbus1 numa-domain 0 on ehci1 usbus1: 480Mbps High Speed USB v2.0 isab0: <PCI-ISA bridge> at device 31.0 numa-domain 0 on pci1 isa0: <ISA bus> numa-domain 0 on isab0 ahci1: <Intel Wellsburg AHCI SATA controller> port 0x3068-0x306f,0x3084-0x3087,0x3060-0x3067,0x3080-0x3083,0x3020-0x303f mem 0x91e00000-0x91e007ff irq 16 at device 31.2 numa-domain 0 on pci1 ahci1: AHCI v1.30 with 6 6Gbps ports, Port Multiplier not supported ahcich4: <AHCI channel> at channel 0 on ahci1 ahcich5: <AHCI channel> at channel 1 on ahci1 ahcich6: <AHCI channel> at channel 2 on ahci1 ahcich7: <AHCI channel> at channel 3 on ahci1 ahcich8: <AHCI channel> at channel 4 on ahci1 ahcich9: <AHCI channel> at channel 5 on ahci1 ahciem1: <AHCI enclosure management bridge> on ahci1 uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0 uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 orm0: <ISA Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xcb7ff,0xed800-0xf17ff on isa0 ppc0: cannot reserve I/O port range est0: <Enhanced SpeedStep Frequency Control> on cpu0 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 1a1b00001100 device_attach: est0 attach returned 6 est1: <Enhanced SpeedStep Frequency Control> on cpu1 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 1a1b00001100 device_attach: est1 attach returned 6 est2: <Enhanced SpeedStep Frequency Control> on cpu2 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 1a1b00001100 device_attach: est2 attach returned 6 est3: <Enhanced SpeedStep Frequency Control> on cpu3 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 1a1b00001100 device_attach: est3 attach returned 6 est4: <Enhanced SpeedStep Frequency Control> on cpu4 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 1a1b00001100 device_attach: est4 attach returned 6 est5: <Enhanced SpeedStep Frequency Control> on cpu5 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 1a1b00001100 device_attach: est5 attach returned 6 ZFS filesystem version: 5 ZFS storage pool version: features support (5000) Timecounters tick every 1.000 msec mrsas0: Disestablish mrsas intr hook ugen0.1: <Intel EHCI root HUB> at usbus0 ugen1.1: <Intel EHCI root HUB> at usbus1 uhub0: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0 uhub1: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1 ses0 at mrsas0 bus 1 scbus1 target 32 lun 0 cd0 at ahcich9 bus 0 scbus12 target 0 lun 0 ses0: <DP BP13G+ 2.25> Fixed Enclosure Services SPC-3 SCSI device ses0: 150.000MB/s transfers ses0: SCSI-3 ENC Device cd0: <PLDS DVD+-RW DS-8ABSH LD51> Removable CD-ROM SCSI device cd0: Serial Number MTT6M7363962K63K6A04 cd0: 150.000MB/s transfers (SATA 1.x, UDMA6, ATAPI 12bytes, PIO 8192bytes) cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed ses1 at ahciem0 bus 0 scbus6 target 0 lun 0 ses1: <AHCI SGPIO Enclosure 1.00 0001> SEMB S-E-S 2.00 device ses1: SEMB SES Device ses2 at ahciem1 bus 0 scbus13 target 0 lun 0 ses2: <AHCI SGPIO Enclosure 1.00 0001> SEMB S-E-S 2.00 device ses2: SEMB SES Device da0 at mrsas0 bus 1 scbus1 target 0 lun 0 da0: <TOSHIBA AL13SXB30EN DK04> Fixed Direct Access SPC-4 SCSI device da0: Serial Number 86N0A0G8FHSC da0: 150.000MB/s transfers da0: 286102MB (585937500 512 byte sectors) da1 at mrsas0 bus 1 scbus1 target 1 lun 0 da1: <TOSHIBA AL13SXB30EN DK04> Fixed Direct Access SPC-4 SCSI device da1: Serial Number 86N0A0GLFHSC da1: 150.000MB/s transfers da1: 286102MB (585937500 512 byte sectors) Trying to mount root from zfs:zroot/ROOT/default []... Root mount waiting for: usbus1 usbus0 uhub0: 2 ports with 2 removable, self powered uhub1: 2 ports with 2 removable, self powered ugen0.2: <vendor 0x8087 product 0x800a> at usbus0 uhub2 numa-domain 0 on uhub0 uhub2: <vendor 0x8087 product 0x800a, class 9/0, rev 2.00/0.05, addr 2> on usbus0 ugen1.2: <vendor 0x8087 product 0x8002> at usbus1 uhub3 numa-domain 0 on uhub1 uhub3: <vendor 0x8087 product 0x8002, class 9/0, rev 2.00/0.05, addr 2> on usbus1 Root mount waiting for: usbus1 usbus0 uhub2: 6 ports with 6 removable, self powered uhub3: 8 ports with 8 removable, self powered ugen0.3: <no manufacturer Gadget USB HUB> at usbus0 uhub4 numa-domain 0 on uhub2 uhub4: <no manufacturer Gadget USB HUB, class 9/0, rev 2.00/0.00, addr 3> on usbus0 Root mount waiting for: usbus0 uhub4: 6 ports with 6 removable, self powered Root mount waiting for: usbus0 ugen0.4: <Avocent KeyboardMouse Function> at usbus0 ukbd0 numa-domain 0 on uhub4 ukbd0: <Keyboard> on usbus0 kbd2 at ukbd0 bge0: link state changed to DOWN ums0 numa-domain 0 on uhub4 ums0: <Mouse> on usbus0 ums0: 3 buttons and [Z] coordinates ID=0 ums1 numa-domain 0 on uhub4 ums1: <Mouse REL> on usbus0 ums1: 3 buttons and [XYZ] coordinates ID=0 bge0: link state changed to UP bge0.2: link state changed to UP bge0.191: link state changed to UP pflog0: promiscuous mode enabled CPU: Intel(R) Xeon(R) CPU E5-2603 v4 @ 1.70GHz (1698.07-MHz K8-class CPU) Origin="GenuineIntel" Id=0x406f1 Family=0x6 Model=0x4f Stepping=1 Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> Features2=0x7ffefbff<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,TSCDLT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND> AMD Features=0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM> AMD Features2=0x121<LAHF,ABM,Prefetch> Structured Extended Features=0x21cbfbb<FSGSBASE,TSCADJ,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,PQM,NFPUSG,PQE,RDSEED,ADX,SMAP,PROCTRACE> Structured Extended Features3=0x9c000000<IBPB,STIBP,SSBD> XSAVE Features=0x1<XSAVEOPT> VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID,VID,PostIntr TSC: P-state invariant, performance statistics Created attachment 197090 [details]
Freebsd-ATPHA5 UFS boot
I tried FreeBSD-ALPHA5 with UFS. The system got fine after some error messages (attached).
I was having similar problems as described here with FreeBSD 12.1 on my Compaq Presario CQ71-325SG notebook. Installation went fine but after that the machine would only occasionally boot successfully. Most of the time the boot process gave one the following errors: panic: zfree(0xb9f59000,16781312): corrupt memlist2 --> Press a key on the console to reboot <-- or: gptzfsboot: error 66 lba 18446744073709551608 gptzfsboot: error 66 lba 1 gptzfsboot: No ZFS pools located, can't boot and also less frequently: panic: zfree(0xb9f59000,16781312): corrupt memlist1 --> Press a key on the console to reboot <-- Replacing the gptzfsboot bootcode in the freebsd-boot partition with Allan Jude's updated gptzfsboot_hp_debug from comment #37 makes this notebook successfully and reliably boot into FreeBSD. Output is: ALLAN: calling probe_drive on 0 ALLAN: drive is size 625142448 (0) ALLAN: skipping the boot drive as we already scanned it without error (In reply to Allan Jude from comment #37) The binary worked on a ThinkPad R52 with older versions of FreeBSD. However, with 13.0, it no longer works. Is it possible to apply the patch against the source code of 13.0 and produce a new binary? |