From: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
To: Ashwin Tanugula <ashwin.tanugula@broadcom.com>
Cc: "ltt-dev@lists.casi.polymtl.ca" <ltt-dev@lists.casi.polymtl.ca>,
Ralf Baechle <ralf@linux-mips.org>,
linux-kernel@vger.kernel.org
Subject: Re: MIPS TSC synchronization
Date: Sat, 21 Nov 2009 11:55:20 -0500 [thread overview]
Message-ID: <20091121165520.GH12100@Krystal> (raw)
In-Reply-To: <66E4AD309580E34AA457975F33D2A747414F453B06@IRVEXCHCCR01.corp.ad.broadcom.com>
* Ashwin Tanugula (ashwin.tanugula@broadcom.com) wrote:
>
>
>
> > > However, I was only able to view two out of 10 traces generated.
> > >
>
> > These errors seem to be caused by the fact that you run a SMP mips system with frequency scaling (either dynamic freq. scaling., or halting the clock in idle).
>
> > You might wait to try to disable the freq. scaling and see if it works better.
>
>
> Hi Mathieu,
>
> 1) With the patch on thop of 177, HAVE_UNSYNCHRONIZED_TSC was disabled and test_tsc_synchronization (arch/mips/kerne
> l/smp.c) was never called. So, we never knew if there was any TSC offset between the CPUs.
(adding Ralf and LKML in CC)
test_tsc_synchronization() is introduced by the LTTng tree. So in
mainline you would have never known that there was such a TSC offset
between your cores.
>
>
> 2) With HAVE_UNSYNCHRONIZED_TSC enabled, TSC offset between the CPUs was huge.
>
> Boot messages:
>
> checking TSC synchronization across all online CPUs:
> Measured 152179143 cycles TSC offset between CPUs, turning off TSC clock.
>
> I think this happened because of the stub function for synchronise_count_master in arch/mips/include/asm/r4k-timer.h
>
>
> 3) With HAVE_UNSYNCHRONIZED_TSC and enabled SYNC_R4K, arch/mips/kernel/sync-r4k.c gets compiled and I don't see any offset.
>
>
> Boot Messages:
>
> checking TSC synchronization across all online CPUs: passed.
>
> And I can view my traces on lttv without any problem.
>
Great !
>
>
> I guess arch/mips/kernel/sync-r4k.c is buggy on SMTC.
I see that SYNC_R4K is only selected by MIPS_CMP usually. Maybe a select
for it should be added to your kind of board ?
>
>
> Can you please confirm if this is right or not?
Given I am not a MIPS expert, I added some people in CC. They might help
confirming this if you provide information about:
- Number of CPUs
- Threads per CPUs (seems to be one, given CONFIG_MIPS_MT_SMTC is not
set in your configuration)
- your .config
Thanks,
Mathieu
>
> Thanks,
> Ashwin
>
>
>
--
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
next parent reply other threads:[~2009-11-21 16:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <66E4AD309580E34AA457975F33D2A747414F45316D@IRVEXCHCCR01.corp.ad.broadcom.com>
[not found] ` <20091117215352.GA30569@Krystal>
[not found] ` <66E4AD309580E34AA457975F33D2A747414F171989@IRVEXCHCCR01.corp.ad.broadcom.com>
[not found] ` <20091118215944.GB19773@Krystal>
[not found] ` <20091118221858.GA22209@Krystal>
[not found] ` <66E4AD309580E34AA457975F33D2A747414F17198C@IRVEXCHCCR01.corp.ad.broadcom.com>
[not found] ` <20091119165244.GC16094@Krystal>
[not found] ` <66E4AD309580E34AA457975F33D2A747414F45387E@IRVEXCHCCR01.corp.ad.broadcom.com>
[not found] ` <20091120143842.GB5765@Krystal>
[not found] ` <66E4AD309580E34AA457975F33D2A747414F453B06@IRVEXCHCCR01.corp.ad.broadcom.com>
2009-11-21 16:55 ` Mathieu Desnoyers [this message]
2009-11-26 2:20 ` MIPS TSC synchronization Ashwin Tanugula
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=20091121165520.GH12100@Krystal \
--to=mathieu.desnoyers@polymtl.ca \
--cc=ashwin.tanugula@broadcom.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ltt-dev@lists.casi.polymtl.ca \
--cc=ralf@linux-mips.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox