All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Help! HDSP firmware suddenly fails to load...
       [not found] ` <1106634961.14021.28.camel@cmn37.stanford.edu>
@ 2005-01-26  1:31   ` Fernando Lopez-Lezcano
  2005-01-26  6:27     ` [PlanetCCRMA] " Michael E. Smith
  2005-01-26  9:32     ` [Alsa-devel] " Takashi Iwai
  0 siblings, 2 replies; 3+ messages in thread
From: Fernando Lopez-Lezcano @ 2005-01-26  1:31 UTC (permalink / raw)
  To: Michael E. Smith; +Cc: planetccrma, alsa-devel

On Mon, 2005-01-24 at 22:36, Fernando Lopez-Lezcano wrote:
> On Mon, 2005-01-24 at 18:47, Michael E. Smith wrote:
> > [MUNCH]
> > Both machines refuse to load the firmware similarly, but not quite the
> > same. To wit, the laptop (cardbus/digiface) consistantly produces the
> > above error, while the desktop (pci/digiface) does it once and then
> > doesn't see a card at all.
> > 
> > It does, however, show up (on both machines) on an lspci listing. Also,
> > snd-hdsp shows up in lsmod.
> > 
> > dmesg snippet:
> > 
> >         ALSA /usr/src/rpm/BUILD/alsa-driver-1.0.8/alsa-kernel/pci/rme9652/hdsp.c:647: 
> >         	Hammerfall-DSP: no Digiface or Multiface connected!
> >         ALSA /usr/src/rpm/BUILD/alsa-driver-1.0.8/alsa-kernel/pci/rme9652/hdsp.c:5086:
> >         	 card initialization pending : waiting for firmware
> >         
> > It would appear as though the firmware is attempting to be loaded
> > automatically at some point during user login (I can see from the lights
> > on the digiface), resulting in the error even before I attempt to load
> > it using hdsploader. 
[MUNCH]
> I think it is alsa 1.0.8. From what I've read it has changed the way in
> which it loads (surprise!) firmware. It now uses the hotplug subsystem.
> Darn!. I thought it was working fine as some people have reported
> success with echoaudio cards (which now have a driver included in 1.0.8
> and also require firmware downloads). Apparently not. 

Did you manage to do more tests? And/or get more information from dmesg
or /var/log/messages regarding the firmware load?

I just installed a 9652 + DigiFace on a test machine and while I had
some problems the firmware was loaded and eventually the card worked
fine. This is, regretfully, on fc3 so there may be problems that are
specific to fc2 then. 

On the first try after a reboot the card, for some reason, does not come
up. I suspect a problem with udev... this is what I find in
/var/log/messages on that first try:

=====
eth0: VIA Networking Velocity Family Gigabit Ethernet Adapter
eth0: Ethernet Address: 00:50:8D:E9:46:F5
ACPI: PCI interrupt 0000:00:09.0[A] -> GSI 17 (level, low) -> IRQ 17
hm: ioapic cache empty for irq 17 (e:00000000/d:00010000) 0001a9b1
ALSA
/usr/src/rpm/BUILD/alsa-driver-1.0.8/pci/rme9652/../../alsa-kernel/pci/rme9652/hdsp.c:662: loading firmware
ALSA
/usr/src/rpm/BUILD/alsa-driver-1.0.8/pci/rme9652/../../alsa-kernel/pci/rme9652/hdsp.c:700: finished firmware loading
ALSA
/usr/src/rpm/BUILD/alsa-driver-1.0.8/pci/rme9652/../../alsa-kernel/pci/rme9652/hdsp.c:5110: Firmware already loaded, initializing card.
ALSA /usr/src/rpm/BUILD/alsa-driver-1.0.8/acore/control.c:322: control
3:0:0:IEC958 Playback Default:0 is already present
ALSA
/usr/src/rpm/BUILD/alsa-driver-1.0.8/pci/rme9652/../../alsa-kernel/pci/rme9652/hdsp.c:4879: Error creating ctl interface
RME Hammerfall DSP: probe of 0000:00:09.0 failed with error -16
=====

