Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1407700imj; Sun, 10 Feb 2019 01:18:32 -0800 (PST) X-Google-Smtp-Source: AHgI3IYZA706EecdVOLUSbIFAo/vPP2k0bQDTwUnaIJCK0EIYGvp/9Ucu8nYNbrMMNufPqQ6MqAN X-Received: by 2002:a17:902:296a:: with SMTP id g97mr32362046plb.317.1549790312615; Sun, 10 Feb 2019 01:18:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549790312; cv=none; d=google.com; s=arc-20160816; b=O9oelRyHDHarvzOoUbL29ZtYX9JUATyJsdqgywvXsDjR4wSxCBr/tb2SG+lN7Elh2o 0dK1qlukfk0kTYCcz7osT0nM3e/VYnUu9TvbnWfLcEV6AqHqbjf9kjK1mn3xV/5pkply +o9L2RrxUEsD32XJ93lkG8XHYrTI0TeDkoffYfIPVhrW0392JSonKiqFO5RRBgklt9x+ JsVPSzM2DdjOEA9ICcgSfO7z1dF4K26bddwcs3vpr6CWPvLZMwZke78XuHDnN422r3FV e0INP/F4E8tnnDgtCg0Pw+Mzs6c0jfLZUYdA0qSljg5UNomHweqbojwfKmRNZlJx38Hl yC/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=EFr+hrz2O53PiwqmX3QTtSp5XOzA10YBuRNlgpk5lRI=; b=Athv/4qiXSc1JsUMPm+DoZDx/Mw9feWyc4XH4zLXeF7NVZX+py5AihfJrjGo1xuAjW m7RCrhEJBd4NBJ4tYRcPmqV3EH/1AT6wLs+lKsOI20nFnmgeo/SUM9d6ziuUlVbkZKMP kCj5YUAaQAfYmygNTc1Z6u/aL5+IxEbjrZzZIjpsy2D+TwyW/bDy+VOKXvytjfOVS+Yo 9GhLAMfeadOxIIRBAnZ7Y9qxV0iEbdzSy6cdpLODI8onRpNVB7lUPjdbRuaXSNg7ZAEh bFtda0Hs/uPc5ee91O7OZihitMJM/WPE78Ov6MxvoZNZhHOb5SR+mp6VgBW5jpLhPDcw JIDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SG0RU987; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 197si6578576pgb.564.2019.02.10.01.18.16; Sun, 10 Feb 2019 01:18:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SG0RU987; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726120AbfBJJRz (ORCPT + 99 others); Sun, 10 Feb 2019 04:17:55 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:41691 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725948AbfBJJRy (ORCPT ); Sun, 10 Feb 2019 04:17:54 -0500 Received: by mail-ot1-f65.google.com with SMTP id u16so12848767otk.8; Sun, 10 Feb 2019 01:17:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EFr+hrz2O53PiwqmX3QTtSp5XOzA10YBuRNlgpk5lRI=; b=SG0RU9870xNNfMYjUSgdedMKAVqHQ/Gb5wx70W29faMoiyEyK/10ZJ0tWhkflRbqn5 uh63T5WBN3cGijq6MdV/LKswSWMSSdhtgQBAnkxFEfTB+7gBKFhZ6BNokS0mkGEFx55N uU2/IvLfLzYAaKiSJunCpANsfTc6okCLOCwykwbs7CmAXbgTaEMxf2P9MUNwtQCDpaB0 K8+JCCuC51xB7zEqBT03Ounxe/9psbdT2mG8sSH0fazJMNBLdzxsiA6x4Ip0nJ9rcRFP pvmeROZ3fo8ZmTtwqHSWIHI4cdziZroVWqnxPyLzGBahBw0n7j4zq1tod2YXQRSt7EFf 33cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EFr+hrz2O53PiwqmX3QTtSp5XOzA10YBuRNlgpk5lRI=; b=JvJDwU4Y1XrGS0VtMW2Dks/QBegtOiGQi2QQyJsxdOVMiAOIUp7+DCB687+ORUQkLN Y5Cu9+qu8mt+ChPD1V1+iKEtb2q7sv9/YqO31VddJ9zNBTZ9h7RQJ6dRNPJzsV4e6RfI /1jmNBeIBhShD6wfbvb+VICvqVijP1Ub93j6JS5iLW9U8qZOC3hAAWWuHgCy5ng1LX3w z8mFu9Yryl7PhpJ32b6a3SXZQO52LDWJs0qOju2ttT89g2zYfwtRtslKNxU6Xr7gaGRU LzGjNbE2ZZrhVX3d5PiPwlRiCnZ4glx0YT3uFuEYccVsRTUZDgiYeDxs59JBRZw6ZjjS RnYA== X-Gm-Message-State: AHQUAubFr7jD/QyeiCPQOoKAsyiLUyvTkaokbBDFwv2sO2HLfdMk7Z06 8n20QSn1TZUnnUwshY34NSGIHarTfiwpNOZMPIfy8w== X-Received: by 2002:a9d:61c8:: with SMTP id h8mr20982929otk.279.1549790273575; Sun, 10 Feb 2019 01:17:53 -0800 (PST) MIME-Version: 1.0 References: <1549736341.2971.7.camel@HansenPartnership.com> In-Reply-To: <1549736341.2971.7.camel@HansenPartnership.com> From: Mikael Pettersson Date: Sun, 10 Feb 2019 10:17:42 +0100 Message-ID: Subject: Re: [5.0-rc5 regression] "scsi: kill off the legacy IO path" causes 5 minute delay during boot on Sun Blade 2500 To: James Bottomley Cc: Linux SPARC Kernel Mailing List , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 9, 2019 at 7:19 PM James Bottomley wrote: > > On Sat, 2019-02-09 at 18:04 +0100, Mikael Pettersson wrote: > > 4.20 and earlier kernels boot fine on my Sun Blade 2500 (UltraSPARC > > IIIi), but the 5.0-rc kernels consistently experience a 5 minute > > delay > > late during boot, after enabling networking but before allowing user > > logins. E.g. 5.0-rc5 dmesg has: > > > > [Fri Feb 8 17:13:17 2019] random: dbus-daemon: uninitialized urandom > > read (12 bytes read) > > [Fri Feb 8 17:18:14 2019] random: crng init done > > I've had the same problem on several of my test systems. Are you sure > it's not this bug report: > > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=912087 > > ? > > The solution for me was to install the haveged package which does > active entropy gathering during boot and can make /dev/urandom > available much earlier. Thanks for the hint, I'll look into using haveged on this machine. > > > During this interval the machine answers pings but won't allow user > > logins either on the console or over the network. > > > > A git bisect identified commit > > f664a3cc17b7d0a2bc3b3ab96181e1029b0ec0e6 > > Author: Jens Axboe > > Date: Thu Nov 1 16:36:27 2018 -0600 > > > > scsi: kill off the legacy IO path > > > > as the point where this 5m delay was introduced. > > I think the reason for this is that the block mq path doesn't feed the > kernel entropy pool correctly, hence the need to install an entropy > gatherer for systems that don't have other good random number sources. That does sound plausible, I admit I didn't even consider the possibility that the old block I/O path also was an entropy source. /Mikael