All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Jann <Christian.Jann@elektrobit.com>
To: linux-rt-users@vger.kernel.org
Subject: Re: 3.14.3-rt5: at91: Crash early at boot
Date: Mon, 13 Apr 2015 13:37:30 +0000 (UTC)	[thread overview]
Message-ID: <loom.20150413T150403-767@post.gmane.org> (raw)
In-Reply-To: 20150316183033.GH4560@piout.net

Alexandre Belloni <alexandre.belloni <at> free-electrons.com> writes:

Hi all,

> 
> Hi Maxime,
> 
> On 16/03/2015 at 19:19:00 +0100, Maxime Ripard wrote :
> > Hi,
> > 
> > On Tue, Feb 17, 2015 at 09:38:59AM +0100, Sebastian Andrzej Siewior wrote:
> > > * Maxime Ripard | 2014-06-13 16:25:06 [+0200]:
> > > 
> > > >Preemptible hierarchical RCU implementation.
> > > >NR_IRQS:16 nr_irqs:16 16
> > > >Unable to handle kernel NULL pointer dereference at virtual address
00000000
> > > >pgd = c0004000
> > > >[00000000] *pgd=00000000
> > > >Internal error: Oops: 5 [#1] PREEMPT ARM
> > > >Modules linked in:
> > > >CPU: 0 PID: 0 Comm: swapper Not tainted 3.14.3-rt4+ #11
> > > >task: c05ecb28 ti: c05e2000 task.ti: c05e2000
> > > >PC is at wake_up_process+0x8/0x40
> > > >LR is at kthread_create_on_node+0xb0/0x178
> > > …
> > > >Do you know what could be the cause of this, or is this any known issue?
> > > 
> > > No. This is very early in the boot process. I upgrade the at91's timer
> > > patches but have no HW to actually check if this is still working.
> > 
> > Do you have a link to these patches?
> > 
> The issue has been solved at emtrion but I think the patches were not
> sent yet. The issue is that threading the timer IRQs leads to a crash
> because kthreadd is not started yet.
> 


Are there any updates concerning the patches or does anybody have some more
information on how the problem was resolved on the Atmel controller?

I'm encountering the same problem on a Tegra K1 processor with a
3.10.61-rt65 kernel and I'm unsure what's the best way to fix it.

Unable to handle kernel NULL pointer dereference at virtual address 00000000
[<c0072c80>] (wake_up_process+0x10/0x4c) from [<c005ff20>]
(kthread_create_on_node+0x84/0xec)
[<c005ff20>] (kthread_create_on_node+0x84/0xec) from [<c00bb67c>]
(__setup_irq+0x29c/0x4cc)
[<c00bb67c>] (__setup_irq+0x29c/0x4cc) from [<c00bb8f4>] (setup_irq+0x48/0x90)
[<c00bb8f4>] (setup_irq+0x48/0x90) from [<c06d9f38>]
(tegra3_register_wake_timer+0x28/0x64)
[<c06d9f38>] (tegra3_register_wake_timer+0x28/0x64) from [<c0cea0fc>]
(tegra_init_timer+0x23c/0x36c)
[<c0cea0fc>] (tegra_init_timer+0x23c/0x36c) from [<c0ce9a88>]
(clocksource_of_init+0x34/0x58)
[<c0ce9a88>] (clocksource_of_init+0x34/0x58) from [<c0cba2b4>]
(time_init+0x2c/0x38)
[<c0cba2b4>] (time_init+0x2c/0x38) from [<c0cb79ac>] (start_kernel+0x234/0x370)
Kernel panic - not syncing: Attempted to kill the idle task!

The problem is time_init() gets executed far before rest_init() where
kthreadd_task gets initialized and wake_up_process(kthreadd_task) failes in
kthread_create_on_node().

Best regards
Christian Jann

  reply	other threads:[~2015-04-13 14:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-13 14:25 3.14.3-rt5: at91: Crash early at boot Maxime Ripard
2014-06-13 14:48 ` jordan
2014-06-13 15:28   ` Maxime Ripard
2015-02-17  8:38 ` Sebastian Andrzej Siewior
2015-03-16 18:19   ` Maxime Ripard
2015-03-16 18:30     ` Alexandre Belloni
2015-04-13 13:37       ` Christian Jann [this message]
2015-04-16  7:50         ` Sebastian Andrzej Siewior
2015-04-16  9:55           ` Christian Jann

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=loom.20150413T150403-767@post.gmane.org \
    --to=christian.jann@elektrobit.com \
    --cc=linux-rt-users@vger.kernel.org \
    /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.