[PATCH 12/15] cxl: Workaround PE=0 hardware limitation in Mellanox CX4

Andrew Donnellan andrew.donnellan at au1.ibm.com
Thu Jul 28 11:48:29 AEST 2016


On 14/07/16 07:17, Ian Munsie wrote:
>  	mutex_lock(&afu->contexts_lock);
>  	idr_preload(GFP_KERNEL);
> -	i = idr_alloc(&ctx->afu->contexts_idr, ctx, 0,
> +	i = idr_alloc(&ctx->afu->contexts_idr, ctx,
> +		      ctx->afu->adapter->native->sl_ops->min_pe,

As it turns out, dereferencing ctx->afu->adapter->native doesn't exactly 
work on PowerVM...

Working on a fix.


Andrew

-- 
Andrew Donnellan              OzLabs, ADL Canberra
andrew.donnellan at au1.ibm.com  IBM Australia Limited



More information about the Linuxppc-dev mailing list