Commit 3a10ba8c authored by Rob Clark's avatar Rob Clark

drm/msm: don't crash if no msm.vram param

If VRAM carveout is used, due to no IOMMU, we should have a default
value for msm.vram so that we don't simply crash.
Reported-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
parent 28a38b65
...@@ -52,7 +52,7 @@ module_param(reglog, bool, 0600); ...@@ -52,7 +52,7 @@ module_param(reglog, bool, 0600);
#define reglog 0 #define reglog 0
#endif #endif
static char *vram; static char *vram = "16m";
MODULE_PARM_DESC(vram, "Configure VRAM size (for devices without IOMMU/GPUMMU"); MODULE_PARM_DESC(vram, "Configure VRAM size (for devices without IOMMU/GPUMMU");
module_param(vram, charp, 0); module_param(vram, charp, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment