From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35352) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwRkN-0001AM-E1 for qemu-devel@nongnu.org; Mon, 16 Jun 2014 03:54:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WwRk0-00063l-V7 for qemu-devel@nongnu.org; Mon, 16 Jun 2014 03:54:31 -0400 Received: from e23smtp08.au.ibm.com ([202.81.31.141]:33916) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwRk0-00063b-56 for qemu-devel@nongnu.org; Mon, 16 Jun 2014 03:54:08 -0400 Received: from /spool/local by e23smtp08.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 16 Jun 2014 17:54:03 +1000 From: Alexey Kardashevskiy Date: Mon, 16 Jun 2014 17:53:52 +1000 Message-Id: <1402905233-26510-7-git-send-email-aik@ozlabs.ru> In-Reply-To: <1402905233-26510-1-git-send-email-aik@ozlabs.ru> References: <1402905233-26510-1-git-send-email-aik@ozlabs.ru> Subject: [Qemu-devel] [PATCH 6/7] 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 00ef7a1..57ae835 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -682,7 +682,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