And then if I restart the alsa subsystem through the alsasound scripts I
get this:

=====
ACPI: PCI interrupt 0000:00:09.0[A] -> GSI 17 (level, low) -> IRQ 17
ALSA
/usr/src/rpm/BUILD/alsa-driver-1.0.8/pci/rme9652/../../alsa-kernel/pci/rme9652/hdsp.c:5110: Firmware already loaded, initializing card.
ACPI: PCI interrupt 0000:00:11.5[C] -> GSI 22 (level, low) -> IRQ 22
PCI: Setting latency timer of device 0000:00:11.5 to 64
=====

And after that the card works fine. 
I only tried twice. 
I'll see if I can test on fc2...

-- Fernando

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

* Re: [PlanetCCRMA] Help! HDSP firmware suddenly fails to load...
  2005-01-26  1:31   ` Help! HDSP firmware suddenly fails to load Fernando Lopez-Lezcano
@ 2005-01-26  6:27     ` Michael E. Smith
  2005-01-26  9:32     ` [Alsa-devel] " Takashi Iwai
  1 sibling, 0 replies; 3+ messages in thread
From: Michael E. Smith @ 2005-01-26  6:27 UTC (permalink / raw)
  To: Fernando Lopez-Lezcano; +Cc: planetccrma, alsa-devel

Hi, Fernando,

Holy cow you're on top of things. Do you ever sleep?

In any case, I've rebooting into 2.6.10-2.1.ll.rhfc2.ccrma on the laptop
(cardbus/digiface) and the /var/log/messages showed the same as my
previous dmesg snippet.

FWIW, the error light on the digiface went out by the time the login
screen popped up, when before (the first time with 1.0.8) it went out
after logging in, presumably as part of the login.

On your cue, I restarted alsa (service alsasound restart ???) and got
the following in /var/log/messages:

====
Jan 26 06:46:07 localhost alsasound: sound driver stop succeeded
Jan 26 06:46:08 localhost alsasound: Starting sound driver snd-hdsp
succeeded
Jan 26 06:46:08 localhost alsasound: Starting sound driver snd-via82xx
succeeded
Jan 26 06:46:08 localhost alsasound: Starting sequencer succeeded
Jan 26 06:46:08 localhost alsactl: /usr/sbin/alsactl: set_control:909:
failed to obtain info for control #1 (No such file or directory)
Jan 26 06:46:08 localhost alsasound: Restoring sound driver settings
failed
====

Hmmm. So, like all good little boys, I did it again, just for good
measure and:

====
Jan 26 06:49:37 localhost alsasound: sound driver stop succeeded
Jan 26 06:49:44 localhost kernel: ACPI: PCI interrupt 0000:00:11.5[C] ->
GSI 5 (level, low) -> IRQ 5
Jan 26 06:49:46 localhost kernel: ACPI: PCI interrupt 0000:02:00.0[A] ->
GSI 11 (level, low) -> IRQ 11
Jan 26 06:49:46 localhost kernel: ALSA
/usr/src/rpm/BUILD/alsa-driver-1.0.8/alsa-kernel/pci/rme9652/hdsp.c:5110: Firmware already loaded, initializing card.
Jan 26 06:49:46 localhost alsasound: Starting sound driver snd-hdsp
succeeded
Jan 26 06:49:46 localhost alsasound: Starting sound driver snd-via82xx
succeeded
Jan 26 06:49:47 localhost alsasound: Starting sequencer succeeded
Jan 26 06:49:47 localhost alsasound: Starting sequencer driver
snd-seq-midi succeeded
Jan 26 06:49:47 localhost alsasound: Restoring sound driver settings
succeeded
====

Hey! Lookie here! 

If I'm to believe what I see, the firmware has perhaps been loaded all
along, just the card had not been initialized, whatever that means. 

Oh crap, I just realized that I never powered down the digiface between
reboots. I suppose I should try that, too.

Anyway, Jack seems to be running happily after the second alsasound
restart. Haven't checked hdspmixer, hdspconf, or tried sound through it
yet, however. That remains to be a pain with the laptop, largely due to
my crappy Ene cardbus controller's memory handling which I have to
manually manipulate (if you're reading this, Ico, I never did thank you
for the fix. Thanks!).

I will now (or at least later today) try all this again with 1) reycling
the digiface's power 2) fully testing with sound 3) with the desktop
(pci/digiface) and 4) with the other various kernels.

Whew.

Thanks again,

Michael

On Wed, 2005-01-26 at 02:31, Fernando Lopez-Lezcano wrote:
> On Mon, 2005-01-24 at 22:36, Fernando Lopez-Lezcano wrote:
> > On Mon, 2005-01-24 at 18:47, Michael E. Smith wrote:
> > > [MUNCH]
> > > Both machines refuse to load the firmware similarly, but not quite the
> > > same. To wit, the laptop (cardbus/digiface) consistantly produces the
> > > above error, while the desktop (pci/digiface) does it once and then
> > > doesn't see a card at all.
> > > 
> > > It does, however, show up (on both machines) on an lspci listing. Also,
> > > snd-hdsp shows up in lsmod.
> > > 
> > > dmesg snippet:
> > > 
> > >         ALSA /usr/src/rpm/BUILD/alsa-driver-1.0.8/alsa-kernel/pci/rme9652/hdsp.c:647: 
> > >         	Hammerfall-DSP: no Digiface or Multiface connected!
> > >         ALSA /usr/src/rpm/BUILD/alsa-driver-1.0.8/alsa-kernel/pci/rme9652/hdsp.c:5086:
> > >         	 card initialization pending : waiting for firmware
> > >         
> > > It would appear as though the firmware is attempting to be loaded
> > > automatically at some point during user login (I can see from the lights
> > > on the digiface), resulting in the error even before I attempt to load
> > > it using hdsploader. 
> [MUNCH]
> > I think it is alsa 1.0.8. From what I've read it has changed the way in
> > which it loads (surprise!) firmware. It now uses the hotplug subsystem.
> > Darn!. I thought it was working fine as some people have reported
> > success with echoaudio cards (which now have a driver included in 1.0.8
> > and also require firmware downloads). Apparently not. 
> 
> Did you manage to do more tests? And/or get more information from dmesg
> or /var/log/messages regarding the firmware load?
> 
> I just installed a 9652 + DigiFace on a test machine and while I had
> some problems the firmware was loaded and eventually the card worked
> fine. This is, regretfully, on fc3 so there may be problems that are
> specific to fc2 then. 
> 
> On the first try after a reboot the card, for some reason, does not come
> up. I suspect a problem with udev... this is what I find in
> /var/log/messages on that first try:
> 
> =====
> eth0: VIA Networking Velocity Family Gigabit Ethernet Adapter
> eth0: Ethernet Address: 00:50:8D:E9:46:F5
> ACPI: PCI interrupt 0000:00:09.0[A] -> GSI 17 (level, low) -> IRQ 17
> hm: ioapic cache empty for irq 17 (e:00000000/d:00010000) 0001a9b1
> ALSA
> /usr/src/rpm/BUILD/alsa-driver-1.0.8/pci/rme9652/../../alsa-kernel/pci/rme9652/hdsp.c:662: loading firmware
> ALSA
> /usr/src/rpm/BUILD/alsa-driver-1.0.8/pci/rme9652/../../alsa-kernel/pci/rme9652/hdsp.c:700: finished firmware loading
> ALSA
> /usr/src/rpm/BUILD/alsa-driver-1.0.8/pci/rme9652/../../alsa-kernel/pci/rme9652/hdsp.c:5110: Firmware already loaded, initializing card.
> ALSA /usr/src/rpm/BUILD/alsa-driver-1.0.8/acore/control.c:322: control
> 3:0:0:IEC958 Playback Default:0 is already present
> ALSA
> /usr/src/rpm/BUILD/alsa-driver-1.0.8/pci/rme9652/../../alsa-kernel/pci/rme9652/hdsp.c:4879: Error creating ctl interface
> RME Hammerfall DSP: probe of 0000:00:09.0 failed with error -16
> =====
> 
> And then if I restart the alsa subsystem through the alsasound scripts I
> get this:
> 
> =====
> ACPI: PCI interrupt 0000:00:09.0[A] -> GSI 17 (level, low) -> IRQ 17
> ALSA
> /usr/src/rpm/BUILD/alsa-driver-1.0.8/pci/rme9652/../../alsa-kernel/pci/rme9652/hdsp.c:5110: Firmware already loaded, initializing card.
> ACPI: PCI interrupt 0000:00:11.5[C] -> GSI 22 (level, low) -> IRQ 22
> PCI: Setting latency timer of device 0000:00:11.5 to 64
> =====
> 
> And after that the card works fine. 
> I only tried twice. 
> I'll see if I can test on fc2...
> 
> -- Fernando
> 
> 



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

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

* Re: [Alsa-devel] Re: Help! HDSP firmware suddenly fails to load...
  2005-01-26  1:31   ` Help! HDSP firmware suddenly fails to load Fernando Lopez-Lezcano
  2005-01-26  6:27     ` [PlanetCCRMA] " Michael E. Smith
@ 2005-01-26  9:32     ` Takashi Iwai
  1 sibling, 0 replies; 3+ messages in thread
From: Takashi Iwai @ 2005-01-26  9:32 UTC (permalink / raw)
  To: Fernando Lopez-Lezcano; +Cc: Michael E. Smith, planetccrma, alsa-devel

[-- Attachment #1: Type: text/plain, Size: 3139 bytes --]

At 25 Jan 2005 17:31:30 -0800,
Fernando Lopez-Lezcano wrote:
> 
> On Mon, 2005-01-24 at 22:36, Fernando Lopez-Lezcano wrote:
> > On Mon, 2005-01-24 at 18:47, Michael E. Smith wrote:
> > > [MUNCH]
> > > Both machines refuse to load the firmware similarly, but not quite the
> > > same. To wit, the laptop (cardbus/digiface) consistantly produces the
> > > above error, while the desktop (pci/digiface) does it once and then
> > > doesn't see a card at all.
> > > 
> > > It does, however, show up (on both machines) on an lspci listing. Also,
> > > snd-hdsp shows up in lsmod.
> > > 
> > > dmesg snippet:
> > > 
> > >         ALSA /usr/src/rpm/BUILD/alsa-driver-1.0.8/alsa-kernel/pci/rme9652/hdsp.c:647: 
> > >         	Hammerfall-DSP: no Digiface or Multiface connected!
> > >         ALSA /usr/src/rpm/BUILD/alsa-driver-1.0.8/alsa-kernel/pci/rme9652/hdsp.c:5086:
> > >         	 card initialization pending : waiting for firmware
> > >         
> > > It would appear as though the firmware is attempting to be loaded
> > > automatically at some point during user login (I can see from the lights
> > > on the digiface), resulting in the error even before I attempt to load
> > > it using hdsploader. 
> [MUNCH]
> > I think it is alsa 1.0.8. From what I've read it has changed the way in
> > which it loads (surprise!) firmware. It now uses the hotplug subsystem.
> > Darn!. I thought it was working fine as some people have reported
> > success with echoaudio cards (which now have a driver included in 1.0.8
> > and also require firmware downloads). Apparently not. 
> 
> Did you manage to do more tests? And/or get more information from dmesg
> or /var/log/messages regarding the firmware load?
> 
> I just installed a 9652 + DigiFace on a test machine and while I had
> some problems the firmware was loaded and eventually the card worked
> fine. This is, regretfully, on fc3 so there may be problems that are
> specific to fc2 then. 
> 
> On the first try after a reboot the card, for some reason, does not come
> up. I suspect a problem with udev... this is what I find in
> /var/log/messages on that first try:
> 
> =====
> eth0: VIA Networking Velocity Family Gigabit Ethernet Adapter
> eth0: Ethernet Address: 00:50:8D:E9:46:F5
> ACPI: PCI interrupt 0000:00:09.0[A] -> GSI 17 (level, low) -> IRQ 17
> hm: ioapic cache empty for irq 17 (e:00000000/d:00010000) 0001a9b1
> ALSA
> /usr/src/rpm/BUILD/alsa-driver-1.0.8/pci/rme9652/../../alsa-kernel/pci/rme9652/hdsp.c:662: loading firmware
> ALSA
> /usr/src/rpm/BUILD/alsa-driver-1.0.8/pci/rme9652/../../alsa-kernel/pci/rme9652/hdsp.c:700: finished firmware loading
> ALSA
> /usr/src/rpm/BUILD/alsa-driver-1.0.8/pci/rme9652/../../alsa-kernel/pci/rme9652/hdsp.c:5110: Firmware already loaded, initializing card.
> ALSA /usr/src/rpm/BUILD/alsa-driver-1.0.8/acore/control.c:322: control
> 3:0:0:IEC958 Playback Default:0 is already present
> ALSA
> /usr/src/rpm/BUILD/alsa-driver-1.0.8/pci/rme9652/../../alsa-kernel/pci/rme9652/hdsp.c:4879: Error creating ctl interface
> RME Hammerfall DSP: probe of 0000:00:09.0 failed with error -16
> =====

Could you try the attached patch?


Takashi

[-- Attachment #2: Type: text/plain, Size: 1707 bytes --]

Index: alsa-kernel/pci/rme9652/hdsp.c
===================================================================
RCS file: /suse/tiwai/cvs/alsa/alsa-kernel/pci/rme9652/hdsp.c,v
retrieving revision 1.81
diff -u -r1.81 hdsp.c
--- alsa-kernel/pci/rme9652/hdsp.c	14 Jan 2005 19:50:48 -0000	1.81
+++ alsa-kernel/pci/rme9652/hdsp.c	26 Jan 2005 09:31:43 -0000
@@ -4974,15 +4974,7 @@
 
 	if ((err = snd_hdsp_load_firmware_from_cache(hdsp)) < 0)
 		return err;
-		
-	if (!(hdsp->state & HDSP_InitializationComplete)) {
-		snd_hdsp_initialize_channels(hdsp);
-		snd_hdsp_initialize_midi_flush(hdsp);
-		if ((err = snd_hdsp_create_alsa_devices(hdsp->card, hdsp)) < 0) {
-			snd_printk("error creating alsa devices\n");
-			return err;
-		}
-	}
+
 	return 0;
 }
 #endif
@@ -5082,12 +5074,19 @@
 	}
 	
 	if (!is_9652 && !is_9632 && hdsp_check_for_iobox (hdsp)) {
+#ifdef HDSP_FW_LOADER
+		if ((err = hdsp_request_fw_loader(hdsp)) < 0) {
+			snd_printk(KERN_ERR "hdsp: can't load firmware\n");
+			return err;
+		}
+#else
 		/* no iobox connected, we defer initialization */
 		snd_printk("card initialization pending : waiting for firmware\n");
 		if ((err = snd_hdsp_create_hwdep(card, hdsp)) < 0) {
 			return err;
 		}
 		return 0;
+#endif
 	}
 	
 	if ((err = snd_hdsp_enable_io(hdsp)) != 0) {
@@ -5096,8 +5095,10 @@
 	
 	if ((hdsp_read (hdsp, HDSP_statusRegister) & HDSP_DllError) != 0) {
 #ifdef HDSP_FW_LOADER
-		if ((err = hdsp_request_fw_loader(hdsp)) < 0)
+		if ((err = hdsp_request_fw_loader(hdsp)) < 0) {
+			snd_printk(KERN_ERR "hdsp: can't load firmware\n");
 			return err;
+		}
 #else
 		snd_printk("card initialization pending : waiting for firmware\n");
 		if ((err = snd_hdsp_create_hwdep(card, hdsp)) < 0) {

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

end of thread, other threads:[~2005-01-26  9:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1106621237.3554.27.camel@localhost.localdomain>
     [not found] ` <1106634961.14021.28.camel@cmn37.stanford.edu>
2005-01-26  1:31   ` Help! HDSP firmware suddenly fails to load Fernando Lopez-Lezcano
2005-01-26  6:27     ` [PlanetCCRMA] " Michael E. Smith
2005-01-26  9:32     ` [Alsa-devel] " Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.