All of lore.kernel.org
 help / color / mirror / Atom feed
* Get the AST2500 SCUE0/E4 value using kernel device driver?
@ 2019-05-15  7:38 Yong Li
  2019-05-16 23:17 ` Andrew Jeffery
  0 siblings, 1 reply; 3+ messages in thread
From: Yong Li @ 2019-05-15  7:38 UTC (permalink / raw)
  To: 'OpenBMC Maillist'; +Cc: Li, Yong B

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]

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

 

Thanks,

Yong

 


[-- Attachment #2: Type: text/html, Size: 2340 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Get the AST2500 SCUE0/E4 value using kernel device driver?
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Jeffery @ 2019-05-16 23:17 UTC (permalink / raw)
  To: Yong Li, 'OpenBMC Maillist'; +Cc: Li, Yong B



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
> 
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Get the AST2500 SCUE0/E4 value using kernel device driver?
  2019-05-16 23:17 ` Andrew Jeffery
@ 2019-05-17  1:20   ` Yong Li
  0 siblings, 0 replies; 3+ messages in thread
From: Yong Li @ 2019-05-17  1:20 UTC (permalink / raw)
  To: 'Andrew Jeffery', Yong Li, 'OpenBMC Maillist'

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
> 
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-05-17  1:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.