Skip to content

Commit f167989

Browse files
anholtrobclark
authored andcommitted
drm/msm: Fix address space size after refactor.
Previously the address space went from 16M to ~0u, but with the refactor one of the 'f's was dropped, limiting us to 256MB. Additionally, the new interface takes a start and size, not start and end, so we can't just copy and paste. Fixes regressions in dEQP-VK.memory.allocation.random.* Fixes: ccac7ce ("drm/msm: Refactor address space initialization") Signed-off-by: Eric Anholt <[email protected]> Signed-off-by: Rob Clark <[email protected]>
1 parent bc8bd54 commit f167989

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ adreno_iommu_create_address_space(struct msm_gpu *gpu,
194194
struct msm_gem_address_space *aspace;
195195

196196
aspace = msm_gem_address_space_create(mmu, "gpu", SZ_16M,
197-
0xffffffff);
197+
0xffffffff - SZ_16M);
198198

199199
if (IS_ERR(aspace) && !IS_ERR(mmu))
200200
mmu->funcs->destroy(mmu);

0 commit comments

Comments
 (0)