Re: [Intel-gfx] [PATCH 2/3] drm/i915: Allocate a common scratch page

2018-11-28 Thread Chris Wilson
Quoting Mika Kuoppala (2018-11-28 13:21:41) > Chris Wilson writes: > > diff --git a/drivers/gpu/drm/i915/intel_lrc.c > > b/drivers/gpu/drm/i915/intel_lrc.c > > index 08fd9b12e4d7..3464058cbfc7 100644 > > --- a/drivers/gpu/drm/i915/intel_lrc.c > > +++ b/drivers/gpu/drm/i915/intel_lrc.c > > @@

Re: [Intel-gfx] [PATCH 2/3] drm/i915: Allocate a common scratch page

2018-11-28 Thread Mika Kuoppala
Chris Wilson writes: > Currently we allocate a scratch page for each engine, but since we only > ever write into it for post-sync operations, it is not exposed to > userspace nor do we care for coherency. As we then do not care about its > contents, we can use one page for all, reducing our

[Intel-gfx] [PATCH 2/3] drm/i915: Allocate a common scratch page

2018-11-28 Thread Chris Wilson
Currently we allocate a scratch page for each engine, but since we only ever write into it for post-sync operations, it is not exposed to userspace nor do we care for coherency. As we then do not care about its contents, we can use one page for all, reducing our allocations and avoid complications