2.4.19-pre8-ben0 acenic driver and 867 MHz G4 sound problems
Hi,
First, thanks to BenH for his fix in the 2.4.19-pre8-ben0 kernel that once again allows booting of the 867 MHz G4. Unfortunately, I now have a new problem as the acenic driver is now broken (using a NetGear GA620 NIC). The previously working version was from a 2.4.17-pre2-ben0 kernel. I can send a diff between the two sources if that would be of any help.
Also, is there any update on why sound doesn't work on the 867? It would be nice to listen to CDs or watch DVDs on these machines.
-Bill
P.S. For the sound problem, here's some info starting with the dmesg output:
dmasound_pmac: found Keylargo rev 2 or later - H/W byte-swap disabled PowerMac Tumbler DMA sound driver rev 016 installed
Core driver edition 01.06 : PowerMac Built-in Sound driver edition 00.06
proc/pci:
Bus 1, device 23, function 0:
Class ff00: Apple Computer Inc. KeyLargo Mac I/O (rev 3).
Master Capable. Latency=16.
Non-prefetchable 32 bit memory at 0x80000000 [0x8007ffff].
Bus 1, device 24, function 0:
USB Controller: Apple Computer Inc. KeyLargo USB (rev 0).
IRQ 27.
Master Capable. Latency=16. Min Gnt=3.Max Lat=86. Non-prefetchable 32 bit memory at 0x80081000 [0x80081fff].
Bus 1, device 25, function 0:
USB Controller: Apple Computer Inc. KeyLargo USB (#2) (rev 0).
IRQ 28.
Master Capable. Latency=16. Min Gnt=3.Max Lat=86. Non-prefetchable 32 bit memory at 0x80080000 [0x80080fff].
/dev/sndstat:
PowerMac Tumbler DMA sound driver rev 016 :
Core driver edition 01.06 : PowerMac Built-in Sound driver edition 00.06 HW rates: 48000 44100 s/sec
HW AFMTS: signed 16 bit BE
=== Formats & settings ===
Parameter soft hard
Format : signed 16 bit BE signed 16 bit BE
Samp Rate: 22050 s/sec 44100 s/sec
Channels : stereo stereo
=== Sound Queue status ===
Allocated: Buffers Size
write: 4 32768
Current : MaxFrg FragSiz MaxAct Frnt Rear Cnt RrSize A B S L xruns
write: 4 32768 4 0 -1 0 0 0 0 0 0 0
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 10 lines
First, thanks to BenH for his fix in the 2.4.19-pre8-ben0 kernel that once again allows booting of the 867 MHz G4. Unfortunately, I now have a new problem as the acenic driver is now broken (using a NetGear GA620 NIC). The previously working version was from a 2.4.17-pre2-ben0 kernel. I can send a diff between the two sources if that would be of any help.
Also, is there any update on why sound doesn't work on the 867? It would be nice to listen to CDs or watch DVDs on these machines.
Yes, send the diff please, and CC the driver maintainer.
For sound, what makes you think is doesn't work ? (it should actually).
Did you try tweaking the volume with a mixer like gmix or so ?
Ben.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 10 lines · Benjamin Herrenschmidt
Quoted 8 lines
First, thanks to BenH for his fix in the 2.4.19-pre8-ben0 kernel that once again allows booting of the 867 MHz G4. Unfortunately, I now have a new problem as the acenic driver is now broken (using a NetGear GA620 NIC). The previously working version was from a 2.4.17-pre2-ben0 kernel. I can send a diff between the two sources if that would be of any help.
Also, is there any update on why sound doesn't work on the 867? It would be nice to listen to CDs or watch DVDs on these machines.
Yes, send the diff please, and CC the driver maintainer.
As you probably have seen by now, Anton Blanchard sent a patch which fixes the problem.
Quoted 1 line
For sound, what makes you think is doesn't work ? (it should actually).
Oh, no beep when hitting delete at the tcsh prompt or when doing an "echo ^G".
Quoted 1 line
Did you try tweaking the volume with a mixer like gmix or so ?
Yup, I tried that.
All that was earlier. Based on your comment that it should actually work, I gave it another go. It turns out that I was using too simple a test. I made a bad assumption that since neither the delete test or "echo ^G" produced a beep that the sound wasn't working. It turns out that if I had just tried out the app I was actually interested in such as xine, I would have discovered that the sound was in fact working fine.
This was using KDE with the artsd disabled. I'm not really that familiar with KDE. I'm just setting up these 867 MHz G4s for some colleagues at work and thought KDE would be a decent environment for them to use. When I switched to my normal environment of straight X and twm, then the delete test and "echo ^G" produced beeps as expected. So there's something about KDE that keeps it from producing beeps, but the normal audio apps actually do work OK.
The lesson I learned is not to stop after a single test failure, but to also check if other independent tests can confirm the initial results. And I'm just happy to have working sound on these machines at last.
-Thanks
-Bill
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 6 lines
Unfortunately, I now have
a new problem as the acenic driver is now broken (using a NetGear GA620 NIC). The previously working version was from a 2.4.17-pre2-ben0 kernel. I can send a diff between the two sources if that would be of any help.
Does this patch help?
Jes could you please send this patch on to Marcelo/Linus, they want your OK before taking it.
Anton
drivers/net/acenic.c +1 -1
@@ -2692,7 +2692,7 @@ flagsize &= ~BD_FLG_COAL_NOW ;#endif -if (!ACE_IS_TIGON_I (ap)) { +if (ACE_IS_TIGON_I (ap)) {writel (addr >>32 , &desc->addr.addrhi);writel (addr &0xffffffff , &desc->addr.addrlo);writel (flagsize, &desc->flagsize);
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
"Anton" == Anton Blanchard <[email protected]> writes:
Unfortunately, I now have a new problem as the acenic driver is now broken (using a NetGear GA620 NIC). The previously working version was from a 2.4.17-pre2-ben0 kernel. I can send a diff between the two sources if that would be of any help.
Anton> Does this patch help?
Anton> Jes could you please send this patch on to Marcelo/Linus, they Anton> want your OK before taking it.
Sure will do. Sorry about the delay, I went off to Europe for 10 days.
Jes
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Yep, that fixed it!!! Thanks a bunch.
-Bill
Quoted 16 lines · Anton Blanchard
Quoted 4 lines
Unfortunately, I now have
a new problem as the acenic driver is now broken (using a NetGear GA620 NIC). The previously working version was from a 2.4.17-pre2-ben0 kernel. I can send a diff between the two sources if that would be of any help.Does this patch help?
Jes could you please send this patch on to Marcelo/Linus, they want your OK before taking it.
Anton
diff -urN
linux-2.5/drivers/net/acenic.clinux-2.5_work/drivers/net/acenic.c
drivers/net/acenic.c line 2698
Quoted 8 lines
drivers/net/acenic.c +1
-1@@ -2692,7 +2692,7 @@ flagsize &= ~BD_FLG_COAL_NOW ;#endif -if (!ACE_IS_TIGON_I (ap)) { +if (ACE_IS_TIGON_I (ap)) {writel (addr >>32 , &desc->addr.addrhi);writel (addr &0xffffffff , &desc->addr.addrlo);writel (flagsize, &desc->flagsize);
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/