mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
drm/i915: Ivybridge still has fences!
So don't forget to restore them on resume and dump them into the error state. Cc: [email protected] Signed-off-by: Daniel Vetter <[email protected]> Reviewed-by: Chris Wilson <[email protected]> Signed-off-by: Keith Packard <[email protected]>
This commit is contained in:
parent
616fdb5afb
commit
775d17b6ca
2 changed files with 3 additions and 0 deletions
|
|
@ -824,6 +824,7 @@ static void i915_gem_record_fences(struct drm_device *dev,
|
|||
|
||||
/* Fences */
|
||||
switch (INTEL_INFO(dev)->gen) {
|
||||
case 7:
|
||||
case 6:
|
||||
for (i = 0; i < 16; i++)
|
||||
error->fence[i] = I915_READ64(FENCE_REG_SANDYBRIDGE_0 + (i * 8));
|
||||
|
|
|
|||
|
|
@ -370,6 +370,7 @@ static void i915_save_modeset_reg(struct drm_device *dev)
|
|||
|
||||
/* Fences */
|
||||
switch (INTEL_INFO(dev)->gen) {
|
||||
case 7:
|
||||
case 6:
|
||||
for (i = 0; i < 16; i++)
|
||||
dev_priv->saveFENCE[i] = I915_READ64(FENCE_REG_SANDYBRIDGE_0 + (i * 8));
|
||||
|
|
@ -404,6 +405,7 @@ static void i915_restore_modeset_reg(struct drm_device *dev)
|
|||
|
||||
/* Fences */
|
||||
switch (INTEL_INFO(dev)->gen) {
|
||||
case 7:
|
||||
case 6:
|
||||
for (i = 0; i < 16; i++)
|
||||
I915_WRITE64(FENCE_REG_SANDYBRIDGE_0 + (i * 8), dev_priv->saveFENCE[i]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue