[PATCH 1/7] WIP - fixing i915_driver_hw_remove()
Luca Coelho
luciano.coelho at intel.com
Thu Sep 26 13:22:10 UTC 2024
Signed-off-by: Luca Coelho <luciano.coelho at intel.com>
---
drivers/gpu/drm/i915/i915_driver.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_driver.c b/drivers/gpu/drm/i915/i915_driver.c
index 6dc0104a3e36..4caf11123d0c 100644
--- a/drivers/gpu/drm/i915/i915_driver.c
+++ b/drivers/gpu/drm/i915/i915_driver.c
@@ -582,6 +582,11 @@ static void i915_driver_hw_remove(struct drm_i915_private *dev_priv)
struct intel_display *display = &dev_priv->display;
struct pci_dev *pdev = to_pci_dev(dev_priv->drm.dev);
+ intel_memory_regions_driver_release(dev_priv);
+ i915_ggtt_driver_release(dev_priv);
+ i915_gem_drain_freed_objects(dev_priv);
+ i915_ggtt_driver_late_release(dev_priv);
+
i915_perf_fini(dev_priv);
intel_opregion_cleanup(display);
@@ -834,10 +839,6 @@ int i915_driver_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
intel_display_driver_remove_nogem(i915);
out_cleanup_hw:
i915_driver_hw_remove(i915);
- intel_memory_regions_driver_release(i915);
- i915_ggtt_driver_release(i915);
- i915_gem_drain_freed_objects(i915);
- i915_ggtt_driver_late_release(i915);
out_cleanup_mmio:
i915_driver_mmio_release(i915);
out_runtime_pm_put:
@@ -893,6 +894,7 @@ static void i915_driver_release(struct drm_device *dev)
i915_gem_driver_release(dev_priv);
+ /* FIXME: This should a call to i915_driver_hw_remove() */
intel_memory_regions_driver_release(dev_priv);
i915_ggtt_driver_release(dev_priv);
i915_gem_drain_freed_objects(dev_priv);
--
2.45.2
More information about the Intel-gfx-trybot
mailing list