]> asedeno.scripts.mit.edu Git - linux.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)
commitf4839bd5126310635314610a85468e87b40ce4c8
treed1557b893dcf931540557060c395724e03ae0383
parent8bdcd949bbe7e7f9e60a3564baa600884f8f4ba7
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