Re: [PATCH v2] drm/i915: Report correct GGTT space usage

Chris Wilson
2015-06-30T11:35:36Z

On Tue, Jun 30, 2015 at 12:03:04PM +0100, Tvrtko Ursulin wrote:
>
> On 06/30/2015 11:33 AM, Chris Wilson wrote:
> >On Tue, Jun 30, 2015 at 11:27:20AM +0100, Tvrtko Ursulin wrote:
> >>+ list_for_each_entry(obj, &dev_priv->mm.bound_list, global_list) {
> >>+ list_for_each_entry(vma, &obj->vma_list, vma_link)
> >
> >If only there was already a list of vma bound in the GGTT...
>
> Let me guess, you have patches for that? :) But for this maybe not
> yet, if I can hazard a guess you are referring to the big VMA
> rewrite? Which is still in progress?

In upstream you can simply walk the lists of
i915->gtt.base.active/i915->gtt.base.inactive.
-Chris

--
Chris Wilson, Intel Open Source Technology Centre