From owner-freebsd-arm@freebsd.org Thu Dec 13 03:23:59 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 E39851335C8C for ; Thu, 13 Dec 2018 03:23:58 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) (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 0D6CF69FC9 for ; Thu, 13 Dec 2018 03:23:58 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: by mail-qk1-x733.google.com with SMTP id g125so135494qke.4 for ; Wed, 12 Dec 2018 19:23:58 -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=Eqq1ghME8XQH9VCxpPgxytOKiIWJyXssPfrBi6i8M9g=; b=GEEAnl3SjwTwr6bYY5Mg9Mx2RICRABG1CCsGMIS3fJxOV+1u5BT9FNUEBvPQqLUCz3 vuv8GBIphkrUHoKOZzmCW32126iu9JRecenR8jKawKmb1VBA8kBN4M+IJUq77HNPBXon sBDPIMrYvKjNULKppJ080Wk2MroaIJQ6U8iwEDljU9I70M96qx8ROhvWMqwH2w3qhC3n EXjg1S7HeGrTNSb+5HW6KdKf4HiVRr5P07W2Agig+Fm7PtOcXVnNLie37o09lvHGozYs zatKqXnXTD9q/F4i0/zQE8OmPNxw0HvwxVMsHvmZ/OV+lQ+p6hH6wRaLwM9sLHrd7bxX Ha/g== 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=Eqq1ghME8XQH9VCxpPgxytOKiIWJyXssPfrBi6i8M9g=; b=ciwwrf20pt8rUzY/GixPzCNJQlFJTd5xqb5frTzLzjTTSqmEoxKeGtU1n3lZlDd7SO EKyOBkyIhI4BId32g2z2INdvdtGBm4vVm31qDRpa6WEjBTnhqL9XjUe2x/7GTpmhi8Rt WwtGnOVNvwlNTWk6RGTUvtRtP9x8L7uyFpdwo1d008apnqUYWYmN91G/Nl7ZPynEvVHM mfbRU25zzj6t0uFMe7+24YoB2U+0Uz2ScjfObalxDdB5wa3Tn5C52RlA7GsZFwLxEjAK E520ESPhe2F0T8Vz5SYUTY0USVtUYfNWhsUQLijJNzyI0Nnml2G+7dcCe8qiHEm0z777 2Gwg== X-Gm-Message-State: AA+aEWbxx9D4DgetFi33oBgvQJpdgy/H54Jcmn6LcNph9Q1B/BOXIux/ Kb2a29r6YNjk8eWwPAeKzt7N5qj4AJ/vnK7cWpQ= X-Google-Smtp-Source: AFSGD/X5zEapgHV8DY+tQ9qB0s4COa8Mm9ckZ6SrFcABiKXDuIpJ0hRr3X3wz51W7PVyt9DN0ohT70qh03adsURnPSs= X-Received: by 2002:a37:af42:: with SMTP id y63mr19950337qke.251.1544671437564; Wed, 12 Dec 2018 19:23:57 -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: From: Ganbold Tsagaankhuu Date: Thu, 13 Dec 2018 11:23:46 +0800 Message-ID: Subject: Re: Rockchip RK3399 (ROCKPro64) boots to multiuser To: Greg V Cc: Emmanuel Vadot , freebsd-arm X-Rspamd-Queue-Id: 0D6CF69FC9 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=GEEAnl3S; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of ganbold@gmail.com designates 2607:f8b0:4864:20::733 as permitted sender) smtp.mailfrom=ganbold@gmail.com X-Spamd-Result: default: False [-5.54 / 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)[]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[3.3.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.54)[ip: (-9.73), 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:23:59 -0000 On Thu, Dec 13, 2018 at 11:06 AM Ganbold Tsagaankhuu wrote: > 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 go= t >> > 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. > No worries, it works for me. thanks, Ganbold > > 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" >> >