From owner-freebsd-arm@freebsd.org Thu Dec 13 03:06:27 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 0840B1334EEC for ; Thu, 13 Dec 2018 03:06:27 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 41E188FD8F for ; Thu, 13 Dec 2018 03:06:26 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: by mail-qk1-x72f.google.com with SMTP id g125so118868qke.4 for ; Wed, 12 Dec 2018 19:06:26 -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=9tTc82owLA/N/XhHnR9b5aF4lBtTyx11ktEGJ6ZHq3s=; b=aWqMO8Mbunq3rVAX6kZVzuHaW8Fi43RUnkCNu0hRyFUF6rI6RjSciQHHOCB249Uez3 fWsk9IAqbdDJHHIVjQGdGrJd7uIwqF1wOKHUd2nw5dpSSRRWX8QxK9UdOpW9gtXKeLZb YnTXI9CtmeHsT1MHIr5C0eZvxREh5M6aIkGoMP75GnC3Twc0eKFsm1Wm0kFQSoaczobG 590fGTqPlA1VWE3YQEZqiiTYQk9IQNUB5xShvp/weY5e8BZF6YHoFVOsycuhnF83Ia2K YyKcamGvMBf3YEBR1PsYjqBWjq2AbTmq5Oil3PbPPkwnxHb128HY7PUhlOHH1KqHqSfH griQ== 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=9tTc82owLA/N/XhHnR9b5aF4lBtTyx11ktEGJ6ZHq3s=; b=RQ9TK4RQsAUqXW/DXedmN2yMykcXtjnvvtj59g6MwpdN2dZjkZtWNWBOlGUSI2m61v 9Jdc77ubsWJpa8wvX9jzBnUuwK8dUjL35fnr71C7Jdx3A/F2O6Mc27fiYJ5J8lhbOBhB wexF9RTtU8GHW7znlhayihX2wZFB7HxclZ2ANnGz6HSiuJ2b8JUgSUuzEzekQmKG/8m8 EPoE18WEc1gFEHPlTZeUkv1u8kWk2I7SVOXkAxkGCJhQqsBkEhussQcG0g1BqQwS3fxl 9XqsTiadqKNzQWoiASfnoRJ4nfTtEHkOUqH7C60095HtUJxraqVE82YFqRKHsU9FgUt3 BHRg== X-Gm-Message-State: AA+aEWYh4Sj1PwscFP1Wk2gTXwx/d6t4+tmJTK/TFqt2qECU7DQjUKwK kR6clZG/3N7w3uaqBDwR9sveIZI7Na8OKtVVCC0Xqg== X-Google-Smtp-Source: AFSGD/Xu5rhP5NW1HYHUB59VL0DYn3mU9vDsOTMn6oYFTTUL5nuTbctgsyl6xlnljn9YiYP60xScqtDCTq06DEFO6Gs= X-Received: by 2002:a37:10d4:: with SMTP id 81mr19663093qkq.19.1544670385671; Wed, 12 Dec 2018 19:06:25 -0800 (PST) MIME-Version: 1.0 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> <1534366621.3897.2@hraggstad.unrelenting.technology> <1534520860.4036.0@hraggstad.unrelenting.technology> In-Reply-To: <1534520860.4036.0@hraggstad.unrelenting.technology> From: Ganbold Tsagaankhuu Date: Thu, 13 Dec 2018 11:06:14 +0800 Message-ID: Subject: Re: Rockchip RK3399 (ROCKPro64) boots to multiuser To: Greg V Cc: Emmanuel Vadot , freebsd-arm X-Rspamd-Queue-Id: 41E188FD8F X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=aWqMO8Mb; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of ganbold@gmail.com designates 2607:f8b0:4864:20::72f as permitted sender) smtp.mailfrom=ganbold@gmail.com X-Spamd-Result: default: False [-5.49 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[f.2.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_TLS_LAST(0.00)[]; NEURAL_HAM_SHORT(-0.99)[-0.994,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(-2.49)[ip: (-9.49), ipnet: 2607:f8b0::/32(-1.58), asn: 15169(-1.29), country: US(-0.09)]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Thu, 13 Dec 2018 03:06:27 -0000 Greg, On Fri, Aug 17, 2018 at 11:50 PM Greg V wrote= : > > > On Wed, Aug 15, 2018 at 11:57 PM, Greg V > wrote: > > > > > > On Wed, Aug 15, 2018 at 11:44 PM, Emmanuel Vadot > > wrote: > >> On Wed, 15 Aug 2018 22:41:34 +0300 > >> Greg V wrote: > >>> Alright everyone, good news ? I managed to reclock the CPU!!! > >>> > >>> The patch is now at https://reviews.freebsd.org/D16732 > >> > >> Thanks a lot !! > >> I'll have a deeper look when I'm back from BSDCam. > >> > >>> (and I think the style is more correct now. Though it's really > >>> fscking > >>> silly that the style doesn't like making "table-like" structures > >>> look > >>> like tables, i.e. with one-line "rows".) > >>> > >>> Plus the hack you need to reclock the CPU right now at > >>> https://gist.github.com/myfreeweb/88cb9340652f56498f4be770c77b9d61 > >>> > >>> (the hack allows cpufreq_dt to deal with clock only, no voltage ? > >>> since we don't have all the drivers for voltage.) > >> > >> 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 =E2=80=94 I maxed the clocks for both big and LITTLE cores and got > > pretty great performance. > > > > e.g. unixbench dhrystone index with cpuset to a big core: 804 =E2=80=94 > > which 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=E2=80=A6 > > > > Compiling neovim also took *way* less time than on RPi/ROCK64. > > > > So, I think the big cores' voltage regulator (silergy,syr827) might > > just default to the highest voltage. > > The chip gets rather warm when just idling in FreeBSD=E2=80=A6 > > Update: tried porting the fanpwr driver from OpenBSD: > > https://gist.github.com/myfreeweb/584de9b746a328e10c904395afe8a48f > > Reports 1.0V on boot. For some reason, cpufreq doesn't see the > regulator though =E2=80=94 any idea why could that be?? > (cpufreq_dt shouldn't require the controller and regulator to be > separate nodes, right? There are other drivers like sy8106a where it's > all one node=E2=80=A6) > > Also, overclocked to 2.184GHz, still works great (benchmark score went > up again.) > > I guess either the syr827 is not actually running 1.0 V, or the > provided table is waaaay overvolted, or I won the silicon lottery and > my chip is just that good. > Maybe I should write an efuse driver to look at the leakage > measurements=E2=80=A6 > Does recent kernel work/boot on RK3399 board in your case? Somehow it is not working for my case. Please let me know. thanks, Ganbold > > _______________________________________________ > 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" >