drm/i915: Initialize HWS page address after GPU reset
authorArun Siluvery <arun.siluvery@linux.intel.com>
Tue, 2 Jun 2015 19:06:59 +0000 (20:06 +0100)
committerJani Nikula <jani.nikula@intel.com>
Thu, 4 Jun 2015 08:10:21 +0000 (11:10 +0300)
commit2e5356da370e36ba7aab39d2800c7a2412630ae7
tree3a7b8340f72da5f22ccb7432fdbe2cd19bb0048a
parent0aedb1626566efd72b369c01992ee7413c82a0c5
drm/i915: Initialize HWS page address after GPU reset

After GPU reset, HW is losing the address of HWS page in the register.
The page itself is valid except that HW is not aware of its location.

[   64.368623] [drm:gen8_init_common_ring [i915]] *ERROR* HWS Page address = 0x00000000
[   64.368655] [drm:gen8_init_common_ring [i915]] *ERROR* HWS Page address = 0x00000000
[   64.368681] [drm:gen8_init_common_ring [i915]] *ERROR* HWS Page address = 0x00000000
[   64.368704] [drm:gen8_init_common_ring [i915]] *ERROR* HWS Page address = 0x00000000

This patch reloads this value into the register during ring init.

Signed-off-by: Arun Siluvery <arun.siluvery@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_lrc.c