lkml.org 
[lkml]   [2006]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 21 of 53] ipath - use phys_to_virt instead of bus_to_virt
    Date
    From
    I think Roland already has this patch.

    diff -r 201654fe1962 -r 4e0a07d20868 drivers/infiniband/hw/ipath/ipath_keys.c
    --- a/drivers/infiniband/hw/ipath/ipath_keys.c Fri May 12 15:55:28 2006 -0700
    +++ b/drivers/infiniband/hw/ipath/ipath_keys.c Fri May 12 15:55:28 2006 -0700
    @@ -126,11 +126,11 @@ int ipath_lkey_ok(struct ipath_lkey_tabl
    /*
    * We use LKEY == zero to mean a physical kmalloc() address.
    * This is a bit of a hack since we rely on dma_map_single()
    - * being reversible by calling bus_to_virt().
    + * being reversible by calling phys_to_virt().
    */
    if (sge->lkey == 0) {
    isge->mr = NULL;
    - isge->vaddr = bus_to_virt(sge->addr);
    + isge->vaddr = phys_to_virt(sge->addr);
    isge->length = sge->length;
    isge->sge_length = sge->length;
    ret = 1;
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2006-05-13 02:00    [W:0.021 / U:2.096 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site