drm/msm/adreno: Ensure that the zap shader region is big enough
authorJordan Crouse <jcrouse@codeaurora.org>
Fri, 31 May 2019 22:09:38 +0000 (16:09 -0600)
committerRob Clark <robdclark@chromium.org>
Tue, 18 Jun 2019 21:00:54 +0000 (14:00 -0700)
commit6672e11cad662ce6631e04c38f92a140a99c042c
tree8cb9a57373336cce5faf1fa1a1a007dbf03bb89b
parent7b8c9e203039591e20337d5c6034331fc17d8d48
drm/msm/adreno: Ensure that the zap shader region is big enough

Before loading the zap shader we should ensure that the reserved memory
region is big enough to hold the loaded file.

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Jeffrey Hugo <jeffrey.l.hugo@gmail.com>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/adreno/adreno_gpu.c