From: Takashi Iwai <tiwai@suse.de>
To: Brice Goglin <Brice.Goglin@ens-lyon.org>
Cc: Andrew Morton <akpm@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: 2.6.12-mm1
Date: Tue, 21 Jun 2005 18:27:54 +0200 [thread overview]
Message-ID: <s5hll53oet1.wl%tiwai@suse.de> (raw)
In-Reply-To: <42B80AB5.7090506@ens-lyon.org>
At Tue, 21 Jun 2005 14:40:21 +0200,
Brice Goglin wrote:
>
> Brice Goglin a écrit :
> > Hi Andrew,
> >
> > I got this oops during boot.
> > I copied it by hand since my machine crashed soon after (because of yenta).
> > It doesn't occur when snd_maestro3 is skipped by discover.
> >
> > divide error: 0000 [#1]
> > PREEMPT
> > ...
> > CPU: 0
> > EIP: 0060:[<e8957f9f>] Not tainted VLI
> > EFLAGS: 00000282 (2.6.12-mm1=LoulousMobiles)
> > EIP is at and_m3_enable_ints+0x1f/0x40 [snd_maestro3]
> > eax: 00000050 ebx: 00002400 ecx: 00000050 edx: 00002418
> > esi: 00002418 edi: 00000000 ebp: 000000f0 esp: e6f5ce54
> > ds: 007b es: 007b ss: 0068
> > Process modprobe (pid: 2405, threadinfo=e6f5c000, task=e7a31570)
> > ...
> > Call trace:
> > snd_m3_create+0x303/0x405 [snd_maestro3]
>
> The problem comes from git-alsa.patch.
> Adding HV_INT_ENABLE to outw in snd_m3_enable_ints (in
> sound/pci/maestro3.c) makes it generate a divide error
> on my laptop.
>
> The attached patch reverts this and fixes my problem.
>
> Signed-off-by: Brice Goglin <Brice.Goglin@ens-lyon.org>
Well, this disables the h/w volume controls completely, so it's not a
generic solution.
Does the patch below have any improvement?
Takashi
--- linux/sound/pci/maestro3.c 20 May 2005 17:39:26 -0000 1.80
+++ linux/sound/pci/maestro3.c 21 Jun 2005 16:26:19 -0000
@@ -1050,11 +1050,6 @@
* lowlevel functions
*/
-#define big_mdelay(msec) do {\
- set_current_state(TASK_UNINTERRUPTIBLE);\
- schedule_timeout(((msec) * HZ) / 1000);\
-} while (0)
-
inline static void snd_m3_outw(m3_t *chip, u16 value, unsigned long reg)
{
outw(value, chip->iobase + reg);
@@ -1096,7 +1091,7 @@
static void snd_m3_assp_halt(m3_t *chip)
{
chip->reset_state = snd_m3_inb(chip, DSP_PORT_CONTROL_REG_B) & ~REGB_STOP_CLOCK;
- big_mdelay(10);
+ msleep(10);
snd_m3_outb(chip, chip->reset_state & ~REGB_ENABLE_RESET, DSP_PORT_CONTROL_REG_B);
}
@@ -2108,9 +2103,9 @@
*/
tmp = inw(io + RING_BUS_CTRL_A);
outw(RAC_SDFS_ENABLE|LAC_SDFS_ENABLE, io + RING_BUS_CTRL_A);
- big_mdelay(20);
+ msleep(20);
outw(tmp, io + RING_BUS_CTRL_A);
- big_mdelay(50);
+ msleep(50);
#endif
}
@@ -2589,7 +2584,7 @@
snd_pcm_suspend_all(chip->pcm);
snd_ac97_suspend(chip->ac97);
- big_mdelay(10); /* give the assp a chance to idle.. */
+ msleep(10); /* give the assp a chance to idle.. */
snd_m3_assp_halt(chip);
@@ -2697,6 +2692,8 @@
}
spin_lock_init(&chip->reg_lock);
+ spin_lock_init(&chip->ac97_lock);
+
switch (pci->device) {
case PCI_DEVICE_ID_ESS_ALLEGRO:
case PCI_DEVICE_ID_ESS_ALLEGRO_1:
@@ -2765,6 +2762,8 @@
snd_m3_assp_init(chip);
snd_m3_amp_enable(chip, 1);
+ tasklet_init(&chip->hwvol_tq, snd_m3_update_hw_volume, (unsigned long)chip);
+
if (request_irq(pci->irq, snd_m3_interrupt, SA_INTERRUPT|SA_SHIRQ,
card->driver, (void *)chip)) {
snd_printk("unable to grab IRQ %d\n", pci->irq);
@@ -2786,9 +2785,6 @@
return err;
}
- spin_lock_init(&chip->ac97_lock);
- tasklet_init(&chip->hwvol_tq, snd_m3_update_hw_volume, (unsigned long)chip);
-
if ((err = snd_m3_mixer(chip)) < 0)
return err;
next prev parent reply other threads:[~2005-06-21 16:34 UTC|newest]
Thread overview: 64+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-20 6:30 2.6.12-mm1 Andrew Morton
2005-06-20 6:57 ` 2.6.12-mm1 Benjamin Herrenschmidt
2005-06-20 8:54 ` 2.6.12-mm1 Ethan Benson
2005-06-20 7:46 ` 2.6.12-mm1 Brice Goglin
2005-06-20 8:14 ` 2.6.12-mm1 Dominik Brodowski
2005-06-20 8:49 ` 2.6.12-mm1 Brice Goglin
[not found] ` <20050620085449.GA32330@isilmar.linta.de>
2005-06-20 13:11 ` 2.6.12-mm1 Brice Goglin
2005-06-22 23:34 ` 2.6.12-mm1 Rajesh Shah
2005-06-23 6:25 ` 2.6.12-mm1 Brice Goglin
2005-06-23 17:05 ` 2.6.12-mm1 Rajesh Shah
2005-06-23 18:09 ` 2.6.12-mm1 Brice Goglin
2005-06-23 20:32 ` 2.6.12-mm1 Rajesh Shah
2005-06-23 21:07 ` 2.6.12-mm1 Brice Goglin
2005-06-23 21:33 ` 2.6.12-mm1 Brice Goglin
2005-06-20 7:59 ` 2.6.12-mm1 Brice Goglin
2005-06-21 12:40 ` 2.6.12-mm1 Brice Goglin
2005-06-21 16:27 ` Takashi Iwai [this message]
2005-06-21 16:32 ` 2.6.12-mm1 Takashi Iwai
2005-06-21 17:02 ` 2.6.12-mm1 Brice Goglin
2005-06-21 17:16 ` 2.6.12-mm1 Takashi Iwai
2005-06-21 19:39 ` 2.6.12-mm1 Brice Goglin
2005-06-22 10:10 ` 2.6.12-mm1 Takashi Iwai
2005-06-20 9:48 ` [patch] 2.6.12-mm1: saa7134-core.c compile error Adrian Bunk
2005-06-20 22:19 ` Michael Krufky
2005-06-20 11:36 ` [PATCH] bttv fix [was: 2.6.12-mm1] J.A. Magallon
2005-06-20 11:38 ` 2.6.12-mm1 J.A. Magallon
2005-06-20 16:36 ` 2.6.12-mm1 Jeff Garzik
2005-06-20 22:35 ` 2.6.12-mm1 J.A. Magallon
2005-06-20 12:32 ` [PATCH] Fix Reiser4 Dependencies Andrew James Wade
2005-06-20 18:26 ` Hans Reiser
2005-06-20 20:44 ` Andrew James Wade
2005-06-21 11:27 ` Edward Shishkin
2005-06-21 18:47 ` Hans Reiser
2005-06-21 19:26 ` Andrew James Wade
2005-06-22 8:56 ` Edward Shishkin
2005-06-22 8:39 ` Edward Shishkin
2005-06-20 13:14 ` 2.6.12-mm1 Andy Whitcroft
2005-06-21 22:55 ` 2.6.12-mm1 Greg KH
2005-06-22 9:23 ` 2.6.12-mm1 Andy Whitcroft
2005-06-22 10:04 ` 2.6.12-mm1 Ivan Kokshaysky
2005-06-20 13:21 ` 2.6.12-mm1: Kernel BUG at "fs/open.c":935 Rafael J. Wysocki
2005-06-20 13:54 ` Dipankar Sarma
2005-06-20 14:05 ` Rafael J. Wysocki
2005-06-20 17:38 ` 2.6.12-mm1: drivers/misc/ibmasm/ compile error Adrian Bunk
2005-06-20 20:24 ` Andrew Morton
2005-06-20 18:29 ` 2.6.12-mm1 Jean Delvare
2005-06-20 20:41 ` 2.6.12-mm1 Andrew Morton
2005-06-20 21:11 ` 2.6.12-mm1 Jean Delvare
2005-06-20 21:23 ` 2.6.12-mm1 Andrew Morton
2005-06-20 21:42 ` 2.6.12-mm1 Jean Delvare
2005-06-20 21:53 ` 2.6.12-mm1 Andrew Morton
2005-06-21 20:06 ` 2.6.12-mm1 Mauro Carvalho Chehab
2005-06-21 21:25 ` 2.6.12-mm1 Jean Delvare
2005-06-20 18:39 ` gregkh-usb-usb-isp116x-hcd-add.patch (was 2.6.12-mm1) Alexey Dobriyan
2005-06-20 22:15 ` 2.6.12-mm1 J.A. Magallon
2005-06-20 22:34 ` iptables bug (was: Re: 2.6.12-mm1) Andrew Morton
2005-06-20 23:39 ` iptables bug Patrick McHardy
2005-06-21 19:21 ` Stephen Jones
2005-06-22 1:52 ` Patrick McHardy
2005-06-21 22:09 ` [PATCH] more signed char cleanups in scripts J.A. Magallon
2005-06-21 22:18 ` Andrew Morton
2005-06-21 22:59 ` J.A. Magallon
2005-06-22 11:46 ` Paulo Marques
2005-06-22 0:05 ` Lee Revell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s5hll53oet1.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=Brice.Goglin@ens-lyon.org \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®