Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* DEC PWS433a and 2.1.61VGER don't match...
@ 1997-11-10 19:45 Matti Aarnio
  0 siblings, 0 replies; 5+ messages in thread
From: Matti Aarnio @ 1997-11-10 19:45 UTC (permalink / raw)


Hi,

	Apparently I am one of the rare people running 2.1 series
	kernels on Alpha, as all questions we see are about 2.0 ...

	That said, I have DEC PWS 433a which system is also known
	as MIATA and the chipset is PYXIS.

	Linus' 2.1.61 does not (so far) contain support for this
	model, but luckily the so called VGER series has included
	patches for it.

	I have been wondering, why my test kernels of VGER series
	have rather consistently failed to boot with AIC7XXX SCSI 
	controller, and today I finally found a small difference
	between working arch/alpha/kernel/pyxis.c, and failing one
	(on VGER series):

#define vuip  volatile unsigned int *

Ok:   *((vuip)SOME_ADDRESS) = ...
Fail: *(viup)SOME_ADDRESS = ...

	Having done that change the system boots fine, but then I found
	out that there is something amiss in top-level Makefile/Rules.make
	and generated modules don't load due to mismatched symbols...
	Namely on Alpha the file  <linux/modversions.h>  does not get
	<linux/modules/alpha_ksyms.ver> into it automatically.
	Removing  include/linux/modversions.h  and doing:
		make clean boot modules modules_install
	regenerates the file with missing entry, and generates working
	ksyms.

	Anybody with good ideas to get that to work without that manual
	intervention ?

	The reason why I want to use 2.1.X series is IPv6, and there
	too is something amiss.  Module ipv6 is missing  csum_ipv6_magic
	which is defined in arch/alpha/lib/, but never linked in with
	the module.  Does any portable way exist for doing this type
	of architecture specific linkages on modules, or should we just
	yield, and add things like this on  net/ipv6/Makefile:

ifeq ($(ARCH),alpha)
IPV6_OBJS += ../../arch/alpha/lib/csum_ipv6_magic.o
endif

	Oh yes, syslogd is throwing exceptions at  __copy_user
	(copy_user.S, line 55, or line 69, depending which address
	 you refer to at the exception message):

syslogd: Exception at [<fffffc000041b860>] (fffffc000041b91c)

	I am way too tired to figure this one out today..

/Matti Aarnio <matti.aarnio@tele.fi>

-- 
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

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

* Re: DEC PWS433a and 2.1.61VGER don't match...
@ 1997-11-11 19:14 David S. Miller
  1997-11-11 20:17 ` Matti Aarnio
  0 siblings, 1 reply; 5+ messages in thread
From: David S. Miller @ 1997-11-11 19:14 UTC (permalink / raw)


Date: 	Mon, 10 Nov 1997 21:45:35 +0200 (EET)
   From: Matti Aarnio <matti.aarnio@tele.fi>

	   I have been wondering, why my test kernels of VGER series
	   have rather consistently failed to boot with AIC7XXX SCSI 
	   controller, and today I finally found a small difference
	   between working arch/alpha/kernel/pyxis.c, and failing one
	   (on VGER series):

   #define vuip  volatile unsigned int *

   Ok:   *((vuip)SOME_ADDRESS) = ...
   Fail: *(viup)SOME_ADDRESS = ...

This smells of a GCC bug, but it is very strange.  What does CPP
pre-processed output of these two cases look like btw?

	   Does any portable way exist for doing this type
	   of architecture specific linkages on modules, or should we just
	   yield, and add things like this on  net/ipv6/Makefile:

   ifeq ($(ARCH),alpha)
   IPV6_OBJS += ../../arch/alpha/lib/csum_ipv6_magic.o
   endif

No this is horrible.  Can we find some other way to deal with this?
I really think maybe that csum_ipv6_magic code should be in the other
checksum.c code, #ifdef'd out when IPv6 is not compiled in.  Would
this work?

Later,
David S. Miller
davem@dm.cobaltmicro.com

-- 
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

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

* Re: DEC PWS433a and 2.1.61VGER don't match...
  1997-11-11 19:14 DEC PWS433a and 2.1.61VGER don't match David S. Miller
@ 1997-11-11 20:17 ` Matti Aarnio
  1997-11-11 20:46   ` Richard Henderson
  0 siblings, 1 reply; 5+ messages in thread
From: Matti Aarnio @ 1997-11-11 20:17 UTC (permalink / raw)


> Date:	Tue, 11 Nov 1997 11:14:57 -0800
> From:	"David S. Miller" <davem@dm.cobaltmicro.com>
>    Date: 	Mon, 10 Nov 1997 21:45:35 +0200 (EET)
>    From: Matti Aarnio <matti.aarnio@tele.fi>
> 
> 	   I have been wondering, why my test kernels of VGER series
> 	   have rather consistently failed to boot with AIC7XXX SCSI 
> 	   controller, and today I finally found a small difference
> 	   between working arch/alpha/kernel/pyxis.c, and failing one
> 	   (on VGER series):
> 
>    #define vuip  volatile unsigned int *
> 
>    Ok:   *((vuip)SOME_ADDRESS) = ...
>    Fail: *(viup)SOME_ADDRESS = ...
> 
> This smells of a GCC bug, but it is very strange.  What does CPP
> pre-processed output of these two cases look like btw?

	Bug in Alpha targetted gcc 2.7.2.3 ?   What else would be new ?
	(No, I can't point my finger at anything definitive, just that
	 sometimes my programs don't work at Alpha with GCC compilation.
	 Those failing modules are huge, and fail only with -O ... )

	Most of what appears in the source with  (vuip) cast  are macroes,
	and it may well be that a macro-expansion surprise has bitten
	in here...  Hmm..  No, can't say it definitely, but most of
	include/asm-alpha/pyxis.h  defined values are within parens.
	Perhaps the pcibios_*() routines were only ones failing ?
	Those cast  unsigned long  coded addresses to pointers, and
	try to store/extract data thru cast pointers.

> 	   Does any portable way exist for doing this type
> 	   of architecture specific linkages on modules, or should we just
> 	   yield, and add things like this on  net/ipv6/Makefile:
> 
>    ifeq ($(ARCH),alpha)
>    IPV6_OBJS += ../../arch/alpha/lib/csum_ipv6_magic.o
>    endif
> 
> No this is horrible.  Can we find some other way to deal with this?
> I really think maybe that csum_ipv6_magic code should be in the other
> checksum.c code, #ifdef'd out when IPv6 is not compiled in.  Would
> this work?

	Nope, IPv4 and IPv6 codes should not be mixed to such
	an extent that we can not have IPv6 without IPv4.
	(Or am I just weirdo with this type of thinking ?)

	Do note that all works just fine when you do monolithic
	kernel compilation.  This problem appears only at modular
	IPv6.  (I have no idea, why same source on intel box did
	not need special tricks for producing working ipv6 module.)

> Later,
> David S. Miller
> davem@dm.cobaltmicro.com

/Matti Aarnio <matti.aarnio@tele.fi>

-- 
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

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

* Re: DEC PWS433a and 2.1.61VGER don't match...
  1997-11-11 20:17 ` Matti Aarnio
