Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* 2.6.0-test9 partial success
@ 2003-10-27  5:00 Arkadiy Chapkis - Arc
  2003-10-27  7:36 ` Stefan Reinauer
  2003-10-27 10:39 ` Ivan Kokshaysky
  0 siblings, 2 replies; 10+ messages in thread
From: Arkadiy Chapkis - Arc @ 2003-10-27  5:00 UTC (permalink / raw)
  To: AXP-LIST

  Hello everyone,

  Well, I finally get 2.6.0 series booted on my machine, this time I didn't
user initrd image and included most important drivers in the kernel. Everything
looks OK (PWS500a aka Miata), except sound. None of alsa snd_sb* wants to load,
then I searched some more and thought I have ES18XX. While trying to load this
one, I got the following messages:

Oct 26 23:05:24 baltika kernel: module snd_page_alloc: Relocation overflow vs
section 20
Oct 26 23:05:24 baltika kernel: snd_pcm: Unknown symbol snd_dma_get_reserved
Oct 26 23:05:24 baltika kernel: snd_pcm: Unknown symbol snd_dma_free_reserved
Oct 26 23:05:24 baltika kernel: snd_pcm: Unknown symbol snd_dma_free_pages
Oct 26 23:05:24 baltika kernel: snd_pcm: Unknown symbol snd_malloc_pages
Oct 26 23:05:24 baltika kernel: snd_pcm: Unknown symbol snd_dma_set_reserved
Oct 26 23:05:24 baltika kernel: snd_pcm: Unknown symbol snd_dma_alloc_pages
Oct 26 23:05:24 baltika kernel: snd_pcm: Unknown symbol snd_free_pages
Oct 26 23:05:24 baltika kernel: snd_es18xx: Unknown symbol snd_pcm_new
Oct 26 23:05:24 baltika kernel: snd_es18xx: Unknown symbol
snd_pcm_format_unsigned
Oct 26 23:05:24 baltika kernel: snd_es18xx: Unknown symbol
snd_pcm_lib_preallocate_isa_pages_for_all
Oct 26 23:05:24 baltika kernel: snd_es18xx: Unknown symbol
snd_pcm_lib_malloc_pages
Oct 26 23:05:24 baltika kernel: snd_es18xx: Unknown symbol snd_pcm_lib_ioctl
Oct 26 23:05:24 baltika kernel: snd_es18xx: Unknown symbol
snd_pcm_lib_free_pages
Oct 26 23:05:24 baltika kernel: snd_es18xx: Unknown symbol snd_pcm_set_ops
Oct 26 23:05:24 baltika kernel: snd_es18xx: Unknown symbol
_snd_pcm_hw_param_setempty
Oct 26 23:05:24 baltika kernel: snd_es18xx: Unknown symbol
snd_pcm_lib_preallocate_free_for_all
Oct 26 23:05:24 baltika kernel: snd_es18xx: Unknown symbol
snd_pcm_hw_constraint_ratnums
Oct 26 23:05:24 baltika kernel: snd_es18xx: Unknown symbol
snd_pcm_period_elapsed
Oct 26 23:05:24 baltika kernel: snd_es18xx: Unknown symbol snd_pcm_format_width

  My guess is that the first line is the culprit - because snd_page_alloc
doesn't load, everything else is not loading either.
  My question is: should I file kernel bug report, or is it something I do
wrong?



                                      Arc C.
                                      achapkis@dls.net



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

* Re: 2.6.0-test9 partial success
  2003-10-27  5:00 2.6.0-test9 partial success Arkadiy Chapkis - Arc
@ 2003-10-27  7:36 ` Stefan Reinauer
  2003-10-27 10:39 ` Ivan Kokshaysky
  1 sibling, 0 replies; 10+ messages in thread
From: Stefan Reinauer @ 2003-10-27  7:36 UTC (permalink / raw)
  To: axp-list

