spapr: Move memory hotplug to RTAS_LOG_V6_HP_ID_DRC_COUNT type
commit0a4178692c2375a4516da7b71629bd08ee8697ee
authorBharata B Rao <bharata@linux.vnet.ibm.com>
Mon, 3 Aug 2015 05:35:43 +0000 (3 11:05 +0530)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 23 Sep 2015 00:51:11 +0000 (23 10:51 +1000)
treec1a0307e1ecbb100fc84d0612f9675f6b90c781b
parent7a36ae7a9f4f136d40fe1da4aab66b364d4aa56d
spapr: Move memory hotplug to RTAS_LOG_V6_HP_ID_DRC_COUNT type

Till now memory hotplug used RTAS_LOG_V6_HP_ID_DRC_INDEX hotplug type
which meant that we generated one hotplug type of EPOW event for every
256MB (SPAPR_MEMORY_BLOCK_SIZE). This quickly overruns the kernel
rtas log buffer thus resulting in loss of memory hotplug events. Switch
to RTAS_LOG_V6_HP_ID_DRC_COUNT hotplug type for memory so that we
generate only one event per hotplug request.

Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c