From nobody Thu Feb 3 01:06:24 2022 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id CDA1D19A260E for ; Thu, 3 Feb 2022 01:06:36 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jq0qc3xTzz3DLx for ; Thu, 3 Feb 2022 01:06:36 +0000 (UTC) (envelope-from kevans@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643850396; h=from:from:reply-to:subject:subject:date:date:message-id:message-id:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=1COApmbuskIckDSHQjzO4mOHaDUdyscVQv9x4oOs63M=; b=Ilj4hG7O3lA6vKw+a8yorfRI5Exv0KwKyQfH8OPZAfQEuBWgiP07lrIUzn36DTMqYveRot 731WaIW/vrJGxn26cqhGKpohHO2pGD6a0eVcFvbpUJuwqu2VSpGl4oGPa3yQIJwXepeb+D l3InOzUwL/7FG7s3KQF01NqhlNC1rqZm79uu3H06ttykcfIH5cb7StBIClGxMqb98djt0r UVU++T7nik0SurutHGVclxbd+n74bkhfDPbvLK+vFlS7yHzTmhcJy70aIe2EcxclW2y5gm lMRs3xZycCmCN0IgmLlSipB9J0xv9fZNPr4RIzPsX0Ew1KPqmWMA50Ov584p4A== Received: from mail-qv1-f45.google.com (mail-qv1-f45.google.com [209.85.219.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id 1097BF17B for ; Thu, 3 Feb 2022 01:06:36 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-qv1-f45.google.com with SMTP id d8so1271558qvv.2 for ; Wed, 02 Feb 2022 17:06:36 -0800 (PST) X-Gm-Message-State: AOAM530GBfLUbpiHO2d0xw/qYamETUtWg28ZoFybkZA2ldra8gQQjhBf FPFxredIxOb/zA/HDi3AqQCoYq4JXULSBD/eM/A= X-Received: by 2002:ad4:5cc3:: with SMTP id iu3mt30634391qvb.79.1643850395372; Wed, 02 Feb 2022 17:06:35 -0800 (PST) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 References: <3f375da9-c2a0-8c9e-33e5-d8273e84590c@FreeBSD.org> In-Reply-To: From: Kyle Evans Date: Wed, 2 Feb 2022 19:06:24 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: randomdev hangs during initial boot of -current on Raspberry Pi Cc: Jesper Schmitz Mouridsen , Mark Millard , Mike Karels , freebsd-current Content-Type: text/plain; charset="UTF-8" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643850396; h=from:from:reply-to:subject:subject:date:date:message-id:message-id:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=1COApmbuskIckDSHQjzO4mOHaDUdyscVQv9x4oOs63M=; b=a0re+tUEwU7e968jKSv23VWaf+8AEPmSqWvOFwpXbyNvHxxj6Cpt3fQwzwlNhCXtrL8FnK tHohHzEePlMzyiP+KB5pYPaUBPLFj9Iu5b+Z2b1YCJ9/ZO1hNH7k1B8eQbVN1AXw3SxwqX nfZpDIOrjxjUE4kU2BSnoK6Z/BEwx/eh/Ts+NG++XGhAy/WrBWIXjjDkNvFRX1Gk6L7S7u vuScNCEvSQ7OKw1ysdiPYQmbWfDQsXkwRxgfYXA6c6V559dR7YilaLhHjIXwB1x1Ke5pEC qTfCzJW2G85dC1RMMrUhct/rm6uvWDOzgVGp3hnrLiCDX8BLseFsz/GbVwagNg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1643850396; a=rsa-sha256; cv=none; b=WusWwnkVNGeu7qBeWlUGwDWVoATqH2AprqYglOxICaqlyxQ7oE+8GsG09ynF/kb0JJQsTe dfI+dUuNki6cKxNB0WgZG4NrWKtaMo8B3inq3RTFQjXvF2oOo/xgvZapxe60NTQMiawYxd FecRJ8XylK1GhXVHT/Ey6MBmcvpcOKBth/bHPsPhSTZlHLzqyoEAsnAc6Dhr4NN7RiO2Ix 55107IOiA5gKms5IWZWLm68rcNuCfJaudfG2J4DcEm2FiMH2twrHCudGL6il1nVGmnUo19 XnsNrSUc4eTOsSOResUMCxy1kQ5lgLLdp/G/T9lprLSneu5DupRNrjCYTcxQHg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N On Wed, Feb 2, 2022 at 10:50 AM Kyle Evans wrote: > > On Wed, Feb 2, 2022 at 3:41 AM Jesper Schmitz Mouridsen wrote: > > > > > > > > On 31.01.2022 22.20, Mark Millard wrote: > > > Mike Karels wrote on > > > Date: Mon, 31 Jan 2022 12:27:41 -0600 : > > > > > >> A bisect > > >> would be rather laborious, building a modified SD card each time, > > >> even if just testing kernel changes. Any other suggestions? > > > > > > Historically I've used: > > > > > > https://artifact.ci.freebsd.org/snapshot/main/?C=M&O=D > > > > > > and the likes of kernel.txz (or more) from, for example: > > > > > > https://artifact.ci.freebsd.org/snapshot/main/b4cc5d63b6112746598d21413c9800a43171da52/arm64/aarch64/?C=M&O=D > > > > > > to update just the kernel (or whatever) and rebooted. > > > (It can help to have a somewhat older world that is > > > left in place instead of running newer worlds on older > > > kernels. Avoiding needing got update world as well has > > > been helpful when testing for kernel issues.) > > > > > > This avoids building the kernels and allows a somewhat > > > bisect like activity until some subrange has no > > > arm64/aarch64 artifacts available. > > > > > > One can sometimes run into the dates for the sort for: > > > > > > https://artifact.ci.freebsd.org/snapshot/main/?C=M&O=D > > > > > > not matching up well with the dates on the files of > > > interest in specific sub directoreis. (Some sort of > > > directory update?) This can make the bisect far more > > > difficult, given the choice to not have the directory > > > names prefixed with text that would sort by a > > > date/time estimate when sorted by name. (Only using > > > the commit id/hash completely randomizes the naming.) > > > > > > > > > === > > > Mark Millard > > > marklmi at yahoo.com > > > > > > > > Hi > > My bisect gives: > > The latest working is: > > dda9847275da79ccbb2f0b7079b250e28b3b3b2a > > The excact following commit: > > 74cf7cae4d2238ae6d1c949b2bbd077e1ab33634 is bad. > > So 74cf7cae4d2238ae6d1c949b2bbd077e1ab33634 is where the problem starts > > for me. > > Hope that someone can explain why > > 74cf7cae4d2238ae6d1c949b2bbd077e1ab33634 does block entropy/random > > seeding on first boot around growfs invocation on arm64 > > /Jsm > > > > That seems odd, but CC'ing jhb@ -- maybe there's something hinky going > on since this is before AP startup for arm. I poked jhb out-of-band and we tracked it down to callouts having been a major source of entropy for early boot via SWI; tentative fix pending here: https://reviews.freebsd.org/D34150 Thanks, Kyle Evans