From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2XPp-0006L8-O3 for qemu-devel@nongnu.org; Wed, 02 Jul 2014 23:10:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2XPf-0006y5-De for qemu-devel@nongnu.org; Wed, 02 Jul 2014 23:10:29 -0400 Received: from e23smtp01.au.ibm.com ([202.81.31.143]:40772) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2XPe-0006wt-Jl for qemu-devel@nongnu.org; Wed, 02 Jul 2014 23:10:19 -0400 Received: from /spool/local by e23smtp01.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 3 Jul 2014 13:10:16 +1000 From: Alexey Kardashevskiy Date: Thu, 3 Jul 2014 13:10:07 +1000 Message-Id: <1404357007-29507-7-git-send-email-aik@ozlabs.ru> In-Reply-To: <1404357007-29507-1-git-send-email-aik@ozlabs.ru> References: <1404357007-29507-1-git-send-email-aik@ozlabs.ru> Subject: [Qemu-devel] [PATCH v3 6/6] spapr: Fix ibm, associativity for memory nodes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alexey Kardashevskiy , Nishanth Aravamudan , qemu-ppc@nongnu.org, Alexander Graf We want the associtivity lists of memory and CPU nodes to match but memory nodes have incorrect domain#3 which is zero for CPU so they won't match. This clears domain#3 in the list to match CPUs associtivity lists. Signed-off-by: Alexey Kardashevskiy --- hw/ppc/spapr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index c71ce1f..166b2fc 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -624,7 +624,7 @@ static void spapr_populate_memory_node(void *fdt, int nodeid, hwaddr start, uint32_t associativity[] = { cpu_to_be32(0x4), /* length */ cpu_to_be32(0x0), cpu_to_be32(0x0), - cpu_to_be32(nodeid), cpu_to_be32(nodeid) + cpu_to_be32(0x0), cpu_to_be32(nodeid) }; char mem_name[32]; uint64_t mem_reg_property[2]; -- 2.0.0