linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Robert P. J. Day" <rpjday@crashcourse.ca>
To: Linux PPC Mailing List <linuxppc-dev@lists.ozlabs.org>
Subject: how can i see the *actual* bus and brg frequencies on running system?
Date: Wed, 25 May 2016 10:59:51 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LFD.2.20.1605251052330.30194@localhost.localdomain> (raw)


  i asked about this a while ago, didn't see any response, and i'm
still curious ... i have an MPC8360 system, ported u-boot to it, and
in the dts file i got from someone, the bus and brg frequencies were
set to lower values than they should have been, but we left them there
and, once the system was up, i tried to check what the *actual*
frequencies were being used.

  i checked under both /proc/device-tree, and way down under /sys, and
both showed lower frequencies, but one of the embedded guys wrote a
utility to read the actual PPC register that contained the bus
frequency, and assured us it was running at 533MHz, which is what we
wanted all along.

  so dts stuff aside, is there a simple user space way to display the
frequencies that are actually being used on the system? because it
appears that what's under both /proc and /sys are showing only what is
set in the device tree blob passed to the kernel, but that's not where
the kernel is getting the final value from.

rday

p.s. we got the BSP for this board from elsewhere, so it's possible
that during kernel boot, the kernel has been patched to ignore what it
sees in the DTB, and gets the value from somewhere unique to this BSP.

  but still, if that's the case, should it not still be possible to
view the frequency that was finally set and used on the running
system?

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================

             reply	other threads:[~2016-05-25 15:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-25 14:59 Robert P. J. Day [this message]
2016-05-26  1:08 ` how can i see the *actual* bus and brg frequencies on running system? Michael Ellerman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LFD.2.20.1605251052330.30194@localhost.localdomain \
    --to=rpjday@crashcourse.ca \
    --cc=linuxppc-dev@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).