Re: PROBLEM: Can't boot a (HZ = 1000) kernel using an AMD Phenom-IIprocessor

From: Borislav Petkov
Date: Wed Feb 18 2009 - 09:34:20 EST


On Wed, Feb 18, 2009 at 08:11:47AM -0500, Mark Hounschell wrote:
> Mark Hounschell wrote:
> > Borislav Petkov wrote:
>
> >> maybe I wasn't clear enough - I meant to boot a _1000HZ_ kernel not a
> >> 250HZ one with highres timers disabled, if the line above is correct.
> >> Can you try the same thing as above again, please, but this time use a
> >> 1000HZ 32bit kernel.
> >>
> >> Thanks.
> >>
> >
> > Checking if this processor honours the WP bit even in supervisor mode...Ok.
> > SLUB: Genslabs=12, HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
> > HPE

Well, not really since we can't know for sure where your machine hangs.
It might be a problem with the HPET but we can't be sure what we see
above is the last string that entered the printk buffer. However, let's
try the following patch (against vanilla 2.6.28.3), please capture the
dmesg again and send it back, thanks.


---
arch/x86/kernel/hpet.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/arch/x86/kernel/hpet.c b/arch/x86/kernel/hpet.c
index 067d8de..068cbc7 100644
--- a/arch/x86/kernel/hpet.c
+++ b/arch/x86/kernel/hpet.c
@@ -269,6 +269,11 @@ static void hpet_set_mode(enum clock_event_mode mode,
cfg = hpet_readl(HPET_Tn_CFG(timer));
cfg |= HPET_TN_ENABLE | HPET_TN_PERIODIC |
HPET_TN_SETVAL | HPET_TN_32BIT;
+
+ printk(KERN_ERR "HPET%d prog. values: now %lu, delta %llu, "
+ "cfg: 0x%lx, \n",
+ timer, now, delta, cfg);
+
hpet_writel(cfg, HPET_Tn_CFG(timer));
/*
* The first write after writing TN_SETVAL to the
--
1.6.0.4


--
Regards/Gruss,
Boris.

Operating | Advanced Micro Devices GmbH
System | Karl-Hammerschmidt-Str. 34, 85609 Dornach b. München, Germany
Research | Geschäftsführer: Jochen Polster, Thomas M. McCoy, Giuliano Meroni
Center | Sitz: Dornach, Gemeinde Aschheim, Landkreis München
(OSRC) | Registergericht München, HRB Nr. 43632

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