Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Derek Atkins <warlord@MIT.EDU>
Subject: Re: LKMs and installing syscalls on Linux/alpha 2.0.27 (resend)
Date: 22 May 1997 15:53:57 -0400	[thread overview]
Message-ID: <81aadb7ee2c0cca1b61ea43271dd6766.axp-list@archive.invalid> (raw)

Andreas Johansson <ajo@wopr.campus.luth.se> writes:

> To me it seems like a bug in Linux/alpha, see below.

Not surprising...

> So it seems gp is f*cked up (not loaded in ret_from_sys_call()). I remember
> a similar problem with the nfs module some time ago (concerning 
> kernel_thread()). I even have the patch for that problem left:

That sounds reasonable...

[patch removed]

I applied what of this patch I could to the 2.0.27 kernel..  No
problems here.  But this didn't solve the problem (not surprising --
it shouldn't have solved it).

> My guess as to fixing your problem is this small patch:
> 
> -----------------------------------------------------------------------
> --- arch/alpha/kernel/entry.S.orig	Thu May 22 17:38:29 1997
> +++ arch/alpha/kernel/entry.S	Thu May 22 17:41:24 1997
> @@ -521,6 +521,7 @@
>  	cmovne	$26,0,$19		/* $19 = 0 => non-restartable */
> +	ldgp    $29,0($27)
>  	/* check bottom half interrupts */
>  	bne	$1,ret_from_handle_bh
>  	ldq	$3,bh_active
>  	ldq	$4,bh_mask
>  	and	$3,$4,$2
> -----------------------------------------------------------------------

This unfortunately sends the machine into a looping sereis of oopses.
So, no, this didn't work.  However...

> I have no idea if ret_from_sys_call looks the same in 2.0.27, but if not,
> just try to add
> 	ldgp	$29,0($27)
> in the beginning of the function.

...I tried following this suggestion by putting the ldgp before the
cmovne...  But again it just looped in a series of oopses.  So, thanks
for the idea, but it didn't work.

Any other ideas?

> I am only guessing here, I am not pretending to be an expert on kernel
> issues. Try this patch on your own risk, I haven't even tried it myself :)
> If you are having great difficulcy compiling your own kernel I could be
> persuaded to try the patch myself.

Thats ok.. I appreciate the help.  To whom should I report this bug
to get it put into 2.0.31/2.1.x as appropriate???

> I think you should add the -mno-fp-regs compile flag. This is used on all
> modules in the kernel, and I have had modules malfunctioning without it.
> This does not solve your problem though.

Shouldn't matter...  I suspect that all -mno-fp-regs does is speed
things up a bit, rather than functionally change anything.

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/      PP-ASEL      N1NWH
       warlord@MIT.EDU                        PGP key available

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

             reply	other threads:[~1997-05-22 19:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-05-22 19:53 Derek Atkins [this message]
     [not found] <Pine.LNX.3.95L01at.970523001215.15876A-100000@wopr.campus.luth.se>
1997-05-23  3:54 ` LKMs and installing syscalls on Linux/alpha 2.0.27 (resend) Richard Henderson
     [not found] <Pine.LNX.3.95L01at.970522170543.13615C-100000@wopr.campus.luth.se>
1997-05-22 20:40 ` Richard Henderson
1997-05-22 22:20   ` Andreas Johansson
1997-05-23 12:14   ` Andreas Johansson
     [not found] <sjmzptnuvu2.fsf@incommunicado.ihtfp.org>
1997-05-22 20:12 ` Andreas Johansson
  -- strict thread matches above, loose matches on Subject: below --
1997-05-21 22:45 Derek Atkins
1997-05-22 15:57 ` Andreas Johansson
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