All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Chiang <achiang@hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: Kernel now broken on Ski simulator
Date: Wed, 17 Sep 2008 00:25:33 +0000	[thread overview]
Message-ID: <20080917002533.GD10224@ldl.fc.hp.com> (raw)
In-Reply-To: <87hc8yddun.wl%peter@chubb.wattle.id.au>

* Peter Chubb <peterc@gelato.unsw.edu.au>:
> >>>>> "Alex" = Alex Chiang <achiang@hp.com> writes:
> 
> Alex> * Luck, Tony <tony.luck@intel.com>:
> >> > Until Ski is fixed to implement IPIs, you need to boot with the >
> >> force_pal_cache_flush argument to the kernel.
> >> 
> >> We could #ifndef CONFIG_IA64_HP_SIM around the test (since the
> >> simulator presumably doesn't have the SAL cache flush bug :-)
> 
> Alex> Hm, I started playing with this and turns out I started peeling
> Alex> an onion I didn't really want to touch...
> 
> Bad config file I think.  Start with make sim_defconfig and go on from
> there.

I just wrote the trivial version of the patch, that doesn't
bother compiling out the function definition, to keep the #ifdefs
to a minimum.

Odd, I would have expected the linker to optimize it out, but I
guess not...

achiang@bob:/linux/arch/ia64/kernel$ nm setup.o | grep check_sal_cache_flush
achiang@bob:/linux/arch/ia64/kernel$ nm sal.o | grep check_sal_cache_flush
00000000000000e0 T check_sal_cache_flush

Tony, this is a regression, so it seems appropriate for 2.6.27.

Thanks.

/ac

From: Alex Chiang <achiang@hp.com>
Subject: [PATCH] [IA64] Ski simulator doesn't need check_sal_cache_flush

Peter Chubb reported that commit 3463a93def55c309f3c0d0a8aaf216be3be42d64
(Update check_sal_cache_flush to use platform_send_ipi()) broke
Ski because it does not implement IPIs.

Tony Luck suggested we just #ifndef out the call, so here is a
trivial patch that does so.

Signed-off-by: Alex Chiang <achiang@hp.com>
---
diff --git a/arch/ia64/kernel/setup.c b/arch/ia64/kernel/setup.c
index c27d5b2..de636b2 100644
--- a/arch/ia64/kernel/setup.c
+++ b/arch/ia64/kernel/setup.c
@@ -616,7 +616,9 @@ setup_arch (char **cmdline_p)
 		ia64_mca_init();
 
 	platform_setup(cmdline_p);
+#ifndef CONFIG_IA64_HP_SIM
 	check_sal_cache_flush();
+#endif
 	paging_init();
 }
 

      parent reply	other threads:[~2008-09-17  0:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-02 10:46 Kernel now broken on Ski simulator Peter Chubb
2008-09-02 15:19 ` Luck, Tony
2008-09-16 21:12 ` Alex Chiang
2008-09-17  0:01 ` Peter Chubb
2008-09-17  0:08 ` Alex Chiang
2008-09-17  0:25 ` Alex Chiang [this message]

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=20080917002533.GD10224@ldl.fc.hp.com \
    --to=achiang@hp.com \
    --cc=linux-ia64@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.