Skip to content
Snippets Groups Projects
Verified Commit 4b49f902 authored by Rob Clark's avatar Rob Clark :speech_balloon: Committed by David Heidelberg
Browse files

drm/msm/a6xx: make GPUs SMMU context bank available in it's aperture.


This is a workaround for old cheza firmware

v2:
 - add ifdef for ARM64 since the change isn't relevant outside of it

Signed-off-by: default avatarEric Anholt <eric@anholt.net>
parent 90576fb4
No related branches found
No related tags found
No related merge requests found
......@@ -1197,6 +1197,14 @@ static int hw_init(struct msm_gpu *gpu)
if (!a6xx_idle(gpu, gpu->rb[0]))
return -EINVAL;
} else if (ret == -ENODEV) {
#if defined(CONFIG_ARM64)
static bool first = true;
if (first) {
void __iomem *reg = ioremap(0x05060000, 0x1000);
writeq(0x48000, reg); /* offset of cb0 from gpu's base */
iounmap(reg);
}
#endif
/*
* This device does not use zap shader (but print a warning
* just in case someone got their dt wrong.. hopefully they
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment