]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries: Advertise Hot Plug Event support to firmware
authorMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 21 Feb 2017 01:12:18 +0000 (19:12 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 21 Feb 2017 10:32:53 +0000 (21:32 +1100)
commit20be854a87e1ca2c34b887b79bed773189972e31
tree57c64905d0ef691a02f4271714498ab23eb48bea
parente774bced074ac627612206cafe5b10aba7083ca9
powerpc/pseries: Advertise Hot Plug Event support to firmware

With the inclusion of commit 03c3e428591b ("powerpc/pseries: Implement
indexed-count hotplug memory add") and commit 75e410d8bb88
("powerpc/pseries: Implement indexed-count hotplug memory remove"), we
now have complete handling of the RTAS hotplug event format as described
by PAPR via ACR "PAPR Changes for Hotplug RTAS Events".

This capability is indicated by byte 6, bit 2 (5 in IBM numbering) of
architecture option vector 5, and allows for greater control over
cpu/memory/pci hot plug/unplug operations.

Existing pseries kernels will utilize this capability based on the
existence of the /event-sources/hot-plug-events DT property, so we
only need to advertise it via CAS and do not need a corresponding
FW_FEATURE_* value to test for.

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/prom.h
arch/powerpc/kernel/prom_init.c