All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC 0/3] render state initialization (bdw rc6)
@ 2014-04-22 17:19 Mika Kuoppala
  2014-04-22 17:19 ` [PATCH 1/3] drm/i915: export vmap_batch from command parser Mika Kuoppala
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Mika Kuoppala @ 2014-04-22 17:19 UTC (permalink / raw)
  To: intel-gfx; +Cc: ben, miku

Hi,

Here are patches to initialize first render context to a hopefully, 
valid state. If pipeline/context is not initialized and we enter rc6 on bdw,
the render ring can hung on the first batch submitted. That is atleast
the hypothesis this work is based on.

The states are stripped from rendercopy_genX's from i-g-t/lib and
the state generators are part of i-g-t also. The states are
propably overshoot from what can be consider the minimal valid
(null) state on the pipeline. I just initialized everything rendercopy
does and haven't really put effort on optimizing the state until
I get some test results that this indeed solves anything.

The state generators can be found here but they are not needed for testing.
http://cgit.freedesktop.org/~miku/intel-gpu-tools/log/?h=null_state_gen

Gen7 and Gen8 seems to atleast survive the boot but Gen6 is totally
untested.

Here is the branch for testing:
http://cgit.freedesktop.org/~miku/drm-intel/log/?h=render_state

I am interested to know if these patches make matters better/worse for those
who have issues with first batch hanging on bdw, but as always, any feedback
is greatly appreciated.

Mika Kuoppala (3):
  drm/i915: export vmap_batch from command parser
  drm/i915: add render state initialization
  drm/i915: add null render states for gen6, gen7 and gen8

 drivers/gpu/drm/i915/Makefile                 |    1 +
 drivers/gpu/drm/i915/i915_cmd_parser.c        |    4 +-
 drivers/gpu/drm/i915/i915_drv.h               |    3 +
 drivers/gpu/drm/i915/i915_gem_context.c       |    7 +
 drivers/gpu/drm/i915/i915_gem_render_state.c  |  222 ++++++++++++
 drivers/gpu/drm/i915/intel_renderstate_gen6.h |  290 +++++++++++++++
 drivers/gpu/drm/i915/intel_renderstate_gen7.h |  254 +++++++++++++
 drivers/gpu/drm/i915/intel_renderstate_gen8.h |  480 +++++++++++++++++++++++++
 8 files changed, 1259 insertions(+), 2 deletions(-)
 create mode 100644 drivers/gpu/drm/i915/i915_gem_render_state.c
 create mode 100644 drivers/gpu/drm/i915/intel_renderstate_gen6.h
 create mode 100644 drivers/gpu/drm/i915/intel_renderstate_gen7.h
 create mode 100644 drivers/gpu/drm/i915/intel_renderstate_gen8.h

-- 
1.7.9.5

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2014-05-06 13:34 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-22 17:19 [RFC 0/3] render state initialization (bdw rc6) Mika Kuoppala
2014-04-22 17:19 ` [PATCH 1/3] drm/i915: export vmap_batch from command parser Mika Kuoppala
2014-04-22 17:19 ` [PATCH 2/3] drm/i915: add render state initialization Mika Kuoppala
2014-04-22 20:26   ` Daniel Vetter
2014-05-06  1:20   ` Ben Widawsky
2014-05-06 13:33     ` Mika Kuoppala
2014-04-22 17:19 ` [PATCH 3/3] drm/i915: add null render states for gen6, gen7 and gen8 Mika Kuoppala
2014-05-02 20:43   ` Damien Lespiau
2014-05-02 22:09     ` Damien Lespiau
2014-04-22 20:51 ` [RFC 0/3] render state initialization (bdw rc6) Chris Wilson
2014-04-23 18:04   ` Ben Widawsky
2014-04-24 18:51 ` Kristen Carlson Accardi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.