drm/i915/gvt: Implement WaForceWakeRenderDuringMmioTLBInvalidate
authorArkadiusz Hiler <arkadiusz.hiler@intel.com>
Fri, 21 Oct 2016 11:11:50 +0000 (13:11 +0200)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 24 Oct 2016 02:45:26 +0000 (10:45 +0800)
commit1c860a306e76756f28f3b4d589a5ca1d1829dd90
tree6c3f270536b83aa77ddc787a73bf558bd082eaf3
parent7093f5ff75ae759ef9bdd514f917a1f57cd10d65
drm/i915/gvt: Implement WaForceWakeRenderDuringMmioTLBInvalidate

When invalidating RCS TLB the device can enter RC6 state interrupting
the process, therefore the need for render forcewake for the whole
procedure.

This WA is needed for all production SKL SKUs.

v2: reworked putting and getting forcewake with help of Mika Kuoppala
v3: use I915_READ_FW and I915_WRITE_FW as we are handling forcewake on
    in the code path

References: HSD#2136899, HSD#1404391274
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/render.c