Re: acpi_evaluate_integer broken by design





Now I know why I had strange "scheduling in atomic" problems:
acpi_evaluate_integer() does malloc(..., irqs_disabled() ? GFP_ATOMIC
: GFP_KERNEL)... which is (of course) broken.

That is kinda weird. When did this all start happening?

There's no way to reliably tell if we need GFP_ATOMIC or not from
code, this one for example fails to detect spinlocks held.

Len, this looks like 2.6.28 material. But given the poor quality of
the changelog it is hard to be sure about this. Why isn't everyone
seeing these warnings? What did Pavel do to provoke these alleged
warnings? Nobody knows...

I don't know know why pavel sees this and nobody else --
maybe something unusual he's doing with suspend?

The reason that the ACPI code is littered with bogus
irqs_disabled() ? GFP_ATOMIC : GFP_KERNEL)
is because, like boot, resume starts life with interrupts off.

I would prefer that resume and boot handle this the same way,
with system_state. However, a few years ago when I suggested
using system_state for resume, Andrew thought that was a very
bad idea. Andrew, do you still feel that way?

-Len

ps. I'll put this particular fix in my tree now.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: acpi_evaluate_integer broken by design
    ... I don't know know why pavel sees this and nobody else -- ... suspend's disabling of interrupts causes problems all over the place. ... Andrew, do you still feel that way? ... harder to alter (ie: fix) system_state transitions, ...
    (Linux-Kernel)
  • Re: can we move USB_DEVICEFS to non-embedded?
    ... boot times. ... So, back to the original problem here, is usbfs a requirement for Fedora ...  Or has that now been fixed in your repo? ... so when you guys said nobody uses this, ...
    (Linux-Kernel)
  • RE: Hard drive errors
    ... response.. ... Also,the cmds you made are invalid to run in windows,or on boot up..Try ... thru, restart pc...Also,the hard drive MS-DOS check utility from the hd ... Wow, Andrew. ...
    (microsoft.public.windowsxp.hardware)
  • Re: acpi_evaluate_integer broken by design
    ... seeing these warnings? ... What did Pavel do to provoke these alleged ... I don't know know why pavel sees this and nobody else -- ...
    (Linux-Kernel)
  • Re: suddenly lost ext3 in FC3, on /usr only, but can mount it as ext2
    ... >> The system has had only ext3 since the installation, for every linux ... >> During the bad boot I got errors to the effect that journaling was not ... > Hi Andrew, sounds like something ate your journal. ...
    (linux.redhat.misc)