]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: Pass the correct aperture end to drm_mm_init
authorJordan Crouse <jcrouse@codeaurora.org>
Mon, 22 Jan 2018 18:10:46 +0000 (11:10 -0700)
committerRob Clark <robdclark@gmail.com>
Tue, 20 Feb 2018 15:41:22 +0000 (10:41 -0500)
commit1430146e7b96757f3353dec6233a70fcda735e5d
tree5eb3a66029f08ac84fbb1b23930f8587ad6ed9f9
parent8ff0cc79ea02f9074c5e0098e3d068565b2d375d
drm/msm: Pass the correct aperture end to drm_mm_init

drm_mm_init() takes the start and length of the intended virtual
memory address region but the msm code is passing the end of
the region instead. That would work out if the region started
at 0 but it doesn't so the top of the region sneaks above the
32 bit boundary which won't work because the driver doesn't
support 64 bit addresses for the GPU yet.

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/msm_gem_vma.c