Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751183AbVJaUnP (ORCPT ); Mon, 31 Oct 2005 15:43:15 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751144AbVJaUnP (ORCPT ); Mon, 31 Oct 2005 15:43:15 -0500 Received: from fmr24.intel.com ([143.183.121.16]:59109 "EHLO scsfmr004.sc.intel.com") by vger.kernel.org with ESMTP id S1751183AbVJaUnO (ORCPT ); Mon, 31 Oct 2005 15:43:14 -0500 Date: Mon, 31 Oct 2005 12:42:17 -0800 From: Ashok Raj To: "Rafael J. Wysocki" Cc: Andrew Morton , linux-kernel@vger.kernel.org, Ashok Raj , Dave Jones , Ingo Molnar , linux@brodo.de Subject: Re: 2.6.14-git3: scheduling while atomic from cpufreq on Athlon64 Message-ID: <20051031124216.A18213@unix-os.sc.intel.com> References: <200510311606.36615.rjw@sisk.pl> <20051031113413.34a599cd.akpm@osdl.org> <200510312045.32908.rjw@sisk.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200510312045.32908.rjw@sisk.pl>; from rjw@sisk.pl on Mon, Oct 31, 2005 at 08:45:32PM +0100 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2377 Lines: 52 On Mon, Oct 31, 2005 at 08:45:32PM +0100, Rafael J. Wysocki wrote: > On Monday, 31 of October 2005 20:34, Andrew Morton wrote: > > "Rafael J. Wysocki" wrote: > }-- snip --{ > > > scheduling while atomic: swapper/0x00000001/1 > > > > > > Call Trace:{schedule+122} {cpufreq_frequency_table_target+371} > > > {powernowk8_target+1916} {__cpufreq_driver_target+116} > > > {sysfs_new_dirent+41} {cpufreq_governor_performance+62} > > > {__cpufreq_governor+173} {__cpufreq_set_policy+551} > > > {cpufreq_set_policy+79} {cpufreq_add_dev+806} > > > {handle_update+0} {sysdev_driver_register+170} > > > {cpufreq_register_driver+198} {init+194} > > > {child_rip+8} {init+0} > > > {child_rip+0} > > > > Well I can't find it. Ingo, didn't you have a debug patch which would help > > us identify where this atomic section started? > > This is 100% reproducible on my box so I'll try to figure out what's up tomorrow > (unless someone else does it earlier ;-)). Now I can only say it did not happen > with 2.6.14-rc5-mm1. This could be because of the new patch, i added preempt_disable() instead of taking cpucontrol lock in __cpufreq_driver_target(). The reason is we now enter the same code path from the cpu_up() and cpu_down() generated cpu notifier callbacks and ends up trying to lock when the call path already has the cpucontrol lock. Its happening because we do set_cpus_allowed() in powernowk8_target(). > > > > Additionally there are some problems with freezing processes by swsusp. > > Once the box has not suspended due to a process refusing to freeze, but I was > unable to trace the problem at that time. This does not seem to be readily > reproducible, however. > > Greetings, > Rafael -- Cheers, Ashok Raj - Open Source Technology Center - 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/