All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: "Chen, Hongzhan" <hongzhan.chen@intel.com>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: Can we port latmon from zephyr to xenomai 3.2 for measuring gpio latency.
Date: Thu, 27 May 2021 16:54:35 +0200	[thread overview]
Message-ID: <87zgwgjkgk.fsf@xenomai.org> (raw)
In-Reply-To: <BN9PR11MB522741D310EA498FDA56B742F2249@BN9PR11MB5227.namprd11.prod.outlook.com>


Hi Hongzhan,

Chen, Hongzhan <hongzhan.chen@intel.com> writes:

> Hi Philippe
>
> I have tried different ways and different X86 boards to co-work with FRDM K64F to get correct GPIO latency
> for latmus test but failed because of voltage mismatch( 1.8V <-> 3.3V) or bad signal  of gpio connection between X86 boards 
> and FRDM K64F triggering lots of invalid gpio interrupts after run.
>

Yeah, too bad the PI-X designers did not stick with the pretty common
3.3 voltage. Any ARM-based PI can give us 3.3V on the GPIO pins
AFAICS. But I guess this might not be on the table, right?

> Can we port latmon from zephyr to xenomai so that we can set up latmus and latmon on same type of board
> which both run xenomai to measure gpio latency to avoid voltage mismatch or bad signal caused by platform 
> difference?  It would also provide more options for user to setup latmon to measure gpio latency.  How do you think?
>

Benchmarking Xenomai with Xenomai might raise some validity concerns in
theory, hence the reason for going for a distinct and fairly basic
Zephyr-based solution for monitoring latency.

Practically speaking, this could be done and should work for sure. In
this case, I would have the basic measurement code running in a RTDM
driver (e.g. extending the latmus driver?) so that no extra cost is
involved due to memory contexts switches, pushing the data to userland,
which would in turn collect it and deal with the TCP stream.

-- 
Philippe.


      reply	other threads:[~2021-05-27 14:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-26  3:59 Can we port latmon from zephyr to xenomai 3.2 for measuring gpio latency Chen, Hongzhan
2021-05-27 14:54 ` Philippe Gerum [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=87zgwgjkgk.fsf@xenomai.org \
    --to=rpm@xenomai.org \
    --cc=hongzhan.chen@intel.com \
    --cc=xenomai@xenomai.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.