All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yong Li" <yong.b.li@linux.intel.com>
To: "'Andrew Jeffery'" <andrew@aj.id.au>,
	"Yong Li" <yong.b.li@linux.intel.com>,
	"'OpenBMC Maillist'" <openbmc@lists.ozlabs.org>
Subject: RE: Get the AST2500 SCUE0/E4 value using kernel device driver?
Date: Fri, 17 May 2019 09:20:42 +0800	[thread overview]
Message-ID: <001401d50c4e$bf32d660$3d988320$@linux.intel.com> (raw)
In-Reply-To: <acff464f-4e77-4b69-8d3a-bd03d1df37f3@www.fastmail.com>

HI Andrew,

Thanks for the reply.

I want to get the time from the very beginning of the AC power on, including
the time spent on u-boot. 

My understanding is that the clock_gettime only return the Linux up time, it
cannot get the delay in bootloader(u-boot).

For example, the time from power on to the console login is about 65
seconds,
u-boot spends 25 seconds, and Linux boot needs another 40 seconds.

I want to get the total time: 65 seconds.  

Thanks,
Yong
-----Original Message-----
From: Andrew Jeffery <andrew@aj.id.au> 
Sent: Friday, May 17, 2019 7:17 AM
To: Yong Li <yong.b.li@linux.intel.com>; 'OpenBMC Maillist'
<openbmc@lists.ozlabs.org>
Cc: Li, Yong B <yong.b.li@intel.com>
Subject: Re: Get the AST2500 SCUE0/E4 value using kernel device driver? 



On Wed, 15 May 2019, at 17:12, Yong Li wrote:
> Hi All,
> 
> 
> Just want to know if there is any existing device driver provides the 
> interface to get the SCUE0/E4 register values on AST2500?
> 
> 
> If no, I would like to know if there is any examples/similar drivers 
> for reference? By the way, the two registers are used for the uptime

I'm not aware of any, but I'm interested in what you're trying to measure.
Are you after something that can't be satisfied by CLOCK_MONOTONIC and
friends for clock_gettime()? Or is that what you're wanting to drive?

Andrew

> 
> 
> Thanks,
> 
> Yong
> 
>

      reply	other threads:[~2019-05-17  1:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-15  7:38 Get the AST2500 SCUE0/E4 value using kernel device driver? Yong Li
2019-05-16 23:17 ` Andrew Jeffery
2019-05-17  1:20   ` Yong Li [this message]

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='001401d50c4e$bf32d660$3d988320$@linux.intel.com' \
    --to=yong.b.li@linux.intel.com \
    --cc=andrew@aj.id.au \
    --cc=openbmc@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.