From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e33.co.us.ibm.com (e33.co.us.ibm.com [32.97.110.151]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "e33.co.us.ibm.com", Issuer "Equifax" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 44124DDF18 for ; Fri, 13 Jun 2008 08:33:30 +1000 (EST) Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by e33.co.us.ibm.com (8.13.8/8.13.8) with ESMTP id m5CMXRXf006234 for ; Thu, 12 Jun 2008 18:33:27 -0400 Received: from d03av03.boulder.ibm.com (d03av03.boulder.ibm.com [9.17.195.169]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v9.0) with ESMTP id m5CMXRBs144472 for ; Thu, 12 Jun 2008 16:33:27 -0600 Received: from d03av03.boulder.ibm.com (loopback [127.0.0.1]) by d03av03.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m5CMXQZR019481 for ; Thu, 12 Jun 2008 16:33:26 -0600 Date: Thu, 12 Jun 2008 17:31:56 -0500 From: Robert Jennings To: paulus@samba.org Subject: [PATCH 19/19] powerpc: Update arch vector to indicate support for CMO Message-ID: <20080612223156.GA30916@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20080612215312.GF30916@linux.vnet.ibm.com> Cc: Brian King , linuxppc-dev@ozlabs.org, David Darrington List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , =46rom: Nathan Fontenot Update the architecture vector to indicate that Cooperative Memory Overcommitment is supported. This is the last patch in the series. Committing it will signal to=20 the platform firmware is CMO enabled. Signed-off-by: Nathan Fontenot --- arch/powerpc/kernel/prom_init.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) Index: b/arch/powerpc/kernel/prom_init.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- a/arch/powerpc/kernel/prom_init.c +++ b/arch/powerpc/kernel/prom_init.c @@ -642,6 +642,7 @@ static void __init early_cmdline_parse(v #else #define OV5_MSI 0x00 #endif /* CONFIG_PCI_MSI */ +#define OV5_CMO 0x80 /* Cooperative Memory Overcommitment */ =20 /* * The architecture vector has an array of PVR mask/value pairs, @@ -684,10 +685,12 @@ static unsigned char ibm_architecture_ve 0, /* don't halt */ =20 /* option vector 5: PAPR/OF options */ - 3 - 2, /* length */ + 5 - 2, /* length */ 0, /* don't ignore, don't halt */ OV5_LPAR | OV5_SPLPAR | OV5_LARGE_PAGES | OV5_DRCONF_MEMORY | OV5_DONATE_DEDICATE_CPU | OV5_MSI, + 0, + OV5_CMO, }; =20 /* Old method - ELF header with PT_NOTE sections */