Re: [PATCH] x86-64 highres/dyntick support 2.6.22-rc1-v4
Frank, On Wed, 2007-05-16 at 08:20 +0200, Thomas Gleixner wrote: > > I have tracked down the offending patch in the series to > > x86-64-convert-to-clockevents.patch > > Not surprising. :) > > I'm going to add some early_printks for the next version, so we can get > an idea where it gets stuck I went through the relevant changes since the git2-v2 version and the only thing, which could affect the early boot process is the patch snippet below. Can you apply this either to the git2-v2 version and check, if it fails as well, or reverse apply it to rc1-v4 and check, if the problem goes away ? Thanks, tglx diff -uprN --exclude-from=/home/tglx/bin/diffit.exclude linux-2.6.21-git-x86-64/arch/i386/kernel/i8253.c linux-2.6.21/arch/i386/kernel/i8253.c --- linux-2.6.21-git-x86-64/arch/i386/kernel/i8253.c2007-05-16 09:58:01.0 +0200 +++ linux-2.6.21/arch/i386/kernel/i8253.c 2007-05-16 09:10:34.0 +0200 @@ -29,24 +29,6 @@ EXPORT_SYMBOL(i8253_lock); */ struct clock_event_device *global_clock_event; -/* Status of the PIT interrupt */ -static int pit_irq_disabled; - -/* - * Control pit interrupt enable / disable - */ -static void pit_control_irq(int disable) -{ - if (pit_irq_disabled == disable) - return; - - pit_irq_disabled = disable; - if (disable) - disable_irq(0); - else - enable_irq(0); -} - /* * Initialize the PIT timer. * @@ -65,17 +47,18 @@ static void init_pit_timer(enum clock_ev outb_p(0x34, PIT_MODE); outb_p(LATCH & 0xff , PIT_CH0); /* LSB */ outb(LATCH >> 8 , PIT_CH0); /* MSB */ - pit_control_irq(0); break; case CLOCK_EVT_MODE_SHUTDOWN: case CLOCK_EVT_MODE_UNUSED: - pit_control_irq(1); + outb_p(0x30, PIT_MODE); + outb_p(0, PIT_CH0); /* LSB */ + outb_p(0, PIT_CH0); /* MSB */ break; + case CLOCK_EVT_MODE_ONESHOT: /* One shot setup */ outb_p(0x38, PIT_MODE); - pit_control_irq(0); break; case CLOCK_EVT_MODE_RESUME: @@ -129,7 +112,7 @@ void __init setup_pit_timer(void) * Start pit with the boot cpu mask and make it global after the * IO_APIC has been initialized. */ - pit_clockevent.cpumask = cpumask_of_cpu(0); + pit_clockevent.cpumask = cpumask_of_cpu(smp_processor_id()); pit_clockevent.mult = div_sc(CLOCK_TICK_RATE, NSEC_PER_SEC, 32); pit_clockevent.max_delta_ns = clockevent_delta2ns(0x7FFF, &pit_clockevent); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] x86-64 highres/dyntick support 2.6.22-rc1-v4
On Wed, 2007-05-16 at 00:02 -0500, Frank Sorenson wrote: > >>> highres-v3 also hung at the same point, but 2.6.21-git2-v2 worked > >>> 2.6.22-rc1 boots without problem > >> Can you please try the following three command line option addons ? > > > >> 1: highres=off nohz=off > >> 2: highres=off > >> 3: nohz=off > > > > All 3 hang at the same point. Ok. > I have tracked down the offending patch in the series to > x86-64-convert-to-clockevents.patch Not surprising. :) I'm going to add some early_printks for the next version, so we can get an idea where it gets stuck tglx - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] x86-64 highres/dyntick support 2.6.22-rc1-v4
On Wed, 2007-05-16 at 00:23 +0100, Alistair John Strachan wrote: > > - TSC calibration against PM-Timer > > Working fine now, thanks a lot. Great latencies on usleep() now too, just > what > I was looking for. > > (BTW, with HRT (but not NO_HZ), does the HZ value have any effect on usleep() > (and friends) latencies?) Not directly. tglx - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] x86-64 highres/dyntick support 2.6.22-rc1-v4
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Frank Sorenson wrote: > Thomas Gleixner wrote: >> Frank, > >> On Tue, 2007-05-15 at 09:06 -0500, Frank Sorenson wrote: >>> Hangs at boot here: >>> Kernel alive >>> Kernel direct mapping tables up to 1 @ 8000-d000 >>> (and that's it) >>> >>> This is a Dell Inspiron E1705 with a Core 2 Duo 2.16GHz >>> >>> highres-v3 also hung at the same point, but 2.6.21-git2-v2 worked >>> 2.6.22-rc1 boots without problem >> Can you please try the following three command line option addons ? > >> 1: highres=off nohz=off >> 2: highres=off >> 3: nohz=off > >> Thanks, > >> tglx > > All 3 hang at the same point. I have tracked down the offending patch in the series to x86-64-convert-to-clockevents.patch Frank - -- Frank Sorenson - KD7TZK Linux Systems Engineer, DSS Engineering, UBS AG [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFGSpB2aI0dwg4A47wRAglRAJ4mJgbJClPd0hkXKp+YHq7G5VxQvgCgkVkv TtOjrSrjrwiHQPkNCqlq314= =lu8g -END PGP SIGNATURE- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] x86-64 highres/dyntick support 2.6.22-rc1-v4
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thomas Gleixner wrote: > Frank, > > On Tue, 2007-05-15 at 09:06 -0500, Frank Sorenson wrote: >> Hangs at boot here: >> Kernel alive >> Kernel direct mapping tables up to 1 @ 8000-d000 >> (and that's it) >> >> This is a Dell Inspiron E1705 with a Core 2 Duo 2.16GHz >> >> highres-v3 also hung at the same point, but 2.6.21-git2-v2 worked >> 2.6.22-rc1 boots without problem > > Can you please try the following three command line option addons ? > > 1: highres=off nohz=off > 2: highres=off > 3: nohz=off > > Thanks, > > tglx All 3 hang at the same point. Frank - -- Frank Sorenson - KD7TZK Linux Systems Engineer, DSS Engineering, UBS AG [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFGSkA6aI0dwg4A47wRAuQzAKDcmAMR2e2Ce/3ytR+39XxgG76XjwCfVtbj vWlY59M1gHz2Z8dIJWRYqTk= =algX -END PGP SIGNATURE- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] x86-64 highres/dyntick support 2.6.22-rc1-v4
On Tuesday 15 May 2007 09:18:02 Thomas Gleixner wrote: > I've uploaded a new version of the x86_64 highres/dyntick patches: > > http://www.tglx.de/projects/hrtimers/2.6.22-rc1/linux-2.6.22-rc1-x86_64-hig >hres-v4.patch > > Broken out version: > > http://www.tglx.de/projects/hrtimers/2.6.22-rc1/linux-2.6.22-rc1-x86_64-hig >hres-v4.patches.tar.bz2 > > Changes since last version: > > - TSC calibration against PM-Timer Working fine now, thanks a lot. Great latencies on usleep() now too, just what I was looking for. (BTW, with HRT (but not NO_HZ), does the HZ value have any effect on usleep() (and friends) latencies?) -- Cheers, Alistair. Final year Computer Science undergraduate. 1F2 55 South Clerk Street, Edinburgh, UK. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] x86-64 highres/dyntick support 2.6.22-rc1-v4
Frank, On Tue, 2007-05-15 at 09:06 -0500, Frank Sorenson wrote: > Hangs at boot here: > Kernel alive > Kernel direct mapping tables up to 1 @ 8000-d000 > (and that's it) > > This is a Dell Inspiron E1705 with a Core 2 Duo 2.16GHz > > highres-v3 also hung at the same point, but 2.6.21-git2-v2 worked > 2.6.22-rc1 boots without problem Can you please try the following three command line option addons ? 1: highres=off nohz=off 2: highres=off 3: nohz=off Thanks, tglx - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] x86-64 highres/dyntick support 2.6.22-rc1-v4
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thomas Gleixner wrote: > I've uploaded a new version of the x86_64 highres/dyntick patches: > > http://www.tglx.de/projects/hrtimers/2.6.22-rc1/linux-2.6.22-rc1-x86_64-highres-v4.patch Hangs at boot here: Kernel alive Kernel direct mapping tables up to 1 @ 8000-d000 (and that's it) This is a Dell Inspiron E1705 with a Core 2 Duo 2.16GHz highres-v3 also hung at the same point, but 2.6.21-git2-v2 worked 2.6.22-rc1 boots without problem Is there any information I can provide to help track down the problem? Thanks, Frank - -- Frank Sorenson - KD7TZK Linux Systems Engineer, DSS Engineering, UBS AG [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFGSb5JaI0dwg4A47wRAjkgAJ9Urvpo+cTAbRvblYovBYy3PD76jACfbtjj EZSrOZDFMnOYjc02nHSAxaM= =/ffY -END PGP SIGNATURE- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/