powerpc/pseries: Update arch vector to indicate support for CMO

Update the architecture vector to indicate that Cooperative Memory
Overcommitment is supported if CONFIG_PPC_SMLPAR is set.

Signed-off-by: Nathan Fontenot <nfont@austin.ibm.com>
Signed-off-by: Robert Jennings <rcj@linux.vnet.ibm.com>
Acked-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

authored by

Nathan Fontenot and committed by
Benjamin Herrenschmidt
8391e42a 39c1ffec

+8 -1
+8 -1
arch/powerpc/kernel/prom_init.c
··· 643 #else 644 #define OV5_MSI 0x00 645 #endif /* CONFIG_PCI_MSI */ 646 647 /* 648 * The architecture vector has an array of PVR mask/value pairs, ··· 692 0, /* don't halt */ 693 694 /* option vector 5: PAPR/OF options */ 695 - 3 - 2, /* length */ 696 0, /* don't ignore, don't halt */ 697 OV5_LPAR | OV5_SPLPAR | OV5_LARGE_PAGES | OV5_DRCONF_MEMORY | 698 OV5_DONATE_DEDICATE_CPU | OV5_MSI, 699 }; 700 701 /* Old method - ELF header with PT_NOTE sections */
··· 643 #else 644 #define OV5_MSI 0x00 645 #endif /* CONFIG_PCI_MSI */ 646 + #ifdef CONFIG_PPC_SMLPAR 647 + #define OV5_CMO 0x80 /* Cooperative Memory Overcommitment */ 648 + #else 649 + #define OV5_CMO 0x00 650 + #endif 651 652 /* 653 * The architecture vector has an array of PVR mask/value pairs, ··· 687 0, /* don't halt */ 688 689 /* option vector 5: PAPR/OF options */ 690 + 5 - 2, /* length */ 691 0, /* don't ignore, don't halt */ 692 OV5_LPAR | OV5_SPLPAR | OV5_LARGE_PAGES | OV5_DRCONF_MEMORY | 693 OV5_DONATE_DEDICATE_CPU | OV5_MSI, 694 + 0, 695 + OV5_CMO, 696 }; 697 698 /* Old method - ELF header with PT_NOTE sections */