[Intel-gfx] [PATCH v4 1/2] drm: Improve drm_mm search (and fix topdown allocation) with rbtrees

Daniel Vetter daniel at ffwll.ch
Thu Feb 2 15:06:29 UTC 2017


On Thu, Feb 02, 2017 at 02:33:54PM +0100, Lucas Stach wrote:
> Am Donnerstag, den 02.02.2017, 11:44 +0000 schrieb Chris Wilson:
> > @@ -192,6 +188,8 @@ static int etnaviv_iommu_find_iova(struct etnaviv_iommu *mmu,
> >  			list_del_init(&m->scan_node);
> >  		}
> >  
> > +		mode = DRM_MM_INSERT_EVICT;
> > +
> >  		/*
> >  		 * We removed enough mappings so that the new allocation will
> >  		 * succeed.  Ensure that the MMU will be flushed before the
> 
> This needs a rebase on the etnaviv for 4.11 pull, that removes the hack
> mentioned in the comment above. Otherwise the code change looks fine.

Is that pull request already on the list and/or in drm-next? Chris' patch
fell a bit through the cracks, but since it's fairly big I'd like to get
it into 4.11 still if possible, instead of keeping it in drm-misc for a
few weeks to route around the merge window blackout ...

Otherwise I guess 4.12 it is, but I'll still push it into drm-misc-next
next week if possible (we have drm-misc-next-fixes for bugfixes for the
merge window, to be able to keep merging feature work).
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


More information about the dri-devel mailing list