diff options
author | Eric Anholt <eric@anholt.net> | 2020-06-17 13:53:09 -0700 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2020-06-17 19:35:56 -0700 |
commit | f167989c673096c8d823b1292c6ee51ed266d178 (patch) | |
tree | 8b3f6cf23b097bc94a0f95fc758f77ba3b021a22 /drivers/gpu/drm/msm | |
parent | bc8bd54ffd8513e05eb87b5badcb2d586ea278f0 (diff) | |
download | linux-stable-f167989c673096c8d823b1292c6ee51ed266d178.tar.gz linux-stable-f167989c673096c8d823b1292c6ee51ed266d178.tar.bz2 linux-stable-f167989c673096c8d823b1292c6ee51ed266d178.zip |
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: ccac7ce373c1 ("drm/msm: Refactor address space initialization")
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'drivers/gpu/drm/msm')
-rw-r--r-- | drivers/gpu/drm/msm/adreno/adreno_gpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/adreno/adreno_gpu.c b/drivers/gpu/drm/msm/adreno/adreno_gpu.c index 3d4efe684a98..5db06b590943 100644 --- a/drivers/gpu/drm/msm/adreno/adreno_gpu.c +++ b/drivers/gpu/drm/msm/adreno/adreno_gpu.c @@ -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); |