Re: [PATCH] ehea: add kexec support

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <michael@...>
Cc: Jan-Bernd Themann <THEMANN@...>, Jeff Garzik <jeff@...>, linux-kernel <linux-kernel@...>, linux-ppc <linuxppc-dev@...>, Marcus Eder <MEDER@...>, netdev <netdev@...>, <ossthema@...>, Stefan Roscher <stefan.roscher@...>, Thomas Q Klein <TKLEIN@...>
Date: Friday, November 2, 2007 - 6:19 am

Michael Ellerman <michael@ellerman.id.au> wrote on 02.11.2007 07:30:08:


We think we have a way to workaround this, but let me first try to
explain the base problem.

DD allocates HEA resources and gets firmware_handles for these resources.
To free the resources DD needs to use exactly these handles.
There's no generic firmware call "clean out all resources".
Allocating the same resources twice does not work.

So a new kernel can't free the resources allocated by an old kernel,
because the numeric values of the handles aren't known anymore.

Potential Solution:
Hea driver cleanup function hooks into ppc_md.machine_crash_shutdown
and frees all firmware resources at shutdown time of the crashed kernel.
crash_kexec continues and loads new kernel.
The new kernel restarts the HEA driver within kdump kernel, which will work
because resources have been freed before.

Michael, would this work?

Gruss / Regards
Christoph R.

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] ehea: add kexec support, Jan-Bernd Themann, (Fri Oct 26, 8:37 am)
Re: [PATCH] ehea: add kexec support, Jeff Garzik, (Mon Oct 29, 5:47 am)
Re: [PATCH] ehea: add kexec support, Michael Ellerman, (Sun Oct 28, 6:32 pm)
Re: [PATCH] ehea: add kexec support, Christoph Raisch, (Tue Oct 30, 4:39 am)
Re: [PATCH] ehea: add kexec support, Michael Ellerman, (Tue Oct 30, 6:50 pm)
Re: [PATCH] ehea: add kexec support, Christoph Raisch, (Wed Oct 31, 3:48 pm)
Re: [PATCH] ehea: add kexec support, Michael Ellerman, (Fri Nov 2, 2:30 am)
Re: [PATCH] ehea: add kexec support, Christoph Raisch, (Fri Nov 2, 6:19 am)
Re: [PATCH] ehea: add kexec support , Michael Neuling, (Sat Nov 3, 2:06 am)
Re: [PATCH] ehea: add kexec support, Christoph Raisch, (Mon Nov 5, 10:24 am)