2011-03-17 06:46:14

by Pavel Machek

[permalink] [raw]
Subject: reboot/kexec in 2.6.38

Hi!

I got report that reboot/kexec does not work in recent kernels.

I tried both kexec and reboot in 2.6.38, and it worked ok. Maybe
config issue?
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


2011-03-17 10:59:12

by Cong Wang

[permalink] [raw]
Subject: Re: reboot/kexec in 2.6.38

On Thu, 17 Mar 2011 07:45:23 +0100, Pavel Machek wrote:

> Hi!
>
> I got report that reboot/kexec does not work in recent kernels.
>
> I tried both kexec and reboot in 2.6.38, and it worked ok. Maybe config
> issue?

By "does not work", what is the behavior?

2011-03-17 10:59:18

by Eric Miao

[permalink] [raw]
Subject: Re: reboot/kexec in 2.6.38

On Thu, Mar 17, 2011 at 2:45 PM, Pavel Machek <[email protected]> wrote:
> Hi!
>
> I got report that  reboot/kexec does not work in recent kernels.
>
> I tried both kexec and reboot in 2.6.38, and it worked ok. Maybe
> config issue?

I think it's config issue. Never heard of this.

>                                                                        Pavel
> --
> (english) http://www.livejournal.com/~pavelmachek
> (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
>

2011-03-17 12:58:45

by Cyril Hrubis

[permalink] [raw]
Subject: Re: reboot/kexec in 2.6.38

Hi!
> > I got report that ?reboot/kexec does not work in recent kernels.
> >
> > I tried both kexec and reboot in 2.6.38, and it worked ok. Maybe
> > config issue?
>
> I think it's config issue. Never heard of this.
>

I've seen that on my zaurus a month or two ago. When kexeced to pxa-linux-2.6
then tried to kexec again. The last thing I've seen was Bye on the framebuffer
console and the machine freezed.

--
metan

2011-03-17 17:07:28

by Eric W. Biederman

[permalink] [raw]
Subject: Re: reboot/kexec in 2.6.38

Cyril Hrubis <[email protected]> writes:

> Hi!
>> > I got report that  reboot/kexec does not work in recent kernels.
>> >
>> > I tried both kexec and reboot in 2.6.38, and it worked ok. Maybe
>> > config issue?
>>
>> I think it's config issue. Never heard of this.
>>
>
> I've seen that on my zaurus a month or two ago. When kexeced to pxa-linux-2.6
> then tried to kexec again. The last thing I've seen was Bye on the framebuffer
> console and the machine freezed.

The basic kexec code has been stable and solid for a long time so kexec
failures are almost always hardware interaction problems.

Someone not stopping dma, or someone not putting the hardware in a state
that the next kernel can figure out how to initialize it.

Eric

2011-03-22 13:30:39

by Cyril Hrubis

[permalink] [raw]
Subject: Re: reboot/kexec in 2.6.38

Hi!
> I think it's config issue. Never heard of this.

I've just compiled and booted 2.6.38. The kernel boots without problems when
flashed in. But I've had no success with kexec, the last lines I see are:

Starting new kernel
Bye!
_

Any ides where to dig?

--
metan

2011-03-25 20:49:50

by Eric W. Biederman

[permalink] [raw]
Subject: Re: reboot/kexec in 2.6.38

Cyril Hrubis <[email protected]> writes:

> Hi!
>> I think it's config issue. Never heard of this.
>
> I've just compiled and booted 2.6.38. The kernel boots without problems when
> flashed in. But I've had no success with kexec, the last lines I see are:
>
> Starting new kernel

Enable early_printk to a serial port if you can.

There is definitely an issue in 2.6.38 where kdump doesn't work, that
right now looks like a memblock issue.

Eric

2011-04-12 14:43:34

by Cyril Hrubis

[permalink] [raw]
Subject: Re: reboot/kexec in 2.6.38

Hi!
> >> I think it's config issue. Never heard of this.
> >
> > I've just compiled and booted 2.6.38. The kernel boots without problems when
> > flashed in. But I've had no success with kexec, the last lines I see are:
> >
> > Starting new kernel
>
> Enable early_printk to a serial port if you can.
>
> There is definitely an issue in 2.6.38 where kdump doesn't work, that
> right now looks like a memblock issue.

Finaly got time to solder serial adapter...

And now, after I configured kernel to print to both ttyS0 serial console and
tty0 the kexec started to work.

--
metan

2011-04-12 15:11:59

by Eric Miao

[permalink] [raw]
Subject: Re: reboot/kexec in 2.6.38

On Tue, Apr 12, 2011 at 10:43 PM, Cyril Hrubis <[email protected]> wrote:
> Hi!
>> >> I think it's config issue. Never heard of this.
>> >
>> > I've just compiled and booted 2.6.38. The kernel boots without problems when
>> > flashed in. But I've had no success with kexec, the last lines I see are:
>> >
>> > Starting new kernel
>>
>> Enable early_printk to a serial port if you can.
>>
>> There is definitely an issue in 2.6.38 where kdump doesn't work, that
>> right now looks like a memblock issue.
>
> Finaly got time to solder serial adapter...
>
> And now, after I configured kernel to print to both ttyS0 serial console and
> tty0 the kexec started to work.

Cool. Please help check why it didn't work, and see if we have something
broken.

>
> --
> metan
>

2011-04-12 18:13:09

by Cyril Hrubis

[permalink] [raw]
Subject: Re: reboot/kexec in 2.6.38

Hi!
> >> Enable early_printk to a serial port if you can.
> >>
> >> There is definitely an issue in 2.6.38 where kdump doesn't work, that
> >> right now looks like a memblock issue.
> >
> > Finaly got time to solder serial adapter...
> >
> > And now, after I configured kernel to print to both ttyS0 serial console and
> > tty0 the kexec started to work.
>
> Cool. Please help check why it didn't work, and see if we have something
> broken.

Hmm, It seems to work now (I've changed the config slightly meanwhile and now
I've been unable to trigger the bug).

Note to myself: save configs that trigger strange behavior.

--
metan