Bug#657526: linux-image-3.2.0-1-amd64: scheduling while atomic: swapper/2/0/0x10000100
On Sun, Jan 29, 2012 at 04:40:19AM -0600, Jonathan Nieder wrote:
> Hi,
>
> Ben Hutchings wrote:
>
> > This is probably some kind of driver bug; unfortunately there's no easy
> > way to work out where it might be.
>
> Maybe ums_realtek. Could you try this patch?
>
> Instructions for testing a patched kernel are at [1].
> [1] http://kernel-handbook.alioth.debian.org/ch-common-tasks.html
>
> commit b3ef051db763
> Author: Stanislaw Gruszka <sgruszka@redhat.com>
> Date: Thu Jan 26 12:29:42 2012 +0100
>
> USB: Realtek cr: fix autopm scheduling while atomic
>
> Resolves:
> https://bugzilla.redhat.com/show_bug.cgi?id=784345
>
> Reported-by: Francis Moreau <francis.moro@gmail.com>
> Reported-and-tested-by: Christian D <chrisudeussen@gmail.com>
> Reported-and-tested-by: Jimmy Dorff <jdorff@phy.duke.edu>
> Reported-and-tested-by: collura@ieee.org
> Cc: stable@vger.kernel.org # 3.2+
> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
>
> diff --git a/drivers/usb/storage/realtek_cr.c b/drivers/usb/storage/realtek_cr.c
> index 1f62723ef1a8..d32f72061c09 100644
> --- a/drivers/usb/storage/realtek_cr.c
> +++ b/drivers/usb/storage/realtek_cr.c
> @@ -789,7 +789,7 @@ static void rts51x_suspend_timer_fn(unsigned long data)
> rts51x_set_stat(chip, RTS51X_STAT_SS);
> /* ignore mass storage interface's children */
> pm_suspend_ignore_children(&us->pusb_intf->dev, true);
> - usb_autopm_put_interface(us->pusb_intf);
> + usb_autopm_put_interface_async(us->pusb_intf);
> US_DEBUGP("%s: RTS51X_STAT_SS 01,"
> "intf->pm_usage_cnt:%d, power.usage:%d\n",
> __func__,
This alioth.debian.org was refusing connections for some time.
Today I have tried:
I have put that into a "ums_realta,patch" and then:
apt-get source linux-2.6
cd linux-2.6-3.2.2/
patch -p1 < ../ums_realtak.patch
fakeroot debian/rules source
fakeroot make -f debian/rules.gen binary-arch_i386_none_686_pae
2 hours later I got the linux-image-3.2.0-1-686-pae_3.2.2-1_i386.deb and installed
it via dpkg.
Unfortunately I still get a full freeze, s. typescript.after-ums_realtek.patch
I have looked around a bit myself and found:
https://bugzilla.kernel.org/show_bug.cgi?id=42615
Bug 42615 - BUG: scheduling while atomic: swapper
Maybe it's this bug?
Thomas
Reply to: