All of lore.kernel.org
 help / color / mirror / Atom feed
From: "David S. Miller" <davem@davemloft.net>
To: sparclinux@vger.kernel.org
Subject: Re: Yesterdays git does not boot on U5
Date: Mon, 10 Oct 2005 18:32:15 +0000	[thread overview]
Message-ID: <20051010.113215.70490812.davem@davemloft.net> (raw)
In-Reply-To: <Pine.SOC.4.61.0510101057330.28936@math.ut.ee>

From: Meelis Roos <mroos@linux.ee>
Date: Mon, 10 Oct 2005 18:19:29 +0300 (EEST)

> >> Remapping the kernel... done.
> >
> > If you add "-v" to the kernel parameters, does it say anything more?
> 
> Yep, -p gave the oops input, should have tried it myself.

We're not mapping the firmware page tables correctly, or we're
somehow jumping into the firmware when we shouldn't be.

I bet the timer interrupt in the OBP is still firing and that's
why we crash.  We must not, in any way, call into the firmware
between the setup_tba() call and the completion of
inherit_prom_mappings_post() because the firmware page tables
are not active and we'll fault on any access to the firmware's
address space.

Does this fix it?

diff --git a/arch/sparc64/mm/init.c b/arch/sparc64/mm/init.c
index 0d2e967..8f21767 100644
--- a/arch/sparc64/mm/init.c
+++ b/arch/sparc64/mm/init.c
@@ -1480,7 +1480,7 @@ pgd_t swapper_pg_dir[2048];
 void __init paging_init(void)
 {
 	unsigned long end_pfn, pages_avail, shift;
-	unsigned long real_end, i;
+	unsigned long real_end, i, flags;
 
 	/* Find available physical memory... */
 	read_obp_memory("available", &pavail[0], &pavail_ents);
@@ -1521,6 +1521,8 @@ void __init paging_init(void)
 	
 	inherit_prom_mappings_pre();
 	
+	local_irq_save(flags);
+
 	/* Ok, we can use our TLB miss and window trap handlers safely.
 	 * We need to do a quick peek here to see if we are on StarFire
 	 * or not, so setup_tba can setup the IRQ globals correctly (it
@@ -1545,6 +1547,8 @@ void __init paging_init(void)
 
 	inherit_prom_mappings_post();
 
+	local_irq_restore(flags);
+
 	inherit_locked_prom_mappings(1);
 
 #ifdef CONFIG_DEBUG_PAGEALLOC

  parent reply	other threads:[~2005-10-10 18:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-10  7:58 Yesterdays git does not boot on U5 Meelis Roos
2005-10-10 15:09 ` Patrick Finnegan
2005-10-10 15:19 ` Meelis Roos
2005-10-10 18:15 ` David S. Miller
2005-10-10 18:32 ` David S. Miller [this message]
2005-10-10 18:33 ` David S. Miller
2005-10-10 20:10 ` Meelis Roos
2005-10-10 20:22 ` Meelis Roos
2005-10-10 20:26 ` David S. Miller
2005-10-10 20:27 ` David S. Miller
2005-10-10 23:14 ` David S. Miller
2005-10-11  6:50 ` Meelis Roos

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=20051010.113215.70490812.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=sparclinux@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.