From owner-freebsd-arm@freebsd.org Fri Sep 25 12:43:18 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C6F703F6724 for ; Fri, 25 Sep 2020 12:43:18 +0000 (UTC) (envelope-from melounmichal@gmail.com) Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ByWmP6mSPz3d7B; Fri, 25 Sep 2020 12:43:17 +0000 (UTC) (envelope-from melounmichal@gmail.com) Received: by mail-wm1-x344.google.com with SMTP id y15so3156046wmi.0; Fri, 25 Sep 2020 05:43:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:reply-to:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=XKiqTI7CVOwstPjldwFVSarxv7PChxdQjrX3wK9ANgc=; b=SUBOl4DaPQCLz8UuiF4T/ZrF6jz2/bEqqmNGV2cpGYQ2mFhnrubJkxR/6TXcdZDeRC C5FnWaoL87uYWu02gl917LBfSvq7zX2SGexqStlicuTVKPpXioJJdjt5IdQ7jGS9ShXz litzXobgtmx7Pr6uoxdfXJAlYkA0L7am/VIqYWQ8VVKf/+RniOnZhKh+8gVN6C/Bv8aU PDdh03g8gprmIuefvdHpq7eLfHo9fhOUuhF+yTszGL6veOIG5MZHaMoAJc8m/xIBlyOd qWi+SSCc3dpmC8snr+Xw07J64dYSpbju0cUE7ZtHkdgnNUYwfQo7axjd7HU69my/V5Ca Rx5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:reply-to:subject:to:cc:references :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=XKiqTI7CVOwstPjldwFVSarxv7PChxdQjrX3wK9ANgc=; b=OD1Sf+dQlSBaOnxIy6ACddjBsX7AvRtiv626AneEyiZSQmUBG+dgH/8uLWQOpPAnNl g0z7f9trlHPRyGjv6yfXGBXalHwqr/Pxx2Bpvg7Ia5CGgUTa/SV0LCVAPC6FdxxMqw13 f3fK51cA2G/802Jk0Qk/S4GAFPgrG2vZhqCwK1HAv2bT8yXABVC4yClnUds9mibYM4Ek ix3mqYjxf1EOfUhmqAxEO3YbXMXLBztHNs9BnxapU1JpI5xV+jyO0wS3S9vbeGl61Sq5 gUtwMR/jD9CrjDSCrTf4CFFtSVgKBrMWTqIiBbFLu+GeGUCj6HREOjef4zEdaZAzSJzQ MwEw== X-Gm-Message-State: AOAM531OnHYEyBxlFnmkVfq06Qw5KdbLftYCJK82DB9zbikUkXJ8d9+B tTE63nGlv6FOQdrkcQ5UIFi89US82Pc= X-Google-Smtp-Source: ABdhPJy+20p9FRryT0jqmv1KghZSLDePaXXjTJ+Hztpyv+29JXt+6GyfBO3BaRkApRiSRfBq9ek91Q== X-Received: by 2002:a05:600c:2312:: with SMTP id 18mr2894243wmo.141.1601037795742; Fri, 25 Sep 2020 05:43:15 -0700 (PDT) Received: from [88.208.79.100] (halouny.humusoft.cz. [88.208.79.100]) by smtp.gmail.com with ESMTPSA id y5sm2787121wmg.21.2020.09.25.05.43.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Sep 2020 05:43:14 -0700 (PDT) Sender: Michal Meloun From: Michal Meloun X-Google-Original-From: Michal Meloun Reply-To: mmel@freebsd.org Subject: Re: clock problems with BeagleBone Black on 12.2BETA2 To: Glen Barber Cc: Mike Karels , FreeBSD Release Engineering Team , "freebsd-arm@freebsd.org" References: <20200925003347.GG60607@FreeBSD.org> <202009250507.08P573Bh045283@mail.karels.net> <20200925093334.GH60607@FreeBSD.org> <97b52e71-9dfe-6b5f-13f0-8dc466ef376f@freebsd.org> <20200925112906.GF26726@FreeBSD.org> Message-ID: <4432eabd-2ef1-c435-085e-11319aec09e0@freebsd.org> Date: Fri, 25 Sep 2020 14:43:17 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.2.2 MIME-Version: 1.0 In-Reply-To: <20200925112906.GF26726@FreeBSD.org> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4ByWmP6mSPz3d7B X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=SUBOl4Da; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of melounmichal@gmail.com designates 2a00:1450:4864:20::344 as permitted sender) smtp.mailfrom=melounmichal@gmail.com X-Spamd-Result: default: False [-1.86 / 15.00]; HAS_REPLYTO(0.00)[mmel@freebsd.org]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.975]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_SPAM_SHORT(0.14)[0.137]; NEURAL_HAM_LONG(-1.02)[-1.024]; MIME_GOOD(-0.10)[text/plain]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; MID_RHS_MATCH_TO(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::344:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-arm] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Sep 2020 12:43:18 -0000 On 25.09.2020 13:29, Glen Barber wrote: > On Fri, Sep 25, 2020 at 01:17:34PM +0200, Michal Meloun wrote: >> >> >> On 25.09.2020 11:33, Glen Barber wrote: >>> On Fri, Sep 25, 2020 at 12:07:03AM -0500, Mike Karels wrote: >>>>> Date: Fri, 25 Sep 2020 00:33:47 +0000 >>>>> From: Glen Barber >>>> >>>>> On Thu, Sep 24, 2020 at 06:04:58PM -0400, Ed Maste wrote: >>>>>> On Tue, 22 Sep 2020 at 14:09, Mike Karels wrote: >>>>>>> >>>>>>> I just installed 12.2BETA2 on a BeagleBone Black (armv7), and it took >>>>>>> at least an hour. I hit ^T periodically, and time seemed screwed up >>>>>>> (real time was progressing slowly at best). >>>>>> >>>>>> I've independently confirmed this on the 12.2BETA2 image; from my console: >>>>>> ... >>>>>> FreeBSD 12.2-BETA2 r365865 GENERIC arm >>>>>> ... >>>>>> Trying to mount root from ufs:/dev/ufs/rootfs [rw]... >>>>>> Warning: no time-of-day clock registered, system time will not be set acc= >>>>> urately >>>>>> Growing root partition to fill device >>>>>> random: read_random_uio unblock wait >>>>>> load: 1.28 cmd: awk 39 [piperd] 0.12r 0.00u 0.00s 0% 2060k >>>>>> load: 1.28 cmd: awk 39 [piperd] 0.14r 0.00u 0.00s 0% 2060k >>>>>> ... >>>>>> >>>>>> time seems to be running about 500x slow. >>>>>> >>>>>> I ^C'd each startup script that was stuck (I'm not as patient as >>>>>> Mike), and got to a login prompt. I was able to login as root just >>>>>> fine and the system seemed responsive for commands that don't sleep. I >>>>>> tried `sleep 0.01` and that took about 5 seconds of actual time. >>>>>> >>>> >>>>> Given the 1 second = 5 seconds info, does it eventually finish, or have >>>>> you just killed the power to it before getting that far? >>>> >>>> In my case, it finished, but took at least an hour. It may have taken >>>> longer if I didn't hit ^T periodically, e.g. I think that helped seed >>>> entropy. But according to Ed's measurement, it is closer to 1 second = >>>> 500 seconds. >>>> >>> >>> Err, sorry, I misread part of Ed's email, and 1 second = 500 seconds is >>> what he seems to report as well. >> >> Glen, >> do you see same problem also on CURRENT? > > CURRENT is reportedly not exhibiting this behavior. Thanks for response. I currently preparing (slightly) bigger patchset which should "normalize" situation about TI clock in CURRENT. These must be MFCed to STABLE ASAP but I afraid that we miss 12.2 target :( Michal