public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: john stultz <johnstul@us.ibm.com>
To: Andi Kleen <ak@suse.de>
Cc: Ingo Molnar <mingo@elte.hu>, Darren Hart <dvhltc@us.ibm.com>,
	Nishanth Aravamudan <nacc@us.ibm.com>,
	Frank Sorenson <frank@tuxrocks.com>,
	George Anzinger <george@mvista.com>,
	Roman Zippel <zippel@linux-m68k.org>,
	Ulrich Windl <ulrich.windl@rz.uni-regensburg.de>,
	Thomas Gleixner <tglx@linutronix.de>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/13] Time: Generic Timeofday Subsystem (v B10)
Date: Sat, 12 Nov 2005 18:34:55 -0800	[thread overview]
Message-ID: <1131849296.2607.30.camel@leatherman> (raw)
In-Reply-To: <p73lkzt49wr.fsf@verdi.suse.de>

On Sun, 2005-11-13 at 02:24 +0100, Andi Kleen wrote:
> john stultz <johnstul@us.ibm.com> writes:
> 
> > All,
> > 	I had hoped to submit this to -mm today, but since Ingo pointed
> > out an issue in the __delay code, I'm going to wait a week so the new fix
> > can be better tested.
> 
> At least on x86-64 there is currently so much other timer related
> development going on (per CPU TSC timers, no idle tick, 64bit HPET
> etc.)  that I don't want any x86-64 bits of that merged for the next
> time. The other stuff needs to settle first.

Oh yes, I should have been more clear. I'm not planning on submitting
the x86-64 bits yet, just the i386. The x86-64 parts are there as an
example that this is useful outside of just i386, and ensures the
framework can support more complex features, like vsyscall for example
(Also just to give some scope, I have code for ppc that I run at home
and code that builds for ppc64, s390, arm, sparc, alpha and ia64, but
all of those will need much more work).  

> I haven't read the patchset in full detail, but from a quick look
> it's also not obvious too me in which way it is easier and cleaner
> than the old setup. While the old code was quirky in parts the
> new one seems to fall more in the overmodularization/too many
> indirect callbacks trap.

I appreciate your time in looking at the code. I've added some
documentation in Documentation/timekeeping.txt, so let me know if
anything there needs further clarification.

However I don't feel it is overmodulation. The close linking between
timer interrupts and timekeeping is really problematic because any
change in one affects the other.  Further, examples like the list above
(for per-cpu TSC management and 64bit HPET timkeeping) show that the
code could use some modulation so these features can be developed beside
the already working implementations without serious conflicts.

> It is also totally unclear how it will interact with vsyscall.

vsyscall is probably adds the most complexity to the infrastructure, but
I feel I've addressed it in a pretty clean way. And it is working fine
for x86-64 and I have an additional patch that enables it for i386.

Take a look at the arch_update_vsyscall() function in the x86-64 code
and look at the vread() function in the x86-64 tsc clocksource. These
bits could use some cleaning up (I haven't removed the legacy time
variables that are exported), but the foundation is there. Please let me
know if you have any comments or suggestions for further simplifying
that code.

If you need more explanation, I can send the i386 code out on Monday,
which might show a more clear example.

Again, I really appreciate your feedback, and once I move my attention
off of getting the i386 code to Andrew, the x86-64 is the next arch I'll
be focusing on. So suggest away and I'll try to get the code to your
liking.

thanks
-john


  reply	other threads:[~2005-11-13  2:34 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-12  4:48 [PATCH 0/13] Time: Generic Timeofday Subsystem (v B10) john stultz
2005-11-12  4:48 ` [PATCH 1/13] Time: Reduced NTP rework (part 1) john stultz
2005-11-12  4:49 ` [PATCH 2/13] Time: Reduced NTP Rework (part 2) john stultz
2005-11-12  4:49 ` [PATCH 3/13] Time: Clocksource Infrastructure john stultz
2005-11-12  4:49 ` [PATCH 4/13] Time: Generic Timekeeping Infrastructure john stultz
2005-11-12  4:49 ` [PATCH 5/13] Time: i386 Conversion - part 1: Move timer_pit.c to i8253.c john stultz
2005-11-12  4:49 ` [PATCH 6/13] Time: i386 Conversion - part 2: Move timer_tsc.c to tsc.c john stultz
2005-11-12  4:49 ` [PATCH 7/13] Time: i386 Conversion - part 3: Rework TSC Support john stultz
2005-11-12  4:49 ` [PATCH 8/13] Time: i386 Conversion - part 4: ACPI PM variable renaming john stultz
2005-11-12  4:49 ` [PATCH 9/13] Time: i386 Conversion - part 5: Enable Generic Timekeeping john stultz
2005-11-12  4:49 ` [PATCH 10/13] Time: i386 Conversion - part 6: Remove Old Code john stultz
2005-11-12  4:50 ` [PATCH 11/13] Time: x86-64 Conversion to Generic Timekeeping john stultz
2005-11-12  4:50 ` [PATCH 12/13] Time: i386/x86-64 Clocksource Drivers john stultz
2005-11-12  4:50 ` [PATCH 13/13] Time: Generic Timekeeping Paraniod Debug Patch john stultz
2005-11-13  1:24 ` [PATCH 0/13] Time: Generic Timeofday Subsystem (v B10) Andi Kleen
2005-11-13  2:34   ` john stultz [this message]
2005-11-13  7:32   ` Ingo Molnar
2005-11-13 10:53     ` Andi Kleen
2005-11-14 17:41       ` john stultz
2005-11-14 18:23       ` Ingo Molnar
2005-11-14 21:22 ` Frank Sorenson
2005-11-14 21:38   ` john stultz
2005-11-14 21:53     ` Frank Sorenson
2005-11-14 22:02       ` john stultz
2005-11-14 23:07         ` Frank Sorenson
2005-11-14 23:25           ` john stultz
2005-11-15  5:04             ` Frank Sorenson
2005-11-15 19:53               ` john stultz
2005-11-15 20:53                 ` Ingo Molnar
2005-11-15 21:04                   ` john stultz

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=1131849296.2607.30.camel@leatherman \
    --to=johnstul@us.ibm.com \
    --cc=ak@suse.de \
    --cc=dvhltc@us.ibm.com \
    --cc=frank@tuxrocks.com \
    --cc=george@mvista.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=nacc@us.ibm.com \
    --cc=tglx@linutronix.de \
    --cc=ulrich.windl@rz.uni-regensburg.de \
    --cc=zippel@linux-m68k.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