[PORT FROM R2] atomisp: acc: use vmalloc() when loading/allocating acceleration firmware
authorDavid Cohen <david.a.cohen@intel.com>
Wed, 7 Mar 2012 08:59:37 +0000 (10:59 +0200)
committerbuildbot <buildbot@intel.com>
Tue, 10 Apr 2012 20:18:56 +0000 (13:18 -0700)
commit008ef1f5410ff23237c445aae08f31901d724d0b
treec92ca452969d847bd74250435732c3ce4579223e
parentd9382be848ddbb7dcd631dc5d7d043a9d6e0703a
[PORT FROM R2] atomisp: acc: use vmalloc() when loading/allocating acceleration firmware

BZ: 23757

Currently acceleration API tries to allocate memory for loaded firmware
with kmalloc(). As such firmwares used to be bigger than PAGE_SIZE,
kmalloc() may get in trouble if memory is too fragmented. vmalloc() is a
safer option.

Change-Id: I43a4cb829a62ea4672ff20eafcb5d17d7815a54e
Signed-off-by: David Cohen <david.a.cohen@intel.com>
Reviewed-on: http://android.intel.com:8080/37828
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Govindapillai, Vinod <vinod.govindapillai@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/42095
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Lampila, KalleX <kallex.lampila@intel.com>
drivers/media/video/atomisp/atomisp_cmd.c