Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* 2.6.10, alpha, "Relocation overflows"
@ 2005-03-22 14:26 davidm
  2005-03-22 14:49 ` 2.6.10, alpha, "Relocation overflows" - .data.percpu ? davidm
  2005-03-22 18:23 ` 2.6.10, alpha, "Relocation overflows" Jay.Estabrook
  0 siblings, 2 replies; 9+ messages in thread
From: davidm @ 2005-03-22 14:26 UTC (permalink / raw)


Hi,

ok I know this isn't specifically redhat related, but hey there aren't 
many active alpha lists out there!

I'm trying to get kernel.org 2.6.10 running on my SMP ds20 alpha system. 
Kernel compiles fine, but _some_ modules fail to load once running, in 
particular the ipv6 and scsi ones (there may be more, but those are the 
ones I'm noticing).

The error is "Relocation overflow vs section 25" for ipv6 (scsi_mod says 
section 27 instead). Adding a few printks, it seems that its always the 
R_ALPHA_GPRELHIGH case (line 265 of arch/alpha/kernel/module.c), and as 
far as I can tell, the problem is that "value" is more than 0x8000 less 
than "gp" which results in a negative value... The weird thing is, it 
doesn't appear to happen for UP-compiled kernels, only SMP ones!

This is using gcc version 3.3.5 (Debian 1:3.3.5-8). I tried using gcc 
2.95 (gcc version 2.95.4 20011002 (Debian prerelease)), but that gets a 
parse error on line 55 of arch/alpha/kernel/traps.c. (What compiler 
_should_ I be using? The documentation seems to indicate gcc 2.95.3, but 
I'm finding that hard to believe).

I can't go forward to 2.6.11 because thats missing _raw_read_trylock for 
alpha, and there doesn't appear to be a patch for that yet. 2.6.8 UP 
works, but SMP just hangs when probing the DAC960 raid controller. Is 
SMP alpha just not very well tested at the moment?

Cheers,

     David



^ permalink raw reply	[flat|nested] 9+ messages in thread

* 2.6.10, alpha, "Relocation overflows" - .data.percpu ?
  2005-03-22 14:26 2.6.10, alpha, "Relocation overflows" davidm
@ 2005-03-22 14:49 ` davidm
  2005-03-22 16:54   ` ayoung
  2005-03-22 18:23 ` 2.6.10, alpha, "Relocation overflows" Jay.Estabrook
  1 sibling, 1 reply; 9+ messages in thread
From: davidm @ 2005-03-22 14:49 UTC (permalink / raw)


Ugh. Hate it when I figure out more stuff just after sending the 
message. Looks like any module which has a .data.percpu section doesn't 
load! Modules with a relocation record of type GPRELHIGH pointing to 
.data.percpu get the "Relocation overflow vs section X" message,
ones which have the section but no relocation records referring to it 
get a "Relocation overflow vs symbolname" error instead.

Any clues how to fix that?

Cheers,

	David

David Monro wrote:
> Hi,
> 
> ok I know this isn't specifically redhat related, but hey there aren't 
> many active alpha lists out there!
> 
> I'm trying to get kernel.org 2.6.10 running on my SMP ds20 alpha system. 
> Kernel compiles fine, but _some_ modules fail to load once running, in 
> particular the ipv6 and scsi ones (there may be more, but those are the 
> ones I'm noticing).
> 
> The error is "Relocation overflow vs section 25" for ipv6 (scsi_mod says 
> section 27 instead). Adding a few printks, it seems that its always the 
> R_ALPHA_GPRELHIGH case (line 265 of arch/alpha/kernel/module.c), and as 
> far as I can tell, the problem is that "value" is more than 0x8000 less 
> than "gp" which results in a negative value... The weird thing is, it 
> doesn't appear to happen for UP-compiled kernels, only SMP ones!
> 
> This is using gcc version 3.3.5 (Debian 1:3.3.5-8). I tried using gcc 
> 2.95 (gcc version 2.95.4 20011002 (Debian prerelease)), but that gets a 
> parse error on line 55 of arch/alpha/kernel/traps.c. (What compiler 
> _should_ I be using? The documentation seems to indicate gcc 2.95.3, but 
> I'm finding that hard to believe).
> 
> I can't go forward to 2.6.11 because thats missing _raw_read_trylock for 
> alpha, and there doesn't appear to be a patch for that yet. 2.6.8 UP 
> works, but SMP just hangs when probing the DAC960 raid controller. Is 
> SMP alpha just not very well tested at the moment?
> 
> Cheers,
> 
>     David
> 
> _______________________________________________
> axp-list mailing list
> axp-list at redhat.com
> https://www.redhat.com/mailman/listinfo/axp-list



^ permalink raw reply	[flat|nested] 9+ messages in thread

* 2.6.10, alpha, "Relocation overflows" - .data.percpu ?
  2005-03-22 14:49 ` 2.6.10, alpha, "Relocation overflows" - .data.percpu ? davidm
@ 2005-03-22 16:54   ` ayoung
  2005-03-23  9:29     ` davidm
  2005-03-23 22:01     ` davidm
  0 siblings, 2 replies; 9+ messages in thread
From: ayoung @ 2005-03-22 16:54 UTC (permalink / raw)


The newer version of GCC should be fine.  I've compiled and run a SMP 2.6.10
on a DP264 - which is pretty much the same board as your DS20.  I'm currently
using 3.3.5 from unstable (I think).  gcc identifies itself as Debian 1:3.3.5-6.

I think the relocation record issue might be due to an old version of binutils.
I would check to see if you an upgrade that to a more recent version.
I'm not sure which binutils package I'm currently using.  ld identifies itself as 2.15.

See this message for a possible fix for the spinlock in 2.6.11:
https://www.redhat.com/archives/axp-list/2005-February/msg00028.htm

Alan

On Wed, 23 Mar 2005 01:19:55 +1030 David Monro <davidm at monro.org.uk> wrote:

> Ugh. Hate it when I figure out more stuff just after sending the 
> message. Looks like any module which has a .data.percpu section doesn't 
> load! Modules with a relocation record of type GPRELHIGH pointing to 
> .data.percpu get the "Relocation overflow vs section X" message,
> ones which have the section but no relocation records referring to it 
> get a "Relocation overflow vs symbolname" error instead.
> 
> Any clues how to fix that?
> 
> Cheers,
> 
> 	David
> 
> David Monro wrote:
> > Hi,
> > 
> > ok I know this isn't specifically redhat related, but hey there aren't 
> > many active alpha lists out there!
> > 
> > I'm trying to get kernel.org 2.6.10 running on my SMP ds20 alpha system. 
> > Kernel compiles fine, but _some_ modules fail to load once running, in 
> > particular the ipv6 and scsi ones (there may be more, but those are the 
> > ones I'm noticing).
> > 
> > The error is "Relocation overflow vs section 25" for ipv6 (scsi_mod says 
> > section 27 instead). Adding a few printks, it seems that its always the 
> > R_ALPHA_GPRELHIGH case (line 265 of arch/alpha/kernel/module.c), and as 
> > far as I can tell, the problem is that "value" is more than 0x8000 less 
> > than "gp" which results in a negative value... The weird thing is, it 
> > doesn't appear to happen for UP-compiled kernels, only SMP ones!
> > 
> > This is using gcc version 3.3.5 (Debian 1:3.3.5-8). I tried using gcc 
> > 2.95 (gcc version 2.95.4 20011002 (Debian prerelease)), but that gets a 
> > parse error on line 55 of arch/alpha/kernel/traps.c. (What compiler 
> > _should_ I be using? The documentation seems to indicate gcc 2.95.3, but 
> > I'm finding that hard to believe).
> > 
> > I can't go forward to 2.6.11 because thats missing _raw_read_trylock for 
> > alpha, and there doesn't appear to be a patch for that yet. 2.6.8 UP 
> > works, but SMP just hangs when probing the DAC960 raid controller. Is 
> > SMP alpha just not very well tested at the moment?
> > 
> > Cheers,
> > 
> >     David
> > 
> > _______________________________________________
> > axp-list mailing list
> > axp-list at redhat.com
> > https://www.redhat.com/mailman/listinfo/axp-list
> 
> _______________________________________________
> axp-list mailing list
> axp-list at redhat.com
> https://www.redhat.com/mailman/listinfo/axp-list



^ permalink raw reply	[flat|nested] 9+ messages in thread

* 2.6.10, alpha, "Relocation overflows"
  2005-03-22 14:26 2.6.10, alpha, "Relocation overflows" davidm
  2005-03-22 14:49 ` 2.6.10, alpha, "Relocation overflows" - .data.percpu ? davidm
@ 2005-03-22 18:23 ` Jay.Estabrook
  1 sibling, 0 replies; 9+ messages in thread
From: Jay.Estabrook @ 2005-03-22 18:23 UTC (permalink / raw)


On Wed, Mar 23, 2005 at 12:56:59AM +1030, David Monro wrote:
> 
> I tried using gcc 2.95 (gcc version 2.95.4 20011002 (Debian
> prerelease)), but that gets a parse error on line 55 of
> arch/alpha/kernel/traps.c. (What compiler _should_ I be using? The
> documentation seems to indicate gcc 2.95.3, but I'm finding that
> hard to believe).
> 
> I can't go forward to 2.6.11 because thats missing _raw_read_trylock for 
> alpha, and there doesn't appear to be a patch for that yet. 2.6.8 UP 
> works, but SMP just hangs when probing the DAC960 raid controller. Is 
> SMP alpha just not very well tested at the moment?

I've been very successful building working 2.6.11 SMP kernels using
(the infamous) GCC 2.96 from RH 7.2 for Alpha, with some trivial changes.

Find attached the necessary patch for the traps.c problem, along with
an srm_env bugfix and the spinlock.h update.

Note that there were many problems with various flavors of GCC 2.95.x,
especially when generating code for SMP kernels, so I'd still avoid
using them...

 --Jay++

---------------------------------------------------------------
Jay A Estabrook                            HPTC - LINUX support
Hewlett-Packard Company - ZKO2-3/N30       (603) 884-0301
110 Spit Brook Road, Nashua NH 03062       Jay.Estabrook at hp.com
---------------------------------------------------------------

diff -Naurp orig-2.6.11/arch/alpha/kernel/srm_env.c new-2.6.11/arch/alpha/kernel/srm_env.c
--- orig-2.6.11/arch/alpha/kernel/srm_env.c	Sat Aug 14 06:54:50 2004
+++ new-2.6.11/arch/alpha/kernel/srm_env.c	Mon Mar 14 11:31:16 2005
@@ -152,7 +152,7 @@ srm_env_write(struct file *file, const c
 	res = -EFAULT;
 	if (copy_from_user(buf, buffer, count))
 		goto out;
-	buf[count] = '\0';
+	buf[count-1] = '\0';
 
 	ret1 = callback_setenv(entry->id, buf, count);
 	if ((ret1 >> 61) == 0) {
diff -Naurp orig-2.6.11/arch/alpha/kernel/traps.c new-2.6.11/arch/alpha/kernel/traps.c
--- orig-2.6.11/arch/alpha/kernel/traps.c	Tue Oct 19 09:24:12 2004
+++ new-2.6.11/arch/alpha/kernel/traps.c	Thu Mar  3 13:34:23 2005
@@ -34,6 +34,30 @@ static int opDEC_fix;
 static void __init
 opDEC_check(void)
 {
+	/* Sigh; tailor the code for the capabilities of the GCC version. */
+#if __GNUC__ < 3
+	__asm__ __volatile__ (
+	/* Load the address of... */
+	"	br	$16, 1f\n"
+	/* A stub instruction fault handler.  Just add 4 to the
+	   pc and continue.  */
+	"	ldq	$16, 8($sp)\n"
+	"	addq	$16, 4, $16\n"
+	"	stq	$16, 8($sp)\n"
+	"	call_pal %1\n"
+	/* Install the instruction fault handler.  */
+	"1:	lda	$17, 3\n"
+	"	call_pal %2\n"
+	/* With that in place, the fault from the round-to-minf fp
+	   insn will arrive either at the "lda 4" insn (bad) or one
+	   past that (good).  This places the correct fixup in %0.  */
+	"	lda %0, 0\n"
+	"	cvttq/svm $f31,$f31\n"
+	"	lda %0, 4"
+	: "=r" (opDEC_fix)
+	: "i" (PAL_rti), "i" (PAL_wrent)
+	: "$0", "$1", "$16", "$17", "$22", "$23", "$24", "$25");
+#else
 	__asm__ __volatile__ (
 	/* Load the address of... */
 	"	br	$16, 1f\n"
@@ -55,6 +79,7 @@ opDEC_check(void)
 	: [fix] "=r" (opDEC_fix)
 	: [rti] "n" (PAL_rti), [wrent] "n" (PAL_wrent)
 	: "$0", "$1", "$16", "$17", "$22", "$23", "$24", "$25");
+#endif
 
 	if (opDEC_fix)
 		printk("opDEC fixup enabled.\n");
diff -Naurp orig-2.6.11/include/asm-alpha/spinlock.h new-2.6.11/include/asm-alpha/spinlock.h
--- orig-2.6.11/include/asm-alpha/spinlock.h	Thu Mar  3 13:25:19 2005
+++ new-2.6.11/include/asm-alpha/spinlock.h	Thu Mar  3 13:46:50 2005
@@ -198,4 +198,6 @@ static inline void _raw_read_unlock(rwlo
 	: "m" (*lock) : "memory");
 }
 
+#define _raw_read_trylock(lock) generic_raw_read_trylock(lock)
+
 #endif /* _ALPHA_SPINLOCK_H */
-----------------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 9+ messages in thread

* 2.6.10, alpha, "Relocation overflows" - .data.percpu ?
  2005-03-22 16:54   ` ayoung
@ 2005-03-23  9:29     ` davidm
  2005-03-23 22:01     ` davidm
  1 sibling, 0 replies; 9+ messages in thread
From: davidm @ 2005-03-23  9:29 UTC (permalink / raw)


Hi Alan,

well thats interesting... so my revision of the compiler is 2 revisions 
newer (1:3.3.5-8). My ld also identifies as 2.15, dpkg says binutils is 
at 2.15-5 and thats the only version I can see in the debian pool. This 
is all rather puzzling!

I tried a 2.95 build (with the patch for traps.c) (haven't had time to 
get the old RH 2.96 compiler working yet) and it failed building some of 
the modules..

Cheers,

	David

Alan Young wrote:
> The newer version of GCC should be fine.  I've compiled and run a SMP 2.6.10
> on a DP264 - which is pretty much the same board as your DS20.  I'm currently
> using 3.3.5 from unstable (I think).  gcc identifies itself as Debian 1:3.3.5-6.
> 
> I think the relocation record issue might be due to an old version of binutils.
> I would check to see if you an upgrade that to a more recent version.
> I'm not sure which binutils package I'm currently using.  ld identifies itself as 2.15.
> 
> See this message for a possible fix for the spinlock in 2.6.11:
> https://www.redhat.com/archives/axp-list/2005-February/msg00028.htm
> 
> Alan
> 
> On Wed, 23 Mar 2005 01:19:55 +1030 David Monro <davidm at monro.org.uk> wrote:
> 
> 
>>Ugh. Hate it when I figure out more stuff just after sending the 
>>message. Looks like any module which has a .data.percpu section doesn't 
>>load! Modules with a relocation record of type GPRELHIGH pointing to 
>>.data.percpu get the "Relocation overflow vs section X" message,
>>ones which have the section but no relocation records referring to it 
>>get a "Relocation overflow vs symbolname" error instead.
>>
>>Any clues how to fix that?
>>
>>Cheers,
>>
>>	David
>>
>>David Monro wrote:
>>
>>>Hi,
>>>
>>>ok I know this isn't specifically redhat related, but hey there aren't 
>>>many active alpha lists out there!
>>>
>>>I'm trying to get kernel.org 2.6.10 running on my SMP ds20 alpha system. 
>>>Kernel compiles fine, but _some_ modules fail to load once running, in 
>>>particular the ipv6 and scsi ones (there may be more, but those are the 
>>>ones I'm noticing).
>>>
>>>The error is "Relocation overflow vs section 25" for ipv6 (scsi_mod says 
>>>section 27 instead). Adding a few printks, it seems that its always the 
>>>R_ALPHA_GPRELHIGH case (line 265 of arch/alpha/kernel/module.c), and as 
>>>far as I can tell, the problem is that "value" is more than 0x8000 less 
>>>than "gp" which results in a negative value... The weird thing is, it 
>>>doesn't appear to happen for UP-compiled kernels, only SMP ones!
>>>
>>>This is using gcc version 3.3.5 (Debian 1:3.3.5-8). I tried using gcc 
>>>2.95 (gcc version 2.95.4 20011002 (Debian prerelease)), but that gets a 
>>>parse error on line 55 of arch/alpha/kernel/traps.c. (What compiler 
>>>_should_ I be using? The documentation seems to indicate gcc 2.95.3, but 
>>>I'm finding that hard to believe).
>>>
>>>I can't go forward to 2.6.11 because thats missing _raw_read_trylock for 
>>>alpha, and there doesn't appear to be a patch for that yet. 2.6.8 UP 
>>>works, but SMP just hangs when probing the DAC960 raid controller. Is 
>>>SMP alpha just not very well tested at the moment?
>>>
>>>Cheers,
>>>
>>>    David
>>>
>>>_______________________________________________
>>>axp-list mailing list
>>>axp-list at redhat.com
>>>https://www.redhat.com/mailman/listinfo/axp-list
>>
>>_______________________________________________
>>axp-list mailing list
>>axp-list at redhat.com
>>https://www.redhat.com/mailman/listinfo/axp-list
> 
> 
> _______________________________________________
> axp-list mailing list
> axp-list at redhat.com
> https://www.redhat.com/mailman/listinfo/axp-list



^ permalink raw reply	[flat|nested] 9+ messages in thread

* 2.6.10, alpha, "Relocation overflows" - .data.percpu ?
  2005-03-22 16:54   ` ayoung
  2005-03-23  9:29     ` davidm
@ 2005-03-23 22:01     ` davidm
  2005-03-23 22:41       ` ayoung
  2005-03-23 22:51       ` Jay.Estabrook
  1 sibling, 2 replies; 9+ messages in thread
From: davidm @ 2005-03-23 22:01 UTC (permalink / raw)


Sudden thought - dumb question, are you using any of:
scsi_mod.ko
xfs.ko
ip_conntrack.ko
ipchains.ko
ipfwadm.ko
ipv6.ko

as modules? Its only these 6 which are affected as far as I can tell.

Cheers,

	David

Alan Young wrote:
> The newer version of GCC should be fine.  I've compiled and run a SMP 2.6.10
> on a DP264 - which is pretty much the same board as your DS20.  I'm currently
> using 3.3.5 from unstable (I think).  gcc identifies itself as Debian 1:3.3.5-6.
> 
> I think the relocation record issue might be due to an old version of binutils.
> I would check to see if you an upgrade that to a more recent version.
> I'm not sure which binutils package I'm currently using.  ld identifies itself as 2.15.
> 
> See this message for a possible fix for the spinlock in 2.6.11:
> https://www.redhat.com/archives/axp-list/2005-February/msg00028.htm
> 
> Alan
> 
> On Wed, 23 Mar 2005 01:19:55 +1030 David Monro <davidm at monro.org.uk> wrote:
> 
> 
>>Ugh. Hate it when I figure out more stuff just after sending the 
>>message. Looks like any module which has a .data.percpu section doesn't 
>>load! Modules with a relocation record of type GPRELHIGH pointing to 
>>.data.percpu get the "Relocation overflow vs section X" message,
>>ones which have the section but no relocation records referring to it 
>>get a "Relocation overflow vs symbolname" error instead.
>>
>>Any clues how to fix that?
>>
>>Cheers,
>>
>>	David
>>
>>David Monro wrote:
>>
>>>Hi,
>>>
>>>ok I know this isn't specifically redhat related, but hey there aren't 
>>>many active alpha lists out there!
>>>
>>>I'm trying to get kernel.org 2.6.10 running on my SMP ds20 alpha system. 
>>>Kernel compiles fine, but _some_ modules fail to load once running, in 
>>>particular the ipv6 and scsi ones (there may be more, but those are the 
>>>ones I'm noticing).
>>>
>>>The error is "Relocation overflow vs section 25" for ipv6 (scsi_mod says 
>>>section 27 instead). Adding a few printks, it seems that its always the 
>>>R_ALPHA_GPRELHIGH case (line 265 of arch/alpha/kernel/module.c), and as 
>>>far as I can tell, the problem is that "value" is more than 0x8000 less 
>>>than "gp" which results in a negative value... The weird thing is, it 
>>>doesn't appear to happen for UP-compiled kernels, only SMP ones!
>>>
>>>This is using gcc version 3.3.5 (Debian 1:3.3.5-8). I tried using gcc 
>>>2.95 (gcc version 2.95.4 20011002 (Debian prerelease)), but that gets a 
>>>parse error on line 55 of arch/alpha/kernel/traps.c. (What compiler 
>>>_should_ I be using? The documentation seems to indicate gcc 2.95.3, but 
>>>I'm finding that hard to believe).
>>>
>>>I can't go forward to 2.6.11 because thats missing _raw_read_trylock for 
>>>alpha, and there doesn't appear to be a patch for that yet. 2.6.8 UP 
>>>works, but SMP just hangs when probing the DAC960 raid controller. Is 
>>>SMP alpha just not very well tested at the moment?
>>>
>>>Cheers,
>>>
>>>    David
>>>
>>>_______________________________________________
>>>axp-list mailing list
>>>axp-list at redhat.com
>>>https://www.redhat.com/mailman/listinfo/axp-list
>>
>>_______________________________________________
>>axp-list mailing list
>>axp-list at redhat.com
>>https://www.redhat.com/mailman/listinfo/axp-list
> 
> 
> _______________________________________________
> axp-list mailing list
> axp-list at redhat.com
> https://www.redhat.com/mailman/listinfo/axp-list



^ permalink raw reply	[flat|nested] 9+ messages in thread

* 2.6.10, alpha, "Relocation overflows" - .data.percpu ?
  2005-03-23 22:01     ` davidm
@ 2005-03-23 22:41       ` ayoung
  2005-03-23 22:51       ` Jay.Estabrook
  1 sibling, 0 replies; 9+ messages in thread
From: ayoung @ 2005-03-23 22:41 UTC (permalink / raw)


Hi David,

Well, scsi is static otherwise I can't boot. :-)  And I've been using netfilter as that
replaces ipchains.  The others I don't think I'm using or they are loading as static as
well. So let me change the config file and see if xfs or ipv6 will build as modules. 
Ok. build done.... insmod ./xfs.ko yields:

module xfs: Relocation overflow vs per_cpu__xfstats
insmod: error inserting './xfs.ko': -1 invalid module format

Alan

On Thu, 24 Mar 2005 08:31:09 +1030 David Monro <davidm at monro.org.uk> wrote:

> Sudden thought - dumb question, are you using any of:
> scsi_mod.ko
> xfs.ko
> ip_conntrack.ko
> ipchains.ko
> ipfwadm.ko
> ipv6.ko
> 
> as modules? Its only these 6 which are affected as far as I can tell.
> 
> Cheers,
> 
> 	David
> 
> Alan Young wrote:
> > The newer version of GCC should be fine.  I've compiled and run a SMP 2.6.10
> > on a DP264 - which is pretty much the same board as your DS20.  I'm currently
> > using 3.3.5 from unstable (I think).  gcc identifies itself as Debian 1:3.3.5-6.
> > 
> > I think the relocation record issue might be due to an old version of binutils.
> > I would check to see if you an upgrade that to a more recent version.
> > I'm not sure which binutils package I'm currently using.  ld identifies itself as
> > 2.15.
> > 
> > See this message for a possible fix for the spinlock in 2.6.11:
> > https://www.redhat.com/archives/axp-list/2005-February/msg00028.htm
> > 
> > Alan
> > 
> > On Wed, 23 Mar 2005 01:19:55 +1030 David Monro <davidm at monro.org.uk> wrote:
> > 
> > 
> >>Ugh. Hate it when I figure out more stuff just after sending the 
> >>message. Looks like any module which has a .data.percpu section doesn't 
> >>load! Modules with a relocation record of type GPRELHIGH pointing to 
> >>.data.percpu get the "Relocation overflow vs section X" message,
> >>ones which have the section but no relocation records referring to it 
> >>get a "Relocation overflow vs symbolname" error instead.
> >>
> >>Any clues how to fix that?
> >>
> >>Cheers,
> >>
> >>	David
> >>
> >>David Monro wrote:
> >>
> >>>Hi,
> >>>
> >>>ok I know this isn't specifically redhat related, but hey there aren't 
> >>>many active alpha lists out there!
> >>>
> >>>I'm trying to get kernel.org 2.6.10 running on my SMP ds20 alpha system. 
> >>>Kernel compiles fine, but _some_ modules fail to load once running, in 
> >>>particular the ipv6 and scsi ones (there may be more, but those are the 
> >>>ones I'm noticing).
> >>>
> >>>The error is "Relocation overflow vs section 25" for ipv6 (scsi_mod says 
> >>>section 27 instead). Adding a few printks, it seems that its always the 
> >>>R_ALPHA_GPRELHIGH case (line 265 of arch/alpha/kernel/module.c), and as 
> >>>far as I can tell, the problem is that "value" is more than 0x8000 less 
> >>>than "gp" which results in a negative value... The weird thing is, it 
> >>>doesn't appear to happen for UP-compiled kernels, only SMP ones!
> >>>
> >>>This is using gcc version 3.3.5 (Debian 1:3.3.5-8). I tried using gcc 
> >>>2.95 (gcc version 2.95.4 20011002 (Debian prerelease)), but that gets a 
> >>>parse error on line 55 of arch/alpha/kernel/traps.c. (What compiler 
> >>>_should_ I be using? The documentation seems to indicate gcc 2.95.3, but 
> >>>I'm finding that hard to believe).
> >>>
> >>>I can't go forward to 2.6.11 because thats missing _raw_read_trylock for 
> >>>alpha, and there doesn't appear to be a patch for that yet. 2.6.8 UP 
> >>>works, but SMP just hangs when probing the DAC960 raid controller. Is 
> >>>SMP alpha just not very well tested at the moment?
> >>>
> >>>Cheers,
> >>>
> >>>    David
> >>>
> >>>_______________________________________________



^ permalink raw reply	[flat|nested] 9+ messages in thread

* 2.6.10, alpha, "Relocation overflows" - .data.percpu ?
  2005-03-23 22:01     ` davidm
  2005-03-23 22:41       ` ayoung
@ 2005-03-23 22:51       ` Jay.Estabrook
  2005-03-24 10:22         ` davidm
  1 sibling, 1 reply; 9+ messages in thread
From: Jay.Estabrook @ 2005-03-23 22:51 UTC (permalink / raw)


On Thu, Mar 24, 2005 at 08:31:09AM +1030, David Monro wrote:
> Sudden thought - dumb question, are you using any of:
> scsi_mod.ko
> xfs.ko
> ip_conntrack.ko
> ipchains.ko
> ipfwadm.ko
> ipv6.ko
> 
> as modules? Its only these 6 which are affected as far as I can tell.

Building the SMP kernel from the AC1.0a kernel SRPM
(2.6.11-1.1176axp_FC3), using the GCC compiler from AC1.0a (3.4.x
something), one ends up with (at least) a scsi_mod.ko that will not
load because of the relocation errors.

This was happening with the AC-0.9 SMP kernel as weill, IIRC.

One gets around it by building in the scsi_mod.ko, (choose CONFIG_SCSI=y
instead of CONFIG_SCSI=m).

I've not tried any of those others, but can easily believe that there
are others that exhibit the same problem, as I still some some of
those "percpu"-related messages among the normal boot stream running
the modified SMP kernel. This is in a yum-updated to AC1.0a originally
AC-0.9 XP1000 (yes, it's UP but will run the SMP kernel being tested).

 --Jay++

---------------------------------------------------------------
Jay A Estabrook                            HPTC - LINUX support
Hewlett-Packard Company - ZKO2-3/N30       (603) 884-0301
110 Spit Brook Road, Nashua NH 03062       Jay.Estabrook at hp.com
---------------------------------------------------------------



^ permalink raw reply	[flat|nested] 9+ messages in thread

* 2.6.10, alpha, "Relocation overflows" - .data.percpu ?
  2005-03-23 22:51       ` Jay.Estabrook
@ 2005-03-24 10:22         ` davidm
  0 siblings, 0 replies; 9+ messages in thread
From: davidm @ 2005-03-24 10:22 UTC (permalink / raw)


Ahh! good, I was beginning to think I was going mad :)

Yes I know I can work around it by building them in rather than having 
them as modules, but thats not really the  point. They _should_ work 
fine as modules.

My guess is that this isn't anything to do with the compiler, but is 
some sort of issue with the way that elf section is either defined or 
loaded. Which means I am _way_ out of my depth and wouldn't have a clue 
what to do next :)

Cheers,

	David

Jay Estabrook wrote:
> On Thu, Mar 24, 2005 at 08:31:09AM +1030, David Monro wrote:
> 
>>Sudden thought - dumb question, are you using any of:
>>scsi_mod.ko
>>xfs.ko
>>ip_conntrack.ko
>>ipchains.ko
>>ipfwadm.ko
>>ipv6.ko
>>
>>as modules? Its only these 6 which are affected as far as I can tell.
> 
> 
> Building the SMP kernel from the AC1.0a kernel SRPM
> (2.6.11-1.1176axp_FC3), using the GCC compiler from AC1.0a (3.4.x
> something), one ends up with (at least) a scsi_mod.ko that will not
> load because of the relocation errors.
> 
> This was happening with the AC-0.9 SMP kernel as weill, IIRC.
> 
> One gets around it by building in the scsi_mod.ko, (choose CONFIG_SCSI=y
> instead of CONFIG_SCSI=m).
> 
> I've not tried any of those others, but can easily believe that there
> are others that exhibit the same problem, as I still some some of
> those "percpu"-related messages among the normal boot stream running
> the modified SMP kernel. This is in a yum-updated to AC1.0a originally
> AC-0.9 XP1000 (yes, it's UP but will run the SMP kernel being tested).
> 
>  --Jay++
> 
> ---------------------------------------------------------------
> Jay A Estabrook                            HPTC - LINUX support
> Hewlett-Packard Company - ZKO2-3/N30       (603) 884-0301
> 110 Spit Brook Road, Nashua NH 03062       Jay.Estabrook at hp.com
> ---------------------------------------------------------------
> 
> _______________________________________________
> axp-list mailing list
> axp-list at redhat.com
> https://www.redhat.com/mailman/listinfo/axp-list



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-03-24 10:22 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-22 14:26 2.6.10, alpha, "Relocation overflows" davidm
2005-03-22 14:49 ` 2.6.10, alpha, "Relocation overflows" - .data.percpu ? davidm
2005-03-22 16:54   ` ayoung
2005-03-23  9:29     ` davidm
2005-03-23 22:01     ` davidm
2005-03-23 22:41       ` ayoung
2005-03-23 22:51       ` Jay.Estabrook
2005-03-24 10:22         ` davidm
2005-03-22 18:23 ` 2.6.10, alpha, "Relocation overflows" Jay.Estabrook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox