[openib-general] Re: [PATCH][6/6] Add mem-free interrupt support

Michael S. Tsirkin mst at mellanox.co.il
Wed Feb 23 11:45:04 PST 2005


Hi!
Patches look good so far.

Quoting r. Roland Dreier <roland at topspin.com>:
> Subject: [PATCH][6/6] Add mem-free interrupt support
> 
> Update interrupt handling code to handle mem-free mode.  While we're
> at it, improve the Tavor interrupt handling to avoid an extra MMIO
> read of the event cause register.
>
>
>  		for (i = 0; i < MTHCA_NUM_EQ; ++i)
> -			if (ecr & dev->eq_table.eq[i].ecr_mask)
> -				mthca_eq_int(dev, &dev->eq_table.eq[i]);
> +			if (ecr & dev->eq_table.eq[i].eqn_mask &&
> +			    mthca_eq_int(dev, &dev->eq_table.eq[i])) {
> +				tavor_set_eq_ci(dev, &dev->eq_table.eq[i],
> +						dev->eq_table.eq[i].cons_index);
> +				tavor_eq_req_not(dev, dev->eq_table.eq[i].eqn);
> +	}
>  	}

I see we are still scanning all EQs on an interrupt.
I was thinking, shall not we rather use ffs to scan only the bits that
are set?


-- 
MST - Michael S. Tsirkin



More information about the general mailing list