Skip to contentSkip to conversation

via-rhine and acpi sleep 3

2.6.6 panic Benoit Dejean 2 participants 5 messages Jun 6, 2004 – Jun 7, 2004 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

hello, i'm getting troubles with my epia boxes : epia via motherboard + C3 processor.

the acpi STR sleep works fine (the CPU fan goes down) and wake up is ok. But, i'm experiencing bugs with the builtin via-rhine network card. on wake up, the network card seems to have been not correctly suspended : it doesn't work anymore. i tried to find a way with acpi so that the network interface is downed before sleep, the module unloaded and vice versa on wake up. but that doesn't work.

on wake up, trying to re-activate my netcard, i often get some message obout ill-formed ethernet frames. i also often get kernel panic but i've not been able to save the kernel panic trace. i don't know how, so if somebody could tell me how to save it ...

regards,
Benoit

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 2 lines · Denis Vlasenko

Retrieve it from your syslog

i'm afraid it's empty, nothin about the panic is saved there. i've tried to run a while:; do sync; done and to ajust kernel log buffer size from
14 to 10 but i've not been able to retrieve anything

#3 lore raw
In reply to Benoit Dejean

Hi!

Quoted 9 lines

hello, i'm getting troubles with my epia boxes : epia via motherboard + C3 processor.

the acpi STR sleep works fine (the CPU fan goes down) and wake up is ok. But, i'm experiencing bugs with the builtin via-rhine network card. on wake up, the network card seems to have been not correctly suspended :
it doesn't work anymore. i tried to find a way with acpi so that the network interface is downed before sleep, the module unloaded and vice versa on wake up. but that doesn't work.

Try suspend-to-disk working, first.

Quoted 4 lines

on wake up, trying to re-activate my netcard, i often get some message obout ill-formed ethernet frames. i also often get kernel panic but i've not been able to save the kernel panic trace. i don't know how, so if somebody could tell me how to save it ...

Pen and paper?
Pavel

Signature · 1 line
934a471f20d6580d5aad759bf0d97ddc
#4 lore raw
Quoted 2 lines · Pavel Machek

Try suspend-to-disk working, first.

i'm working with set top box without disk, so i'm not interesting in STSW. i've been able to save some logs by mounting /var/log with NFS, but i've handwritten the kernel panic message.

so i've tried STSW, but it first failed because i have no swap partitions

Jun  7 14:51:24 cyp kernel: Stopping tasks: ===========================================|
Jun  7 14:51:24 cyp kernel: Freeing memory: ......................|
Jun  7 14:51:24 cyp kernel: /critical section: counting pages to copy.[nosave pfn 0x2ed]........................... (pages needed: 16186+512=16698 free: 41141)
Jun  7 14:51:24 cyp kernel: Suspend Machine: There's not enough swap space available, on 16698 pages short
Jun  7 14:51:24 cyp kernel: Suspend Machine: Suspend failed, trying to recover...
Jun  7 14:51:24 cyp kernel: Fixing swap signatures... ok
Jun  7 14:51:24 cyp kernel: Restarting tasks...<3>bad: scheduling while atomic!
Jun  7 14:51:24 cyp kernel: Call Trace:
Jun  7 14:51:24 cyp kernel:  [<c026ddb3>] schedule+0x5c3/0x5d0
Jun  7 14:51:24 cyp kernel:  [<c0111e8c>] try_to_wake_up+0x9c/0x150
Jun  7 14:51:24 cyp kernel:  [<c012a554>] thaw_processes+0xa4/0xe0
Jun  7 14:51:24 cyp kernel:  [<c012b98a>] software_suspend+0x8a/0xc0
Jun  7 14:51:24 cyp kernel:  [<c01d520a>] acpi_system_write_sleep+0x6a/0x90
Jun  7 14:51:24 cyp sleepd[402]: 14 sec sleep; resetting timer
Jun  7 14:51:24 cyp kernel:  [<c01d51a0>] acpi_system_write_sleep+0x0/0x90
Jun  7 14:51:24 cyp kernel:  [<c0147cad>] vfs_write+0x9d/0x100
Jun  7 14:51:24 cyp kernel:  [<c0147d8c>] sys_write+0x2c/0x50
Jun  7 14:51:24 cyp kernel:  [<c0103e47>] syscall_call+0x7/0xb
Jun  7 14:51:24 cyp kernel:
Jun  7 14:51:24 cyp kernel:  done
Jun  7 14:51:24 cyp kernel: bad: scheduling while atomic!
Jun  7 14:51:24 cyp kernel: Call Trace:
Jun  7 14:51:24 cyp kernel:  [<c026ddb3>] schedule+0x5c3/0x5d0
Jun  7 14:51:24 cyp kernel:  [<c0147cc1>] vfs_write+0xb1/0x100
Jun  7 14:51:24 cyp kernel:  [<c0147d8c>] sys_write+0x2c/0x50
Jun  7 14:51:24 cyp kernel:  [<c0103e7a>] work_resched+0x5/0x16
Jun  7 14:51:24 cyp kernel:
Jun  7 14:51:24 cyp kernel: bad: scheduling while atomic!
Jun  7 14:51:24 cyp kernel: Call Trace:
Jun  7 14:51:24 cyp kernel:  [<c026ddb3>] schedule+0x5c3/0x5d0
Jun  7 14:51:24 cyp kernel:  [<c0115ff7>] release_console_sem+0xc7/0xd0
Jun  7 14:51:24 cyp kernel:  [<c0115e6d>] printk+0x10d/0x180
Jun  7 14:51:24 cyp kernel:  [<c0113207>] sys_sched_yield+0x87/0xd0
Jun  7 14:51:24 cyp kernel:  [<c01524db>] coredump_wait+0x2b/0x90
Jun  7 14:51:24 cyp kernel:  [<c0152633>] do_coredump+0xf3/0x1b1
Jun  7 14:51:24 cyp kernel:  [<c0129b01>] kallsyms_lookup+0x1b1/0x1c0
Jun  7 14:51:24 cyp kernel:  [<c011d64b>] __dequeue_signal+0xeb/0x170
Jun  7 14:51:24 cyp kernel:  [<c011d635>] __dequeue_signal+0xd5/0x170
Jun  7 14:51:24 cyp kernel:  [<c011d6e5>] dequeue_signal+0x15/0x70
Jun  7 14:51:24 cyp kernel:  [<c011eefe>] get_signal_to_deliver+0x25e/0x350
Jun  7 14:51:24 cyp kernel:  [<c0103bb4>] do_signal+0x54/0xe0
Jun  7 14:51:24 cyp kernel:  [<c0115e6d>] printk+0x10d/0x180
Jun  7 14:51:24 cyp kernel:  [<c0111c77>] recalc_task_prio+0xb7/0x230
Jun  7 14:51:24 cyp kernel:  [<c0104316>] show_trace+0x66/0xc0
Jun  7 14:51:24 cyp kernel:  [<c026db13>] schedule+0x323/0x5d0
Jun  7 14:51:24 cyp kernel:  [<c0110db0>] do_page_fault+0x0/0x4dc
Jun  7 14:51:24 cyp kernel:  [<c0103c77>] do_notify_resume+0x37/0x40
Jun  7 14:51:24 cyp kernel:  [<c0103e9e>] work_notifysig+0x13/0x15

after adding a swap file, i've tried again
saving did well, but when trying to wake up my box rebooted it. nothing in the log.

i'm very willing to make tests but my boss he's not :/ so i have no time to spend on testing Suspend To Disk.

thank you