From: Thomas Gleixner <tglx@linutronix.de>
To: Mikhail Lodigin <mishal@softerra.com>
Cc: linux-rt-users@vger.kernel.org
Subject: Re: Guidelines to make RT patch for driver
Date: Fri, 13 Apr 2012 10:21:58 +0200 (CEST) [thread overview]
Message-ID: <alpine.LFD.2.02.1204131019290.2542@ionos> (raw)
In-Reply-To: <4F75DDBF.7050204@softerra.com>
On Fri, 30 Mar 2012, Mikhail Lodigin wrote:
> Hello,
> on my AT91SAM9263 based board RT patched kernel works great! Thanks to all
> involved. But when ethernet is in use - latency, measured by cyclictest, reach
> 7000000 and beyond.
> The ethernet driver for this processor is macb.c. (in 3.2 it is in
> drivers/net/ethernet/cadence, in 3.0 it is in drivers/net/).
> I'm ready to find out how to RT-patch it and of course share the resulted
> patch, but I need some starting point for patching drivers besides general
> RT-stuff. I've noticed that some network drivers patched in one way and
> others a in another. Maybe some discussion existed which I didn't found. So
> any help would be greatly appreciated.
There is no general recipe. The best way to do it is to use the
tracer. cyclictest has a commandline option for stopping the trace
when the latency exceeds a given treshold.
cyclictest -p80 -n -f -b 1000
will start the function tracer and stop it once the latency exceeds
1000us.
Thanks,
tglx
prev parent reply other threads:[~2012-04-13 8:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-30 16:22 Guidelines to make RT patch for driver Mikhail Lodigin
2012-04-13 8:21 ` Thomas Gleixner [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=alpine.LFD.2.02.1204131019290.2542@ionos \
--to=tglx@linutronix.de \
--cc=linux-rt-users@vger.kernel.org \
--cc=mishal@softerra.com \
/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