https://bugzilla.kernel.org/show_bug.cgi?id=18012

           Summary: PM1a registers in MMIO space causes panic
           Product: ACPI
           Version: 2.5
    Kernel Version: 2.6.36-rc3
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Config-Other
        AssignedTo: acpi_config-ot...@kernel-bugs.osdl.org
        ReportedBy: bjorn.helg...@hp.com
        Regression: No


The acpi_irq() path reads the PM1a registers.  These registers are in
I/O port space on most machines, and there's no problem in that case.

But these registers may be in MMIO space instead, and in that case,
we use acpi_os_read_memory(), which is not safe in interrupt context
because it depends on ioremap(), which may allocate memory.

Here's a stacktrace from such a machine (this is a prototype, and I
can't supply any details about it):

kernel BUG at .../mm/vmalloc.c:1226!
invalid opcode: 0000 [#1] SMP 
Pid: 1, comm: swapper Tainted: G   M        2.6.35-06116-g73f44ba-dirty #9

Call Trace:
 [<ffffffff810cb575>] get_vm_area_caller+0x39/0x3b
 [<ffffffff81026f76>] __ioremap_caller+0x250/0x2ee
 [<ffffffff8102709d>] ioremap_nocache+0x12/0x14
 [<ffffffff8121b003>] acpi_os_read_memory+0x17/0x61
 [<ffffffff81237775>] acpi_hw_read+0x4c/0xc3
 [<ffffffff81237816>] acpi_hw_read_multiple+0x2a/0x63
 [<ffffffff81237a40>] acpi_hw_register_read+0x53/0xe3
 [<ffffffff8122bda9>] acpi_ev_fixed_event_detect+0x31/0xfe
 [<ffffffff8122cb1c>] acpi_ev_sci_xrupt_handler+0xf/0x22
 [<ffffffff8121a30d>] acpi_irq+0x11/0x2c
 [<ffffffff81086c87>] handle_IRQ_event+0x58/0x130
 [<ffffffff81088900>] handle_fasteoi_irq+0x8c/0xc7
 [<ffffffff81004f2e>] handle_irq+0x86/0x90

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla

Reply via email to