• Niklas Schnelle's avatar
    s390/pci: convert high_memory to physical address · 2187582c
    Niklas Schnelle authored
    We use high_memory as a measure for amount of memory available in
    determining the required minimum size of our IOVA space with the
    assumption that one rarely maps more than the available memory for DMA.
    In special cases like mapping significant amounts of memory more than
    once this can still be tuned with the s390_iommu_apterture kernel
    parameter. In this use case high_memory is treated as a physical
    address. As high_memory is a virtual address however this means we need
    to convert it using virt_to_phys() before use
    
    Note that at the moment physical and virtual addresses are identical so
    this mismatch does not currently cause trouble.
    Reviewed-by: default avatarMatthew Rosato <mjrosato@linux.ibm.com>
    Signed-off-by: default avatarNiklas Schnelle <schnelle@linux.ibm.com>
    Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
    2187582c
pci_dma.c 17.6 KB