From owner-freebsd-arm@freebsd.org Wed Aug 15 20:57:18 2018 Return-Path: Delivered-To: freebsd-arm@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 85D54107061C for ; Wed, 15 Aug 2018 20:57:18 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: from hraggstad.unrelenting.technology (hraggstad.unrelenting.technology [71.19.146.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hraggstad.unrelenting.technology", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DDEA37B488 for ; Wed, 15 Aug 2018 20:57:17 +0000 (UTC) (envelope-from greg@unrelenting.technology) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=unrelenting.technology; h=date:from:subject:to:message-id; s=default; bh=Xeyb4Zr4ZSgDg8+7KwbFKa0HuSuXM2NR6F2Pk2J4EwY=; b=QHuR7+EczWJEoP2rj/2IG89b22pVhHMrSh8vAZtSCtne3iGqzsT6wKTINDgfCBUEhOHfMbtvi5aVzTVxBsP3sulpKRyE42C2S7zgH3HgTDrdiA12iFVkJNWSFd34G0auJ4NMvPnk/Tdcv823BRVuhl6moPirHJY0yfYVvulrkOM= Received: by hraggstad.unrelenting.technology (OpenSMTPD) with ESMTPSA id d273568a TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Wed, 15 Aug 2018 20:57:08 +0000 (UTC) Date: Wed, 15 Aug 2018 23:57:01 +0300 From: Greg V Subject: Re: Rockchip RK3399 (ROCKPro64) boots to multiuser To: Emmanuel Vadot Cc: Ganbold Tsagaankhuu , freebsd-arm Message-Id: <1534366621.3897.2@hraggstad.unrelenting.technology> In-Reply-To: <20180815224449.98b920836c2c7f8610449835@bidouilliste.com> References: <1533577708.4175.0@hraggstad.unrelenting.technology> <1534253037.1656.0@hraggstad.unrelenting.technology> <20180815105602.b106e1f55a3f839880b1b60e@bidouilliste.com> <1534362095.3897.1@hraggstad.unrelenting.technology> <20180815224449.98b920836c2c7f8610449835@bidouilliste.com> X-Mailer: geary/0.12.2 MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Aug 2018 20:57:18 -0000 On Wed, Aug 15, 2018 at 11:44 PM, Emmanuel Vadot=20 wrote: > On Wed, 15 Aug 2018 22:41:34 +0300 > Greg V wrote: >> Alright everyone, good news ? I managed to reclock the CPU!!! >>=20 >> The patch is now at https://reviews.freebsd.org/D16732 >=20 > Thanks a lot !! > I'll have a deeper look when I'm back from BSDCam. >=20 >> (and I think the style is more correct now. Though it's really=20 >> fscking >> silly that the style doesn't like making "table-like" structures=20 >> look >> like tables, i.e. with one-line "rows".) >>=20 >> Plus the hack you need to reclock the CPU right now at >> https://gist.github.com/myfreeweb/88cb9340652f56498f4be770c77b9d61 >>=20 >> (the hack allows cpufreq_dt to deal with clock only, no voltage ? >> since we don't have all the drivers for voltage.) >=20 > Are you able to switch to any frequency with that ? > I would expect the cpu to hang if the voltage is too low or too high. > (I encounter that on RK3328) Yeah =97 I maxed the clocks for both big and LITTLE cores and got=20 pretty great performance. e.g. unixbench dhrystone index with cpuset to a big core: 804 =97 which=20 is more than the 737 I got on Scaleway's ThunderX VPS! ThunderX is still way better on unixbench's other tests though. Not that unixbench is a great test=85 Compiling neovim also took *way* less time than on RPi/ROCK64. So, I think the big cores' voltage regulator (silergy,syr827) might=20 just default to the highest voltage. The chip gets rather warm when just idling in FreeBSD=85 =