]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/lrc: Update PDPx registers with lri commands
authorMichel Thierry <michel.thierry@intel.com>
Fri, 26 Jun 2015 12:46:14 +0000 (13:46 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 26 Jun 2015 16:33:51 +0000 (18:33 +0200)
commit4d00591c52d801123a0893ee9e9d616f4f4876c4
treeb4253165e9a5fb4dd568f5510d1208771421d94e
parent499abb2d4af40cb835820d51c3d306a5103ff8dc
drm/i915/lrc: Update PDPx registers with lri commands

A safer way to update the PDPx registers is sending lri commands, added
in the ring before the batchbuffer start. Otherwise, the ctx must be idle
before trying to change anything (but the ring-tail) in the ctx image. An
example where the ctx won't be idle is lite-restore.

This patch depends on 86f97fc0f ("drm/i915/gtt: Mark TLBS dirty for gen8+").

v2: Combine lri writes (and save 8 commands). (Mika)
v3: Rebase after ring/req changes, and removed references to deprecated patches.

Cc: Dave Gordon <david.s.gordon@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Michel Thierry <michel.thierry@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_lrc.c