drm/i915: Fix sandybridge status page setup.
The register's moved to the same location as the one for the BCS, it seems. Signed-off-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
@@ -4581,8 +4581,13 @@ i915_gem_init_hws(struct drm_device *dev)
|
||||
}
|
||||
dev_priv->hws_obj = obj;
|
||||
memset(dev_priv->hw_status_page, 0, PAGE_SIZE);
|
||||
I915_WRITE(HWS_PGA, dev_priv->status_gfx_addr);
|
||||
I915_READ(HWS_PGA); /* posting read */
|
||||
if (IS_GEN6(dev)) {
|
||||
I915_WRITE(HWS_PGA_GEN6, dev_priv->status_gfx_addr);
|
||||
I915_READ(HWS_PGA_GEN6); /* posting read */
|
||||
} else {
|
||||
I915_WRITE(HWS_PGA, dev_priv->status_gfx_addr);
|
||||
I915_READ(HWS_PGA); /* posting read */
|
||||
}
|
||||
DRM_DEBUG_DRIVER("hws offset: 0x%08x\n", dev_priv->status_gfx_addr);
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user