From owner-freebsd-questions@freebsd.org Sat Feb 24 13:28:58 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A50A1F11C5B for ; Sat, 24 Feb 2018 13:28:58 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-io0-x231.google.com (mail-io0-x231.google.com [IPv6:2607:f8b0:4001:c06::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 267E182253 for ; Sat, 24 Feb 2018 13:28:58 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: by mail-io0-x231.google.com with SMTP id e7so12687845ioj.1 for ; Sat, 24 Feb 2018 05:28:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=mtq68PaToagXBKnhefnNzccDPhNIAkLSJOINwnRe5+g=; b=Pntc7BxpqSAHPRTg9dPt25v+IhG7i1zy6BiNbYlVI45DUexLzYCE1aU3V9AwcogmUP Mf3ckI827cJ0KHlwDNTquWOZN7YSATEwz/dCkWA2HhWzMLaFGP6tJdeBeHPdDjpwaYhO W88b8SQps7Ojz1HWYOUi2jJ9+8pvyhivUi3WLzR4CSdLT7K0O9NaItp8ULCM3KDhmBTy AgCZcnr0tdAGgVfvwQoup5eR96laVssBQi0IkToCCU7u/8BNN9mW2TChBfPssbPU6e7Z oQu/rp8hapEfvtq0FTY5YVH3NfELG5FJVdL6oMP6tbv9xIIfaPjtPMlvuywvXBSfUeQi Ug2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=mtq68PaToagXBKnhefnNzccDPhNIAkLSJOINwnRe5+g=; b=kYwuDnpXsGKXMsd1O+Is9W3C9ySK9Eq+swhrMQEk0ElQXYQ30SSQ4yPc0BDHl8Nt1x 0VcOEGz6I786f/A49TSyhL15ouTgQmcL5NueyJn1HqFkztI7Ui8lrpQrJiNerKpj8x5F 59/OIBuIPyS4vD5XwjjR53fqGGD8Wt50uQ+U0P5Rt+JqAcl0qOjbcGrpG0GjQ5GU4LJH FZzNcyFh5Jif7NJjwddXzzfKjXj5MJhHMkZNz0v1qWHig55ANYcSK0ULIaVuk7Y4wWGb B+9T7zCAL3LJRGEU3M3QhfYBWrLAVUqrvJh2bfwzafpfctZAIQDn8iqVFtNICS1MO2lx ydKA== X-Gm-Message-State: APf1xPBrl2JauuZR3brehdBh6AhDtWnX4vYJlYWE0V3yiBvKWmRgKU6H rxmtc2fewuRqCIiRCUln3LR/cVRPJFRKNWKJkFw= X-Google-Smtp-Source: AG47ELu/6DOXCpR8w/3tJvDRvY4NeXV7Ev68FM/zhmCm+WUOk+8SGhZCdowyuFCMUGvuIu3//yfqIGZcF8EhxnxIRR0= X-Received: by 10.107.145.7 with SMTP id t7mr5427779iod.296.1519478937375; Sat, 24 Feb 2018 05:28:57 -0800 (PST) MIME-Version: 1.0 Received: by 10.2.151.151 with HTTP; Sat, 24 Feb 2018 05:28:56 -0800 (PST) In-Reply-To: <854f2a4e-1264-7c7f-60c4-7f65efa290f7@netfence.it> References: <854f2a4e-1264-7c7f-60c4-7f65efa290f7@netfence.it> From: Adam Date: Sat, 24 Feb 2018 07:28:56 -0600 Message-ID: Subject: Re: 11.1/amd64 hangs on boot To: Andrea Venturoli Cc: FreeBSD Questions Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Feb 2018 13:28:58 -0000 On Fri, Feb 23, 2018 at 8:11 AM, Andrea Venturoli wrote: > Hello. > > I've had this machine for eons and it went through almost every FreeBSD > version in the last years without a hitch. > > After upgrading to 11.1, however, it will often (not always) hang on boot. > > Some extract from dmesg (I think these are the relevant parts): > > ... >> FreeBSD 11.1-RELEASE-p6 #1 r327994M: Mon Jan 15 09:50:57 CET 2018 >> root@alamar.ventu:/usr/obj/usr/src/sys/ALAMAR amd64 >> FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on >> LLVM 4.0.0) >> ... >> ahci0: port >> 0xa000-0xa007,0x9000-0x9003,0x8000-0x8007,0x7000-0x7003,0x6000-0x600f >> mem 0xfe6ffc00-0xfe6fffff irq 22 at device 17.0 on pci0 >> ahci0: AHCI v1.10 with 6 3Gbps ports, Port Multiplier supported >> ahci0: quirks=0x22000 >> ahcich0: at channel 0 on ahci0 >> ahcich1: at channel 1 on ahci0 >> ahcich2: at channel 2 on ahci0 >> ahcich3: at channel 3 on ahci0 >> ahcich4: at channel 4 on ahci0 >> ahcich5: at channel 5 on ahci0 >> ohci0: mem 0xfe6fe000-0xfe6fefff >> irq 16 at device 18.0 on pci0 >> usbus0 on ohci0 >> usbus0: 12Mbps Full Speed USB v1.0 >> ohci1: mem 0xfe6fd000-0xfe6fdfff >> irq 16 at device 18.1 on pci0 >> usbus1 on ohci1 >> usbus1: 12Mbps Full Speed USB v1.0 >> ehci0: mem >> 0xfe6ff800-0xfe6ff8ff irq 17 at device 18.2 on pci0 >> usbus2: EHCI version 1.0 >> usbus2 on ehci0 >> usbus2: 480Mbps High Speed USB v2.0 >> ohci2: mem 0xfe6fc000-0xfe6fcfff >> irq 18 at device 19.0 on pci0 >> usbus3 on ohci2 >> usbus3: 12Mbps Full Speed USB v1.0 >> ohci3: mem 0xfe6f7000-0xfe6f7fff >> irq 18 at device 19.1 on pci0 >> usbus4 on ohci3 >> usbus4: 12Mbps Full Speed USB v1.0 >> ehci1: mem >> 0xfe6ff400-0xfe6ff4ff irq 19 at device 19.2 on pci0 >> usbus5: EHCI version 1.0 >> usbus5 on ehci1 >> usbus5: 480Mbps High Speed USB v2.0 >> atapci0: port >> 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xff00-0xff0f at device 20.1 on pci0 >> ata1: at channel 1 on atapci0 >> ... >> ahd0: port >> 0xe800-0xe8ff,0xe400-0xe4ff mem 0xfebfe000-0xfebfffff irq 20 at device 5.0 >> on pci3 >> aic7902: Ultra320 Wide Channel A, SCSI Id=7, PCI 33 or 66MHz, 512 SCBs >> ahd1: port >> 0xe000-0xe0ff,0xd800-0xd8ff mem 0xfebfc000-0xfebfdfff irq 21 at device 5.1 >> on pci3 >> aic7902: Ultra320 Wide Channel B, SCSI Id=7, PCI 33 or 66MHz, 512 SCBs >> ... >> ugen4.1: at usbus4 >> ugen1.1: at usbus1 >> ugen0.1: at usbus0 >> ugen6.1: at usbus6 >> uhub0: on usbus4 >> uhub1: on usbus1 >> uhub2: on usbus6 >> uhub3: ugen3.1: at usbus3 >> on usbus0 >> uhub4: on usbus3 >> ugen5.1: at usbus5 >> ugen2.1: at usbus2 >> uhub5: on usbus5 >> uhub6: on usbus2 >> uhub2: 2 ports with 2 removable, self powered >> uhub0: 3 ports with 3 removable, self powered >> uhub1: 3 ports with 3 removable, self powered >> uhub3: 3 ports with 3 removable, self powered >> uhub4: 3 ports with 3 removable, self powered >> uhub5: 6 ports with 6 removable, self powered >> uhub6: 6 ports with 6 removable, self powered >> ... >> ugen5.2: at usbus5 >> umass0 on uhub5 >> umass0: >> on usbus5 >> umass0: SCSI over Bulk-Only; quirks = 0x4001 >> umass0:9:0: Attached to scbus9 >> ... >> da1 at ahd1 bus 0 scbus8 target 0 lun 0 >> da1: Fixed Direct Access SCSI-3 device >> da1: Serial Number V5X9S3AA0051P65D0441 >> da1: 320.000MB/s transfers (160.000MHz DT, offset 80, 16bit) >> da1: Command Queueing enabled >> da1: 140205MB (287140277 512 byte sectors) >> da0 at ahd0 bus 0 scbus7 target 4 lun 0 >> da0: Removable Direct Access SCSI-2 device >> da0: 3.300MB/s transfers >> da0: Attempt to query device size failed: NOT READY, Medium not present >> da2 at ahd1 bus 0 scbus8 target 2 lun 0 >> da2: Fixed Direct Access SCSI-3 device >> da2: Serial Number V5XABRAA0051P65L0026 >> da2: 320.000MB/s transfers (160.000MHz DT, offset 80, 16bit) >> da2: Command Queueing enabled >> da2: 140205MB (287140277 512 byte sectors) >> cd0 at ahcich2 bus 0 scbus2 target 0 lun 0 >> cd0: Removable CD-ROM SCSI device >> cd0: Serial Number K9HE8TD3540 >> cd0: 150.000MB/s transfers (SATA 1.x, UDMA5, ATAPI 12bytes, PIO 8192bytes) >> cd0: Attempt to query device size failed: NOT READY, Medium not present - >> tray closed >> cd1 at ata1 bus 0 scbus6 target 0 lun 0 >> cd1: Removable CD-ROM SCSI device >> cd1: 66.700MB/s transfers (UDMA4, ATAPI 12bytes, PIO 65534bytes) >> cd1: Attempt to query device size failed: NOT READY, Medium not present >> da3 at umass-sim0 bus 0 scbus9 target 0 lun 0 >> da3: Removable Direct Access SCSI device >> da3: Serial Number 058F312D81B >> da3: 40.000MB/s transfers >> da3: Attempt to query device size failed: NOT READY, Medium not present >> da3: quirks=0x2 >> Trying to mount root from ufs:/dev/mirror/gm1a [rw]... >> da4 at umass-sim0 bus 0 scbus9 target 0 lun 1 >> da4: Removable Direct Access SCSI device >> da4: Serial Number 058F312D81B >> da4: 40.000MB/s transfers >> da4: Attempt to query device size failed: NOT READY, Medium not present >> da4: quirks=0x2 >> da5 at umass-sim0 bus 0 scbus9 target 0 lun 2 >> da5: Removable Direct Access SCSI device >> da5: Serial Number 058F312D81B >> da5: 40.000MB/s transfers >> da5: Attempt to query device size failed: NOT READY, Medium not present >> da5: quirks=0x2 >> da6 at umass-sim0 bus 0 scbus9 target 0 lun 3 >> da6: Removable Direct Access SCSI device >> da6: Serial Number 058F312D81B >> da6: 40.000MB/s transfers >> da6: Attempt to query device size failed: NOT READY, Medium not present >> da6: quirks=0x2 >> > > The last part is the most relevant: starting from "da1:" onwards, the > order of appearance of daX and cdX is not always the same. > Often, after a few of daX and/or cdX are output, the machine hangs, the > SCSI controller light staying on: sometimes it will spontaneusly reboot > after several seconds, sometimes I'll have to press the reset button. > > There's no rules to how many times I have to try booting every morning: > some days it starts right the first time, some days I have to reboot > several times until it gets it right and goes ahead. > > While it might be an hardware problem (being the box quite old), the fact > that it started doing this after a 10.3->11.1 upgrade is suspicious. > Is there a known race-condition/LOR/whatever? Is there a way to get better > info (e.g. some option to put in the kernel config or in /boot/loader.conf)? > Should I enable DDB, INVARIANTS, WITNESS & co.? I'd like to avoid breaking > performance, but I'll do if it's the only way. > You could do a verbose boot. You can also use the switch to prevent reboot on panic. Is there anything in /var/log/messages? -- Adam