• Alexander Gordeev's avatar
    s390/mm: get rid of VMEM_MAX_PHYS macro · 456be42a
    Alexander Gordeev authored
    VMEM_MAX_PHYS is supposed to be the highest physical
    address that can be added to the identity mapping.
    It should match ident_map_size, which has the same
    meaning. However, unlike ident_map_size it is not
    adjusted against various limiting factors (see the
    comment to setup_ident_map_size() function). That
    renders all checks against VMEM_MAX_PHYS invalid.
    
    Further, VMEM_MAX_PHYS is currently set to vmemmap,
    which is an address in virtual memory space. However,
    it gets compared against physical addresses in various
    locations. That works, because both address spaces
    are the same on s390, but otherwise it is wrong.
    
    Instead of fixing VMEM_MAX_PHYS misuse and semantics
    just remove it.
    Acked-by: default avatarHeiko Carstens <hca@linux.ibm.com>
    Signed-off-by: default avatarAlexander Gordeev <agordeev@linux.ibm.com>
    456be42a
vmem.c 18.6 KB