]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Use appropriate ESID mask in copro_calculate_slb()
authorIan Munsie <imunsie@au1.ibm.com>
Tue, 28 Oct 2014 03:25:29 +0000 (14:25 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 28 Oct 2014 08:52:45 +0000 (19:52 +1100)
commitc2d65ab5556ecbc20a4fa13ddb22f83be03897ac
treebdc29550d0e2dd7d627bc29944f5c235e8afb296
parentcd4570689bb5dab0ccf7f7cc7bddb8cc8d88626f
powerpc/mm: Use appropriate ESID mask in copro_calculate_slb()

This patch makes copro_calculate_slb() mask the ESID by the correct mask
for 1T vs 256M segments.

This has no effect by itself as the extra bits were ignored, but it
makes debugging the segment table entries easier and means that we can
directly compare the ESID values for duplicates without needing to worry
about masking in the comparison.

This will be used to simplify a comparison in the following patch.

Signed-off-by: Ian Munsie <imunsie@au1.ibm.com>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/copro_fault.c