Re: [PATCH 38/44] drm/i915: Split idling from forcing context switch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 16, 2016 at 11:51:03AM +0300, Mika Kuoppala wrote:
> > +++ b/drivers/gpu/drm/i915/i915_gem_evict.c
> > @@ -33,6 +33,37 @@
> >  #include "intel_drv.h"
> >  #include "i915_trace.h"
> >  
> > +static int switch_to_pinned_context(struct drm_i915_private *dev_priv)
> > +{
> 
> switch_to_kernel_context would be more accurate of what this function
> actually does.

No. Sematically this function is switching to an arbitrary context that
has an additional pin, i.e. cannot cause any more fragmentation.

> But I take it that from eviction point of view,
> it only matters that we park into something that is pinned and stay so.

Exactly, the kernel_context is just something that suits us. It doesn't
say why that is so.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux