Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Jul 2020 12:06:50 -0700
From:      Josh Howard <bsd@zeppelin.net>
To:        Greg V <greg@unrelenting.technology>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: big.LITTLE status for rk3399/rockpro64?
Message-ID:  <877duk6cvp.wl-bsd@zeppelin.net>
In-Reply-To: <NPNAEQ.19G4VIZO960P@unrelenting.technology>
References:  <878sfnz61y.wl-bsd@zeppelin.net> <CAOWUMWGY%2B=w%2B9jJ8yhb9Lew6MjGorVquvATgok1_fyRMUBS6vg@mail.gmail.com> <CAFU7VyNzbFbOP5rMuVEZiMpHs_pdaD3X0Cp0GJRZTyd2pXTHPQ@mail.gmail.com> <20200714094519.f61b85e267d24c02f6a1c09f@bidouilliste.com> <87y2n6tcqr.wl-bsd@zeppelin.net> <20200728123143.GB96119@cicely18.cicely.de> <CAOWUMWEMPR9M8wTLsyrA4S_fkhAKL9Z_mjydZC4tARp3jD-kDg@mail.gmail.com> <CAOWUMWFicnTLnHL_F7k-X_455-VLfdDHk=Ka5oBKv=NiWcu=oA@mail.gmail.com> <DE4590E3-B14F-4972-B65C-EBD1CEB40E4E@dsllsn.net> <873659szkp.wl-bsd@zeppelin.net> <NPNAEQ.19G4VIZO960P@unrelenting.technology>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 30 Jul 2020 11:08:11 -0700,
Greg V wrote:
> 
> 
> 
> On Thu, Jul 30, 2020 at 10:05, Josh Howard <bsd@zeppelin.net> wrote:
> > On Thu, 30 Jul 2020 09:02:56 -0700,
> > William Carson via freebsd-arm wrote:
> >> 
> >> 
> >>  > On Jul 28, 2020, at 10:43 AM, Vincent Milum Jr
> >> <freebsd-arm@darkain.com> wrote:
> >>  >
> >>  > The downside is that the two big cores are not fully clocking up
> >> to their max
> >>  > speed, because FreeBSD doesn't have support yet to clock cores
> >> or groups of
> >>  > cores independently.
> >> 
> >>  Is this true? I'm running r363091 on a RockPro64 with
> >> sysutils/powerdxx and it
> >>  supports the different frequencies just fine:
> >> 
> >>  # sysctl dev.cpu.{0,1,2,3,4,5}.freq
> >>  dev.cpu.0.freq: 1416
> >>  dev.cpu.1.freq: 1416
> >>  dev.cpu.2.freq: 1416
> >>  dev.cpu.3.freq: 1416
> >>  dev.cpu.4.freq: 1800
> >>  dev.cpu.5.freq: 1800
> > 
> > powerdxx definitely does help. I think the other issue is that if
> > you set ncpu=4,
> > you get get the max freq_levels of 1512 for the 4 CPUs, but when all
> > 6 are
> > enabled, it finds the highest common freq, which is
> > 1416. Furthermore, we only
> > set the big cores at 1800, but they should be 2016.
> 
> Wait, "it" == stock powerd? oh sure it might not support that. I was
> only considering manual setting of these sysctls.
> 
> re: what the maximum should be, that depends on your device tree.
> I have overclocked mine to 2200.
> 

I'm probably conflating too many things, between what I was observing on
Linux, which seemed to default to max clock of 1512 on little cores and
what I see on FreeBSD. I see in rk3399-opp.dtsi that those freq_levels
match what's in the freq_levels in sysctl, so not sure the discrepency.

What device tree are you using to get up to 2200?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?877duk6cvp.wl-bsd>