From mboxrd@z Thu Jan 1 00:00:00 1970 From: Glauber de Oliveira Costa Subject: [PATCH] BUG() on soft lockup upon suspend/resume Date: Mon, 9 Oct 2006 18:22:42 -0300 Message-ID: <20061009212242.GB28540@redhat.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="GRPZ8SYKNexpdSJ7" Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --GRPZ8SYKNexpdSJ7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, In systems with vcpu > 1, a BUG due to a detected soft lockup seems to be triggered after system resume/suspend. This is probably due to the lack of seqlocking around the region that does the local time processing. The following patch fix this. -- Glauber de Oliveira Costa Red Hat Inc. "Free as in Freedom" --GRPZ8SYKNexpdSJ7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline; filename="softlockup.patch" --- linux-2.6.18-orig/arch/i386/kernel/time-xen.c 2006-10-06 14:37:41.000000000 -0400 +++ linux-2.6.18.x86_64/arch/i386/kernel/time-xen.c 2006-10-09 17:13:54.000000000 -0400 @@ -666,6 +666,13 @@ irqreturn_t timer_interrupt(int irq, voi clock_was_set(); } + /* Local timer processing (see update_process_times()). */ + run_local_timers(); + if (rcu_pending(cpu)) + rcu_check_callbacks(cpu, user_mode(regs)); + scheduler_tick(); + run_posix_cpu_timers(current); + write_sequnlock(&xtime_lock); /* @@ -709,13 +716,6 @@ irqreturn_t timer_interrupt(int irq, voi (cputime_t)delta_cpu); } - /* Local timer processing (see update_process_times()). */ - run_local_timers(); - if (rcu_pending(cpu)) - rcu_check_callbacks(cpu, user_mode(regs)); - scheduler_tick(); - run_posix_cpu_timers(current); - return IRQ_HANDLED; } --GRPZ8SYKNexpdSJ7 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --GRPZ8SYKNexpdSJ7--