mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Jan Beulich <jbeulich@novell.com>
Cc: Yinghai Lu <yhlu.kernel@gmail.com>,
	tglx@linutronix.de, linux-kernel@vger.kernel.org, hpa@zytor.com
Subject: Re: [PATCH] x86: x86_{phys,virt}_bits field also for i386 (v2)
Date: Tue, 9 Sep 2008 09:31:53 +0200	[thread overview]
Message-ID: <20080909073153.GA10049@elte.hu> (raw)
In-Reply-To: <48C6406E.76E4.0078.0@novell.com>


* Jan Beulich <jbeulich@novell.com> wrote:

> >>> Ingo Molnar <mingo@elte.hu> 08.09.08 20:54 >>>
> >
> >-tip testing found various kernel crashes on 32-bit testboxes and i've 
> >bisected it down to:
> >
> >...
> >
> >a typical crash is like the one attached below. It's due to the ioremap 
> >failing. The drivers/char/rio/rio_linux.c driver probes these addresses:
> >
> >   static int rio_probe_addrs[] = { 0xc0000, 0xd0000, 0xe0000 };
> >
> >which is questionable ...
> 
> No, they look absolutely valid, they're ISA ROM addresses.

yeah - questionable in the sense of assuming that it's all non-RAM. But 
there's no better way to probe for ROMs i guess.

> > for now i've reverted it from current tip/master, see commit 
> > e3fdd129901. (you can reinstate the commit by doing "git revert 
> > e3fdd1299"
> >
> > Even if we decided to fail these ioremaps it would be better to emit 
> > a warning instead of crashing the box.
> 
> We shouldn't fail them, they're valid. What the crash means is that 
> even addresses below 1Mb are considered out of range, which I can only 
> take as x86_phys_bits being zero (or a bogus very small number) on 
> secondary (or all) CPUs. However, looking at the call tree I can't see 
> how that could happen (provided CPUID doesn't produce garbage output):
> 
> - smp_store_cpu_info(), as it always did, pre-initializes the new CPU's
>   info with boot_cpu_data, and calls identify_secondary_cpu()
> - identify_secondary_cpu() calls identify_cpu()
> - identify_cpu() pre-sets x86_phys_bits to 32, and since the field didn't
>   exist for 32-bits before, nothing should be able to clear or otherwise
>   alter it

there's nothing weird about this testbox (it's a usual whitebox) - and 
two other testboxes failed as well after some time (no crashlog 
available from them). A 64-bit testbox didnt fail so it seems 32-bit 
only.

	Ingo

  reply	other threads:[~2008-09-09  7:32 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-05 12:07 Jan Beulich
2008-09-05 15:00 ` Ingo Molnar
2008-09-05 16:56   ` Yinghai Lu
2008-09-08 10:50   ` Jan Beulich
2008-09-08 13:40     ` Ingo Molnar
2008-09-08 18:54       ` Ingo Molnar
2008-09-09  7:22         ` Jan Beulich
2008-09-09  7:31           ` Ingo Molnar [this message]
2008-09-09  7:36             ` Jan Beulich
2008-09-09  7:43         ` [PATCH] x86: x86_{phys,virt}_bits field also for i386 (v3) Jan Beulich
2008-09-09  7:47           ` Ingo Molnar
2008-09-09  7:58             ` Ingo Molnar
2008-09-09  8:15               ` Jan Beulich
2008-09-08 14:53     ` [PATCH] x86: x86_{phys,virt}_bits field also for i386 (v2) Yinghai Lu
2008-09-08 15:30       ` Jan Beulich

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=20080909073153.GA10049@elte.hu \
    --to=mingo@elte.hu \
    --cc=hpa@zytor.com \
    --cc=jbeulich@novell.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tglx@linutronix.de \
    --cc=yhlu.kernel@gmail.com \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome