From owner-freebsd-arm@freebsd.org Fri Feb 21 10:30:54 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 AD4E22598DC for ; Fri, 21 Feb 2020 10:30:54 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mx.blih.net [212.83.155.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx.blih.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48P75n0Ht6z4hSb for ; Fri, 21 Feb 2020 10:30:52 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1582281050; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gFzEauE0kRN5R+jTfUsvhMiTkxQtQhSmjQ26K+13WEM=; b=icok4lEBs/s3r3GpYlouuhGtTipxaMVgbfXPc11jk+sz3zJIDqAqM3lenLz5QAkrtRnl1w QIz3/JYamzsN4Qppx+06Z/iCnxnLt/ajQrYnstgglch2qTAUbU9IhmQggZvrQlLQvuLgmd 7xlg5GMm1haChY2rvYRBwEt6uxN/EZE= Received: from skull.home.blih.net (lfbn-idf2-1-900-181.w86-238.abo.wanadoo.fr [86.238.131.181]) by mx.blih.net (OpenSMTPD) with ESMTPSA id 1a555119 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 21 Feb 2020 10:30:50 +0000 (UTC) Date: Fri, 21 Feb 2020 11:30:48 +0100 From: Emmanuel Vadot To: =?ISO-8859-1?Q?S=F8ren?= Schmidt Cc: freebsd-arm Subject: Re: Pinebook Pro instability problem and fix. Message-Id: <20200221113048.aa9d8251b1aa4af1c0628b68@bidouilliste.com> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 48P75n0Ht6z4hSb X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mx header.b=icok4lEB; dmarc=pass (policy=none) header.from=bidouilliste.com; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.155.74 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [-3.72 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mx]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MV_CASE(0.50)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[bidouilliste.com,none]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-1.22)[ip: (-8.27), ipnet: 212.83.128.0/19(1.97), asn: 12876(0.21), country: FR(0.00)]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Feb 2020 10:30:54 -0000 On Thu, 20 Feb 2020 21:10:55 +0100 S=F8ren Schmidt wrote: > Hi gang! >=20 > I have been wrestling my Pinebook Pro instability problem for some time. > The problem was that if I just let it boot it would occasionally hang sil= ently, just lock up totally unresponsive, if I changed the clock speed it w= ould run stable. > I finally figured out the problem and its actually quite simple. > On boot we set all the regulators initially to their lowest possible volt= age, this in my case is too low to make the little cpu?s run reliably. > U-boot sets the lcpu voltage to 900mv and speed to 816Mhz, on boot we re-= adjust the voltage to 750mv which is too low for my cpus to work reliably @= 816Mhz. > I?ve added support for the regulator-init-microvolt setting and set that = to 900000mv as per spec in the DTS, and that solves the issue. > Now running all 6 cores with changeable frequencies and no problems what = so ever. Yes this problem was introduced by me and it's one of the problem for booting rock64 right now (the other being i2c). Both are fixed and I need to upstream them. The problem with regulator-init-microvolt is that it's not always present so for now I just don't init the regulator if it's already enabled. > Patches on request if needed? Put them on phab, I'll have a look > -S=F8ren >=20 > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" --=20 Emmanuel Vadot