]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
s390/vmem: fix identity mapping
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 10 May 2016 10:10:22 +0000 (12:10 +0200)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Tue, 27 Jun 2017 13:16:33 +0000 (10:16 -0300)
commitf57b6da64a7dbb7b6f9e5bbc6df53b5530b7ee8c
tree628dd38e73174c0321e0892301a4d72f459adc49
parent2c056684052b9fca5660e53341efae9b8c85e9ac
s390/vmem: fix identity mapping

BugLink: http://bugs.launchpad.net/bugs/1698817
commit c34a69059d7876e0793eb410deedfb08ccb22b02 upstream.

The identity mapping is suboptimal for the last 2GB frame. The mapping
will be established with a mix of 4KB and 1MB mappings instead of a
single 2GB mapping.

This happens because of a off-by-one bug introduced with
commit 50be63450728 ("s390/mm: Convert bootmem to memblock").

Currently the identity mapping looks like this:

0x0000000080000000-0x0000000180000000        4G PUD RW
0x0000000180000000-0x00000001fff00000     2047M PMD RW
0x00000001fff00000-0x0000000200000000        1M PTE RW

With the bug fixed it looks like this:

0x0000000080000000-0x0000000200000000        6G PUD RW

Fixes: 50be63450728 ("s390/mm: Convert bootmem to memblock")
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
arch/s390/mm/vmem.c