>
> > Based on that, should we remove the cxgb3 driver as well? Or at least
> > can you fix it up to at least fail get_dma_mr if there is too much
> > ram?
> >
>
> I would like to keep cxgb3 around. I can add code to fail if the memory is >
> 32b. Do you know how I get the amount of available
ram?
>
Something like this?
@@ -736,6 +736,9 @@ static struct ib_mr *iwch_get_dma_mr(struct ib_pd *pd, int
acc)
/*
* T3 only supports 32 bits of size.
*/
+ if ((totalram_pages << PAGE_SHIFT) > 0xffffffff)
+ return -ENOTSUPP;
+
bl.size = 0xffffffff;
bl.addr = 0;
kva = 0;
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html