From: Anton Blanchard Date: Mon, 4 Jun 2012 16:47:03 +0000 (+0000) Subject: powerpc/pseries: Round up MSI-X requests X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~10^2~80 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=752f5216f1eaabb0cfa84eaecd0ce17d79c7d2cf;p=pandora-kernel.git powerpc/pseries: Round up MSI-X requests The pseries firmware currently refuses any non power of two MSI-X request. Unfortunately most network drivers end up asking for that because they want a power of two for RX queues and one or two extra for everything else. This patch rounds up the firmware request to the next power of two if the quota allows it. If this fails we fall back to using the original request size. Signed-off-by: Anton Blanchard Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed