[PATCH] rtas_errd: Add support for PHB hotplugging via RTAS event
Michael Roth <[email protected]> Wed, 27 May 2015 18:46:07 -0500
| Newsgroups | gmane.linux.tools.diag.devel |
|---|---|
| Message-ID | <[email protected]> |
This extends the hotplug hooks in place for PCI/MEM/CPU hotplug to also handle PHB hotplug. This requires an updated powerpc-utils to work properly, due to the fact that drmgr does not currently handle hotplugging based on DRC index, and instead relies on DRC name strings. Signed-off-by: Michael Roth <[email protected]> --- rtas_errd/hotplug.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rtas_errd/hotplug.c b/rtas_errd/hotplug.c index 91036b2..ad048ae 100644 --- a/rtas_errd/hotplug.c +++ b/rtas_errd/hotplug.c @@ -46,6 +46,9 @@ void handle_hotplug_event(struct event *re) case RTAS_HP_TYPE_MEMORY: drmgr_args[2] = "mem"; break; + case RTAS_HP_TYPE_PHB: + drmgr_args[2] = "phb"; + break; default: dbg("Unknown or unsupported hotplug type %d\n", hotplug->type); -- 1.9.1 ------------------------------------------------------------------------------