lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:	Fri, 9 May 2008 04:06:50 -0700 (PDT)
From:	Martin Knoblauch <spamtrap@...bisoft.de>
To:	Mike Galbraith <efault@....de>,
	Thomas Gleixner <tglx@...utronix.de>
Cc:	Gabriel C <nix.or.die@...glemail.com>,
	Bart Van Assche <bart.vanassche@...il.com>,
	linux-kernel@...r.kernel.org, hmh@....eng.br
Subject: Re: 2.6.25.2 - Jiffies/Time jumping back and forth (Regereesion from 2.6.24)

----- Original Message ----

> From: Mike Galbraith <efault@....de>
> To: Thomas Gleixner <tglx@...utronix.de>
> Cc: Martin Knoblauch <spamtrap@...bisoft.de>; Gabriel C <nix.or.die@...glemail.com>; Bart Van Assche <bart.vanassche@...il.com>; linux-kernel@...r.kernel.org; hmh@....eng.br
> Sent: Thursday, May 8, 2008 7:31:28 PM
> Subject: Re: 2.6.25.2 - Jiffies/Time jumping back and forth (Regereesion from 2.6.24)
> 
> 
> On Thu, 2008-05-08 at 16:13 +0200, Thomas Gleixner wrote:
> > On Thu, 8 May 2008, Martin Knoblauch wrote:
> > > on two different systems running 2.6.25.2:
> > > 
> > > ibm x3650(2xDualCore)
> > > -------------------------------------
> > > [root@...dm60 ~]# cat 
> /sys/devices/system/clocksource/clocksource0/available_clocksource
> > > tsc hpet acpi_pm jiffies
> > > [root@...dm60 ~]# cat 
> /sys/devices/system/clocksource/clocksource0/current_clocksource
> > > tsc
> > > 
> > > HP Proliant DL-380G4 (2xSingleCore)
> > > ------------------------------------------------------------
> > > [root@...dm52 ~]# cat 
> /sys/devices/system/clocksource/clocksource0/available_clocksource
> > > tsc hpet acpi_pm jiffies
> > > [root@...dm52 ~]# cat 
> /sys/devices/system/clocksource/clocksource0/current_clocksource
> > > tsc
> > > 
> > > and on the DL380G4 running 2.6.24:
> > > ---------------------------------------------------------
> > > [root@...dm52 ~]# cat 
> /sys/devices/system/clocksource/clocksource0/available_clocksource
> > > hpet acpi_pm jiffies tsc
> > > [root@...dm52 ~]# cat 
> /sys/devices/system/clocksource/clocksource0/current_clocksource
> > > hpet
> > 
> > So on 2.6.24 the TSC is declared unstable at some point and 2.6.25
> > thinks it works fine. Is this the same kernel config (aside of the 24/25 fuzz) 
> ?
> 
> I had a problem with my P4's tsc being declared unstable after S2R.  I
> carry this patchlet (it's in mainline) in my 2.6.24 kernels to keep the
> TSC operational.  (browsing, dunno if it's the same problem, but it
> might be..)
> 
> diff --git a/arch/x86/kernel/tsc_sync.c b/arch/x86/kernel/tsc_sync.c
> index 9125efe..05d8f25 100644
> --- a/arch/x86/kernel/tsc_sync.c
> +++ b/arch/x86/kernel/tsc_sync.c
> @@ -129,24 +129,24 @@ void __cpuinit check_tsc_sync_source(int cpu)
>     while (atomic_read(&stop_count) != cpus-1)
>         cpu_relax();
> 
> -    /*
> -     * Reset it - just in case we boot another CPU later:
> -     */
> -    atomic_set(&start_count, 0);
> -
>     if (nr_warps) {
>         printk("\n");
>         printk(KERN_WARNING "Measured %Ld cycles TSC warp between CPUs,"
>                     " turning off TSC clock.\n", max_warp);
>         mark_tsc_unstable("check_tsc_sync_source failed");
> -        nr_warps = 0;
> -        max_warp = 0;
> -        last_tsc = 0;
>     } else {
>         printk(" passed.\n");
>     }
> 
>     /*
> +     * Reset it - just in case we boot another CPU later:
> +     */
> +    atomic_set(&start_count, 0);
> +    nr_warps = 0;
> +    max_warp = 0;
> +    last_tsc = 0;
> +
> +    /*
>      * Let the target continue with the bootup:
>      */
>     atomic_inc(&stop_count);

 Not sure, as I never had this problem in 2.6.24 - started with 2.6.25.2. But trying does not cost ...

...

Nope. That patch is indeed already in 2.6.25.2.

Cheers
Martin
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