Skip to content

Commit

Permalink
drm/msm: Fix address space size after refactor.
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
anholt authored and robclark committed Jun 18, 2020
1 parent bc8bd54 commit f167989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/msm/adreno/adreno_gpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ adreno_iommu_create_address_space(struct msm_gpu *gpu,
struct msm_gem_address_space *aspace;

aspace = msm_gem_address_space_create(mmu, "gpu", SZ_16M,
0xffffffff);
0xffffffff - SZ_16M);

if (IS_ERR(aspace) && !IS_ERR(mmu))
mmu->funcs->destroy(mmu);
Expand Down

0 comments on commit f167989

Please sign in to comment.