[openib-general] Re: SDP: device mthca0 does not support fast memory regions

Michael S. Tsirkin mst at mellanox.co.il
Thu Jun 16 12:03:55 PDT 2005


Quoting r. Libor Michalek <libor at topspin.com>:
> Subject: Re: SDP: device mthca0 does not support fast memory regions
> 
> On Wed, Jun 15, 2005 at 04:30:47PM -0500, Troy Benjegerdes wrote:
> > I'm getting a 'SDP: device mthca0 does nto support fast memory regions'
> > error on PPC64 systems.. Is there something that needs to be done for
> > PPC, or could I have an older version of the mthca module hanging
> > around?
> 
>   I'm not sure about the state or plans for FMR support on PPC64, Roland
> will have a better idea. 

Should just work AFAIK.
But maybe your card hides the onboard memory?
Try lspci -vv to see if the card has
the huge bar (100Mbyte or more) corresponding to that memory.

>   I have not added support for AIO when FMRs are disabled, but if you are
> not using AIO, then the following patch should be sufficient. Currently
> the AIO code path assumes that there is a valid fmr_pool, I'll need to
> fix this so that we gracefully fall back to copy mode when fmr registration
> fails. 
> 
> -Libor

Thats a good idea anyway, since there may be other reasons for failure:
for example we can run out of locked memory if the mlock rlimit is low.
Should fall back on bcopy in that case, as well.


> Index: sdp_conn.c
> ===================================================================
> --- sdp_conn.c	(revision 2628)
> +++ sdp_conn.c	(working copy)
> @@ -1857,9 +1857,8 @@
>  	 */
>  	hca->fmr_pool = ib_create_fmr_pool(hca->pd, &fmr_param_s);
>  	if (IS_ERR(hca->fmr_pool)) {
> -		sdp_warn("Error <%ld> creating HCA <%s> fast memory pool",
> -			 PTR_ERR(hca->fmr_pool), device->name);
> -		goto error;
> +		sdp_warn("Warning, could not creating HCA <%s> FMR pool <%ld>",
> +			 device->name, PTR_ERR(hca->fmr_pool));

could not creating -> unable to create

>  	}
>  	/*
>  	 * port allocation

-- 
MST



More information about the general mailing list