Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758881AbYFDLQr (ORCPT ); Wed, 4 Jun 2008 07:16:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756970AbYFDLQ3 (ORCPT ); Wed, 4 Jun 2008 07:16:29 -0400 Received: from bzq-179-150-194.static.bezeqint.net ([212.179.150.194]:40576 "EHLO il.qumranet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757174AbYFDLQ2 (ORCPT ); Wed, 4 Jun 2008 07:16:28 -0400 Message-ID: <4846798F.2030002@qumranet.com> Date: Wed, 04 Jun 2008 14:16:31 +0300 From: Avi Kivity User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: Jiri Kosina CC: Thomas Gleixner , Zdenek Kabelac , linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: Re: BUG: using smp_processor_id() in preemptible [00000000] code: pm-suspend/17334 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (firebolt.argo.co.il [0.0.0.0]); Wed, 04 Jun 2008 14:16:31 +0300 (IDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1065 Lines: 29 Jiri Kosina wrote: > On Wed, 4 Jun 2008, Thomas Gleixner wrote: > > >>> OK, so it looks like KVM could be wrongly enabling IRQs/preemption on >>> the resume path. The original bug-report is on >>> http://lkml.org/lkml/2008/4/7/130 >>> >> sysdev_resume() is supposed to run with interrupts disabled, at least >> it was that way when the timekeeping_resume code was written. >> > > True. However in Zdenek's case, interrupts/preemption gets enabled > somewhere during the resume, which correctly triggers the warning. > > We might add a check to the generic resume controller, to check after each ->resume() method and warn in case of interrupts enabled. That will pinpoint the offending driver immediately. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. -- 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/