* Arkadiy Chapkis - Arc <achapkis@shells.dls.net> [031027 06:00]:
>   Hello everyone,
> 
>   Well, I finally get 2.6.0 series booted on my machine, this time I didn't
> user initrd image and included most important drivers in the kernel. Everything
> looks OK (PWS500a aka Miata), except sound. None of alsa snd_sb* wants to load,
> then I searched some more and thought I have ES18XX. While trying to load this
> one, I got the following messages:

[..] 

>   My guess is that the first line is the culprit - because snd_page_alloc
> doesn't load, everything else is not loading either.
>   My question is: should I file kernel bug report, or is it something I do
> wrong?

Have you tried newer binutils? What gcc are you using?

  Stefan


-- 
     Stefan Reinauer, SUSE LINUX AG
Teamleader Architecture Development



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

* Re: 2.6.0-test9 partial success
  2003-10-27  5:00 2.6.0-test9 partial success Arkadiy Chapkis - Arc
  2003-10-27  7:36 ` Stefan Reinauer
@ 2003-10-27 10:39 ` Ivan Kokshaysky
  1 sibling, 0 replies; 10+ messages in thread
From: Ivan Kokshaysky @ 2003-10-27 10:39 UTC (permalink / raw)
  To: axp-list

On Mon, Oct 27, 2003 at 12:00:49AM -0500, Arkadiy Chapkis - Arc wrote:
> Oct 26 23:05:24 baltika kernel: module snd_page_alloc: Relocation overflow vs
> section 20

I've seen that too.

>   My guess is that the first line is the culprit - because snd_page_alloc
> doesn't load, everything else is not loading either.

Exactly.

>   My question is: should I file kernel bug report, or is it something I do
> wrong?

I think there is a problem with incorrect sign extension in calculation
of GPRELHIGH value in alpha/kernel/module.c. The appended patch works
for me, though I'm not sure it's right way to fix that - I've sent this
to rth 3 or 4 times, but it wasn't applied...

Ivan.

--- 2.6/arch/alpha/kernel/module.c	Wed May 28 01:05:20 2003
+++ linux/arch/alpha/kernel/module.c	Mon Aug 11 23:23:02 2003
@@ -259,7 +259,7 @@ apply_relocate_add(Elf64_Shdr *sechdrs, 
 			*(u64 *)location = value;
 			break;
 		case R_ALPHA_GPRELHIGH:
-			value = (value - gp + 0x8000) >> 16;
+			value = (long)(value - gp + 0x8000) >> 16;
 			if ((short) value != value)
 				goto reloc_overflow;
 			*(u16 *)location = value;



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

* Re: 2.6.0-test9 partial success
@ 2003-10-27 13:08 Arkadiy Chapkis - Arc
  0 siblings, 0 replies; 10+ messages in thread
From: Arkadiy Chapkis - Arc @ 2003-10-27 13:08 UTC (permalink / raw)
  To: axp-list

# gcc -v
Reading specs from
/usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/3.3.1/specs
Configured with: ../gcc-3.3.1/configure --enable-shared --enable-threads
Thread model: posix
gcc version 3.3.1
# ld -version
GNU ld version 2.14.90 20030915


>>   Hello everyone,
>> 
>>   Well, I finally get 2.6.0 series booted on my machine, this time I didn't
>> user initrd image and included most important drivers in the kernel. Everything
>> looks OK (PWS500a aka Miata), except sound. None of alsa snd_sb* wants to load,
>> then I searched some more and thought I have ES18XX. While trying to load this
>> one, I got the following messages:
>
>[..] 
>
>>   My guess is that the first line is the culprit - because snd_page_alloc
>> doesn't load, everything else is not loading either.
>>   My question is: should I file kernel bug report, or is it something I do
>> wrong?
>
>Have you tried newer binutils? What gcc are you using?
>
>  Stefan
>
>
>-- 
>     Stefan Reinauer, SUSE LINUX AG
>Teamleader Architecture Development
>
>
>_______________________________________________
>axp-list mailing list
>axp-list@redhat.com
>https://www.redhat.com/mailman/listinfo/axp-list


                                      Arc C.
                                      achapkis@dls.net



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

* Re: 2.6.0-test9 partial success
@ 2003-10-27 19:58 Arkadiy Chapkis - Arc
  2003-10-27 20:56 ` Jay Estabrook
  0 siblings, 1 reply; 10+ messages in thread
From: Arkadiy Chapkis - Arc @ 2003-10-27 19:58 UTC (permalink / raw)
  To: axp-list

  Ivan,

  Thank you very much, it worked. I'm still out of sound, es18xx module 
didn't think I have this card, but I loaded it with isapnp disabled. Still,
when I try to send an .mp3 file to /dev/snd/pcmC0D0c I get 
cat: write error: Invalid argument
and it I try /dev/snd/pcmC0D0p I get
cat: write error: File descriptor in bad state

  Now I think I am doing something wrong.

>
>Exactly.
>
>>   My question is: should I file kernel bug report, or is it something I do
>> wrong?
>
>I think there is a problem with incorrect sign extension in calculation
>of GPRELHIGH value in alpha/kernel/module.c. The appended patch works
>for me, though I'm not sure it's right way to fix that - I've sent this
>to rth 3 or 4 times, but it wasn't applied...
>
>Ivan.
>
>--- 2.6/arch/alpha/kernel/module.c	Wed May 28 01:05:20 2003
>+++ linux/arch/alpha/kernel/module.c	Mon Aug 11 23:23:02 2003
>@@ -259,7 +259,7 @@ apply_relocate_add(Elf64_Shdr *sechdrs, 
> 			*(u64 *)location = value;
> 			break;
> 		case R_ALPHA_GPRELHIGH:
>-			value = (value - gp + 0x8000) >> 16;
>+			value = (long)(value - gp + 0x8000) >> 16;
> 			if ((short) value != value)
> 				goto reloc_overflow;
> 			*(u16 *)location = value;
>
>
>_______________________________________________
>axp-list mailing list
>axp-list@redhat.com
>https://www.redhat.com/mailman/listinfo/axp-list


                                      Arc C.
                                      achapkis@dls.net



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

* Re: 2.6.0-test9 partial success
@ 2003-10-27 20:36 Arkadiy Chapkis - Arc
  2003-10-27 22:17 ` Jay Estabrook
  0 siblings, 1 reply; 10+ messages in thread
From: Arkadiy Chapkis - Arc @ 2003-10-27 20:36 UTC (permalink / raw)
  To: axp-list

  This was my first try, but none of snd_sb* work. I don't have *just* sb:
# modprobe -l|grep snd.*sb
/lib/modules/2.6.0-test9/kernel/sound/isa/sb/snd-sbawe.ko
/lib/modules/2.6.0-test9/kernel/sound/isa/sb/snd-sb8.ko
/lib/modules/2.6.0-test9/kernel/sound/isa/sb/snd-sb8-dsp.ko
/lib/modules/2.6.0-test9/kernel/sound/isa/sb/snd-sb16.ko
/lib/modules/2.6.0-test9/kernel/sound/isa/sb/snd-sb16-dsp.ko
/lib/modules/2.6.0-test9/kernel/sound/isa/sb/snd-sb16-csp.ko
/lib/modules/2.6.0-test9/kernel/sound/isa/sb/snd-sb-common.ko

  sbawe,sb8,sb16 all cannot see the sound card.

I add isapnp=0 only to es18xx. Should I try one of sb's with isapnp=0?

>>   Thank you very much, it worked. I'm still out of sound, es18xx module 
>> didn't think I have this card, but I loaded it with isapnp disabled. Still,
>> when I try to send an .mp3 file to /dev/snd/pcmC0D0c I get 
>> cat: write error: Invalid argument
>> and it I try /dev/snd/pcmC0D0p I get
>> cat: write error: File descriptor in bad state
>> 
>>   Now I think I am doing something wrong.
>
>On the MIATA with 2.6.0-test4 and ALSA, I had the best luck using the
>SB driver, as the ES18xx one I could not get to work.
>
>Did you try adding "isapnp=0" to the module arguments?
>
>BTW, the ES18xx driver *did* work on the XP1000; go figure... ;-}
>
> --Jay++
>
>-----------------------------------------------------------------------------
>Jay A Estabrook                            HPTC - LINUX support
>Hewlett-Packard Company - MRO1-2/K15       (508) 467-2080
>200 Forest Street, Marlboro MA 01752       Jay.Estabrook@hp.com
>-----------------------------------------------------------------------------
>
>
>_______________________________________________
>axp-list mailing list
>axp-list@redhat.com
>https://www.redhat.com/mailman/listinfo/axp-list


                                      Arc C.
                                      achapkis@dls.net



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

* Re: 2.6.0-test9 partial success
  2003-10-27 19:58 Arkadiy Chapkis - Arc
@ 2003-10-27 20:56 ` Jay Estabrook
  0 siblings, 0 replies; 10+ messages in thread
From: Jay Estabrook @ 2003-10-27 20:56 UTC (permalink / raw)
  To: axp-list

On Mon, Oct 27, 2003 at 02:58:42PM -0500, Arkadiy Chapkis - Arc wrote:
> 
>   Thank you very much, it worked. I'm still out of sound, es18xx module 
> didn't think I have this card, but I loaded it with isapnp disabled. Still,
> when I try to send an .mp3 file to /dev/snd/pcmC0D0c I get 
> cat: write error: Invalid argument
> and it I try /dev/snd/pcmC0D0p I get
> cat: write error: File descriptor in bad state
> 
>   Now I think I am doing something wrong.

On the MIATA with 2.6.0-test4 and ALSA, I had the best luck using the
SB driver, as the ES18xx one I could not get to work.

Did you try adding "isapnp=0" to the module arguments?

BTW, the ES18xx driver *did* work on the XP1000; go figure... ;-}

 --Jay++

-----------------------------------------------------------------------------
Jay A Estabrook                            HPTC - LINUX support
Hewlett-Packard Company - MRO1-2/K15       (508) 467-2080
200 Forest Street, Marlboro MA 01752       Jay.Estabrook@hp.com
-----------------------------------------------------------------------------



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

* Re: 2.6.0-test9 partial success
  2003-10-27 20:36 Arkadiy Chapkis - Arc
@ 2003-10-27 22:17 ` Jay Estabrook
  0 siblings, 0 replies; 10+ messages in thread
From: Jay Estabrook @ 2003-10-27 22:17 UTC (permalink / raw)
  To: axp-list

On Mon, Oct 27, 2003 at 03:36:30PM -0500, Arkadiy Chapkis - Arc wrote:
> 
> I add isapnp=0 only to es18xx. Should I try one of sb's with isapnp=0?

I believe I got it to work with sb8.

Good luck.

 --Jay++

-----------------------------------------------------------------------------
Jay A Estabrook                            HPTC - LINUX support
Hewlett-Packard Company - MRO1-2/K15       (508) 467-2080
200 Forest Street, Marlboro MA 01752       Jay.Estabrook@hp.com
-----------------------------------------------------------------------------



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