@ 1997-11-11 20:46   ` Richard Henderson
  0 siblings, 0 replies; 5+ messages in thread
From: Richard Henderson @ 1997-11-11 20:46 UTC (permalink / raw)


On Tue, Nov 11, 1997 at 10:17:45PM +0200, Matti Aarnio wrote:
> 	Bug in Alpha targetted gcc 2.7.2.3 ?   What else would be new ?

Nothing at all, sadly.

> 	Most of what appears in the source with  (vuip) cast  are macroes,
> 	and it may well be that a macro-expansion surprise has bitten
> 	in here...  Hmm..  No, can't say it definitely, but most of
> 	include/asm-alpha/pyxis.h  defined values are within parens.

Indeed, I thought I'd made sure of that when I made the change.  I
don't suppose you could save me a bit of trouble and send me the
preprocessed pyxis.c files for the working and non-working kernel?
I'd like to see what difference is made in the assembly.

> 	(I have no idea, why same source on intel box did
> 	not need special tricks for producing working ipv6 module.)

The intel ipv6 csum magic routine is inline, isn't it?

r~

-- 
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

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

* Re: DEC PWS433a and 2.1.61VGER don't match...
       [not found] <19971111124626.31896@dot.cygnus.com>
@ 1997-11-11 23:23 ` Matti Aarnio
  0 siblings, 0 replies; 5+ messages in thread
From: Matti Aarnio @ 1997-11-11 23:23 UTC (permalink / raw)


Richard Henderson comments on my email:
> > 	Most of what appears in the source with  (vuip) cast  are macroes,
> > 	and it may well be that a macro-expansion surprise has bitten
> > 	in here...  Hmm..  No, can't say it definitely, but most of
> > 	include/asm-alpha/pyxis.h  defined values are within parens.
> 
> Indeed, I thought I'd made sure of that when I made the change.  I
> don't suppose you could save me a bit of trouble and send me the
> preprocessed pyxis.c files for the working and non-working kernel?
> I'd like to see what difference is made in the assembly.

	I did compile unmodified and modified pyxis.c into pyxis.s
	files (same command line for both runs).

	Doing a diff revealed NO difference :-(
	The gcc and pyxis.c have thus been releaved
	from that suspicion.

	Which means my next reboot may not be as smooth as
	the previous one was (if something like 9 out of 10 fails
	as the previous rate has been...)

> > 	(I have no idea, why same source on intel box did
> > 	not need special tricks for producing working ipv6 module.)
> 
> The intel ipv6 csum magic routine is inline, isn't it?

	Propably.  (Those who don't know, Richard made separate
	assembler module for that routine, which requires special
	linkage to be usable in modular IPv6.)

> r~

/Matti Aarnio

-- 
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

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

end of thread, other threads:[~1997-11-11 23:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-11-11 19:14 DEC PWS433a and 2.1.61VGER don't match David S. Miller
1997-11-11 20:17 ` Matti Aarnio
1997-11-11 20:46   ` Richard Henderson
     [not found] <19971111124626.31896@dot.cygnus.com>
1997-11-11 23:23 ` Matti Aarnio
  -- strict thread matches above, loose matches on Subject: below --
1997-11-10 19:45 Matti Aarnio

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