lkml.org 
[lkml]   [2006]   [Jan]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [patch] turn on might_sleep() in early bootup code too
    Andrew Morton wrote:
    > Ingo Molnar <mingo@elte.hu> wrote:
    >
    >> enable might_sleep() checks even in early bootup code (when system_state
    >> != SYSTEM_RUNNING). There's also a new config option to turn this off:
    >> CONFIG_DEBUG_SPINLOCK_SLEEP_EARLY_BOOTUP_WORKAROUND
    >> while most other architectures.
    >
    >
    > I get just the one on ppc64:
    >
    >
    > Debug: sleeping function called from invalid context at include/asm/semaphore.h:62
    > in_atomic():1, irqs_disabled():1
    > Call Trace:
    > [C0000000004EFD20] [C00000000000F660] .show_stack+0x5c/0x1cc (unreliable)
    > [C0000000004EFDD0] [C000000000053214] .__might_sleep+0xbc/0xe0
    > [C0000000004EFE60] [C000000000413D1C] .lock_kernel+0x50/0xb0
    > [C0000000004EFEF0] [C0000000004AC574] .start_kernel+0x1c/0x278
    > [C0000000004EFF90] [C0000000000085D4] .hmt_init+0x0/0x2c
    >
    >
    > Your fault ;)

    This lock_kernel should never sleep should it? Maybe it could be changed
    to lock_kernel_init_locked() or something?

    --
    SUSE Labs, Novell Inc.
    Send instant messages to your online friends http://au.messenger.yahoo.com

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-01-18 11:49    [W:0.021 / U:1.048 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site