• Thomas Hellstrom's avatar
    drm/vmwgfx: Map the fifo as cached · 2e586a7e
    Thomas Hellstrom authored
    On the guest kernel side, previously the FIFO has been mapped write-
    combined. This has worked since VMs up to now has not honored the mapping
    type and mapped the FIFO cached anyway. Since the FIFO is accessed cached
    by the CPU on the virtual device side, this leads to inconsistent
    mappings once the guest starts to honor the mapping types.
    
    So ask for cached mappings when we map the FIFO. We do this by
    using ioremap_cache() instead of ioremap_wc(), and remove the MTRR setup.
    On the TTM side, MOBs, GMRs and VRAM buffers are already requesting
    cached mappings for kernel- and user-space.
    
    Cc: <stable@vger.kernel.org>
    Signed-off-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
    Reviewed-by: default avatarSinclair Yeh <syeh@vmware.com>
    2e586a7e
vmwgfx_drv.c 44 KB