From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e23smtp08.au.ibm.com (e23smtp08.au.ibm.com [202.81.31.141]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "e23smtp08.au.ibm.com", Issuer "Equifax" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 84BB01007D5 for ; Thu, 7 Jul 2011 15:27:26 +1000 (EST) Received: from d23relay04.au.ibm.com (d23relay04.au.ibm.com [202.81.31.246]) by e23smtp08.au.ibm.com (8.14.4/8.13.1) with ESMTP id p675MH3B025602 for ; Thu, 7 Jul 2011 15:22:17 +1000 Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.234.97]) by d23relay04.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p675Q54T1134598 for ; Thu, 7 Jul 2011 15:26:05 +1000 Received: from d23av03.au.ibm.com (loopback [127.0.0.1]) by d23av03.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p675ROiF030382 for ; Thu, 7 Jul 2011 15:27:25 +1000 Message-ID: <4E1543B6.9060800@linux.vnet.ibm.com> Date: Thu, 07 Jul 2011 10:57:18 +0530 From: divya MIME-Version: 1.0 To: linuxppc-dev@ozlabs.org Subject: {PATCH] Firmware update using the update_flash -f results to soft lockup BUG Content-Type: text/plain; charset=ISO-8859-1; format=flowed Cc: antonb@au1.ibm.com, naveedaus@in.ibm.com, kenistoj@us.ibm.com, chavez@us.ibm.com, arunbal@in.ibm.com, srikar@linux.vnet.ibm.com, jlarrew@us.ibm.com, lxie@us.ibm.com, mahesh.salgaonkar@in.ibm.com, Subrata Modak , suzukikp@in.ibm.com List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi , Problem Description: Firmware update using the update_flash -f results to soft lockup BUG FLASH: preparing saved firmware image for flash FLASH: flash image is 50141296 bytes FLASH: performing flash and reboot FLASH: this will take several minutes. Do not power off! BUG: soft lockup - CPU#1 stuck for 67s! [events/1:36] Steps to reproduce: 1. Check the firmware information on the machine (using ASM or lsmcode) 2. Update the system firmware with the update_flash command update_flash -f 01FL350_039_038.img info: Temporary side will be updated with a newer or identical image Projected Flash Update Results: Current T Image: FL350_039 Current P Image: FL350_039 New T Image: FL350_039 New P Image: FL350_039 Flash image ready...rebooting the system... Broadcast message from root@abc (/dev/hvc0) at 5:25 ... The system is going down for reboot NOW! [root@abc /]# Stopping rhsmcertd[ OK ] Stopping atd: [ OK ] Stopping cups: [ OK ] Stopping abrt daemon: [ OK ] Stopping sshd: [ OK ] Shutting down postfix: [ OK ] Stopping rtas_errd (platform error handling) daemon: [ OK ] Stopping crond: [ OK ] Stopping automount: [ OK ] Stopping HAL daemon: [ OK ] Stopping iprdump: [ OK ] Killing mdmonitor: [ OK ]] Stopping system message bus: [ OK ] Stopping rpcbind: [ OK ] Stopping auditd: [ OK ] Shutting down interface eth0: [ OK ] Shutting down loopback interface: [ OK ] ip6tables: Flushing firewall rules: [ OK ] ip6tables: Setting chains to policy ACCEPT: filter [ OK ] ip6tables: Unloading modules: [ OK ] iptables: Flushing firewall rules: [ OK ] iptables: Setting chains to policy ACCEPT: filter [ OK ] iptables: Unloading modules: [ OK ] Sending all processes the TERM signal... [ OK ] Sending all processes the KILL signal... [ OK ] Saving random seed: [ OK ] Turning off swap: [ OK ] Turning off quotas: [ OK ] Unmounting pipe file systems: [ OK ] Unmounting file systems: [ OK ] init: Re-executing /sbin/init Please stand by while rebooting the system... Restarting system. FLASH: preparing saved firmware image for flash FLASH: flash image is 50141296 bytes FLASH: performing flash and reboot FLASH: this will take several minutes. Do not power off! BUG: soft lockup - CPU#1 stuck for 67s! [events/1:36] This is solved by the following patch --- arch/powerpc/kernel/setup-common.c.orig 2011-07-01 22:41:12.952507971 -0400 +++ arch/powerpc/kernel/setup-common.c 2011-07-01 22:48:31.182507915 -0400 @@ -109,11 +109,12 @@ void machine_shutdown(void) void machine_restart(char *cmd) { machine_shutdown(); - if (ppc_md.restart) - ppc_md.restart(cmd); #ifdef CONFIG_SMP - smp_send_stop(); + smp_send_stop(); #endif + if (ppc_md.restart) + ppc_md.restart(cmd); + printk(KERN_EMERG "System Halted, OK to turn off power\n"); local_irq_disable(); while (1) ; Thanks Divya