summaryrefslogtreecommitdiffstats
path: root/sound/atmel
diff options
context:
space:
mode:
authorYishai Hadas <yishaih@mellanox.com>2012-08-13 08:15:06 +0000
committerRoland Dreier <roland@purestorage.com>2012-08-15 21:05:20 -0700
commit89dd86db78e08b51bab29e168fd41b2fd943e6b6 (patch)
treee2c69177fd4478c398547e81d5da2b61a1cd2158 /sound/atmel
parentdf7fba66471c6bbbaebb55e1bb3658eb7ce00a9b (diff)
downloadlinux-89dd86db78e08b51bab29e168fd41b2fd943e6b6.tar.gz
linux-89dd86db78e08b51bab29e168fd41b2fd943e6b6.tar.bz2
linux-89dd86db78e08b51bab29e168fd41b2fd943e6b6.zip
mlx4_core: Allow large mlx4_buddy bitmaps
mlx4_buddy_init uses kmalloc() to allocate bitmaps, which fails when the required size is beyond the max supported value (or when memory is too fragmented to handle a huge allocation). Extend this to use use vmalloc() if kmalloc() fails, and take that into account when freeing the bitmaps as well. This fixes a driver load failure when log num mtt is 26 or higher, and is a step in the direction of allowing to register huge amounts of memory on large memory systems. Signed-off-by: Yishai Hadas <yishaih@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'sound/atmel')
0 files changed, 0 insertions, 0 deletions