Skip to content

Commit d1a069e

Browse files
robclarkaustriancoder
authored andcommitted
drm/msm/a6xx: make GPUs SMMU context bank available in it's aperture.
This is a workaround for old cheza firmware Signed-off-by: Eric Anholt <eric@anholt.net>
1 parent 9cf5321 commit d1a069e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/gpu/drm/msm/adreno/a6xx_gpu.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -839,6 +839,12 @@ static int a6xx_hw_init(struct msm_gpu *gpu)
839839
if (!a6xx_idle(gpu, gpu->rb[0]))
840840
return -EINVAL;
841841
} else if (ret == -ENODEV) {
842+
static bool first = true;
843+
if (first) {
844+
void __iomem *reg = ioremap(0x05060000, 0x1000);
845+
writeq(0x48000, reg); /* offset of cb0 from gpu's base */
846+
iounmap(reg);
847+
}
842848
/*
843849
* This device does not use zap shader (but print a warning
844850
* just in case someone got their dt wrong.. hopefully they

0 commit comments

Comments
 (0)