From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Authentication-Results: lists.ozlabs.org; spf=none (mailfrom) smtp.mailfrom=linux.intel.com (client-ip=134.134.136.24; helo=mga09.intel.com; envelope-from=yong.b.li@linux.intel.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.intel.com Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 453md61hVYzDqSC for ; Wed, 15 May 2019 17:38:29 +1000 (AEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 May 2019 00:38:26 -0700 X-ExtLoop1: 1 Received: from yongli3-mobl.ccr.corp.intel.com (HELO yongli3MOBL) ([10.239.196.254]) by fmsmga005.fm.intel.com with ESMTP; 15 May 2019 00:38:25 -0700 From: "Yong Li" To: "'OpenBMC Maillist'" Cc: "Li, Yong B" Subject: Get the AST2500 SCUE0/E4 value using kernel device driver? Date: Wed, 15 May 2019 15:38:25 +0800 Message-ID: <000001d50af1$2e9f3700$8bdda500$@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01D50B34.3CCB9EC0" X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdUK77AqM7Q1f1I/Rmq5dl/vVs/hUQ== Content-Language: en-us x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYzFhNjI3YTktOTZlNS00OTQ3LWEyMjItNGFkYzE2MDcwNGY2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoid2M3Q2F0KzdcL0lCOTBuUlhMTU5RM3FkUllSYncwU1dKT2pkcUhrY1pwNTVoUGhwN2JQdkJ5Q1krbGtcL1hpQjNSIn0= dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 May 2019 07:38:35 -0000 This is a multipart message in MIME format. ------=_NextPart_000_0001_01D50B34.3CCB9EC0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 ------=_NextPart_000_0001_01D50B34.3CCB9EC0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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

 

------=_NextPart_000_0001_01D50B34.3CCB9EC0-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=aj.id.au (client-ip=66.111.4.26; helo=out2-smtp.messagingengine.com; envelope-from=andrew@aj.id.au; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=aj.id.au Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=aj.id.au header.i=@aj.id.au header.b="V+DUoGdn"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="bb5ydZ53"; dkim-atps=neutral Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 454nPm3mgFzDqPT for ; Fri, 17 May 2019 09:17:16 +1000 (AEST) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id EB0E224890; Thu, 16 May 2019 19:17:11 -0400 (EDT) Received: from imap2 ([10.202.2.52]) by compute4.internal (MEProxy); Thu, 16 May 2019 19:17:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm2; bh=SXtHk5Pgc5mLdjiCOFn2RRq1IDOB4VC JydDc+zYlPVY=; b=V+DUoGdnQhgKFHxQoFP+7QWEJDmVGbUtdGm4g8zPZ7vLptI U4EiY3g25jQ4UG+P/dwU8rcfdXIWl0DSR/Kqrdef2gG/aiUxHtGqjs/RJqy+vyGj K+A292Zx2SwuissfNvIZ2EODBtFYrernLEfKDCTXIylT8IKxX6layPU4xRUY2vGb r0OD7KMUycIavDy0pGN5IiQ90P94O7tdmOd/gMBNvIWEG3PaHHzqn4qPxMiqPWp9 5a6699Tz0SPLTsqkRGY2K6fPdKkUpEC0rDvxK3nGd+VExEg88QLCrKuIpgCViyTK SXTqjWfapeoGiQU/437Zrxv8ECkeQATH78uMQEQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=SXtHk5 Pgc5mLdjiCOFn2RRq1IDOB4VCJydDc+zYlPVY=; b=bb5ydZ53j1QeJB46SqNNpv V0qLIfk1prvx/8xAnQ9lxEW6fnPW+/qFLcMLHjgNux3LH3elJmtOgyg5S6bZQr0B D/JXT3lwKmHlXgvVwrYTgbzl/D84OHQfMMAPAez3vmPtO9yX7fozw5iHNNbeSud4 0f7IAVsI/pS/AFlYhdZrGBimqcTwRFdU7R23sGW948v7A+kMKEZd05ScJoczTkyX yXar03JHu8mtH9FEO/+F9YhzFELBBd6Vy8AJsJQJgbUg6ucBQPZBh9F8iVL+fHta GvpKUYrwFdLYri4PtNkLqUpQXUFKyRD2vHUqlOEzVcc/vN6fMsu97TH4JrhThSvA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddruddtuddgvddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdetnhgu rhgvficulfgvfhhfvghrhidfuceorghnughrvgifsegrjhdrihgurdgruheqnecurfgrrh grmhepmhgrihhlfhhrohhmpegrnhgurhgvfiesrghjrdhiugdrrghunecuvehluhhsthgv rhfuihiivgeptd X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 326957C3E9; Thu, 16 May 2019 19:17:11 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.6-549-ge400f56-fmstable-20190516v3 Mime-Version: 1.0 Message-Id: In-Reply-To: <000001d50af1$2e9f3700$8bdda500$@linux.intel.com> References: <000001d50af1$2e9f3700$8bdda500$@linux.intel.com> Date: Fri, 17 May 2019 08:47:10 +0930 From: "Andrew Jeffery" To: "Yong Li" , "'OpenBMC Maillist'" Cc: "Li, Yong B" Subject: Re: Get the AST2500 SCUE0/E4 value using kernel device driver? Content-Type: text/plain X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 May 2019 23:17:17 -0000 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 > > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Authentication-Results: lists.ozlabs.org; spf=none (mailfrom) smtp.mailfrom=linux.intel.com (client-ip=134.134.136.24; helo=mga09.intel.com; envelope-from=yong.b.li@linux.intel.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.intel.com Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 454r8J12D7zDqNT for ; Fri, 17 May 2019 11:20:46 +1000 (AEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 May 2019 18:20:43 -0700 X-ExtLoop1: 1 Received: from yongli3-mobl.ccr.corp.intel.com (HELO yongli3MOBL) ([10.239.197.31]) by fmsmga005.fm.intel.com with ESMTP; 16 May 2019 18:20:42 -0700 From: "Yong Li" To: "'Andrew Jeffery'" , "Yong Li" , "'OpenBMC Maillist'" References: <000001d50af1$2e9f3700$8bdda500$@linux.intel.com> In-Reply-To: Subject: RE: Get the AST2500 SCUE0/E4 value using kernel device driver? Date: Fri, 17 May 2019 09:20:42 +0800 Message-ID: <001401d50c4e$bf32d660$3d988320$@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdUK77AqM7Q1f1I/Rmq5dl/vVs/hUQBCr5IAABTjjyA= Content-Language: en-us x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZTIxN2I4ZjYtNDhlZC00YzllLWE3ZTEtY2I5ODBlZWU2NjYwIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoib2E2cW9KalRiaXNWeVZhUXExbEZpdm1cL0hhaWNiek51ZExLaEdHdkRsWjUyMmlpUUViM000ZkdKQzRSK3R1QmUifQ== dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 May 2019 01:20:49 -0000 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 Sent: Friday, May 17, 2019 7:17 AM To: Yong Li ; 'OpenBMC Maillist' Cc: Li, Yong B 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 > >