Skip to content
  • Moshe Lazer's avatar
    net/mlx5: Fix global UAR mapping · 0ba42241
    Moshe Lazer authored
    Avoid double mapping of io mapped memory, Device page may be
    mapped to non-cached(NC) or to write-combining(WC).
    The code before this fix tries to map it both to WC and NC
    contrary to what stated in Intel's software developer manual.
    
    Here we remove the global WC mapping of all UARS
    "dev->priv.bf_mapping", since UAR mapping should be decided
    per UAR (e.g we want different mappings for EQs, CQs vs QPs).
    
    Caller will now have to choose whether to map via
    write-combining API or not.
    
    mlx5e SQs will choose write-combining in order to perform
    BlueFlame writes.
    
    Fixes: 88a85f99
    
     ('TX latency optimization to save DMA reads')
    Signed-off-by: default avatarMoshe Lazer <moshel@mellanox.com>
    Reviewed-by: default avatarAchiad Shochat <achiad@mellanox.com>
    Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    0ba42241