@@ -1031,11 +1031,11 @@ static int i915_driver_init_mmio(struct drm_i915_private *dev_priv)
1031
1031
if (ret < 0 )
1032
1032
goto err_bridge ;
1033
1033
1034
- intel_uncore_init (dev_priv );
1034
+ intel_uncore_init (& dev_priv -> uncore );
1035
1035
1036
1036
intel_device_info_init_mmio (dev_priv );
1037
1037
1038
- intel_uncore_prune (dev_priv );
1038
+ intel_uncore_prune (& dev_priv -> uncore );
1039
1039
1040
1040
intel_uc_init_mmio (dev_priv );
1041
1041
@@ -1048,7 +1048,7 @@ static int i915_driver_init_mmio(struct drm_i915_private *dev_priv)
1048
1048
return 0 ;
1049
1049
1050
1050
err_uncore :
1051
- intel_uncore_fini (dev_priv );
1051
+ intel_uncore_fini (& dev_priv -> uncore );
1052
1052
i915_mmio_cleanup (dev_priv );
1053
1053
err_bridge :
1054
1054
pci_dev_put (dev_priv -> bridge_dev );
@@ -1062,7 +1062,7 @@ static int i915_driver_init_mmio(struct drm_i915_private *dev_priv)
1062
1062
*/
1063
1063
static void i915_driver_cleanup_mmio (struct drm_i915_private * dev_priv )
1064
1064
{
1065
- intel_uncore_fini (dev_priv );
1065
+ intel_uncore_fini (& dev_priv -> uncore );
1066
1066
i915_mmio_cleanup (dev_priv );
1067
1067
pci_dev_put (dev_priv -> bridge_dev );
1068
1068
}
@@ -2124,7 +2124,7 @@ static int i915_drm_suspend_late(struct drm_device *dev, bool hibernation)
2124
2124
2125
2125
i915_gem_suspend_late (dev_priv );
2126
2126
2127
- intel_uncore_suspend (dev_priv );
2127
+ intel_uncore_suspend (& dev_priv -> uncore );
2128
2128
2129
2129
intel_power_domains_suspend (dev_priv ,
2130
2130
get_suspend_mode (dev_priv , hibernation ));
@@ -2320,7 +2320,9 @@ static int i915_drm_resume_early(struct drm_device *dev)
2320
2320
DRM_ERROR ("Resume prepare failed: %d, continuing anyway\n" ,
2321
2321
ret );
2322
2322
2323
- intel_uncore_resume_early (dev_priv );
2323
+ intel_uncore_resume_early (& dev_priv -> uncore );
2324
+
2325
+ i915_check_and_clear_faults (dev_priv );
2324
2326
2325
2327
if (INTEL_GEN (dev_priv ) >= 11 || IS_GEN9_LP (dev_priv )) {
2326
2328
gen9_sanitize_dc_state (dev_priv );
@@ -2890,7 +2892,7 @@ static int intel_runtime_suspend(struct device *kdev)
2890
2892
2891
2893
intel_runtime_pm_disable_interrupts (dev_priv );
2892
2894
2893
- intel_uncore_suspend (dev_priv );
2895
+ intel_uncore_suspend (& dev_priv -> uncore );
2894
2896
2895
2897
ret = 0 ;
2896
2898
if (INTEL_GEN (dev_priv ) >= 11 ) {
@@ -2907,7 +2909,7 @@ static int intel_runtime_suspend(struct device *kdev)
2907
2909
2908
2910
if (ret ) {
2909
2911
DRM_ERROR ("Runtime suspend failed, disabling it (%d)\n" , ret );
2910
- intel_uncore_runtime_resume (dev_priv );
2912
+ intel_uncore_runtime_resume (& dev_priv -> uncore );
2911
2913
2912
2914
intel_runtime_pm_enable_interrupts (dev_priv );
2913
2915
@@ -3004,7 +3006,7 @@ static int intel_runtime_resume(struct device *kdev)
3004
3006
ret = vlv_resume_prepare (dev_priv , true);
3005
3007
}
3006
3008
3007
- intel_uncore_runtime_resume (dev_priv );
3009
+ intel_uncore_runtime_resume (& dev_priv -> uncore );
3008
3010
3009
3011
intel_runtime_pm_enable_interrupts (dev_priv );
3010
3012
0 commit comments