* test patch for random crashes
@ 1996-04-15 15:11 Richard Henderson
1996-04-16 5:52 ` Linus Torvalds
1996-04-16 21:32 ` Jim Paradis
0 siblings, 2 replies; 3+ messages in thread
From: Richard Henderson @ 1996-04-15 15:11 UTC (permalink / raw)
Those of you who were, like me, experiencing random program
crashes, e.g. "touch" on bootup, should try the following.
It seems to have worked for me on my eb164.
r~
------
--- pgtable.h.orig Sat Apr 6 19:37:13 1996
+++ pgtable.h Mon Apr 15 09:49:08 1996
@@ -12,11 +12,11 @@
#include <asm/system.h>
/* Caches aren't brain-dead on the alpha. */
-#define flush_cache_all() do { } while (0)
-#define flush_cache_mm(mm) do { } while (0)
-#define flush_cache_range(mm, start, end) do { } while (0)
-#define flush_cache_page(vma, vmaddr) do { } while (0)
-#define flush_page_to_ram(page) do { } while (0)
+#define flush_cache_all() imb()
+#define flush_cache_mm(mm) imb()
+#define flush_cache_range(mm, start, end) imb()
+#define flush_cache_page(vma, vmaddr) imb()
+#define flush_page_to_ram(page) imb()
/*
* Flush current user mapping.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: test patch for random crashes
1996-04-15 15:11 test patch for random crashes Richard Henderson
@ 1996-04-16 5:52 ` Linus Torvalds
1996-04-16 21:32 ` Jim Paradis
1 sibling, 0 replies; 3+ messages in thread
From: Linus Torvalds @ 1996-04-16 5:52 UTC (permalink / raw)
On Mon, 15 Apr 1996, Richard Henderson wrote:
>
> Those of you who were, like me, experiencing random program
> crashes, e.g. "touch" on bootup, should try the following.
> It seems to have worked for me on my eb164.
Aieee.. I was afraid of that.
I was hoping that the 21164 kept the instruction cache tagged by ITLB
entries, because that is what the eb164 PAL-code seems to imply (it's not
implied in any of my documentation, but comparing PAL-code for ev4 and
ev5 based machines I assumed it was true).
The ev4(ev45) palcode does an instruction cache invalidate automatically
when you invalidate ITLB entries, and the ev5 PAL-code doesn't do that. I
hoped that that was because the hardware automatically does the right
thing (and invalidates only the icache entries that are invalidated by
the itlb flush), but that is obviously not true if this patch helps.
Damn, this is actually one place where the alpha PAL-code design is
completely broken: there is no way to invalidate only user-mode icache,
even though the hardware has the support for it (imb() invalidates all of
the icache, even though we only want to do it for non-ASN pages). I'd
also like a page-granular icache invalidate. Oh, well..
> --- pgtable.h.orig Sat Apr 6 19:37:13 1996
> +++ pgtable.h Mon Apr 15 09:49:08 1996
> @@ -12,11 +12,11 @@
> #include <asm/system.h>
>
> /* Caches aren't brain-dead on the alpha. */
> -#define flush_cache_all() do { } while (0)
> -#define flush_cache_mm(mm) do { } while (0)
> -#define flush_cache_range(mm, start, end) do { } while (0)
> -#define flush_cache_page(vma, vmaddr) do { } while (0)
> -#define flush_page_to_ram(page) do { } while (0)
> +#define flush_cache_all() imb()
> +#define flush_cache_mm(mm) imb()
> +#define flush_cache_range(mm, start, end) imb()
> +#define flush_cache_page(vma, vmaddr) imb()
> +#define flush_page_to_ram(page) imb()
>
> /*
> * Flush current user mapping.
The above patch flushes a lot too much, but I guess that's better than
being buggy. I'll try to come up with a nicer way to do this. We should
potentially be able to flush in a more controlled manner by doing
get_mmu_context(current); /* get new ASN number */
switch_to_self(current); /* do a swpctx to ourself */
(that also takes care of the tlb flush). Anyway, thanks for pinpointing
this bug (it was high on my list of suspects, but I was hoping that it
wouldn't turn out to be this one).
Linus
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: test patch for random crashes
1996-04-15 15:11 test patch for random crashes Richard Henderson
1996-04-16 5:52 ` Linus Torvalds
@ 1996-04-16 21:32 ` Jim Paradis
1 sibling, 0 replies; 3+ messages in thread
From: Jim Paradis @ 1996-04-16 21:32 UTC (permalink / raw)
> Those of you who were, like me, experiencing random program
> crashes, e.g. "touch" on bootup, should try the following.
> It seems to have worked for me on my eb164.
Just applied your patch to 1.3.89. I can now run 10 crashme's, ico -faces,
and a kernel build with nary a hiccup.
Of course, like Linus, I'd still like a better solution, but thanks anyway.
Functionality first, slickness later.
Off to study the 21164 scrolls.....
--
Jim Paradis (paradis@amt.tay1.dec.com) "It's not procrastination,
Digital Equipment Corporation it's my new Just-In-Time
(508)952-4047 Workload Management System!"
http://www.tiac.net/users/jrp/index.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1996-04-16 21:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-04-15 15:11 test patch for random crashes Richard Henderson
1996-04-16 5:52 ` Linus Torvalds
1996-04-16 21:32 ` Jim Paradis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox