From: Eli Cohen Date: Mon, 23 Jun 2008 16:29:58 +0000 (-0700) Subject: IB/mthca: Clear ICM pages before handing to FW X-Git-Tag: v2.6.26-rc8~13^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87afd448b186c885d67a08b7417cd46253b6a9d6;p=pandora-kernel.git IB/mthca: Clear ICM pages before handing to FW Current memfree FW has a bug which in some cases, assumes that ICM pages passed to it are cleared. This patch uses __GFP_ZERO to allocate all ICM pages passed to the FW. Once firmware with a fix is released, we can make the workaround conditional on firmware version. This fixes the bug reported by Arthur Kepner here: http://lists.openfabrics.org/pipermail/general/2008-May/050026.html Cc: Signed-off-by: Eli Cohen [ Rewritten to be a one-liner using __GFP_ZERO instead of vmap()ing ICM memory and memset()ing it to 0. - Roland ] Signed-off-by: Roland Dreier --- Reading git-diff-tree failed