Re: [PATCH] rtas_errd: Add support for PHB hotplugging via RTAS event

Vasant Hegde <[email protected]> Sat, 30 May 2015 21:41:11 +0530
Newsgroups gmane.linux.tools.diag.devel
Message-ID <[email protected]>
On 05/28/2015 05:16 AM, Michael Roth wrote:
> 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

Michael,

Can you specify what version of powerpc-utils required? So that we can update
the spec file!


> 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]>

Nathan,
 Can you please Ack this patch?

> ---
>  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;

Code looks good .. I assume you have tested this patch!

-Vasant


------------------------------------------------------------------------------