From: Phillip Ezolt <ezolt@perf.zko.dec.com>
To: <axp-list@redhat.com>
Subject: Re: Redhat 7.1 Alpha
Date: Thu, 21 Jun 2001 12:37:15 -0400 (EDT) [thread overview]
Message-ID: <Pine.OSF.4.33.0106211228430.387881-100000@perf.zko.dec.com> (raw)
In-Reply-To: <20010621112037.C20970@linux04.mro.cpqcorp.net>
> 4. Even text mode install appears broken on my UDB/Multia; somewhere during
> the initial part of the install, it starts "anaconda" and it never
> completes, running forever. This may possibly be a CDROM problem at
> my end; I'll have to attempt a network-based install to find out for
> sure.
This is the result the following. (See below.)
I suggest that redhat/Linus/Alan apply last patch to the kernel.
--Phil
Compaq: High Performance Server Division/Benchmark Performance Engineering
---------------- Alpha, The Fastest Processor on Earth --------------------
Phillip.Ezolt@compaq.com |C|O|M|P|A|Q| ezolt@perf.zko.dec.com
------------------- See the results at www.spec.org -----------------------
.....
This is the result of a buggy SRM, and unfortunately, it isn't fixed in the
final digital SRM release for the UDB.
When entering the trap handler for an illegal instruction, the pc is not
advanced properly. When the kernel hits a floating point error which is
normally handled in the kernel, the pc never advances.
The problem is handled, but since the pc isn't advanced, the program rexecutes
the same instruction, and BAM, trap. This repeats infinitely.
Workaround: Boot from MILO. It has the Palcode fixed.
We hacked around the problem with the following code, but it is not in a state
where it could be submitted to the kernel.
It needs some sort of dynamic check for broken SRM. (Maybe from the HWRPB? )
Even better would be fixed palcode....
diff -Nau arch/alpha/kernel/traps.c
../linux-2.2.17-multia-kgdb/arch/alpha/kernel
--- arch/alpha/kernel/traps.c Fri Jan 12 04:31:34 2001
+++ ../linux-2.2.17-multia-kgdb/arch/alpha/kernel/traps.c Tue Dec 19
18:19:02 2000
@@ -449,6 +449,9 @@
case 4: /* opDEC */
if (implver() == IMPLVER_EV4) {
+#if 1 /* alpha SRM */
+ regs.pc += 4;
+#endif /* alpha SRM */
/* EV4 does not implement anything except normal
rounding. Everything else will come here as
an illegal instruction. Emulate them. */
------------------------------------------------------------------------
Before he left, Bill Carr product the following patch.. It is more general
than the one above:
--- linux-2.2.17-kgdb/arch/alpha/kernel/traps.c Mon Nov 13 11:22:33 2000
+++ linux-2.2.17-multia-kgdb/arch/alpha/kernel/traps.c Sun Mar 11 15:59:10
2001
@@ -115,6 +115,27 @@
static alist * int_name[] = {inta_name, intl_name, ints_name, intm_name};
+static int opDEC_test = 0;
+static int opDEC_fix = 0;
+static unsigned long opDEC_test_pc = 0;
+
+static void
+opDEC_check(void)
+{
+ unsigned long test_pc;
+ lock_kernel();
+ opDEC_test = 1;
+ __asm__ __volatile__(
+ " br %0,1f\n"
+ "1: addq %0,8,%0\n"
+ " stq %0,%1\n"
+ " cvttq/svm $f31,$f31\n"
+: "=&r"(test_pc), "=m"(opDEC_test_pc)
+: );
+ opDEC_test = 0;
+ unlock_kernel();
+}
+
static char *
assoc(int fcode, alist * a)
{
@@ -379,7 +400,9 @@
/* If we are dealing with a breakpoint or the debug hook isn't
* installed, don't die. */
if ((type != 0) ||(linux_debug_hook == (gdb_debug_hook *) NULL)) {
- die_if_kernel("Instruction fault", ®s, type, 0);
+ if (!opDEC_test || type != 4) {
+ die_if_kernel("Instruction fault", ®s, type, 0);
+ }
}
#else
asmlinkage void
@@ -387,7 +410,9 @@
unsigned long a2, unsigned long a3, unsigned long a4,
unsigned long a5, struct pt_regs regs)
{
- die_if_kernel("Instruction fault", ®s, type, 0);
+ if (!opDEC_test || type != 4) {
+ die_if_kernel("Instruction fault", ®s, type, 0);
+ }
#endif
switch (type) {
case 0: /* breakpoint */
@@ -449,6 +474,25 @@
case 4: /* opDEC */
if (implver() == IMPLVER_EV4) {
+ /* We need to deal with the Multia (UDB) specially.
+ The last released SRM (V3.8) does not handle
+ the opDEC properly. It returns the pc of the
+ opDEC fault, not the instruction after as the
+ Alpha architecture requires. Here we fix it up.
+ We do this by intentionally causing an opDEC
+ fault during the boot sequence and testing if
+ we get the correct pc. If not, we set a flag
+ to correct it every time through.
+ */
+ if (opDEC_test) {
+ if (regs.pc == opDEC_test_pc) {
+ opDEC_fix = 1;
+ }
+ }
+ if (opDEC_fix) {
+ regs.pc += 4;
+ }
+
/* EV4 does not implement anything except normal
rounding. Everything else will come here as
an illegal instruction. Emulate them. */
@@ -1141,4 +1185,9 @@
wrent(entUna, 4);
wrent(entSys, 5);
wrent(entDbg, 6);
+
+ /* Hack for Multia (UDB)... the final released SRM has a bug in
+ the handling of the opDEC fault. Fix it up.
+ */
+ opDEC_check();
}
next prev parent reply other threads:[~2001-06-21 16:37 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-21 12:46 Redhat 7.1 Alpha Kurt Ludwig
2001-06-21 15:20 ` Jay Estabrook
2001-06-21 16:37 ` Phillip Ezolt [this message]
2001-06-21 17:16 ` Michal Jaegermann
2001-06-21 20:10 ` Phillip Ezolt
2001-06-22 9:35 ` Sebastian Moeller
2001-06-22 21:26 ` Jon D. Breen
2001-06-23 10:51 ` Mike Tibor
-- strict thread matches above, loose matches on Subject: below --
2001-07-02 21:37 anonymous ftp problem Will Zimmerman
2001-07-02 23:04 ` Uncle George
2001-07-03 7:20 ` Laurent Jacques
2001-07-03 9:44 ` Redhat 7.1 alpha Aaron Brueck
2001-07-03 9:51 ` Laurent Jacques
2001-07-03 10:21 ` Mike A. Harris
2001-07-03 21:02 ` Jay Estabrook
[not found] ` <Pine.LNX.4.33.0107030617480.5655-100000@devserv.devel.redh at.com>
2001-07-03 14:40 ` Maurice Hilarius
2001-07-03 14:44 ` Mike A. Harris
2001-06-25 10:46 Redhat 7.1 Alpha Vegt, Henry van der
2001-06-25 13:40 ` Speedracer
2001-06-25 13:53 ` 'Bryce'
2001-06-21 3:20 Problem Building 2.4.5-ac16 Christopher C. Chimelis
2001-06-21 12:52 ` Redhat 7.1 Alpha Aaron
2001-06-21 13:58 ` Uncle George
2001-06-21 14:06 ` Peter Mittermayer
2001-06-21 14:09 ` Rich Payne
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox