mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: LED (leds_hp_disk) causes BUG: scheduling while atomic
       [not found] <1231156352.9735.6.camel@maya.local>
@ 2009-01-06 10:14 ` Pavel Machek
  2009-01-08  8:04   ` Daniel Troeder
  0 siblings, 1 reply; 5+ messages in thread
From: Pavel Machek @ 2009-01-06 10:14 UTC (permalink / raw)
  To: Daniel Troeder, deller, kernel list

Hi!

> I'm not sure if I should send this email to LKML, because it doesn't
> seem to important, and the traffic there seems high. If you are not the
> correct maintainer, or if I should send it there anyway, please tell me.
> 
> Update: I sent this letter first to Helge Deller <deller@gmx.de>, he
> told me to mail to you.

Yep, that's right, I'm responsible. LKML is indeed right thing to Cc:.

> I have a HP Compaq nc2400 notebook, and having recently installed 2.6.28
> (gentoo patchset, self configured), I have observed the following:
> 
> When {I manually, udev automatically} load the leds_hp_disk module, my
> disk-led flashes regularly _without_ disk activity. When I look at my
> dmesg I see the following:

Yes, that's a (mis-feature).

> [  724.376881] BUG: scheduling while atomic: swapper/0/0x10000100
> [  724.376886] Modules linked in: leds_hp_disk i915 drm snd_pcm_oss

And that's a bug. I know what causes it, but i don't have right fix
yet.

If you are interested, take latest -mm (mmotm from userweb) and apply
this manually:

--- linux-mm/drivers/hwmon/hp_accel.c   2009-01-06 10:54:40.000000000
+0100
+++ linux/drivers/hwmon/hp_accel.c      2008-12-10 09:36:21.000000000
+0100
@@ -174,11 +174,35 @@
 }
 
 static struct led_classdev hpled_led = {
-       .name                   = "hp:red:hddprotection",
-       .default_trigger        = "heartbeat",
+       .name                   = "hp:red:hddprotect",
+       .default_trigger        = "none",
        .brightness_set         = hpled_set,
 };


...led will stop blinking, and messages will be gone. (But note that
if you turn on heartbeat or similar trigger, you'll still get the
"scheduling in interrupt" nastyness...)
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

* Re: LED (leds_hp_disk) causes BUG: scheduling while atomic
  2009-01-06 10:14 ` LED (leds_hp_disk) causes BUG: scheduling while atomic Pavel Machek
@ 2009-01-08  8:04   ` Daniel Troeder
  2009-01-08 11:49     ` Pavel Machek
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Troeder @ 2009-01-08  8:04 UTC (permalink / raw)
  To: Pavel Machek; +Cc: deller, kernel list

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

Am Dienstag, den 06.01.2009, 11:14 +0100 schrieb Pavel Machek:
> > I have a HP Compaq nc2400 notebook, and having recently installed 2.6.28
> > (gentoo patchset, self configured), I have observed the following:
> > 
> > When {I manually, udev automatically} load the leds_hp_disk module, my
> > disk-led flashes regularly _without_ disk activity. When I look at my
> > dmesg I see the following:
> 
> Yes, that's a (mis-feature).
> 
> > [  724.376881] BUG: scheduling while atomic: swapper/0/0x10000100
> > [  724.376886] Modules linked in: leds_hp_disk i915 drm snd_pcm_oss
> 
> And that's a bug. I know what causes it, but i don't have right fix
> yet.
> 
> If you are interested, take latest -mm (mmotm from userweb) and apply
> this manually:
> 
> --- linux-mm/drivers/hwmon/hp_accel.c   2009-01-06 10:54:40.000000000
> +0100
> +++ linux/drivers/hwmon/hp_accel.c      2008-12-10 09:36:21.000000000
> +0100
> @@ -174,11 +174,35 @@
>  }
>  
>  static struct led_classdev hpled_led = {
> -       .name                   = "hp:red:hddprotection",
> -       .default_trigger        = "heartbeat",
> +       .name                   = "hp:red:hddprotect",
> +       .default_trigger        = "none",
>         .brightness_set         = hpled_set,
>  };
> 
> 
> ...led will stop blinking, and messages will be gone. (But note that
> if you turn on heartbeat or similar trigger, you'll still get the
> "scheduling in interrupt" nastyness...)
> 							Pavel
Hello :)

Sorry it took me so long to reply - I built a kernel based on
vanilla-2.6.28 and applied patches with quilt to .DATE=2009-01-05-12-50.
That worked well, except that when booted, the xfs driver corrupts each
time my MUAs (evolution) configuration :(

But not your problem... the LED-scheduling-problem went away (no more
blinking, on more kernel-BUG and I get:

[   31.822317] lis3lv02d: laptop model unknown, using default axes
configuration
[   31.822367] Registered led device: hp:red:hddprotect
[   32.059496] input: ST LIS3LV02DL Accelerometer
as /devices/platform/lis3lv02d/input/input8
[   32.081954] lis3lv02d driver loaded.

$ lsmod | egrep 'lis3lv02d|hp_accel'
hp_accel                6656  0 
led_class               3908  2 iwl3945,hp_accel
lis3lv02d               5956  1 hp_accel

/sys/devices/platform/lis3lv02d
/sys/bus/platform/devices/lis3lv02d
/sys/bus/acpi/drivers/lis3lv02d
/sys/module/lis3lv02d
/sys/module/hp_accel

I was shortly confused, because CONFIG_LEDS_HP_DISK went away and got
integrated into CONFIG_SENSORS_LIS3LV02D with
lis3lv02d-merge-with-leds-hp-disk.patch :)

Bye,
Daniel

[-- Attachment #2: Dies ist ein digital signierter Nachrichtenteil --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: LED (leds_hp_disk) causes BUG: scheduling while atomic
  2009-01-08  8:04   ` Daniel Troeder
@ 2009-01-08 11:49     ` Pavel Machek
  2009-01-23 14:09       ` Daniel Troeder
  0 siblings, 1 reply; 5+ messages in thread
From: Pavel Machek @ 2009-01-08 11:49 UTC (permalink / raw)
  To: Daniel Troeder; +Cc: deller, kernel list

On Thu 2009-01-08 09:04:15, Daniel Troeder wrote:
> Am Dienstag, den 06.01.2009, 11:14 +0100 schrieb Pavel Machek:
> > > I have a HP Compaq nc2400 notebook, and having recently installed 2.6.28
> > > (gentoo patchset, self configured), I have observed the following:
> > > 
> > > When {I manually, udev automatically} load the leds_hp_disk module, my
> > > disk-led flashes regularly _without_ disk activity. When I look at my
> > > dmesg I see the following:
> > 
> > Yes, that's a (mis-feature).

What did does it flash, btw? It is red on hp2133 (while disk light is
normally white).

> I was shortly confused, because CONFIG_LEDS_HP_DISK went away and got
> integrated into CONFIG_SENSORS_LIS3LV02D with
> lis3lv02d-merge-with-leds-hp-disk.patch :)

Yep.... and thanks.



-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

* Re: LED (leds_hp_disk) causes BUG: scheduling while atomic
  2009-01-08 11:49     ` Pavel Machek
@ 2009-01-23 14:09       ` Daniel Troeder
  2009-01-23 15:34         ` Pavel Machek
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Troeder @ 2009-01-23 14:09 UTC (permalink / raw)
  To: Pavel Machek; +Cc: deller, kernel list

Am Donnerstag, den 08.01.2009, 12:49 +0100 schrieb Pavel Machek:
> On Thu 2009-01-08 09:04:15, Daniel Troeder wrote:
> > Am Dienstag, den 06.01.2009, 11:14 +0100 schrieb Pavel Machek:
> > > > I have a HP Compaq nc2400 notebook, and having recently installed 2.6.28
> > > > (gentoo patchset, self configured), I have observed the following:
> > > > 
> > > > When {I manually, udev automatically} load the leds_hp_disk module, my
> > > > disk-led flashes regularly _without_ disk activity. When I look at my
> > > > dmesg I see the following:
> > > 
> > > Yes, that's a (mis-feature).
> 
> What did does it flash, btw? It is red on hp2133 (while disk light is
> normally white).
It flashes orange, while normal HDD-activity-color is green.

(BTW: Problem persists in 2.6.28.1.)

Bye,
Daniel



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

* Re: LED (leds_hp_disk) causes BUG: scheduling while atomic
  2009-01-23 14:09       ` Daniel Troeder
@ 2009-01-23 15:34         ` Pavel Machek
  0 siblings, 0 replies; 5+ messages in thread
From: Pavel Machek @ 2009-01-23 15:34 UTC (permalink / raw)
  To: Daniel Troeder; +Cc: deller, kernel list

On Fri 2009-01-23 15:09:07, Daniel Troeder wrote:
> Am Donnerstag, den 08.01.2009, 12:49 +0100 schrieb Pavel Machek:
> > On Thu 2009-01-08 09:04:15, Daniel Troeder wrote:
> > > Am Dienstag, den 06.01.2009, 11:14 +0100 schrieb Pavel Machek:
> > > > > I have a HP Compaq nc2400 notebook, and having recently installed 2.6.28
> > > > > (gentoo patchset, self configured), I have observed the following:
> > > > > 
> > > > > When {I manually, udev automatically} load the leds_hp_disk module, my
> > > > > disk-led flashes regularly _without_ disk activity. When I look at my
> > > > > dmesg I see the following:
> > > > 
> > > > Yes, that's a (mis-feature).
> > 
> > What did does it flash, btw? It is red on hp2133 (while disk light is
> > normally white).
> It flashes orange, while normal HDD-activity-color is green.

Thanks.

> (BTW: Problem persists in 2.6.28.1.)

Should be fixed in 2.6.29-rc2.
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

end of thread, other threads:[~2009-01-23 15:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1231156352.9735.6.camel@maya.local>
2009-01-06 10:14 ` LED (leds_hp_disk) causes BUG: scheduling while atomic Pavel Machek
2009-01-08  8:04   ` Daniel Troeder
2009-01-08 11:49     ` Pavel Machek
2009-01-23 14:09       ` Daniel Troeder
2009-01-23 15:34         ` Pavel Machek

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®