[Intel-gfx] [PATCH 3/3] drm/i915: Remove second level open-coded rcu work
Chris Wilson
chris at chris-wilson.co.uk
Thu Feb 28 08:03:05 UTC 2019
Quoting Tvrtko Ursulin (2019-02-28 07:56:20)
>
> On 27/02/2019 23:09, Chris Wilson wrote:
> > We currently use a worker queued from an rcu callback to determine when
> > a how grace period has elapsed while we remained idle. We use this idle
> > delay to infer that we will be idle for a while and this is a suitable
> > point at which we can trim our global memory caches.
> >
> > Since we wrote that, this mechanism now exists as rcu_work, and having
> > converted the idle shrinkers over to using that, we can remove our own
> > variant.
>
> By the look of it gt.epoch can be completely ripped out.
Yup, my first thought was that I remember some trickery involving epoch
and mock, but that too looks like it has evaporated.
-Chris
More information about the Intel-gfx
mailing list