public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: "double" hpet clocksource && hard freeze [bisected]
@ 2007-08-28  8:27 Clemens Ladisch
  2007-08-28 20:21 ` Paolo Ornati
  0 siblings, 1 reply; 20+ messages in thread
From: Clemens Ladisch @ 2007-08-28  8:27 UTC (permalink / raw)
  To: Paolo Ornati
  Cc: Luck, Tony, Bob Picco, john stultz, Linux Kernel Mailing List

Luck, Tony wrote:
> [...] Given that the hang went away when you applied the earlier patch, I
> conclude that the drivers/char/hpet.c code is the one that got selected when
> you had two "hpet" entries ... and that there is something wrong with that
> code that doesn't work right on x86_64.

Apparently, the 'generic' code was just copied from ia64 and assumes that the
timer is 64 bits.  This is not true with hardware from VIA (even on x86_64).

This patch should make it work (although I'd prefer to set the mask  
dynamically
according to the hardware caps).

--- a/drivers/char/hpet.c	Tue Aug 28 09:42:22 2007
+++ b/drivers/char/hpet.c	Tue Aug 28 10:16:54 2007
@@ -73,7 +73,7 @@
          .name           = "hpet",
          .rating         = 250,
          .read           = read_hpet,
-        .mask           = CLOCKSOURCE_MASK(64),
+        .mask           = CLOCKSOURCE_MASK(32),
          .mult           = 0, /*to be caluclated*/
          .shift          = 10,
          .flags          = CLOCK_SOURCE_IS_CONTINUOUS,



^ permalink raw reply	[flat|nested] 20+ messages in thread
* "double" hpet clocksource && hard freeze [bisected]
@ 2007-08-23 20:21 Paolo Ornati
  2007-08-23 20:22 ` Paolo Ornati
  2007-08-23 20:41 ` Luck, Tony
  0 siblings, 2 replies; 20+ messages in thread
From: Paolo Ornati @ 2007-08-23 20:21 UTC (permalink / raw)
  To: Tony Luck; +Cc: Linux Kernel Mailing List, Bob Picco

Hi,

	since commit:

commit 0aa366f351d044703e25c8425e508170e80d83b1
Author: Tony Luck <tony.luck@intel.com>
Date:   Fri Jul 20 11:22:30 2007 -0700

    [IA64] Convert to generic timekeeping/clocksource

    This is a merge of Peter Keilty's initial patch (which was
    revived by Bob Picco) for this with Hidetoshi Seto's fixes
    and scaling improvements.


I have a double "hpet" entry in "available_clocksource":
	$ cat /sys/devices/system/clocksource/clocksource0/available_clocksource
	tsc hpet hpet acpi_pm jiffies


And, more interesting, if I select hpet as clocksource (tsc is used by
default here) I get an hard freeze some time later (few minutes)...
SysRQ don't work ;)


config & dmesg attached


Motherboard is a Intel DG965SS

CPU:

processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 15
model name	: Intel(R) Core(TM)2 CPU          6300  @ 1.86GHz
stepping	: 6
cpu MHz		: 1864.804
cache size	: 2048 KB
physical id	: 0
siblings	: 2
core id		: 0
cpu cores	: 2
fpu		: yes
fpu_exception	: yes
cpuid level	: 10
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips	: 3731.75
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 15
model name	: Intel(R) Core(TM)2 CPU          6300  @ 1.86GHz
stepping	: 6
cpu MHz		: 1864.804
cache size	: 2048 KB
physical id	: 0
siblings	: 2
core id		: 1
cpu cores	: 2
fpu		: yes
fpu_exception	: yes
cpuid level	: 10
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips	: 3729.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual
power management:

-- 
	Paolo Ornati
	Linux 2.6.22-g5bae7ac9 on x86_64

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2007-08-28 20:22 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-28  8:27 "double" hpet clocksource && hard freeze [bisected] Clemens Ladisch
2007-08-28 20:21 ` Paolo Ornati
  -- strict thread matches above, loose matches on Subject: below --
2007-08-23 20:21 Paolo Ornati
2007-08-23 20:22 ` Paolo Ornati
2007-08-23 20:41 ` Luck, Tony
2007-08-23 21:05   ` john stultz
2007-08-23 21:38     ` Bob Picco
2007-08-24  7:03       ` Paolo Ornati
2007-08-23 21:41     ` john stultz
2007-08-24  7:01       ` Paolo Ornati
2007-08-24 12:46       ` Bob Picco
2007-08-24 13:27         ` Paolo Ornati
2007-08-24 16:04           ` Luck, Tony
2007-08-24 16:13             ` Paolo Ornati
2007-08-24 18:17         ` john stultz
2007-08-27 20:34           ` Luiz Fernando N. Capitulino
2007-08-27 21:39             ` john stultz
2007-08-28  6:07             ` Paolo Ornati
2007-08-24  9:03     ` Paolo Ornati
2007-08-24 18:43     ` john stultz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox