Tickless Hz/hrtimers/etc. on PowerPC
Does anyone have the definitive patchset to enable the tickless hz, some kind of hrtimer and the other related improvements in the PowerPC tree?
Signature · 2 lines
Matt Sealey <[email protected]> Genesi, Manager, Developer Relations
Hello.
Quoted 3 lines · Matt Sealey
Does anyone have the definitive patchset to enable the tickless hz, some kind of hrtimer and the other related improvements in the PowerPC tree?
Look into the -rt patch which has the all this (minus TOD vsyscalls).
MBR, Sergei
Quoted 3 lines
Does anyone have the definitive patchset to enable the tickless hz, some kind of hrtimer and the other related improvements in the PowerPC tree?
Tony Breeds has been looking at this. I think he wanted to clean his patch set up before he posted it.
Mikey
Okay.
What I didn't want to do is spend a day sifting some other development tree picking out what I think might be possibly sort of the right patches for it.
I'd get it wrong because having not worked on it, I don't know what I am even looking for.
And I don't want to run -rt or wireless-dev for the benefit of a single feature. What I am after is something like Ingo Molnar throws out.. single patches done the old way, not git trees. It's so much easier to handle and integrate for example into a Gentoo ebuild or to make a tarball of accumulated patches from a certain release kernel.
Signature · 2 lines
Matt Sealey <[email protected]> Genesi, Manager, Developer Relations
Quoted 8 lines · Michael Neuling
Quoted 3 lines
Does anyone have the definitive patchset to enable the tickless hz, some kind of hrtimer and the other related improvements in the PowerPC tree?
Tony Breeds has been looking at this. I think he wanted to clean his patch set up before he posted it.
Mikey
Quoted 5 lines · Matt Sealey
And I don't want to run -rt or wireless-dev for the benefit of a single feature. What I am after is something like Ingo Molnar throws out.. single patches done the old way, not git trees. It's so much easier to handle and integrate for example into a Gentoo ebuild or to make a tarball of accumulated patches from a certain release kernel.
Hi Matt,
In the near future I will have something that I can pass around
for review. Which will be a quilt series of about 5 patches (based on mainline). I'll make sure to include you in the reviewers list. At this stage I'd hope they'll be in 2.6.24.
I have HRT in a state where you can enable it and it works, but NO_HZ isn't quite right yet.
Yours Tony
linux.conf.au http://linux.conf.au/ || http://lca2008.linux.org.au/
Jan 28 - Feb 02 2008 The Australian Linux Technical Conference!
Quoted 3 lines · Matt Sealey
Does anyone have the definitive patchset to enable the tickless hz, some kind of hrtimer and the other related improvements in the PowerPC tree?
I use attached patches for tickless.
Order in which they're applied:
PowerPC_GENERIC_CLOCKEVENTS.patch PowerPC_GENERIC_TIME.linux-2.6.18-rc6_timeofday-arch-ppc_C6.patch PowerPC_enable_HRT_and_dynticks_support.patch PowerPC_no_hz_fix.patch
tickless-enable.patch
HTH
Domen
===================================================================
--- arch/powerpc/Kconfig | 12 +++- arch/powerpc/kernel/time.c | 124 ++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 134 insertions(+), 2 deletions(-)
arch/powerpc/Kconfig +11 -1
@@ -347,7 +347,7 @@ config PPC_MM_SLICES config VIRT_CPU_ACCOUNTING bool "Deterministic task and CPU time accounting" - depends on PPC64 + depends on PPC64 && !GENERIC_CLOCKEVENTS default y help Select this option to enable more accurate task and CPU time
@@ -406,6 +406,16 @@ config HIGHMEM depends on PPC32 source kernel/Kconfig.hz + +config GENERIC_CLOCKEVENTS + bool "Clock event devices support" + default n + help + Enable support for the clock event devices necessary for the + high-resolution timers and the tickless system support. + NOTE: This is not compatible with the deterministic time accounting + option on PPC64. + source kernel/Kconfig.preempt source "fs/Kconfig.binfmt"
arch/powerpc/kernel/time.c +123 -1
183 lines not on this page · raw message
Early pass on powerpc conversion to generic timekeeping.
arch/powerpc/Kconfig | 4 arch/powerpc/kernel/time.c | 278 +++++---------------------------------------- 2 files changed, 37 insertions(+), 245 deletions(-)
linux-2.6.18-rc6_timeofday-arch-ppc_C6.patch
============================================
arch/powerpc/Kconfig +4 -0
@@ -31,6 +31,10 @@ config MMU bool default y +config GENERIC_TIME + bool + default y + config GENERIC_HARDIRQS bool default y
arch/powerpc/kernel/time.c +33 -245
318 lines not on this page · raw message
--- arch/powerpc/Kconfig | 1 + arch/powerpc/kernel/idle.c | 3 +++ 2 files changed, 4 insertions(+)
arch/powerpc/Kconfig +1 -0
@@ -416,6 +416,7 @@ config GENERIC_CLOCKEVENTS NOTE: This is not compatible with the deterministic time accounting option on PPC64. +source kernel/time/Kconfig source kernel/Kconfig.preempt source "fs/Kconfig.binfmt"
arch/powerpc/kernel/idle.c +3 -0
@@ -24,6 +24,7 @@#include <linux/smp.h> #include <linux/cpu.h> #include <linux/sysctl.h> +#include <linux/tick.h> #include <asm/system.h> #include <asm/processor.h>
@@ -59,6 +60,7 @@ void cpu_idle(void)set_thread_flag (TIF_POLLING_NRFLAG );while (1 ) { +tick_nohz_stop_sched_tick ();while (!need_resched () && !cpu_should_die ()) {ppc64_runlatch_off ();
@@ -92,6 +94,7 @@ void cpu_idle(void)ppc64_runlatch_on ();if (cpu_should_die ())cpu_die (); +tick_nohz_restart_sched_tick ();preempt_enable_no_resched ();schedule ();preempt_disable ();
--- arch/powerpc/kernel/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/kernel/time.c +1 -1
@@ -614,7 +614,7 @@ void timer_interrupt(struct pt_regs * re#ifndef CONFIG_GENERIC_CLOCKEVENTS do_timer (1 );#endif -timer_recalc_offset (tb_last_jiffy); +/*timer_recalc_offset(tb_last_jiffy);*/ timer_check_rtc (); }write_sequnlock (&xtime_lock);
This is needed for hrtimer_switch_to_hres() to get called. hrtimer_run_queues()
|-tick_check_oneshot_change() | \-timekeeping_is_continuous() | \- flags check
\-hrtimer_switch_to_hres()
--- arch/powerpc/kernel/time.c | 1 + 1 file changed, 1 insertion(+)
arch/powerpc/kernel/time.c +1 -0
@@ -1039,6 +1039,7 @@ struct clocksource clocksource_timebase .mask = (cycle_t)-1, .mult = 0, .shift = 22, + .flags = CLOCK_SOURCE_VALID_FOR_HRES, };
Hi Tony,
What does "isn't quite right yet" mean? Broken, acts funny, or just a messy patch?
Signature · 2 lines
Matt Sealey <[email protected]> Genesi, Manager, Developer Relations
Quoted 22 lines · Tony Breeds
Quoted 5 lines · Matt Sealey
And I don't want to run -rt or wireless-dev for the benefit of a single feature. What I am after is something like Ingo Molnar throws out.. single patches done the old way, not git trees. It's so much easier to handle and integrate for example into a Gentoo ebuild or to make a tarball of accumulated patches from a certain release kernel.
Hi Matt,
In the near future I will have something that I can pass around
for review. Which will be a quilt series of about 5 patches (based on mainline). I'll make sure to include you in the reviewers list. At this stage I'd hope they'll be in 2.6.24.I have HRT in a state where you can enable it and it works, but
NO_HZisn't quite right yet.Yours Tony
linux.conf.au http://linux.conf.au/ || http://lca2008.linux.org.au/
Jan 28 - Feb 02 2008 The Australian Linux Technical Conference!
Domen,
You wouldn't have tried these on the Efika yet, would you?
Signature · 2 lines
Matt Sealey <[email protected]> Genesi, Manager, Developer Relations
Quoted 18 lines · Domen Puncer
Quoted 3 lines · Matt Sealey
Does anyone have the definitive patchset to enable the tickless hz, some kind of hrtimer and the other related improvements in the PowerPC tree?
I use attached patches for tickless.
Order in which they're applied:PowerPC_GENERIC_CLOCKEVENTS.patch PowerPC_GENERIC_TIME.linux-2.6.18-rc6_timeofday-arch-ppc_C6.patch PowerPC_enable_HRT_and_dynticks_support.patch PowerPC_no_hz_fix.patch
tickless-enable.patchHTH
Domen
Hello.
Quoted 8 lines · Domen Puncer
Quoted 3 lines
Does anyone have the definitive patchset to enable the tickless hz, some kind of hrtimer and the other related improvements in the PowerPC tree?
I use attached patches for tickless.
Order in which they're applied:PowerPC_GENERIC_CLOCKEVENTS.patch
That's my patch which used to have both description and signoff that I'm
not seeing in the attached version...
Quoted 1 line
PowerPC_GENERIC_TIME.linux-2.6.18-rc6_timeofday-arch-ppc_C6.patch
This one should come first of all, I'd say...
Note that it breaks TOD vsyscalls, so you need my patch that removes
support for those for the time being (i.e. until Tony hopefully fixes this :-). Also, there was a patch implementing read_persistent_clock() and getting rid of the code setting xtime in time_init(). Attaching them both...
Quoted 1 line
PowerPC_enable_HRT_and_dynticks_support.patch
Again looks like my patch with description/signoff missing for whatever
reason...
Quoted 1 line
PowerPC_no_hz_fix.patch
This has nothing to do with CONFIG_NO_HZ per se -- it fixes the
compilation error introduced by John's patch.
Quoted 1 line
tickless-enable.patch
That one doesn't look quite right...
Quoted 3 lines
HTH
Domen
[...]
Quoted 16 lines
------------------------------------------------------------------------
This is needed for
hrtimer_switch_to_hres()to get called.hrtimer_run_queues()|-tick_check_oneshot_change() | \-timekeeping_is_continuous() | \- flags check\-hrtimer_switch_to_hres()
Signed-off-by Domen Puncer <[email protected]>Index:
work-powerpc.git/arch/powerpc/kernel/time.c
===================================================================
arch/powerpc/kernel/time.c struct clocksource clocksource_timebase · line 1043
Quoted 5 lines
arch/powerpc/kernel/time.c +1
-0@@ -1039,6 +1039,7 @@ struct clocksource clocksource_timebase .mask = (cycle_t)-1, .mult = 0, .shift = 22, + .flags = CLOCK_SOURCE_VALID_FOR_HRES, };
Hm, has the flag name changed from CLOCK_SOURCE_IS_CONTINOUS? I'm seeign
both there flags, therefore it must be CLOCK_SOURCE_IS_CONTINOUS, not CLOCK_SOURCE_VALID_FOR_HRES.
WBR, Sergei
PS: All attached patches are against 2.6.21-rt2 -- fitting them into the current (or whatever) version of the kernel is left as an excercise to the readers. ;-)
Remove PowerPC vsyscalls that were broken by the generic TOD patch.
---
Since there's still no working PowerPC TOD vsyscalls fix, and they continue to be broken in the RT patch, I've respun this patch again...
arch/powerpc/kernel/vdso32/gettimeofday.S | 322 ------------------------------ arch/powerpc/kernel/vdso64/gettimeofday.S | 254 ----------------------- arch/powerpc/kernel/asm-offsets.c | 15 - arch/powerpc/kernel/smp.c | 2 arch/powerpc/kernel/vdso32/Makefile | 2 arch/powerpc/kernel/vdso32/datapage.S | 18 - arch/powerpc/kernel/vdso32/vdso32.lds.S | 4 arch/powerpc/kernel/vdso64/Makefile | 2 arch/powerpc/kernel/vdso64/datapage.S | 18 - arch/powerpc/kernel/vdso64/vdso64.lds.S | 4 include/asm-powerpc/time.h | 20 - include/asm-powerpc/vdso_datapage.h | 14 - 12 files changed, 2 insertions(+), 673 deletions(-)
arch/powerpc/kernel/asm-offsets.c +0 -15
@@ -267,16 +267,7 @@ int main(void)#endif /* ! CONFIG_PPC64 */ /* datapage offsets for use by vdso */ -DEFINE (CFG_TB_ORIG_STAMP , offsetof(struct vdso_data , tb_orig_stamp)); -DEFINE (CFG_TB_TICKS_PER_SEC , offsetof(struct vdso_data , tb_ticks_per_sec)); -DEFINE (CFG_TB_TO_XS , offsetof(struct vdso_data , tb_to_xs)); -DEFINE (CFG_STAMP_XSEC , offsetof(struct vdso_data , stamp_xsec)); -DEFINE (CFG_TB_UPDATE_COUNT , offsetof(struct vdso_data , tb_update_count)); -DEFINE (CFG_TZ_MINUTEWEST , offsetof(struct vdso_data , tz_minuteswest)); -DEFINE (CFG_TZ_DSTTIME , offsetof(struct vdso_data , tz_dsttime));DEFINE (CFG_SYSCALL_MAP32 , offsetof(struct vdso_data , syscall_map_32)); -DEFINE (WTOM_CLOCK_SEC , offsetof(struct vdso_data , wtom_clock_sec)); -DEFINE (WTOM_CLOCK_NSEC , offsetof(struct vdso_data , wtom_clock_nsec));#ifdef CONFIG_PPC64 DEFINE (CFG_SYSCALL_MAP64 , offsetof(struct vdso_data , syscall_map_64));DEFINE (TVAL64_TV_SEC , offsetof(struct timeval , tv_sec));
@@ -297,12 +288,6 @@ int main(void)DEFINE (TZONE_TZ_MINWEST , offsetof(struct timezone , tz_minuteswest));DEFINE (TZONE_TZ_DSTTIME , offsetof(struct timezone , tz_dsttime)); -/* Other bits used by the vdso */ -DEFINE (CLOCK_REALTIME ,CLOCK_REALTIME ); -DEFINE (CLOCK_MONOTONIC ,CLOCK_MONOTONIC ); -DEFINE (NSEC_PER_SEC ,NSEC_PER_SEC ); -DEFINE (CLOCK_REALTIME_RES ,TICK_NSEC ); -#ifdef CONFIG_BUG DEFINE (BUG_ENTRY_SIZE ,sizeof (struct bug_entry ));#endif
arch/powerpc/kernel/smp.c +0 -2
@@ -308,8 +308,6 @@ void smp_call_function_interrupt(void) } } -extern struct gettimeofday_struct do_gtod; -struct thread_info *current_set[NR_CPUS ]; DECLARE_PER_CPU(unsigned int, pvr);
arch/powerpc/kernel/vdso32/Makefile +1 -1
@@ -1,7 +1,7 @@ # List of files in the vdso, has to be asm only for now -obj-vdso32 = sigtramp.o gettimeofday.o datapage.o cacheflush.o note.o +obj-vdso32 = sigtramp.o datapage.o cacheflush.o note.o # Build rules
arch/powerpc/kernel/vdso32/datapage.S +0 -18
@@ -65,21 +65,3 @@ V_FUNCTION_BEGIN(__kernel_get_syscall_ma blr .cfi_endproc V_FUNCTION_END(__kernel_get_syscall_map) - -/* - * void unsigned long long __kernel_get_tbfreq(void); - * - * returns the timebase frequency in HZ - */ -V_FUNCTION_BEGIN(__kernel_get_tbfreq) - .cfi_startproc - mflr r12 - .cfi_register lr,r12 - bl __get_datapage@local - lwz r4,(CFG_TB_TICKS_PER_SEC + 4)(r3) - lwz r3,CFG_TB_TICKS_PER_SEC(r3) - mtlr r12 - crclr cr0*4+so - blr - .cfi_endproc -V_FUNCTION_END(__kernel_get_tbfreq)
arch/powerpc/kernel/vdso32/gettimeofday.S deleted +0 -322
322 lines not on this page · raw message
arch/powerpc/kernel/vdso32/vdso32.lds.S +0 -4
@@ -117,10 +117,6 @@ VERSION global: __kernel_datapage_offset; /* Has to be there for the kernel to find */ __kernel_get_syscall_map; - __kernel_gettimeofday; - __kernel_clock_gettime; - __kernel_clock_getres; - __kernel_get_tbfreq; __kernel_sync_dicache; __kernel_sync_dicache_p5; __kernel_sigtramp32;
arch/powerpc/kernel/vdso64/Makefile +1 -1
@@ -1,6 +1,6 @@ # List of files in the vdso, has to be asm only for now -obj-vdso64 = sigtramp.o gettimeofday.o datapage.o cacheflush.o note.o +obj-vdso64 = sigtramp.o datapage.o cacheflush.o note.o # Build rules
arch/powerpc/kernel/vdso64/datapage.S +0 -18
@@ -65,21 +65,3 @@ V_FUNCTION_BEGIN(__kernel_get_syscall_ma blr .cfi_endproc V_FUNCTION_END(__kernel_get_syscall_map) - - -/* - * void unsigned long __kernel_get_tbfreq(void); - * - * returns the timebase frequency in HZ - */ -V_FUNCTION_BEGIN(__kernel_get_tbfreq) - .cfi_startproc - mflr r12 - .cfi_register lr,r12 - bl V_LOCAL_FUNC(__get_datapage) - ld r3,CFG_TB_TICKS_PER_SEC(r3) - mtlr r12 - crclr cr0*4+so - blr - .cfi_endproc -V_FUNCTION_END(__kernel_get_tbfreq)
arch/powerpc/kernel/vdso64/gettimeofday.S deleted +0 -254
254 lines not on this page · raw message
arch/powerpc/kernel/vdso64/vdso64.lds.S +0 -4
@@ -115,10 +115,6 @@ VERSION global: __kernel_datapage_offset; /* Has to be there for the kernel to find */ __kernel_get_syscall_map; - __kernel_gettimeofday; - __kernel_clock_gettime; - __kernel_clock_getres; - __kernel_get_tbfreq; __kernel_sync_dicache; __kernel_sync_dicache_p5; __kernel_sigtramp_rt64;
include/asm-powerpc/time.h +0 -20
@@ -48,26 +48,6 @@ extern unsigned long ppc_proc_freq;extern unsigned long ppc_tb_freq;#define DEFAULT_TB_FREQ 125000000UL -/* -* By putting all of this stuff into a single struct we -* reduce the number of cache lines touched by do_gettimeofday. -* Both by collecting all of the data in one cache line and -* by touching only one TOC entry on ppc64. -*/ -struct gettimeofday_vars { -u64 tb_to_xs; -u64 stamp_xsec; -u64 tb_orig_stamp; -}; - -struct gettimeofday_struct { -unsigned long tb_ticks_per_sec; -struct gettimeofday_vars vars[2 ]; -struct gettimeofday_vars *volatile varp; -unsigned var_idx; -unsigned tb_to_us; -}; -struct div_result {u64 result_high;u64 result_low;
include/asm-powerpc/vdso_datapage.h +0 -14
@@ -74,11 +74,6 @@ struct vdso_data {__u32 icache_size;/* L1 i-cache size 0x68 */ __u32 icache_line_size;/* L1 i-cache line size 0x6C */ -/* those additional ones don't have to be located anywhere -* special as they were not part of the original systemcfg -*/ -__s32 wtom_clock_sec;/* Wall to monotonic clock */ -__s32 wtom_clock_nsec;__u32 syscall_map_64[SYSCALL_MAP_SIZE ];/* map of syscalls */ __u32 syscall_map_32[SYSCALL_MAP_SIZE ];/* map of syscalls */ };
@@ -89,15 +84,6 @@ struct vdso_data {* And here is the simpler 32 bits version */ struct vdso_data { -__u64 tb_orig_stamp;/* Timebase at boot 0x30 */ -__u64 tb_ticks_per_sec;/* Timebase tics / sec 0x38 */ -__u64 tb_to_xs;/* Inverse of TB to 2^20 0x40 */ -__u64 stamp_xsec;/* 0x48 */ -__u32 tb_update_count;/* Timebase atomicity ctr 0x50 */ -__u32 tz_minuteswest;/* Minutes west of Greenwich 0x58 */ -__u32 tz_dsttime;/* Type of dst correction 0x5C */ -__s32 wtom_clock_sec;/* Wall to monotonic clock */ -__s32 wtom_clock_nsec;__u32 syscall_map_32[SYSCALL_MAP_SIZE ];/* map of syscalls */ };
Here's the read_persistent_clock() implementation for PowerPC.
I'm deliberately renaming get_boot_time() despite it's not static as it doesn't get called from anywhere else.
---
Have almost forgotten about this one... :-)
This patch hasn't received a good testing though -- at least it doesn't break without RTC... ;-)
arch/powerpc/kernel/time.c | 62 ++++++++++++++++++++------------------------- 1 files changed, 28 insertions(+), 34 deletions(-)
arch/powerpc/kernel/time.c +28 -34
86 lines not on this page · raw message
Quoted 6 lines
Okay.
What I didn't want to do is spend a day sifting some other development tree picking out what I think might be possibly sort of the right patches for it.
Quoted 8 lines
I'd get it wrong because having not worked on it, I don't know what I am even looking for.
And I don't want to run -rt or wireless-dev for the benefit of a single feature. What I am after is something like Ingo Molnar throws out.. single patches done the old way, not git trees. It's so much easier to handle and integrate for example into a Gentoo ebuild or to make a tarball of accumulated patches from a certain release kernel.
I'm sooo with ya. I like my patches alphabetised, but no one ever does it for me.
:-)
Mikey
Hello.
Quoted 1 line · Matt Sealey
And I don't want to run -rt or wireless-dev for the benefit of a single
BTW, the latest -rt has has been also released in the broken out form (at
last!) which has "PPC gtod and highres support" section in its series file.
Quoted 1 line
feature. What I am after is something like Ingo Molnar throws out..
One 1.5 Megabyte patch?! Bleh... thanks goodness he (or Thomas) has
finally changed his mind about this. :-)
Quoted 3 lines
single patches done the old way, not git trees. It's so much easier to handle and integrate for example into a Gentoo ebuild or to make a tarball of accumulated patches from a certain release kernel.
This also can become a nightmare if you intend to pick up some later fixes
only.
WBR, Sergei
Quoted 13 lines · Sergei Shtylyov
Hello.
Quoted 9 lines · Domen Puncer
Quoted 3 lines
Does anyone have the definitive patchset to enable the tickless hz, some kind of hrtimer and the other related improvements in the PowerPC tree?
I use attached patches for tickless.
Order in which they're applied:PowerPC_GENERIC_CLOCKEVENTS.patch
Argh! Finally had forgotten to attach a fixlet for this one, somewaht
adjusting the code for classic PPC decrementer.
[...]
WBR, Sergei
Quoted 1 line
PS: All attached patches are against 2.6.21-rt2 -- fitting them into the current (or whatever) version of the kernel is left as an excercise to the readers. ;-)
This one is for 2.6.21-rt2 as well.
Uncoditionally set a maximum positive value to the decrementer before calling an event handler for all "classic" PPC CPUs (although this is only necessary to clear interrupt on POWER4+, I've been asked to do it this way) -- otherwise it wouldn't have been done for an offline CPU in periodic mode since the event reprogramming has been delegated to the timer subsystem.
Also, as the classic decrementer doesn't have periodic mode, make set_mode() method for this case completely empty.
While at it, add a switch case for CLOCK_EVT_MODE_RESUME to hush the warning.
arch/powerpc/kernel/time.c | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 deletions(-)
arch/powerpc/kernel/time.c +7 -8
@@ -166,11 +166,14 @@ static void decrementer_set_mode(enum clcase CLOCK_EVT_MODE_SHUTDOWN : tcr &= ~TCR_DIE ;break ; +case CLOCK_EVT_MODE_RESUME : +break ; }mtspr (SPRN_TCR , tcr); -#endif +if (mode ==CLOCK_EVT_MODE_PERIODIC )decrementer_set_next_event (tb_ticks_per_jiffy, dev); +#endif } static struct clock_event_device decrementer_clockevent = {
@@ -549,16 +552,12 @@ void timer_interrupt(struct pt_regs * reirq_enter ();#ifdef CONFIG_GENERIC_CLOCKEVENTS -#ifdef CONFIG_PPC_MULTIPLATFORM +#if !defined(CONFIG_40x) && !defined(CONFIG_BOOKE )/* * We must write a positive value to the decrementer to clear -* the interrupt on the IBM 970 CPU series. In periodic mode, -* this happens when the decrementer gets reloaded later, but -* in one-shot mode, we have to do it here since an event handler -* may skip loading the new value... +* the interrupt on POWER4+ compatible CPUs. */ -if (per_cpu (decrementers, cpu).mode !=CLOCK_EVT_MODE_PERIODIC ) -set_dec (DECREMENTER_MAX ); +set_dec (DECREMENTER_MAX );#endif /* * We can't disable the decrementer, so in the period between
Quoted 9 lines · Michael Neuling
Quoted 9 lines
Okay.
What I didn't want to do is spend a day sifting some other development tree picking out what I think might be possibly sort of the right patches for it.
I'd get it wrong because having not worked on it, I don't know what I am even looking for.
Quoted 8 lines
Quoted 5 lines
And I don't want to run -rt or wireless-dev for the benefit of a single feature. What I am after is something like Ingo Molnar throws out.. single patches done the old way, not git trees. It's so much easier to handle and integrate for example into a Gentoo ebuild or to make a tarball of accumulated patches from a certain release kernel.
I'm sooo with ya. I like my patches alphabetised, but no one ever does it for me.
Well my only requirement is numbering them so they patch in order; there are some cute little requirements on that, but I'd rather patch the bare minimum and bring in as few quirks and new features than just grab an entire -rt tree with what amounts to 60 or 70 individual patches and start renumbering them.
We already have some ~20 for Efika support on top of 2.6.22 including minor bugfixes and stuff, and the Gentoo genpatches stuff. I really want to get a good start on CFS, hrtimers, dynticks and so on though and see if we can push it to users and get out some decent testing and bug reports. I think it will help everyone if it is not just a feature which hits mainline after 6 months through supposed maturity (when a lack of bug reports may well also be down to lack of interest).
I think the Efika as a low-power and fairly average performance board, would benefit (and does benefit!) from features like dynticks, 5200B has a bunch of hrtimers, SLUB gave me some insane speed improvement exactly as the best benchmarks predicted (also got the same under VMware on my x86 laptop, never going back to SLAB now!). The more processor time we can eke out, and the less unecessary work the processor does on housekeeping, the better the board will run for users. Everyone wins :)
Signature · 2 lines
Matt Sealey <[email protected]> Genesi, Manager, Developer Relations
Quoted 9 lines · Sergei Shtylyov
Hello.
Quoted 1 line · Matt Sealey
And I don't want to run -rt or wireless-dev for the benefit of a single
BTW, the latest -rt has has been also released in the broken out form
(at last!) which has "PPC gtod and highres support" section in its series file.
Hm okay.
Quoted 4 lines
Quoted 1 line
feature. What I am after is something like Ingo Molnar throws out..
One 1.5 Megabyte patch?! Bleh... thanks goodness he (or Thomas) has
finally changed his mind about this. :-)
Good point, but at least it was nice and self-contained and not mindlessly interdependant on other minor fixes. I think if you are going to patch in a feature that feature should be a feature. Not 8 bugfixes and 8 seperate minifeatures which cooperate to bring in a whole, especialy as a lot of them are so interdependant that they would not have any effect or maybe even break things on their own :)
Quoted 6 lines
Quoted 3 lines
single patches done the old way, not git trees. It's so much easier to handle and integrate for example into a Gentoo ebuild or to make a tarball of accumulated patches from a certain release kernel.
This also can become a nightmare if you intend to pick up some later
fixes only.
Indeed, but you trade off one for the other in everything :)
Signature · 2 lines
Matt Sealey <[email protected]> Genesi, Manager, Developer Relations
Quoted 7 lines · Matt Sealey
Quoted 6 lines · Michael Neuling
Quoted 5 lines
And I don't want to run -rt or wireless-dev for the benefit of a single feature. What I am after is something like Ingo Molnar throws out.. single patches done the old way, not git trees. It's so much easier to handle and integrate for example into a Gentoo ebuild or to make a tarball of accumulated patches from a certain release kernel.
Quoted 8 lines
Quoted 2 lines
I'm sooo with ya. I like my patches alphabetised, but no one ever does it for me.
Well my only requirement is numbering them so they patch in order; there are some cute little requirements on that, but I'd rather patch the bare minimum and bring in as few quirks and new features than just grab an entire -rt tree with what amounts to 60 or 70 individual patches and start renumbering them.
That's why quilt uses a series file, so the patch names don't have to be ordered.
With kind regards,
Geert Uytterhoeven
Software Architect
Sony Network and Software Technology Center Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium
Phone: +32 (0)2 700 8453 Fax: +32 (0)2 700 8622 E-mail: [email protected] Internet: http://www.sony-europe.com/
Sony Network and Software Technology Center Europe
A division of Sony Service Centre (Europe) N.V. Registered office: Technologielaan 7 · B-1840 Londerzeel · Belgium VAT BE 0413.825.160 · RPR Brussels
Fortis Bank Zaventem · Swift GEBABEBB08A · IBAN BE39001382358619
Quoted 10 lines · Matt Sealey
We already have some ~20 for Efika support on top of 2.6.22 including minor bugfixes and stuff, and the Gentoo genpatches stuff. I really want
to get a good start on CFS, hrtimers, dynticks and so on though and see
if we can push it to users and get out some decent testing and bug reports. I think it will help everyone if it is not just a feature which
hits mainline after 6 months through supposed maturity (when a lack of bug reports may well also be down to lack of interest).
Why haven't you submited those patches ? The merge window for 2.6.23 is open _now_
Ben
Quoted 8 lines · Sergei Shtylyov
Hello.
Quoted 3 lines · Domen Puncer
Quoted 3 lines
Does anyone have the definitive patchset to enable the tickless hz, some kind of hrtimer and the other related improvements in the PowerPC tree?
Quoted 7 lines
Quoted 4 lines
I use attached patches for tickless.
Order in which they're applied:PowerPC_GENERIC_CLOCKEVENTS.patch
That's my patch which used to have both description and signoff that I'm
not seeing in the attached version...
Err, yes, sorry, I don't remember anymore where I picked them, but I'm pretty sure I didn't go delete description and signoff by hand.
Quoted 15 lines
Quoted 2 lines
PowerPC_GENERIC_TIME.linux-2.6.18-rc6_timeofday-arch-ppc_C6.patch
This one should come first of all, I'd say...
Note that it breaks TOD vsyscalls, so you need my patch that removes
support for those for the time being (i.e. until Tony hopefully fixes this :-). Also, there was a patch implementingread_persistent_clock()and getting rid of the code setting xtime intime_init(). Attaching them both...Quoted 1 line
PowerPC_enable_HRT_and_dynticks_support.patch
Again looks like my patch with description/signoff missing for whatever
reason...
Quoted 8 lines
Quoted 1 line
PowerPC_no_hz_fix.patch
This has nothing to do with
CONFIG_NO_HZper se -- it fixes the
compilation error introduced by John's patch.Quoted 1 line
tickless-enable.patch
That one doesn't look quite right...
That's because I made it ;-)
It did the trick of enabling tickless though.
Domen
Quoted 3 lines · Matt Sealey
Domen,
You wouldn't have tried these on the Efika yet, would you?
Not yet, but they worked on a mpc5200b based board (lite5200b).
Domen
Quoted 24 lines
Signature · 3 lines
-- Matt Sealey <[email protected]> Genesi, Manager, Developer RelationsQuoted 18 lines · Domen Puncer
Quoted 3 lines · Matt Sealey
Does anyone have the definitive patchset to enable the tickless hz, some kind of hrtimer and the other related improvements in the PowerPC tree?
I use attached patches for tickless.
Order in which they're applied:PowerPC_GENERIC_CLOCKEVENTS.patch PowerPC_GENERIC_TIME.linux-2.6.18-rc6_timeofday-arch-ppc_C6.patch PowerPC_enable_HRT_and_dynticks_support.patch PowerPC_no_hz_fix.patch
tickless-enable.patchHTH
Domen
On Thu, Jul 12, 2007 at 01:07:26PM +0100, Matt Sealey wrote:
Hi Matt,
Quoted 2 lines
What does "isn't quite right yet" mean? Broken, acts funny, or just a messy patch?
If you compile with CONFIG_NO_HZ=y, the kernel is broken.
Yours Tony
linux.conf.au http://linux.conf.au/ || http://lca2008.linux.org.au/
Jan 28 - Feb 02 2008 The Australian Linux Technical Conference!