From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
To: Ralf Mardorf <ralf.mardorf@rocketmail.com>
Cc: linux-rt users <linux-rt-users@vger.kernel.org>
Subject: Re: 3.18.9-rt4 kernel panic - Was: 3.18.9-rt4
Date: Mon, 16 Mar 2015 17:23:48 +0100 [thread overview]
Message-ID: <20150316162348.GC28130@linutronix.de> (raw)
In-Reply-To: <20150314104336.756a6f0e@archlinux>
* Ralf Mardorf | 2015-03-14 10:43:36 [+0100]:
>On Fri, 13 Mar 2015 22:30:41 +0100, Ralf Mardorf wrote:
>>all kernels >= 3.14.34-rt31 I tested, don't finish startup on my
>>machine [1]. This are the last messages of startups for 4 different
>>startups for 3.18.9-rt4.
>>
>>Picture URLs:
>>http://picpaste.com/3.18.9-rt4.x86_64.end_of_startup_2.jpg
here we have
powernowk8_target_fn() -> transition_frequency_fidvid() and then at the
end:
932 policy = cpufreq_cpu_get(smp_processor_id());
933 cpufreq_cpu_put(policy);
and I think the explosion starts in cpufreq_cpu_put() because I have no
idea why page_fault() shows up in the backtrace.
>>http://picpaste.com/3.18.9-rt4.x86_64.end_of_startup_3.jpg
some timer thingy, most likely follow-up
>>http://picpaste.com/3.18.9-rt4.x86_64.end_of_startup_4.jpg
looks like _2
>>http://picpaste.com/3.18.9-rt4.x86_64.end_of_startup_5.jpg
follow up
>>
>>The last kernel I tested that does work is 3.14.28-rt25.
>Picture URL:
>http://picpaste.com/3.18.9-rt4.x86_64.end_of_startup_6.jpg
dunno.
I assume the crash occurs because cpufreq_cpu_put() returns a NULL
pointer. I have no idea why this happens or if it happens at all.
What happens if you apply this:
diff --git a/drivers/cpufreq/powernow-k8.c b/drivers/cpufreq/powernow-k8.c
index f9ce7e4bf0fe..ddf3a9006339 100644
--- a/drivers/cpufreq/powernow-k8.c
+++ b/drivers/cpufreq/powernow-k8.c
@@ -930,7 +930,8 @@ static int transition_frequency_fidvid(struct powernow_k8_data *data,
freqs.new = find_khz_freq_from_fid(fid);
policy = cpufreq_cpu_get(smp_processor_id());
- cpufreq_cpu_put(policy);
+ if (policy)
+ cpufreq_cpu_put(policy);
cpufreq_freq_transition_begin(policy, &freqs);
res = transition_fid_vid(data, fid, vid);
>Regards,
>Ralf
Sebastian
next prev parent reply other threads:[~2015-03-16 16:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-13 21:30 3.18.9-rt4 Ralf Mardorf
2015-03-14 9:43 ` 3.18.9-rt4 kernel panic - Was: 3.18.9-rt4 Ralf Mardorf
2015-03-15 13:51 ` Joakim Hernberg
2015-03-16 14:01 ` Sebastian Andrzej Siewior
2015-03-16 16:23 ` Sebastian Andrzej Siewior [this message]
2015-03-17 5:13 ` Ralf Mardorf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150316162348.GC28130@linutronix.de \
--to=bigeasy@linutronix.de \
--cc=linux-rt-users@vger.kernel.org \
--cc=ralf.mardorf@rocketmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.