]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: refactor how we handle vram carveout buffers
authorRob Clark <robdclark@gmail.com>
Tue, 13 Jun 2017 15:50:05 +0000 (11:50 -0400)
committerRob Clark <robdclark@gmail.com>
Fri, 16 Jun 2017 15:16:05 +0000 (11:16 -0400)
commit789ace7b735600cae84ab719e8f557d9fa7530b3
treed1557b893dcf931540557060c395724e03ae0383
parent347c5d6795cf6af4f6663873fd7550770a61bc67
drm/msm: refactor how we handle vram carveout buffers

Pull some of the logic out into msm_gem_new() (since we don't need to
care about the imported-bo case), and don't defer allocating pages.  The
latter is generally a good idea, since if we are using VRAM carveout to
allocate contiguous buffers (ie. no IOMMU), the allocation is more
likely to fail.  So failing at allocation time is a more sane option.
Plus this simplifies things in the next patch.

Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/msm_gem.c