login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
August
»
27
Re: "double" hpet clocksource && hard freeze [bisected]
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: john stultz
Subject:
Re: "double" hpet clocksource && hard freeze [bisected]
Date: Monday, August 27, 2007 - 2:39 pm
On Mon, 2007-08-27 at 17:34 -0300, Luiz Fernando N. Capitulino wrote:
quoted text
> Em Fri, 24 Aug 2007 11:17:34 -0700 > john stultz <johnstul@us.ibm.com> escreveu: > > | On Fri, 2007-08-24 at 08:46 -0400, Bob Picco wrote: > | > john stultz wrote: [Thu Aug 23 2007, 05:41:45PM EDT] > | > > On Thu, 2007-08-23 at 14:05 -0700, john stultz wrote: > | > > > On Thu, 2007-08-23 at 13:41 -0700, Luck, Tony wrote: > | > > > > > I have a double "hpet" entry in "available_clocksource": > | > > > > > $ cat /sys/devices/system/clocksource/clocksource0/available_clocksource > | > > > > > tsc hpet hpet acpi_pm jiffies > | > > > > > | > > > > Oops. If seems that both drivers/char/hpet.c and arch/x86_64/kernel/hpet.c > | > > > > both register a clocksource named "hpet". Probably a result of bringing > | > > > > back to life a long lost patch, and having someone else (John Stultz, according > | > > > > to git blame) make a similar change to a different file in the intervening > | > > > > time. > | > > > > > | > > > > Presumably the thing to do would be merge the x86_64 specific version > | > > > > into the drivers/char/hpet.c version? > | > > > > | > > > Ugh. Yea. i386 has an hpet clocksource as well. We should kill the > | > > > duplication, but at the moment I'm not comfortable that the > | > > > driver/char/hpet.c is ok to be used for i386/x86_64 (Bob: Do you know > | > > > why the shift value is only 10?). > | > > > > | > > > > | > > > I'm a little surprised by this, as the clocksource code use to prevent > | > > > duplicate named clocksources from being registered, so I'm not sure how > | > > > that check got dropped. Also I'm not quite sure I see where the hard > | > > > freeze is coming from. > | > > > > | > > > My initial reaction would be to either ifdef ia64 implementation in > | > > > drivers/char/hpet.c or move the code under the ia64 arch dir until it is > | > > > really usable by all arches. > | > > > | > > Here is a possible quick fix. I'm open to other approaches, but I also > | > > want to avoid too much churn before 2.6.23 goes out. > | > > > | > > Paolo, could you verify this fixes the issue for you? > | > > > | > > thanks > | > > -john > | > > > | > [snip] > | > > | > I saw what was missed by me in my brief examination of this last night. > | > The platform registers the hpet clocksource too. > | > > | > Instead of adding the config flag to hpet driver, how about the patch > | > below? Since you already check for duplication by address then adding > | > a check for by name too seems okay to me. > | > > | > bob > | > > | > > | > Prevent duplicate names being registered with clocksource. This also > | > eliminates the duplication of hpet clock registration when the arch > | > uses the hpet timer and the hpet driver does too. The patch was > | > compile and link tested. > | > | Yea. While I'm still not completely comfortable leaving this up to boot > | order alone (the ia64 hpet clocksource is clearly causing issues on > | x86_64), I think this patch is something we need as well. > > Does -stable need this too?
Looking at the git log, the ia64 clocksource code didn't land until 7/20, so I don't think so. thanks -john -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
"double" hpet clocksource && hard freeze [bisected]
, Paolo Ornati
, (Thu Aug 23, 1:21 pm)
Re: "double" hpet clocksource && hard freeze [bisected]
, Paolo Ornati
, (Thu Aug 23, 1:22 pm)
RE: "double" hpet clocksource && hard freeze [bisected]
, Luck, Tony
, (Thu Aug 23, 1:41 pm)
RE: "double" hpet clocksource && hard freeze [bisected]
, john stultz
, (Thu Aug 23, 2:05 pm)
Re: "double" hpet clocksource && hard freeze [bisected]
, Bob Picco
, (Thu Aug 23, 2:38 pm)
RE: "double" hpet clocksource && hard freeze [bisected]
, john stultz
, (Thu Aug 23, 2:41 pm)
Re: "double" hpet clocksource && hard freeze [bisected]
, Paolo Ornati
, (Fri Aug 24, 12:01 am)
Re: "double" hpet clocksource && hard freeze [bisected]
, Paolo Ornati
, (Fri Aug 24, 12:03 am)
Re: "double" hpet clocksource && hard freeze [bisected]
, Paolo Ornati
, (Fri Aug 24, 2:03 am)
Re: "double" hpet clocksource && hard freeze [bisected]
, Bob Picco
, (Fri Aug 24, 5:46 am)
Re: "double" hpet clocksource && hard freeze [bisected]
, Paolo Ornati
, (Fri Aug 24, 6:27 am)
RE: "double" hpet clocksource && hard freeze [bisected]
, Luck, Tony
, (Fri Aug 24, 9:04 am)
Re: "double" hpet clocksource && hard freeze [bisected]
, Paolo Ornati
, (Fri Aug 24, 9:13 am)
Re: "double" hpet clocksource && hard freeze [bisected]
, john stultz
, (Fri Aug 24, 11:17 am)
RE: "double" hpet clocksource && hard freeze [bisected]
, john stultz
, (Fri Aug 24, 11:43 am)
Re: "double" hpet clocksource && hard freeze [bisected]
, Luiz Fernando N. Cap ...
, (Mon Aug 27, 1:34 pm)
Re: "double" hpet clocksource && hard freeze [bisected]
, john stultz
, (Mon Aug 27, 2:39 pm)
Re: "double" hpet clocksource && hard freeze [bisected]
, Paolo Ornati
, (Mon Aug 27, 11:07 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Brian Swetland
Re: Attempted summary of suspend-blockers LKML thread
Robert Marquardt
Re: [linux-usb-devel] usb hid: reset NumLock
Alexandre Oliva
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Uwe Bugla
Re: bug in 2.6.22-rc2: loop mount limited to one single iso image
Neil Brown
Re: Proposal: Use hi-res clock for file timestamps
git
:
Felipe Contreras
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
Paolo Ciarrocchi
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
Johannes Schindelin
Re: [PATCH] Fix install-doc-quick target
Peter Oberndorfer
Subject: [PATCH] fix stg edit command
Miklos Vajna
[PATCH 3/3] Fix git update-ref --no-deref -d.
linux-netdev
:
Ursula Braun
[patch 2/8] [PATCH] af_iucv: sync sk shutdown flag if iucv path is quiesced
Andi Kleen
Re: RFC: Nagle latency tuning
Jarek Poplawski
Re: tc filter flow hash question
David Miller
Re: [RFC 0/5] generic rx recycling
Chuck Lever
Re: [RFC] ipv6: Change %pI6 format to output compacted addresses?
git-commits-head
:
Linux Kernel Mailing List
New device ID for sc92031 [1088:2031]
Linux Kernel Mailing List
e1000e: Expose MDI-X status via ethtool change
Linux Kernel Mailing List
NFS: Store pages from an NFS inode into a local cache
Linux Kernel Mailing List
arm/imx/gpio: GPIO_INT_{HIGH,LOW}_LEV are not necessarily constant
Linux Kernel Mailing List
powerpc/kexec: Add support for FSL-BookE
openbsd-misc
:
Theo de Raadt
Re: RES: OpenBSD on IBM System X3550 7879
Bret S. Lambert
Re: any web management gui for pf ?
Rob Shepherd
x86 hardware for router system
Nick Holland
Re: Install OpenBSD from USB ?
Simon Comeau Martel
Activating "ip6.forwarding" and "accept_rtadv" at the same time
Colocation donated by:
Syndicate