summaryrefslogtreecommitdiff
path: root/sound/soc/intel/atom/sst/sst.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-06-16 12:20:29 +0300
committerMark Brown <broonie@kernel.org>2017-06-16 13:26:36 +0300
commit75bd90860a1f6d4671403f5b7beb9c4430ca9750 (patch)
tree65ba2883b8cd5f7cb3c40728932fa4b53872ea13 /sound/soc/intel/atom/sst/sst.h
parentad7fb5a3b89a7a11d3306948c6954de7a999be40 (diff)
downloadlinux-75bd90860a1f6d4671403f5b7beb9c4430ca9750.tar.xz
ASoC: intel: Use kvzalloc() for suspend buffers
Intel SST driver allocates lots of pages at suspend for saving the firmware states, and this may occasionally lead to the allocation error due to the high order, ending up with the suspend failure. Use kvzalloc() so that it can fall back to vmalloc() gracefully. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/atom/sst/sst.h')
-rw-r--r--sound/soc/intel/atom/sst/sst.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/intel/atom/sst/sst.h b/sound/soc/intel/atom/sst/sst.h
index 1693befa455a..e02e2b4cc08f 100644
--- a/sound/soc/intel/atom/sst/sst.h
+++ b/sound/soc/intel/atom/sst/sst.h
@@ -318,10 +318,10 @@ struct sst_ipc_reg {
};
struct sst_fw_save {
- void *iram;
- void *dram;
- void *sram;
- void *ddr;
+ void *iram; /* allocated via kvmalloc() */
+ void *dram; /* allocated via kvmalloc() */
+ void *sram; /* allocated via kvmalloc() */
+ void *ddr; /* allocated via kvmalloc() */
};
/**