public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Alex Chiang <achiang@hp.com>
To: linux-ia64@vger.kernel.org
Subject: [PATCH] ia64: allow user to skip_check_sal_cache_flush
Date: Wed, 07 May 2008 23:36:14 +0000	[thread overview]
Message-ID: <20080507233614.GF5609@ldl.fc.hp.com> (raw)

Hi Tony,

A long time ago, when check_sal_cache_flush() was added to work
around some broken HP firmware, that workaround broke some other
HP platforms with different broken firmware (notably, the
rx2600). :-/

There's a firmware fix for the machines in that second category,
but if the fix isn't applied and the user attempts to boot a
modern kernel, they'll hang.

We also have some HP protos that were never shipped, who will
never get an updated firmware, but are actually still useful,
assuming we can get them to boot. ;)

It would be nice to get this patch in mainline, so people with
known broken firmware can avoid the logic in check_sal_cache_flush
if necessary.

Thanks.

/ac

From: Alex Chiang <achiang@hp.com>

The sequence executed in check_sal_cache_flush:

	- pend a timer interrupt
	- call SAL_CACHE_FLUSH
	- see if interrupt is still pending

can hang HP machines with buggy SAL_CACHE_FLUSH implementations.

Provide a kernel command-line argument to allow users skip this
check if desired.

Signed-off-by: Alex Chiang <achiang@hp.com>
---
diff --git a/arch/ia64/kernel/sal.c b/arch/ia64/kernel/sal.c
index a3022dc..65163b7 100644
--- a/arch/ia64/kernel/sal.c
+++ b/arch/ia64/kernel/sal.c
@@ -229,6 +229,14 @@ static void __init sal_desc_ap_wakeup(void *p) { }
  */
 static int sal_cache_flush_drops_interrupts;
 
+static int __init
+skip_check_sal_cache_flush(char *str)
+{
+	sal_cache_flush_drops_interrupts = 1;
+	return 0;
+}
+early_param("skip_check_sal_cache_flush", skip_check_sal_cache_flush);
+
 void __init
 check_sal_cache_flush (void)
 {
@@ -237,6 +245,9 @@ check_sal_cache_flush (void)
 	u64 vector, cache_type = 3;
 	struct ia64_sal_retval isrv;
 
+	if (sal_cache_flush_drops_interrupts)
+		return;
+
 	cpu = get_cpu();
 	local_irq_save(flags);
 

             reply	other threads:[~2008-05-07 23:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-07 23:36 Alex Chiang [this message]
2008-05-08  0:01 ` [PATCH] ia64: allow user to skip_check_sal_cache_flush Luck, Tony
2008-05-08 20:03 ` Alex Chiang

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=20080507233614.GF5609@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox