Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sound on IBM 44P-170 - revisited
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
trigggl
Apprentice
Apprentice


Joined: 26 Aug 2007
Posts: 234
Location: Arkansas

PostPosted: Sat Aug 09, 2008 2:26 pm    Post subject: Sound on IBM 44P-170 - revisited Reply with quote

I decided to try to get the onboard sound working on my RS6000 again.

I know from firmware that the onboard sound is cs4236 which is an ISA device. Unfortunately, ISA is not an option, for whatever reason, in the 64-bit kernel. I had to hack the config files of the kernel to allow the ISA selection. I just realized that there is also a isapnp option that I should probably select after that.

Now, I'm running my new kernel with the cs4236 module as well as the cs4232 just in case. I think I saw some IBM documentation saying 4232 even though the firmware says 4236. Anyways, here's why I believe I'm getting closer.

I've pretty much given up on the card being detected by isapnp, so I'm trying different comman line modprobe options while checking the dmesg messages. I started with the basic options so that dmesg told me what was missing or incorrect. As I added them one by one, this is where I've made it to.

modprobe snd-cs4236 isapnp=0 cport=0x120 fm_port=0x220 port=0x534 irq=5 dma1=0 dma2=1
Code:
CS4236+ chip detected, but control port 0x120 is not valid
pnp: the driver 'cs4236_isapnp' has been registered



modprobe snd-cs4236 isapnp=0 cport=0x531 fm_port=0x220 port=0x534 irq=5 dma1=0 dma2=1
Code:
cs4231: can't grab control port 0x531
pnp: the driver 'cs4236_isapnp' has been registered


modprobe snd-cs4236 isapnp=0 cport=0x538 fm_port=0x220 port=0x534 irq=5 dma1=0 dma2=1
Code:
------------[ cut here ]------------
kernel BUG at include/asm/dma-mapping.h:109!
Oops: Exception in kernel mode, sig: 5 [#1]
NUMA pSeries
Modules linked in: snd_cs4236 snd_cs4236_lib snd_opl3_lib snd_hwdep snd_cs4231_lib snd_pcm snd_page_alloc snd_mpu401_uart snd_rawmidi snd_seq_oss snd_seq_midi_event snd_seq snd_timer snd_seq_device snd soundcore
NIP: d000000000190730 LR: d0000000001fcdf4 CTR: d00000000019068c
REGS: c00000005178f0c0 TRAP: 0700   Not tainted  (2.6.24-gentoo-r3)
MSR: a000000000029032 <EE,ME,IR,DR>  CR: 24002482  XER: 00000000
TASK = c0000000391117e0[31320] 'modprobe' THREAD: c00000005178c000
GPR00: 0000000000000001 c00000005178f340 d00000000019b288 0000000000000000
GPR04: 0000000000000000 0000000000010000 c00000005b04dce0 0000000000010000
GPR08: ffffffffffffffff 0000000000000000 0000000000000000 d00000000019068c
GPR12: d0000000001fde78 c000000000576b80 d000000000116aa0 d0000000002c4e50
GPR16: d0000000001140c0 000000000000001d 00000000000000db 0000000000000000
GPR20: 0000000000000124 c000000000569bf0 c000000059ee2f90 c000000059ee2f50
GPR24: c00000005b04da80 0000000000000002 0000000000000000 0000000000010000
GPR28: 0000000000010000 c00000005b04dce0 d00000000019b080 0000000000000000
NIP [d000000000190730] .snd_dma_alloc_pages+0xa4/0x174 [snd_page_alloc]
LR [d0000000001fcdf4] .snd_pcm_lib_preallocate_pages+0xb0/0x110 [snd_pcm]
Call Trace:
[c00000005178f340] [c00000005178f3d0] 0xc00000005178f3d0 (unreliable)
[c00000005178f3d0] [d0000000001fcdf4] .snd_pcm_lib_preallocate_pages+0xb0/0x110 [snd_pcm]
[c00000005178f470] [d0000000001fcea8] .snd_pcm_lib_preallocate_pages_for_all+0x54/0xbc [snd_pcm]
[c00000005178f520] [d0000000001b15b8] .snd_cs4231_pcm+0x148/0x188 [snd_cs4231_lib]
[c00000005178f5c0] [d0000000002413a4] .snd_cs4236_pcm+0x1c/0x68 [snd_cs4236_lib]
[c00000005178f650] [d0000000002c0428] .snd_cs423x_probe+0xe4/0x2c4 [snd_cs4236]
[c00000005178f720] [d0000000002c0684] .snd_cs423x_isa_probe+0x7c/0xc8 [snd_cs4236]
[c00000005178f7c0] [c0000000002aa4fc] .isa_bus_probe+0x3c/0x58
[c00000005178f830] [c0000000002a4058] .driver_probe_device+0x114/0x1fc
[c00000005178f8d0] [c0000000002a30dc] .bus_for_each_drv+0x78/0xdc
[c00000005178f990] [c0000000002a4338] .device_attach+0x98/0xe8
[c00000005178fa20] [c0000000002a2e74] .bus_attach_device+0x48/0x9c
[c00000005178fab0] [c0000000002a150c] .device_add+0x384/0x618
[c00000005178fb80] [c0000000002aa7ac] .isa_register_driver+0xbc/0x16c
[c00000005178fc30] [d0000000002c0d44] .alsa_card_cs423x_init+0x24/0x600 [snd_cs4236]
[c00000005178fcb0] [c00000000006710c] .sys_init_module+0x1440/0x1588
[c00000005178fe30] [c00000000000852c] syscall_exit+0x0/0x40
Instruction dump:
3be0ffff 78098bc2 7929f843 381f0001 7c1f07b4 4082fff4 2fa30000 39200000
419e0008 e92301c0 7d200074 7800d182 <0b000000> e9290000 3c800001 38bd0018
---[ end trace 231f17e0e3580de1 ]---


Perhaps I chose the wrong irq or dma settings? Either way, it looks like I'm getting closer to the OS actually using the device.
_________________
Greg
Back to top
View user's profile Send private message
trigggl
Apprentice
Apprentice


Joined: 26 Aug 2007
Posts: 234
Location: Arkansas

PostPosted: Fri Nov 21, 2008 3:57 pm    Post subject: Sound revisited again Reply with quote

OK, I'm getting bored so I'm trying this again. I'm trying to install media-sound/alsa-driver-1.0.18, but even though I put cs4236 in my make.conf file, I'm not able to select it for the build.

Quote:
[ebuild N ] media-sound/alsa-driver-1.0.18 USE="midi oss -debug" ALSA_CARDS="mpu401 pc98-cs4232 powermac soc (-ad1816a) (-ad1848) -ad1848-lib -ad1889 (-adlib) -ali5451 (-als100) -als300 -als4000 -aoa -aoa-fabric-layout -aoa-onyx -aoa-soundbus -aoa-soundbus-i2s -aoa-tas -aoa-toonie (-armaaci) -asihpi (-at91-soc) (-at91-soc-eti-b1-wm8731) -atiixp -atiixp-modem (-au1x00) -au8810 -au8820 -au8830 (-azt2320) -azt3328 -bt87x -ca0106 (-cmi8330) -cmipci (-cs4231) (-cs4232) (-cs4236) -cs4281 -cs46xx -cs5535audio -darla20 -darla24 (-dt019x) -dummy -echo3g -emu10k1 -emu10k1x -ens1370 -ens1371 (-es1688) (-es18xx) -es1938 -es1968 (-es968) -fm801 -fm801-tea575x -gina20 -gina24 (-gusclassic) (-gusextreme) (-gusmax) (-harmony) -hda-intel -hdsp -hdspm -hifier -ice1712 -ice1724 -indigo -indigodj -indigoio -intel8x0 -intel8x0m (-interwave) (-interwave-stb) -korg1212 -layla20 -layla24 -loopback -maestro3 -mia (-miro) -mixart -ml403-ac97cr -mona (-msnd-pinnacle) -mtpav -mts64 -nm256 (-opl3sa2) (-opti92x-ad1848) (-opti92x-cs4231) (-opti93x) -oxygen -pcxhr -pdaudiocf -pdplus -portman2x4 (-pxa2xx-i2sound) (-pxa2xx-soc) (-pxa2xx-soc-corgi) -pxa2xx-soc-e800 (-pxa2xx-soc-poodle) (-pxa2xx-soc-spitz) (-pxa2xx-soc-tosa) -riptide -rme32 -rme96 -rme9652 -s3c2410 -sa11xx-uda1341 (-sb16) (-sb8) (-sbawe) -seq-dummy -serial-u16550 (-sgalaxy) -sis7019 -sonicvibes (-sscape) (-sun-amd7930) (-sun-cs4231) (-sun-dbri) -trident -usb-audio -usb-us122l -usb-usx2y -via82xx -via82xx-modem -virmidi -virtuoso -vx222 -vxpocket (-wavefront) -ymfpci" 0 kB


I assume that anything in (parenthesis) is unavailable, but why? What do I have to do to make it available?
_________________
Greg
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Nov 26, 2008 7:07 pm    Post subject: Reply with quote

It's masked in our profiles, you can unmask with /etc/portage/package.use.mask (removal of masks is done with -keyword). As far as I know, the reason why the ISA stuff isn't working on PPC64 kernels is that it uses I/O routines that don't work. I'm not sure if there's any other reason.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum