From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzToi-000158-QE for qemu-devel@nongnu.org; Tue, 24 Jun 2014 12:43:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzToY-00046V-BY for qemu-devel@nongnu.org; Tue, 24 Jun 2014 12:43:32 -0400 Received: from e23smtp09.au.ibm.com ([202.81.31.142]:46253) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzToX-00042y-Hh for qemu-devel@nongnu.org; Tue, 24 Jun 2014 12:43:22 -0400 Received: from /spool/local by e23smtp09.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 25 Jun 2014 02:43:18 +1000 From: Alexey Kardashevskiy Date: Wed, 25 Jun 2014 02:43:11 +1000 Message-Id: <1403628191-5574-7-git-send-email-aik@ozlabs.ru> In-Reply-To: <1403628191-5574-1-git-send-email-aik@ozlabs.ru> References: <1403628191-5574-1-git-send-email-aik@ozlabs.ru> Subject: [Qemu-devel] [PATCH v2 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 , 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 559df35..5e3dbf3 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -681,7 +681,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