drm/i915/guc: write wopcm related register once during uc init
authordaniele.ceraolospurio@intel.com <daniele.ceraolospurio@intel.com>
Fri, 7 Apr 2017 00:18:52 +0000 (17:18 -0700)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Thu, 13 Apr 2017 11:01:01 +0000 (14:01 +0300)
commit13f6c719eb88f2a0c8981d7a0c45404194aa2ef5
treef8f59efe490e40e7820b2318e2990ee705c572f2
parent48ae80741da4b8a26b6df0f765713912bc7cc480
drm/i915/guc: write wopcm related register once during uc init

The wopcm registers are write-once, so any write after the first one
will just be ignored. The registers survive a GPU reset but not
always a suspend/resume cycle, so to keep things simple keep the
writes in the intel_uc_init_hw function instead of moving it earlier
to make sure we attempt them every time we try to load GuC.

Cc: Jeff McGee <jeff.mcgee@intel.com>
Cc: Anusha Srivatsa <anusha.srivatsa@intel.com>
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1491524332-23860-1-git-send-email-daniele.ceraolospurio@intel.com
drivers/gpu/drm/i915/intel_guc_loader.c
drivers/gpu/drm/i915/intel_huc.c
drivers/gpu/drm/i915/intel_uc.c