From: Jack Steiner <steiner@sgi.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] itc sync & clock_*
Date: Mon, 29 Oct 2001 18:33:37 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590698805409@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590698805400@msgid-missing>
I sent mail to Asit last week about this. Copy is attached:
>> Asit -
>>
>> The SGI platforms do not have a synchronized FSB clock across all nodes.
>> The result of this is ar.itc on different cpus may drift. There is code in the kernel
>> that assumes that all nodes stay synchronized. This obviously doesn't work on
>> our platform. (I expect other platforms will have similar problems).
>>
>> We send David mods to handle this but he felt (& I agree) that SAL
>> should pass a flag that indicates whether the clocks are synchronized.
>> Then, the kernel can enable/disable the code that assumes clocks are
>> synchronized based on this flag - not a platform #ifdef.
>>
>> Do you agree with this approach??
>>
>> What do we need to do to get this flag added to the SAL spec.
>>
>> My suggestion is (include/asm-ia64/sal.h):
>>
>> #define IA64_SAL_PLATFORM_FEATURE_BUS_LOCK (1 << 0)
>> #define IA64_SAL_PLATFORM_FEATURE_IRQ_REDIR_HINT (1 << 1)
>> #define IA64_SAL_PLATFORM_FEATURE_IPI_REDIR_HINT (1 << 2)
>> #define IA64_SAL_PLATFORM_FEATURE_ITC_UNSYNCHRONIZED (1 << 3) <<<< NEW
>>
>> typedef struct ia64_sal_desc_platform_feature {
>> u8 type;
>> u8 feature_mask;
>> u8 reserved1[14];
>> } ia64_sal_desc_platform_feature_t;
>>
>
> On Mon, 29 Oct 2001, David Mosberger wrote:
>
> > The first thing to do is to get this into the firmware. Linux needs a
> > way to detect when the ITCs are not driven off the same clock (i.e.,
> > when there is a chance for the ITCs to drift). There also needs to be
> > a way for detecting when the clock frequencies are different, but I
> > believe the info provided by PAL/SAL is sufficient (my only worry are
> > rounding errors...).
>
> Ok, we'll work on getting this pushed back, so at least the kernel can
> figure out what to do. Regarding glibc though: we really don't want to
> have a different version just for our systems, so I'd like to come up with
> a generic solution. Maybe an ia64 specific clock driver that glibc could
> map in to read synchronized clock info? Is there a platform independent
> way of doing this? I'll poke around glibc some more to see if any of the
> other arches deal with tis problem, but I'm sure there are people that are
> already familiar with these sorts of issues that might be able to help
> out. Anyone?
>
> Thanks a lot,
> Jesse
>
>
> _______________________________________________
> Linux-IA64 mailing list
> Linux-IA64@linuxia64.org
> http://lists.linuxia64.org/lists/listinfo/linux-ia64
>
--
Thanks
Jack Steiner (651-683-5302) (vnet 233-5302) steiner@sgi.com
next prev parent reply other threads:[~2001-10-29 18:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-26 17:09 [Linux-ia64] itc sync & clock_* Jesse Barnes
2001-10-29 15:54 ` David Mosberger
2001-10-29 18:10 ` Jesse Barnes
2001-10-29 18:28 ` David Mosberger
2001-10-29 18:33 ` Jack Steiner [this message]
2001-10-29 18:52 ` David Mosberger
2001-10-29 21:27 ` David Mosberger
2001-10-31 19:41 ` Jesse Barnes
2001-11-06 1:03 ` David Mosberger
2001-11-06 1:03 ` Jesse Barnes
2001-11-09 1:31 ` Mallick, Asit K
2001-11-09 2:06 ` David Mosberger
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=marc-linux-ia64-105590698805409@msgid-missing \
--to=steiner@sgi.com \
--cc=linux-ia64@vger.kernel.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