android_kernel_motorola_sm6225/arch/powerpc
Aneesh Kumar K.V 7e74c3921a powerpc: Fix hpte_decode to use the correct decoding for page sizes
As per ISA doc, we encode base and actual page size in the LP bits of
PTE. The number of bit used to encode the page sizes depend on actual
page size.  ISA doc lists this as

   PTE LP     actual page size
rrrr rrrz 	>=8KB
rrrr rrzz	>=16KB
rrrr rzzz 	>=32KB
rrrr zzzz 	>=64KB
rrrz zzzz 	>=128KB
rrzz zzzz 	>=256KB
rzzz zzzz	>=512KB
zzzz zzzz 	>=1MB

ISA doc also says
"The values of the “z” bits used to specify each size, along with all possible
values of “r” bits in the LP field, must result in LP values distinct from
other LP values for other sizes."

based on the above update hpte_decode to use the correct decoding for LP bits.

Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Acked-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2013-04-30 16:00:18 +10:00
..
boot Merge remote-tracking branch 'kumar/next' into next 2013-04-30 11:10:09 +10:00
configs Merge remote-tracking branch 'kumar/next' into next 2013-04-30 11:10:09 +10:00
crypto powerpc: Fix compile of sha1-powerpc-asm.S on 32-bit 2013-03-05 16:56:26 +11:00
include powerpc: Decode the pte-lp-encoding bits correctly. 2013-04-30 16:00:14 +10:00
kernel powerpc: Reduce PTE table memory wastage 2013-04-30 16:00:07 +10:00
kvm powerpc: Decode the pte-lp-encoding bits correctly. 2013-04-30 16:00:14 +10:00
lib uprobes/powerpc: Add dependency on single step emulation 2013-01-29 11:35:06 +11:00
math-emu powerpc/math_emu/efp: Look for errata handler when type mismatches 2011-10-06 23:36:47 -05:00
mm powerpc: Fix hpte_decode to use the correct decoding for page sizes 2013-04-30 16:00:18 +10:00
net PPC: net: bpf_jit_comp: add VLAN instructions for BPF JIT 2012-11-17 22:12:47 -05:00
oprofile Merge branch 'merge' into next 2013-01-29 11:33:37 +11:00
perf powerpc/perf: Enable branch stack sampling framework 2013-04-26 16:13:02 +10:00
platforms powerpc: Decode the pte-lp-encoding bits correctly. 2013-04-30 16:00:14 +10:00
sysdev powerpc: Fix usage of setup_pci_atmu() 2013-04-30 15:15:12 +10:00
xmon powerpc: Save DAR and DSISR in pt_regs on MCE 2013-04-30 15:59:42 +10:00
Kconfig Merge remote-tracking branch 'kumar/next' into next 2013-04-30 11:10:09 +10:00
Kconfig.debug powerpc: IOMMU fault injection 2012-07-10 19:18:59 +10:00
Makefile powerpc: Avoid load of static chain register when calling nested functions through a pointer on 64bit 2013-01-10 17:01:27 +11:00
relocs_check.pl powerpc: Process dynamic relocations for kernel 2011-12-20 10:21:08 -05:00