From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263591AbTJCINH (ORCPT ); Fri, 3 Oct 2003 04:13:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263592AbTJCINH (ORCPT ); Fri, 3 Oct 2003 04:13:07 -0400 Received: from TVT-CaTV-dhcp-47-244.urbanet.ch ([80.238.47.244]:897 "EHLO highscreen") by vger.kernel.org with ESMTP id S263591AbTJCIND (ORCPT ); Fri, 3 Oct 2003 04:13:03 -0400 Subject: 2.4.22 ACPI power off via sysrq not working From: Sylvain Pasche To: linux-kernel@vger.kernel.org Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1065168778.1740.10.camel@highscreen> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Fri, 03 Oct 2003 10:12:58 +0200 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi, If I want to halt the system using sys-rq - o key, I get an oops instead of a power down. Inside pm.c:159, there is: if (in_interrupt()) BUG(); But if we look at the trace, we are in the interrupt of the keyboard handler. One fix would be to comment out the BUG line, but there's certainly "a better way to do it". Sylvain kernel BUG at pm.c:159! invalid operand: 0000 CPU: 0 EIP: 0010:[] Not tainted Using defaults from ksymoops -t elf32-i386 -a i386 EFLAGS: 00010002 eax: 00000001 ebx: f7a9cb20 ecx: 00000000 edx: 00000002 esi: 00000001 edi: 00000003 ebp: c02f6808 esp: c0337e68 ds: 0018 es: 0018 ss: 0018 Process swapper (pid: 0, stackpage=c0337000) Stack: 0000000b 00002a8d c011a795 f7a9cb3c f7a9cb20 00000005 c0128958 f7a9cb20 00000002 00000003 00000000 00000005 00000005 0000006f c01fa60e 00000002 00000003 c02fd208 0000006f c01fa725 00000005 c02fd208 0000006f 00000007 Call Trace: [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] Code: 0f 0b 9f 00 6f 37 2b c0 83 fa 01 77 45 8b 73 14 39 fe 74 34 >>EIP; c012880e <===== >>ebx; f7a9cb20 <_end+3770bfb4/385784f4> >>ebp; c02f6808 >>esp; c0337e68 Trace; c011a795 Trace; c0128958 Trace; c01fa60e Trace; c01fa725 Trace; c01fa59b Trace; c021864b <__handle_sysrq_nolock+7b/f0> Trace; c02185a9 Trace; c02164b6 Trace; c02175b7 Trace; c02175cf Trace; c010a6a5 Trace; c010a824 Trace; c0107080 Trace; c010cfa8 Trace; c0107080 Trace; c01070a3 Trace; c0107132 Trace; c0105000 <_stext+0/0>