LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Dhaval Giani <dhaval@linux.vnet.ibm.com>
To: Andrew Paprocki <andrew@ishiboo.com>
Cc: linux-kernel@vger.kernel.org, Balaji Rao <balajirrao@gmail.com>
Subject: Re: HPET timer broken using 2.6.23.13 / nanosleep() hangs
Date: Sun, 13 Jan 2008 17:33:37 +0530	[thread overview]
Message-ID: <20080113120337.GA5548@linux.vnet.ibm.com> (raw)
In-Reply-To: <76366b180801130310x57f24cc8s641d3ccb2415524c@mail.gmail.com>

On Sun, Jan 13, 2008 at 06:10:52AM -0500, Andrew Paprocki wrote:
> I started debugging a problem I was having with my sky2 network driver
> under 2.6.23.13. The investigation led me to find that the HPET timer
> wasn't working at all, causing the sky2 driver to not work properly.
> Simple example:
> 
> am2:/sys/devices/system/clocksource/clocksource0# cat current_clocksource
> jiffies
> am2:/sys/devices/system/clocksource/clocksource0# time sleep 1
> real    0m1.000s
> user    0m0.000s
> sys     0m0.000s
> am2:/sys/devices/system/clocksource/clocksource0# echo tsc > current_clocksource
> am2:/sys/devices/system/clocksource/clocksource0# time sleep 1
> real    0m1.005s
> user    0m0.004s
> sys     0m0.000s
> am2:/sys/devices/system/clocksource/clocksource0# echo hpet >
> current_clocksource
> am2:/sys/devices/system/clocksource/clocksource0# time sleep 1
> <hangs indefinetly...>
> 
> Running strace shows it blocked on nanosleep(). I'm building the
> kernel with the processor type set to Athalon64. I've built it with
> and without SMP and high-res timers enabled and I get the same result.
> My previous 2.6.18-4 kernel works because it does not install HPET as
> the default timer. The same behavior occurs in 2.6.24-rc7 git head.
> I've attached the config/dmesg below.
> 

It seems the HPET timer was not being assigned any IRQs at all. Can you
try the patch at http://lkml.org/lkml/2008/1/12/128 ?

Thanks,
-- 
regards,
Dhaval

  reply	other threads:[~2008-01-13 12:03 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-13 11:10 Andrew Paprocki
2008-01-13 12:03 ` Dhaval Giani [this message]
2008-01-13 13:10   ` Andrew Paprocki
2008-01-13 14:06     ` Dhaval Giani
2008-01-16 14:15       ` Thomas Gleixner
2008-01-16 14:28         ` Thomas Gleixner
2008-01-16 15:21           ` Thomas Gleixner
2008-01-16 19:39             ` Andrew Paprocki
2008-01-18 10:26               ` Thomas Gleixner
2008-02-09 23:27                 ` Andrew Paprocki
2008-01-14 12:59 ` Clemens Ladisch
2008-01-14 14:12   ` Balaji Rao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080113120337.GA5548@linux.vnet.ibm.com \
    --to=dhaval@linux.vnet.ibm.com \
    --cc=andrew@ishiboo.com \
    --cc=balajirrao@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --subject='Re: HPET timer broken using 2.6.23.13 / nanosleep() hangs' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).