[ofa-general] mthca issues -need help

Pradeep Satyanarayana pradeep at us.ibm.com
Sat Apr 14 19:16:30 PDT 2007


Yes, this works (and I have not yet upgraded the FW).

Pradeep
pradeep at us.ibm.com

Roland Dreier <rdreier at cisco.com> wrote on 04/13/2007 04:36:08 PM:

> Err, new better patch for real:
> 
> diff --git a/drivers/infiniband/hw/mthca/mthca_mr.c 
> b/drivers/infiniband/hw/mthca/mthca_mr.c
> index fdb576d..3aaf41b 100644
> --- a/drivers/infiniband/hw/mthca/mthca_mr.c
> +++ b/drivers/infiniband/hw/mthca/mthca_mr.c
> @@ -355,7 +355,8 @@ int mthca_write_mtt(struct mthca_dev *dev, 
> struct mthca_mtt *mtt,
>     int size = mthca_write_mtt_size(dev);
>     int chunk;
> 
> -   if (dev->mr_table.fmr_mtt_buddy != &dev->mr_table.mtt_buddy)
> +   if (dev->mr_table.fmr_mtt_buddy != &dev->mr_table.mtt_buddy ||
> +       (!mthca_is_memfree(dev) && (dev->mthca_flags & 
> MTHCA_FLAG_DDR_HIDDEN)))
>        return __mthca_write_mtt(dev, mtt, start_index, buffer_list, 
list_len);
> 
>     while (list_len > 0) {




More information about the general mailing list