]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sdp: incorrect SDP_FMR_SIZE on 32-bit machines
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Sun, 30 Aug 2009 14:16:13 +0000 (17:16 +0300)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 6 Oct 2015 12:04:38 +0000 (05:04 -0700)
commit524ed5f9e68f1c46778cf18e9334cd08ffcd4808
treeb0e26b12a5464007e2ac123df1553ecd6805e1c8
parentd53393a044ecd010076eb0be8b1990efb5ffb7a7
sdp: incorrect SDP_FMR_SIZE on 32-bit machines

On 32-bit machines, sizeof (u64 *) is 4 bytes (size of a ***pointer***).
However, the max SDP FMR pool size should be PAGE_SIZE / sizeof(an mtt entry) --
and mtt entries are u64's (or __be64's).

This resulted in SDP requesting twice as many entries per pool on 32-bit machines
as could fit on a single page -- with the result that the fmr pool allocation failed
at driver startup.

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
drivers/infiniband/ulp/sdp/sdp.h