From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755759Ab1FNBfe (ORCPT ); Mon, 13 Jun 2011 21:35:34 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]:24055 "EHLO rcsinet10.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753087Ab1FNBfd (ORCPT ); Mon, 13 Jun 2011 21:35:33 -0400 Date: Mon, 13 Jun 2011 21:34:58 -0400 From: Konrad Rzeszutek Wilk To: Tobias Diedrich , xen-users@lists.xensource.com, linux-kernel@vger.kernel.org Subject: Re: 3.0.0-rc2: Xen: powernow-k8: Kernel panic - not syncing: Attempted to kill init! Message-ID: <20110614013457.GB414@dumpdata.com> References: <20110613202622.GC20616@yumi.tdiedrich.de> <20110613215123.GA19117@dumpdata.com> <20110613235221.GA7417@yumi.tdiedrich.de> <20110614001333.GC7417@yumi.tdiedrich.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110614001333.GC7417@yumi.tdiedrich.de> User-Agent: Mutt/1.5.21 (2010-09-15) X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090201.4DF6BADF.0074:SCFMA922111,ss=1,fgs=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 14, 2011 at 02:13:33AM +0200, Tobias Diedrich wrote: > Tobias Diedrich wrote: > > Konrad Rzeszutek Wilk wrote: > > > > [ 5.523199] rtc_cmos 00:05: setting system clock to 2011-06-13 20:20:00 UTC (1307996400) > > > > [ 5.523400] powernow-k8: Found 1 AMD Athlon(tm) 64 Processor 3700+ (1 cpu cores) (version 2.20.00) > > > > [ 5.530956] powernow-k8: fid 0x2 (1000 MHz), vid 0x12 > > > > [ 5.531072] powernow-k8: fid 0xa (1800 MHz), vid 0xa > > > > [ 5.531187] powernow-k8: fid 0xc (2000 MHz), vid 0x8 > > > > [ 5.531301] powernow-k8: fid 0xe (2200 MHz), vid 0x8 > > > > [ 5.531460] Marking TSC unstable due to cpufreq changes > > > > [ 5.531680] powernow-k8: fid trans failed, fid 0x2, curr 0x0 > > > > [ 5.531802] BUG: unable to handle kernel paging request at ffff880807e07b78 > > > > [ 5.531982] IP: [] cpufreq_stats_update+0x46/0x5b > > > > > > For this one, you will have to fire out gdb and disassemble the code to > > > figure out where it failed. Look for 'gdb vmlinux' and 'disassembly' on this > > > mailing list - that should provide some hints. > > > > Probably because of the 'fid trans failed' stat->last_index is -1 > > It's set to -1 in cpufreq_stats_create_table(), the second call to > freq_table_get_index() doesn't check against -1 (expecting the call > to always succeed): > > stat->last_time = get_jiffies_64(); > stat->last_index = freq_table_get_index(stat, policy->cur); What is policy->cur? Is is 800000 ? If so, does this fix your problem: diff --git a/drivers/cpufreq/powernow-k8.c b/drivers/cpufreq/powernow-k8.c index 83479b6..9be00d9 100644 --- a/drivers/cpufreq/powernow-k8.c +++ b/drivers/cpufreq/powernow-k8.c @@ -1079,7 +1079,8 @@ static int transition_frequency_fidvid(struct powernow_k8_data *data, } res = transition_fid_vid(data, fid, vid); - freqs.new = find_khz_freq_from_fid(data->currfid); + if (!res) + freqs.new = find_khz_freq_from_fid(data->currfid); for_each_cpu(i, data->available_cores) { freqs.cpu = i;