* Re: 2.6.0-test9 partial success
@ 2003-10-28  5:09 Arkadiy Chapkis - Arc
  2003-10-28 19:27 ` Jay Estabrook
  0 siblings, 1 reply; 10+ messages in thread
From: Arkadiy Chapkis - Arc @ 2003-10-28  5:09 UTC (permalink / raw)
  To: axp-list

  OK, I finally got sound to work. Unfortunately I had to go back to OSS
modules, as neither one of ALSA worked for me. Unfortunately, because it seems
that OSS will be going away and the best I could get with ALSA
snd_sb8 is some hissing sound while playing with aplay. Not to mention that
/dev/snd/pcmC0D0* weren't available (I made the with MAKDEV.snd, but couldn't
redirect a sound file to those). I tried every dma setting and had to use
alsamixer to upped the channels every time I loaded modules.

  I am still very gratefull to Ivan for his patch (who knows, maybe OSS
wouldn't load as well if not for this patch and I wouldn't be able to listen to
M. Magomaev right now). Also I'd like to thank Jay for his pointers (I may
still need them in future).

>
>I think there is a problem with incorrect sign extension in calculation
>of GPRELHIGH value in alpha/kernel/module.c. The appended patch works
>for me, though I'm not sure it's right way to fix that - I've sent this
>to rth 3 or 4 times, but it wasn't applied...
>
>Ivan.
>
>--- 2.6/arch/alpha/kernel/module.c	Wed May 28 01:05:20 2003
>+++ linux/arch/alpha/kernel/module.c	Mon Aug 11 23:23:02 2003
>@@ -259,7 +259,7 @@ apply_relocate_add(Elf64_Shdr *sechdrs, 
> 			*(u64 *)location = value;
> 			break;
> 		case R_ALPHA_GPRELHIGH:
>-			value = (value - gp + 0x8000) >> 16;
>+			value = (long)(value - gp + 0x8000) >> 16;
> 			if ((short) value != value)
> 				goto reloc_overflow;
> 			*(u16 *)location = value;
>
>


                                      Arc C.
                                      achapkis@dls.net



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

* Re: 2.6.0-test9 partial success
  2003-10-28  5:09 Arkadiy Chapkis - Arc
@ 2003-10-28 19:27 ` Jay Estabrook
  0 siblings, 0 replies; 10+ messages in thread
From: Jay Estabrook @ 2003-10-28 19:27 UTC (permalink / raw)
  To: axp-list

On Tue, Oct 28, 2003 at 12:09:34AM -0500, Arkadiy Chapkis - Arc wrote:
>
> OK, I finally got sound to work. Unfortunately I had to go back to
> OSS modules, as neither one of ALSA worked for me. Unfortunately,
> because it seems that OSS will be going away and the best I could
> get with ALSA snd_sb8 is some hissing sound while playing with
> aplay. Not to mention that /dev/snd/pcmC0D0* weren't available (I
> made the with MAKDEV.snd, but couldn't redirect a sound file to
> those). I tried every dma setting and had to use alsamixer to upped
> the channels every time I loaded modules.

OK, I just went back to duplicate what I'd done before to get it working
on my MIATA, and that was (under 2.6.0-test4):

1. modprobe -v snd-sb8 port=0x220 irq=5 dma8=1

This should succeed with no error messages, and result in quite a few
modules getting loaded.

2. modprobe -v snd-pcm-oss

This loads up the two OSS-compatibility modules needed by the ALSA stuff
in order to handle the apps that were built only for the OSS API.

3. aumix

Adjusted all sound levels (VOL/SYNTH/PCM), as they were initially 0.

4. playwave /usr/share/sounds/KDE_Startup_new.wav

This should be audible.

5. XMMS

I used this to play several MP3 files I had lying around.

Note that the rear-panel speaker output jack was a good bit loader than
the front-panel headphone jack, for some reason.

All this was under a pretty-much stock RH 7.2 for Alpha install with
updates through May 2003, and used a 2.6.0-test4 kernel with sound
modules.

Good luck.

 --Jay++

-----------------------------------------------------------------------------
Jay A Estabrook                            HPTC - LINUX support
Hewlett-Packard Company - MRO1-2/K15       (508) 467-2080
200 Forest Street, Marlboro MA 01752       Jay.Estabrook@hp.com
-----------------------------------------------------------------------------



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

end of thread, other threads:[~2003-10-28 19:31 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-27  5:00 2.6.0-test9 partial success Arkadiy Chapkis - Arc
2003-10-27  7:36 ` Stefan Reinauer
2003-10-27 10:39 ` Ivan Kokshaysky
  -- strict thread matches above, loose matches on Subject: below --
2003-10-27 13:08 Arkadiy Chapkis - Arc
2003-10-27 19:58 Arkadiy Chapkis - Arc
2003-10-27 20:56 ` Jay Estabrook
2003-10-27 20:36 Arkadiy Chapkis - Arc
2003-10-27 22:17 ` Jay Estabrook
2003-10-28  5:09 Arkadiy Chapkis - Arc
2003-10-28 19:27 ` Jay Estabrook

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