]> 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)
commit7dfb45b7b85e758d5704934e755be1e209dac4d5
treed1557b893dcf931540557060c395724e03ae0383
parentefc7c67f69cbee8ed4623fc9c666da69d50b2b1c
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