Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc

* 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc:
powerpc: Update a BKL related comment
powerpc/mm: Fix module instruction tlb fault handling on Book-E 64
powerpc: Fix call to subpage_protection()
powerpc: Set CONFIG_32BIT on ppc32
powerpc/mm: Fix build error in setup_initial_memory_limit
powerpc/pseries: Don't override CONFIG_PPC_PSERIES_DEBUG
powerpc: Fix div64 in bootloader

+20 -11
+4
arch/powerpc/Kconfig
··· 4 4 bool 5 5 default y if !PPC64 6 6 7 + config 32BIT 8 + bool 9 + default y if PPC32 10 + 7 11 config 64BIT 8 12 bool 9 13 default y if PPC64
+2 -1
arch/powerpc/boot/div64.S
··· 33 33 cntlzw r0,r5 # we are shifting the dividend right 34 34 li r10,-1 # to make it < 2^32, and shifting 35 35 srw r10,r10,r0 # the divisor right the same amount, 36 - add r9,r4,r10 # rounding up (so the estimate cannot 36 + addc r9,r4,r10 # rounding up (so the estimate cannot 37 37 andc r11,r6,r10 # ever be too large, only too small) 38 38 andc r9,r9,r10 39 + addze r9,r9 39 40 or r11,r5,r11 40 41 rotlw r9,r9,r0 41 42 rotlw r11,r11,r0
+2 -3
arch/powerpc/kernel/setup_64.c
··· 497 497 } 498 498 499 499 /* 500 - * Called into from start_kernel, after lock_kernel has been called. 501 - * Initializes bootmem, which is unsed to manage page allocation until 502 - * mem_init is called. 500 + * Called into from start_kernel this initializes bootmem, which is used 501 + * to manage page allocation until mem_init is called. 503 502 */ 504 503 void __init setup_arch(char **cmdline_p) 505 504 {
+1 -1
arch/powerpc/mm/hash_utils_64.c
··· 1123 1123 else 1124 1124 #endif /* CONFIG_PPC_HAS_HASH_64K */ 1125 1125 rc = __hash_page_4K(ea, access, vsid, ptep, trap, local, ssize, 1126 - subpage_protection(pgdir, ea)); 1126 + subpage_protection(mm, ea)); 1127 1127 1128 1128 /* Dump some info in case of hash insertion failure, they should 1129 1129 * never happen so it is really useful to know if/when they do
+4 -1
arch/powerpc/mm/tlb_low_64e.S
··· 138 138 cmpldi cr0,r15,0 /* Check for user region */ 139 139 std r14,EX_TLB_ESR(r12) /* write crazy -1 to frame */ 140 140 beq normal_tlb_miss 141 + 142 + li r11,_PAGE_PRESENT|_PAGE_BAP_SX /* Base perm */ 143 + oris r11,r11,_PAGE_ACCESSED@h 141 144 /* XXX replace the RMW cycles with immediate loads + writes */ 142 - 1: mfspr r10,SPRN_MAS1 145 + mfspr r10,SPRN_MAS1 143 146 cmpldi cr0,r15,8 /* Check for vmalloc region */ 144 147 rlwinm r10,r10,0,16,1 /* Clear TID */ 145 148 mtspr SPRN_MAS1,r10
+1 -1
arch/powerpc/mm/tlb_nohash.c
··· 585 585 ppc64_rma_size = min_t(u64, first_memblock_size, 0x40000000); 586 586 587 587 /* Finally limit subsequent allocations */ 588 - memblock_set_current_limit(ppc64_memblock_base + ppc64_rma_size); 588 + memblock_set_current_limit(first_memblock_base + ppc64_rma_size); 589 589 } 590 590 #endif /* CONFIG_PPC64 */
+6
arch/powerpc/platforms/pseries/Kconfig
··· 47 47 config PPC_PSERIES_DEBUG 48 48 depends on PPC_PSERIES && PPC_EARLY_DEBUG 49 49 bool "Enable extra debug logging in platforms/pseries" 50 + help 51 + Say Y here if you want the pseries core to produce a bunch of 52 + debug messages to the system log. Select this if you are having a 53 + problem with the pseries core and want to see more of what is 54 + going on. This does not enable debugging in lpar.c, which must 55 + be manually done due to its verbosity. 50 56 default y 51 57 52 58 config PPC_SMLPAR
-2
arch/powerpc/platforms/pseries/eeh.c
··· 21 21 * Please address comments and feedback to Linas Vepstas <linas@austin.ibm.com> 22 22 */ 23 23 24 - #undef DEBUG 25 - 26 24 #include <linux/delay.h> 27 25 #include <linux/init.h> 28 26 #include <linux/list.h>
-2
arch/powerpc/platforms/pseries/pci_dlpar.c
··· 25 25 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 26 26 */ 27 27 28 - #undef DEBUG 29 - 30 28 #include <linux/pci.h> 31 29 #include <asm/pci-bridge.h> 32 30 #include <asm/ppc-pci.h>