RPM encapsulation
v3 cover RPM encapsulation
Same as v2, just rebased (some code moved + a couple of new get/put calls that had to be updated)
Daniele Ceraolo Spurio (8):
drm/i915: prefer i915_runtime_pm in intel_runtime function drm/i915: Remove rpm asserts that use i915
drm/i915: make enable/disable rpm assert function use the rpm
structure
drm/i915: move and rename i915_runtime_pm
drm/i915: move a few more functions to accept the rpm structure drm/i915: update rpm_get/put to use the rpm structure drm/i915: update with_intel_runtime_pm to use the rpm structure drm/i915: make intel_wakeref work on the rpm struct
drivers/gpu/drm/i915/gem/i915_gem_mman.c | 11 +- drivers/gpu/drm/i915/gem/i915_gem_object.c | 4 +- drivers/gpu/drm/i915/gem/i915_gem_shrinker.c | 12 +- .../gpu/drm/i915/gem/selftests/huge_pages.c | 4 +- .../i915/gem/selftests/i915_gem_coherency.c | 4 +- .../drm/i915/gem/selftests/i915_gem_context.c | 18 +- .../drm/i915/gem/selftests/i915_gem_mman.c | 4 +- drivers/gpu/drm/i915/gt/intel_context.c | 2 +- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 8 +- drivers/gpu/drm/i915/gt/intel_engine_pm.c | 4 +- drivers/gpu/drm/i915/gt/intel_gt_pm.c | 4 +- drivers/gpu/drm/i915/gt/intel_hangcheck.c | 4 +- drivers/gpu/drm/i915/gt/intel_reset.c | 6 +- drivers/gpu/drm/i915/gt/selftest_hangcheck.c | 12 +- drivers/gpu/drm/i915/gt/selftest_lrc.c | 36 ++-- drivers/gpu/drm/i915/gt/selftest_reset.c | 6 +- .../gpu/drm/i915/gt/selftest_workarounds.c | 16 +- drivers/gpu/drm/i915/gvt/aperture_gm.c | 17 +- drivers/gpu/drm/i915/gvt/gvt.h | 4 +- drivers/gpu/drm/i915/gvt/sched_policy.c | 4 +- drivers/gpu/drm/i915/gvt/scheduler.c | 4 +- drivers/gpu/drm/i915/i915_debugfs.c | 75 +++---- drivers/gpu/drm/i915/i915_drv.c | 62 +++--- drivers/gpu/drm/i915/i915_drv.h | 50 +---- drivers/gpu/drm/i915/i915_gem.c | 21 +- drivers/gpu/drm/i915/i915_gem_fence_reg.c | 8 +- drivers/gpu/drm/i915/i915_gem_gtt.c | 14 +- drivers/gpu/drm/i915/i915_irq.c | 38 ++-- drivers/gpu/drm/i915/i915_perf.c | 6 +- drivers/gpu/drm/i915/i915_pmu.c | 15 +- drivers/gpu/drm/i915/i915_sysfs.c | 14 +- drivers/gpu/drm/i915/i915_vma.c | 2 +- drivers/gpu/drm/i915/intel_csr.c | 2 +- drivers/gpu/drm/i915/intel_display.c | 12 +- drivers/gpu/drm/i915/intel_display_power.c | 39 ++-- drivers/gpu/drm/i915/intel_drv.h | 105 ---------- drivers/gpu/drm/i915/intel_fbdev.c | 6 +- drivers/gpu/drm/i915/intel_guc_log.c | 6 +- drivers/gpu/drm/i915/intel_hotplug.c | 4 +- drivers/gpu/drm/i915/intel_huc.c | 2 +- drivers/gpu/drm/i915/intel_panel.c | 2 +- drivers/gpu/drm/i915/intel_pm.c | 8 +- drivers/gpu/drm/i915/intel_runtime_pm.c | 162 +++++++-------- drivers/gpu/drm/i915/intel_runtime_pm.h | 191 ++++++++++++++++-- drivers/gpu/drm/i915/intel_uc.c | 2 +- drivers/gpu/drm/i915/intel_uncore.c | 26 +-- drivers/gpu/drm/i915/intel_uncore.h | 4 +- drivers/gpu/drm/i915/intel_wakeref.c | 32 +-- drivers/gpu/drm/i915/intel_wakeref.h | 18 +- drivers/gpu/drm/i915/selftests/i915_active.c | 8 +- drivers/gpu/drm/i915/selftests/i915_gem.c | 10 +- .../gpu/drm/i915/selftests/i915_gem_evict.c | 6 +- drivers/gpu/drm/i915/selftests/i915_gem_gtt.c | 8 +- drivers/gpu/drm/i915/selftests/i915_request.c | 22 +- .../gpu/drm/i915/selftests/i915_timeline.c | 16 +- drivers/gpu/drm/i915/selftests/i915_vma.c | 4 +- drivers/gpu/drm/i915/selftests/intel_guc.c | 8 +- drivers/gpu/drm/i915/selftests/intel_uncore.c | 4 +- .../gpu/drm/i915/selftests/mock_gem_device.c | 4 +- 59 files changed, 596 insertions(+), 604 deletions(-)
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 1/8 drm/i915: prefer i915_runtime_pm in intel_runtime function
As a first step towards updating the code to work on the runtime_pm structure instead of i915, rework all the internals to use and pass around that.
v2: add comment for kdev (Jani), move rpm init after pdev init for mock_device
--- drivers/gpu/drm/i915/i915_drv.h | 2 + drivers/gpu/drm/i915/intel_drv.h | 10 +- drivers/gpu/drm/i915/intel_runtime_pm.c | 122 ++++++++---------- .../gpu/drm/i915/selftests/mock_gem_device.c | 4 +- 4 files changed, 68 insertions(+), 70 deletions(-)
drivers/gpu/drm/i915/i915_drv.h +2 -0
@@ -1058,6 +1058,8 @@ struct skl_wm_params {*/ struct i915_runtime_pm {atomic_t wakeref_count; +struct device *kdev;/* points to i915->drm.pdev->dev */ +bool available;bool suspended;bool irqs_enabled;
drivers/gpu/drm/i915/intel_drv.h +7 -3
@@ -1656,13 +1656,17 @@ ____assert_rpm_wakelock_held(struct i915_runtime_pm *rpm, int wakeref_count) }static inline void -assert_rpm_raw_wakeref_held (struct drm_i915_private *i915) +__assert_rpm_raw_wakeref_held (struct i915_runtime_pm *rpm) { -struct i915_runtime_pm *rpm = &i915->runtime_pm; -____assert_rpm_raw_wakeref_held (rpm,atomic_read (&rpm->wakeref_count)); } +static inline void +assert_rpm_raw_wakeref_held (struct drm_i915_private *i915) +{ +__assert_rpm_raw_wakeref_held (&i915->runtime_pm); +} +static inline void __assert_rpm_wakelock_held (struct i915_runtime_pm *rpm) {
drivers/gpu/drm/i915/intel_runtime_pm.c +57 -65
307 lines not on this page · raw message
drivers/gpu/drm/i915/selftests/mock_gem_device.c +2 -2
@@ -153,8 +153,6 @@ struct drm_i915_private *mock_gem_device(void) i915 = (struct drm_i915_private *)(pdev +1 );pci_set_drvdata (pdev, i915); -intel_runtime_pm_init_early (i915); -dev_pm_domain_set (&pdev->dev, &pm_domain);pm_runtime_enable (&pdev->dev);pm_runtime_dont_use_autosuspend (&pdev->dev);
@@ -169,6 +167,8 @@ struct drm_i915_private *mock_gem_device(void) i915->drm.pdev = pdev; i915->drm.dev_private = i915; +intel_runtime_pm_init_early (i915); +/* Using the global GTT may ask questions about KMS users, so prepare */ drm_mode_config_init (&i915->drm);
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 2/8 drm/i915: Remove rpm asserts that use i915
In reply to Daniele Ceraolo SpurioQuite a few of the call points have already switched to the version working directly on the runtime_pm structure, so let's switch over the rest and kill the i915-based asserts.
v2: rebase
--- drivers/gpu/drm/i915/gem/i915_gem_mman.c | 2 +- drivers/gpu/drm/i915/gvt/aperture_gm.c | 2 +- drivers/gpu/drm/i915/i915_gem_fence_reg.c | 2 +- drivers/gpu/drm/i915/i915_irq.c | 6 ++--- drivers/gpu/drm/i915/i915_vma.c | 2 +- drivers/gpu/drm/i915/intel_csr.c | 2 +- drivers/gpu/drm/i915/intel_display_power.c | 4 ++-- drivers/gpu/drm/i915/intel_drv.h | 26 ++++++---------------- drivers/gpu/drm/i915/intel_runtime_pm.c | 10 ++++----- drivers/gpu/drm/i915/intel_uncore.c | 12 +++++----- drivers/gpu/drm/i915/intel_wakeref.c | 2 +- 11 files changed, 29 insertions(+), 41 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_mman.c +1 -1
@@ -308,7 +308,7 @@ vm_fault_t i915_gem_fault(struct vm_fault *vmf) goto err_fence;/* Mark as being mmapped into userspace for later revocation */ -assert_rpm_wakelock_held (i915); +assert_rpm_wakelock_held (&i915->runtime_pm);if (!i915_vma_set_userfault (vma) && !obj->userfault_count++)list_add (&obj->userfault_link, &i915->ggtt.userfault_list);if (CONFIG_DRM_I915_USERFAULT_AUTOSUSPEND )
drivers/gpu/drm/i915/gvt/aperture_gm.c +1 -1
@@ -132,7 +132,7 @@ void intel_vgpu_write_fence(struct intel_vgpu *vgpu,struct i915_fence_reg *reg;i915_reg_t fence_reg_lo, fence_reg_hi; -assert_rpm_wakelock_held (dev_priv); +assert_rpm_wakelock_held (&dev_priv->runtime_pm);if (WARN_ON (fence >=vgpu_fence_sz (vgpu)))return ;
drivers/gpu/drm/i915/i915_gem_fence_reg.c +1 -1
@@ -360,7 +360,7 @@ int i915_vma_pin_fence(struct i915_vma *vma)* Note that we revoke fences on runtime suspend. Therefore the user * must keep the device awake whilst using the fence. */ -assert_rpm_wakelock_held (vma->vm->i915); +assert_rpm_wakelock_held (&vma->vm->i915->runtime_pm);/* Just update our place in the LRU if our fence is getting reused. */ if (vma->fence) {
drivers/gpu/drm/i915/i915_irq.c +3 -3
@@ -589,7 +589,7 @@ void gen6_disable_rps_interrupts(struct drm_i915_private *dev_priv)void gen9_reset_guc_interrupts (struct drm_i915_private *dev_priv) { -assert_rpm_wakelock_held (dev_priv); +assert_rpm_wakelock_held (&dev_priv->runtime_pm);spin_lock_irq (&dev_priv->irq_lock);gen6_reset_pm_iir (dev_priv, dev_priv->pm_guc_events);
@@ -598,7 +598,7 @@ void gen9_reset_guc_interrupts(struct drm_i915_private *dev_priv)void gen9_enable_guc_interrupts (struct drm_i915_private *dev_priv) { -assert_rpm_wakelock_held (dev_priv); +assert_rpm_wakelock_held (&dev_priv->runtime_pm);spin_lock_irq (&dev_priv->irq_lock);if (!dev_priv->guc.interrupts.enabled) {
@@ -612,7 +612,7 @@ void gen9_enable_guc_interrupts(struct drm_i915_private *dev_priv)void gen9_disable_guc_interrupts (struct drm_i915_private *dev_priv) { -assert_rpm_wakelock_held (dev_priv); +assert_rpm_wakelock_held (&dev_priv->runtime_pm);spin_lock_irq (&dev_priv->irq_lock); dev_priv->guc.interrupts.enabled = false;
drivers/gpu/drm/i915/i915_vma.c +1 -1
@@ -364,7 +364,7 @@ void __iomem *i915_vma_pin_iomap(struct i915_vma *vma)int err;/* Access through the GTT requires the device to be awake. */ -assert_rpm_wakelock_held (vma->vm->i915); +assert_rpm_wakelock_held (&vma->vm->i915->runtime_pm);lockdep_assert_held (&vma->vm->i915->drm.struct_mutex);if (WARN_ON (!i915_vma_is_map_and_fenceable (vma))) {
drivers/gpu/drm/i915/intel_csr.c +1 -1
@@ -273,7 +273,7 @@ void intel_csr_load_program(struct drm_i915_private *dev_priv) } fw_size = dev_priv->csr.dmc_fw_size; -assert_rpm_wakelock_held (dev_priv); +assert_rpm_wakelock_held (&dev_priv->runtime_pm);preempt_disable ();
drivers/gpu/drm/i915/intel_display_power.c +2 -2
@@ -696,7 +696,7 @@ static void assert_can_enable_dc5(struct drm_i915_private *dev_priv)WARN_ONCE ((I915_READ (DC_STATE_EN ) &DC_STATE_EN_UPTO_DC5 ),"DC5 already programmed to be enabled.\n" ); -assert_rpm_wakelock_held (dev_priv); +assert_rpm_wakelock_held (&dev_priv->runtime_pm);assert_csr_loaded (dev_priv); }
@@ -1814,7 +1814,7 @@ release_async_put_domains(struct i915_power_domains *power_domains, u64 mask)* wakeref to make the state checker happy about the HW access during * power well disabling. */ -assert_rpm_raw_wakeref_held (dev_priv); +assert_rpm_raw_wakeref_held (&dev_priv->runtime_pm); wakeref =intel_runtime_pm_get (dev_priv);for_each_power_domain (domain, mask) {
drivers/gpu/drm/i915/intel_drv.h +7 -19
@@ -1640,7 +1640,7 @@ assert_rpm_device_not_suspended(struct i915_runtime_pm *rpm) }static inline void -____assert_rpm_raw_wakeref_held (struct i915_runtime_pm *rpm,int wakeref_count) +__assert_rpm_raw_wakeref_held (struct i915_runtime_pm *rpm,int wakeref_count) {assert_rpm_device_not_suspended (rpm); WARN_ONCE(!intel_rpm_raw_wakeref_count(wakeref_count),
@@ -1648,35 +1648,23 @@ ____assert_rpm_raw_wakeref_held(struct i915_runtime_pm *rpm, int wakeref_count) }static inline void -____assert_rpm_wakelock_held (struct i915_runtime_pm *rpm,int wakeref_count) +__assert_rpm_wakelock_held (struct i915_runtime_pm *rpm,int wakeref_count) { -____assert_rpm_raw_wakeref_held (rpm, wakeref_count); +__assert_rpm_raw_wakeref_held (rpm, wakeref_count);WARN_ONCE (!intel_rpm_wakelock_count (wakeref_count),"RPM wakelock ref not held during HW access\n" ); }static inline void -__assert_rpm_raw_wakeref_held (struct i915_runtime_pm *rpm) +assert_rpm_raw_wakeref_held (struct i915_runtime_pm *rpm) { -____assert_rpm_raw_wakeref_held (rpm,atomic_read (&rpm->wakeref_count)); +__assert_rpm_raw_wakeref_held (rpm,atomic_read (&rpm->wakeref_count)); }static inline void -assert_rpm_raw_wakeref_held (struct drm_i915_private *i915) +assert_rpm_wakelock_held (struct i915_runtime_pm *rpm) { -__assert_rpm_raw_wakeref_held (&i915->runtime_pm); -} - -static inline void -__assert_rpm_wakelock_held (struct i915_runtime_pm *rpm) -{ -____assert_rpm_wakelock_held (rpm,atomic_read (&rpm->wakeref_count)); -} - -static inline void -assert_rpm_wakelock_held (struct drm_i915_private *i915) -{ -__assert_rpm_wakelock_held (&i915->runtime_pm); +__assert_rpm_wakelock_held (rpm,atomic_read (&rpm->wakeref_count)); }/**
drivers/gpu/drm/i915/intel_runtime_pm.c +5 -5
@@ -335,10 +335,10 @@ intel_runtime_pm_acquire(struct i915_runtime_pm *rpm, bool wakelock) {if (wakelock) {atomic_add (1 +INTEL_RPM_WAKELOCK_BIAS , &rpm->wakeref_count); -__assert_rpm_wakelock_held (rpm); +assert_rpm_wakelock_held (rpm); }else {atomic_inc (&rpm->wakeref_count); -__assert_rpm_raw_wakeref_held (rpm); +assert_rpm_raw_wakeref_held (rpm); } }
@@ -346,10 +346,10 @@ static void intel_runtime_pm_release(struct i915_runtime_pm *rpm, int wakelock) { if (wakelock) { -__assert_rpm_wakelock_held (rpm); +assert_rpm_wakelock_held (rpm);atomic_sub (INTEL_RPM_WAKELOCK_BIAS , &rpm->wakeref_count); } else { -__assert_rpm_raw_wakeref_held (rpm); +assert_rpm_raw_wakeref_held (rpm); }__intel_wakeref_dec_and_check_tracking (rpm);
@@ -465,7 +465,7 @@ intel_wakeref_t intel_runtime_pm_get_noresume(struct drm_i915_private *i915) {struct i915_runtime_pm *rpm = &i915->runtime_pm; -__assert_rpm_wakelock_held (rpm); +assert_rpm_wakelock_held (rpm);pm_runtime_get_noresume (rpm->kdev);intel_runtime_pm_acquire (rpm, true);
drivers/gpu/drm/i915/intel_uncore.c +6 -6
@@ -583,7 +583,7 @@ void intel_uncore_forcewake_get(struct intel_uncore *uncore,if (!uncore->funcs.force_wake_get)return ; -__assert_rpm_wakelock_held (uncore->rpm); +assert_rpm_wakelock_held (uncore->rpm);spin_lock_irqsave (&uncore->lock, irqflags);__intel_uncore_forcewake_get (uncore, fw_domains);
@@ -737,7 +737,7 @@ void assert_forcewakes_active(struct intel_uncore *uncore,if (!uncore->funcs.force_wake_get)return ; -__assert_rpm_wakelock_held (uncore->rpm); +assert_rpm_wakelock_held (uncore->rpm); fw_domains &= uncore->fw_domains; WARN(fw_domains & ~uncore->fw_domains_active,
@@ -1054,7 +1054,7 @@ unclaimed_reg_debug(struct intel_uncore *uncore,#define GEN2_READ_HEADER (x) \ u##x val = 0; \ - __assert_rpm_wakelock_held(uncore->rpm); + assert_rpm_wakelock_held(uncore->rpm);#define GEN2_READ_FOOTER \ trace_i915_reg_rw(false, reg, val, sizeof(val), trace); \
@@ -1096,7 +1096,7 @@ __gen2_read(64)u32 offset =i915_mmio_reg_offset (reg); \unsigned long irqflags; \ u##x val = 0; \ - __assert_rpm_wakelock_held(uncore->rpm); \ + assert_rpm_wakelock_held(uncore->rpm); \ spin_lock_irqsave(&uncore->lock, irqflags); \ unclaimed_reg_debug(uncore, reg, true, true)
@@ -1170,7 +1170,7 @@ __gen6_read(64)#define GEN2_WRITE_HEADER \ trace_i915_reg_rw(true, reg, val, sizeof(val), trace); \ - __assert_rpm_wakelock_held(uncore->rpm); \ + assert_rpm_wakelock_held(uncore->rpm); \#define GEN2_WRITE_FOOTER
@@ -1208,7 +1208,7 @@ __gen2_write(32)u32 offset =i915_mmio_reg_offset (reg); \unsigned long irqflags; \trace_i915_reg_rw (true, reg, val,sizeof (val), trace); \ -__assert_rpm_wakelock_held (uncore->rpm); \ +assert_rpm_wakelock_held (uncore->rpm); \spin_lock_irqsave (&uncore->lock, irqflags); \unclaimed_reg_debug (uncore, reg, false, true)
drivers/gpu/drm/i915/intel_wakeref.c +1 -1
@@ -110,7 +110,7 @@ void intel_wakeref_auto(struct intel_wakeref_auto *wf, unsigned long timeout) }/* Our mission is that we only extend an already active wakeref */ -assert_rpm_wakelock_held (wf->i915); +assert_rpm_wakelock_held (&wf->i915->runtime_pm);if (!refcount_inc_not_zero (&wf->count)) {spin_lock_irqsave (&wf->lock, flags);
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 3/8 drm/i915: make enable/disable rpm assert function use the rpm structure
In reply to Daniele Ceraolo SpurioWith this all the rpm assert-related functions consistently work on the i915_runtime_pm structure
--- drivers/gpu/drm/i915/i915_drv.c | 48 +++++++++++++++-------------- drivers/gpu/drm/i915/i915_irq.c | 32 +++++++++---------- drivers/gpu/drm/i915/intel_drv.h | 12 ++++---- drivers/gpu/drm/i915/intel_uncore.c | 12 ++++---- 4 files changed, 53 insertions(+), 51 deletions(-)
drivers/gpu/drm/i915/i915_drv.c +25 -23
@@ -1889,7 +1889,7 @@ int i915_driver_load(struct pci_dev *pdev, const struct pci_device_id *ent)if (ret <0 ) goto out_pci_disable; -disable_rpm_wakeref_asserts (dev_priv); +disable_rpm_wakeref_asserts (&dev_priv->runtime_pm); ret =i915_driver_init_mmio (dev_priv);if (ret <0 )
@@ -1905,7 +1905,7 @@ int i915_driver_load(struct pci_dev *pdev, const struct pci_device_id *ent)i915_driver_register (dev_priv); -enable_rpm_wakeref_asserts (dev_priv); +enable_rpm_wakeref_asserts (&dev_priv->runtime_pm);i915_welcome_messages (dev_priv);
@@ -1917,7 +1917,7 @@ int i915_driver_load(struct pci_dev *pdev, const struct pci_device_id *ent) out_cleanup_mmio:i915_driver_cleanup_mmio (dev_priv); out_runtime_pm_put: -enable_rpm_wakeref_asserts (dev_priv); +enable_rpm_wakeref_asserts (&dev_priv->runtime_pm);i915_driver_cleanup_early (dev_priv); out_pci_disable:pci_disable_device (pdev);
@@ -1932,7 +1932,7 @@ void i915_driver_unload(struct drm_device *dev)struct drm_i915_private *dev_priv =to_i915 (dev);struct pci_dev *pdev = dev_priv->drm.pdev; -disable_rpm_wakeref_asserts (dev_priv); +disable_rpm_wakeref_asserts (&dev_priv->runtime_pm);i915_driver_unregister (dev_priv);
@@ -1971,21 +1971,21 @@ void i915_driver_unload(struct drm_device *dev)i915_driver_cleanup_hw (dev_priv); -enable_rpm_wakeref_asserts (dev_priv); +enable_rpm_wakeref_asserts (&dev_priv->runtime_pm); }static void i915_driver_release (struct drm_device *dev) {struct drm_i915_private *dev_priv =to_i915 (dev); -disable_rpm_wakeref_asserts (dev_priv); +disable_rpm_wakeref_asserts (&dev_priv->runtime_pm);i915_gem_fini (dev_priv);i915_ggtt_cleanup_hw (dev_priv);i915_driver_cleanup_mmio (dev_priv); -enable_rpm_wakeref_asserts (dev_priv); +enable_rpm_wakeref_asserts (&dev_priv->runtime_pm);intel_runtime_pm_cleanup (dev_priv);i915_driver_cleanup_early (dev_priv);
@@ -2080,7 +2080,7 @@ static int i915_drm_suspend(struct drm_device *dev)struct pci_dev *pdev = dev_priv->drm.pdev;pci_power_t opregion_target_state; -disable_rpm_wakeref_asserts (dev_priv); +disable_rpm_wakeref_asserts (&dev_priv->runtime_pm);/* We do a lot of poking in a lot of registers, make sure they work * properly. */
@@ -2114,7 +2114,7 @@ static int i915_drm_suspend(struct drm_device *dev)intel_csr_ucode_suspend (dev_priv); -enable_rpm_wakeref_asserts (dev_priv); +enable_rpm_wakeref_asserts (&dev_priv->runtime_pm);return 0 ; }
@@ -2137,7 +2137,7 @@ static int i915_drm_suspend_late(struct drm_device *dev, bool hibernation)struct pci_dev *pdev = dev_priv->drm.pdev;int ret; -disable_rpm_wakeref_asserts (dev_priv); +disable_rpm_wakeref_asserts (&dev_priv->runtime_pm);i915_gem_suspend_late (dev_priv);
@@ -2178,7 +2178,7 @@ static int i915_drm_suspend_late(struct drm_device *dev, bool hibernation)pci_set_power_state (pdev, PCI_D3hot); out: -enable_rpm_wakeref_asserts (dev_priv); +enable_rpm_wakeref_asserts (&dev_priv->runtime_pm);if (!dev_priv->uncore.user_forcewake.count)intel_runtime_pm_cleanup (dev_priv);
@@ -2214,7 +2214,7 @@ static int i915_drm_resume(struct drm_device *dev)struct drm_i915_private *dev_priv =to_i915 (dev);int ret; -disable_rpm_wakeref_asserts (dev_priv); +disable_rpm_wakeref_asserts (&dev_priv->runtime_pm);intel_sanitize_gt_powersave (dev_priv);i915_gem_sanitize (dev_priv);
@@ -2274,7 +2274,7 @@ static int i915_drm_resume(struct drm_device *dev)intel_power_domains_enable (dev_priv); -enable_rpm_wakeref_asserts (dev_priv); +enable_rpm_wakeref_asserts (&dev_priv->runtime_pm);return 0 ; }
@@ -2329,7 +2329,7 @@ static int i915_drm_resume_early(struct drm_device *dev)pci_set_master (pdev); -disable_rpm_wakeref_asserts (dev_priv); +disable_rpm_wakeref_asserts (&dev_priv->runtime_pm);if (IS_VALLEYVIEW (dev_priv) ||IS_CHERRYVIEW (dev_priv)) ret =vlv_resume_prepare (dev_priv, false);
@@ -2354,7 +2354,7 @@ static int i915_drm_resume_early(struct drm_device *dev)intel_gt_sanitize (dev_priv, true); -enable_rpm_wakeref_asserts (dev_priv); +enable_rpm_wakeref_asserts (&dev_priv->runtime_pm);return ret; }
@@ -2889,6 +2889,7 @@ static int intel_runtime_suspend(struct device *kdev)struct pci_dev *pdev =to_pci_dev (kdev);struct drm_device *dev =pci_get_drvdata (pdev);struct drm_i915_private *dev_priv =to_i915 (dev); +struct i915_runtime_pm *rpm = &dev_priv->runtime_pm;int ret;if (WARN_ON_ONCE (!(dev_priv->gt_pm.rc6.enabled &&HAS_RC6 (dev_priv))))
@@ -2899,7 +2900,7 @@ static int intel_runtime_suspend(struct device *kdev)DRM_DEBUG_KMS ("Suspending device\n" ); -disable_rpm_wakeref_asserts (dev_priv); +disable_rpm_wakeref_asserts (rpm);/* * We are safe here against re-faults, since the fault handler takes
@@ -2937,18 +2938,18 @@ static int intel_runtime_suspend(struct device *kdev)i915_gem_init_swizzling (dev_priv);i915_gem_restore_fences (dev_priv); -enable_rpm_wakeref_asserts (dev_priv); +enable_rpm_wakeref_asserts (rpm);return ret; } -enable_rpm_wakeref_asserts (dev_priv); +enable_rpm_wakeref_asserts (rpm);intel_runtime_pm_cleanup (dev_priv);if (intel_uncore_arm_unclaimed_mmio_detection (&dev_priv->uncore))DRM_ERROR ("Unclaimed access detected prior to suspending\n" ); - dev_priv->runtime_pm.suspended = true; + rpm->suspended = true;/* * FIXME: We really should find a document that references the arguments
@@ -2987,6 +2988,7 @@ static int intel_runtime_resume(struct device *kdev)struct pci_dev *pdev =to_pci_dev (kdev);struct drm_device *dev =pci_get_drvdata (pdev);struct drm_i915_private *dev_priv =to_i915 (dev); +struct i915_runtime_pm *rpm = &dev_priv->runtime_pm;int ret =0 ;if (WARN_ON_ONCE (!HAS_RUNTIME_PM (dev_priv)))
@@ -2994,11 +2996,11 @@ static int intel_runtime_resume(struct device *kdev)DRM_DEBUG_KMS ("Resuming device\n" ); -WARN_ON_ONCE (atomic_read (&dev_priv->runtime_pm.wakeref_count)); -disable_rpm_wakeref_asserts (dev_priv); +WARN_ON_ONCE (atomic_read (&rpm->wakeref_count)); +disable_rpm_wakeref_asserts (rpm);intel_opregion_notify_adapter (dev_priv,PCI_D0 ); - dev_priv->runtime_pm.suspended = false; + rpm->suspended = false;if (intel_uncore_unclaimed_mmio (&dev_priv->uncore))DRM_DEBUG_DRIVER ("Unclaimed access during suspend, bios?\n" );
@@ -3048,7 +3050,7 @@ static int intel_runtime_resume(struct device *kdev)intel_enable_ipc (dev_priv); -enable_rpm_wakeref_asserts (dev_priv); +enable_rpm_wakeref_asserts (rpm);if (ret)DRM_ERROR ("Runtime resume failed, disabling it (%d)\n" , ret);
drivers/gpu/drm/i915/i915_irq.c +16 -16
@@ -2186,7 +2186,7 @@ static irqreturn_t valleyview_irq_handler(int irq, void *arg)return IRQ_NONE ;/* IRQs are synced during runtime_suspend, we don't require a wakeref */ -disable_rpm_wakeref_asserts (dev_priv); +disable_rpm_wakeref_asserts (&dev_priv->runtime_pm); do { u32 iir, gt_iir, pm_iir;
@@ -2257,7 +2257,7 @@ static irqreturn_t valleyview_irq_handler(int irq, void *arg)valleyview_pipestat_irq_handler (dev_priv, pipe_stats); }while (0 ); -enable_rpm_wakeref_asserts (dev_priv); +enable_rpm_wakeref_asserts (&dev_priv->runtime_pm);return ret; }
@@ -2272,7 +2272,7 @@ static irqreturn_t cherryview_irq_handler(int irq, void *arg)return IRQ_NONE ;/* IRQs are synced during runtime_suspend, we don't require a wakeref */ -disable_rpm_wakeref_asserts (dev_priv); +disable_rpm_wakeref_asserts (&dev_priv->runtime_pm); do { u32 master_ctl, iir;
@@ -2338,7 +2338,7 @@ static irqreturn_t cherryview_irq_handler(int irq, void *arg)valleyview_pipestat_irq_handler (dev_priv, pipe_stats); }while (0 ); -enable_rpm_wakeref_asserts (dev_priv); +enable_rpm_wakeref_asserts (&dev_priv->runtime_pm);return ret; }
@@ -2692,7 +2692,7 @@ static irqreturn_t ironlake_irq_handler(int irq, void *arg)return IRQ_NONE ;/* IRQs are synced during runtime_suspend, we don't require a wakeref */ -disable_rpm_wakeref_asserts (dev_priv); +disable_rpm_wakeref_asserts (&dev_priv->runtime_pm);/* disable master interrupt before clearing iir */ de_ier =I915_READ (DEIER );
@@ -2744,7 +2744,7 @@ static irqreturn_t ironlake_irq_handler(int irq, void *arg)I915_WRITE (SDEIER , sde_ier);/* IRQs are synced during runtime_suspend, we don't require a wakeref */ -enable_rpm_wakeref_asserts (dev_priv); +enable_rpm_wakeref_asserts (&dev_priv->runtime_pm);return ret; }
@@ -3011,9 +3011,9 @@ static irqreturn_t gen8_irq_handler(int irq, void *arg)/* IRQs are synced during runtime_suspend, we don't require a wakeref */ if (master_ctl & ~GEN8_GT_IRQS ) { -disable_rpm_wakeref_asserts (dev_priv); +disable_rpm_wakeref_asserts (&dev_priv->runtime_pm);gen8_de_irq_handler (dev_priv, master_ctl); -enable_rpm_wakeref_asserts (dev_priv); +enable_rpm_wakeref_asserts (&dev_priv->runtime_pm); }gen8_master_intr_enable (regs);
@@ -3212,13 +3212,13 @@ static irqreturn_t gen11_irq_handler(int irq, void *arg)if (master_ctl &GEN11_DISPLAY_IRQ ) {const u32 disp_ctl =raw_reg_read (regs,GEN11_DISPLAY_INT_CTL ); -disable_rpm_wakeref_asserts (i915); +disable_rpm_wakeref_asserts (&i915->runtime_pm);/* * GEN11_DISPLAY_INT_CTL has same format as GEN8_MASTER_IRQ * for the display related bits. */ gen8_de_irq_handler (i915, disp_ctl); -enable_rpm_wakeref_asserts (i915); +enable_rpm_wakeref_asserts (&i915->runtime_pm); } gu_misc_iir =gen11_gu_misc_irq_ack (i915, master_ctl);
@@ -4442,7 +4442,7 @@ static irqreturn_t i8xx_irq_handler(int irq, void *arg)return IRQ_NONE ;/* IRQs are synced during runtime_suspend, we don't require a wakeref */ -disable_rpm_wakeref_asserts (dev_priv); +disable_rpm_wakeref_asserts (&dev_priv->runtime_pm); do { u32 pipe_stats[I915_MAX_PIPES] = {};
@@ -4473,7 +4473,7 @@ static irqreturn_t i8xx_irq_handler(int irq, void *arg)i8xx_pipestat_irq_handler (dev_priv, iir, pipe_stats); }while (0 ); -enable_rpm_wakeref_asserts (dev_priv); +enable_rpm_wakeref_asserts (&dev_priv->runtime_pm);return ret; }
@@ -4547,7 +4547,7 @@ static irqreturn_t i915_irq_handler(int irq, void *arg)return IRQ_NONE ;/* IRQs are synced during runtime_suspend, we don't require a wakeref */ -disable_rpm_wakeref_asserts (dev_priv); +disable_rpm_wakeref_asserts (&dev_priv->runtime_pm); do { u32 pipe_stats[I915_MAX_PIPES] = {};
@@ -4586,7 +4586,7 @@ static irqreturn_t i915_irq_handler(int irq, void *arg)i915_pipestat_irq_handler (dev_priv, iir, pipe_stats); }while (0 ); -enable_rpm_wakeref_asserts (dev_priv); +enable_rpm_wakeref_asserts (&dev_priv->runtime_pm);return ret; }
@@ -4695,7 +4695,7 @@ static irqreturn_t i965_irq_handler(int irq, void *arg)return IRQ_NONE ;/* IRQs are synced during runtime_suspend, we don't require a wakeref */ -disable_rpm_wakeref_asserts (dev_priv); +disable_rpm_wakeref_asserts (&dev_priv->runtime_pm); do { u32 pipe_stats[I915_MAX_PIPES] = {};
@@ -4736,7 +4736,7 @@ static irqreturn_t i965_irq_handler(int irq, void *arg)i965_pipestat_irq_handler (dev_priv, iir, pipe_stats); }while (0 ); -enable_rpm_wakeref_asserts (dev_priv); +enable_rpm_wakeref_asserts (&dev_priv->runtime_pm);return ret; }
drivers/gpu/drm/i915/intel_drv.h +6 -6
@@ -1669,7 +1669,7 @@ assert_rpm_wakelock_held(struct i915_runtime_pm *rpm)/** * disable_rpm_wakeref_asserts - disable the RPM assert checks -* @i915: i915 device instance +* @rpm: the i915_runtime_pm structure * * This function disable asserts that check if we hold an RPM wakelock * reference, while keeping the device-not-suspended checks still enabled.
@@ -1686,15 +1686,15 @@ assert_rpm_wakelock_held(struct i915_runtime_pm *rpm)* enable_rpm_wakeref_asserts(). */ static inline void -disable_rpm_wakeref_asserts (struct drm_i915_private *i915) +disable_rpm_wakeref_asserts (struct i915_runtime_pm *rpm) {atomic_add (INTEL_RPM_WAKELOCK_BIAS +1 , - &i915->runtime_pm.wakeref_count); + &rpm->wakeref_count); }/** * enable_rpm_wakeref_asserts - re-enable the RPM assert checks -* @i915: i915 device instance +* @rpm: the i915_runtime_pm structure * * This function re-enables the RPM assert checks after disabling them with * disable_rpm_wakeref_asserts. It's meant to be used only in special
@@ -1704,10 +1704,10 @@ disable_rpm_wakeref_asserts(struct drm_i915_private *i915)* disable_rpm_wakeref_asserts(). */ static inline void -enable_rpm_wakeref_asserts (struct drm_i915_private *i915) +enable_rpm_wakeref_asserts (struct i915_runtime_pm *rpm) {atomic_sub (INTEL_RPM_WAKELOCK_BIAS +1 , - &i915->runtime_pm.wakeref_count); + &rpm->wakeref_count); }#endif /* __INTEL_DRV_H__ */
drivers/gpu/drm/i915/intel_uncore.c +6 -6
@@ -1461,8 +1461,8 @@ static void intel_uncore_fw_domains_init(struct intel_uncore *uncore)static int i915_pmic_bus_access_notifier (struct notifier_block *nb,unsigned long action,void *data) { -struct drm_i915_private *dev_priv =container_of (nb, - struct drm_i915_private, uncore.pmic_bus_access_nb); +struct intel_uncore *uncore =container_of (nb, + struct intel_uncore, pmic_bus_access_nb);switch (action) {case MBI_PMIC_BUS_ACCESS_BEGIN :
@@ -1479,12 +1479,12 @@ static int i915_pmic_bus_access_notifier(struct notifier_block *nb,* wake reference -> disable wakeref asserts for the time of * the access. */ -disable_rpm_wakeref_asserts (dev_priv); -intel_uncore_forcewake_get (&dev_priv->uncore,FORCEWAKE_ALL ); -enable_rpm_wakeref_asserts (dev_priv); +disable_rpm_wakeref_asserts (uncore->rpm); +intel_uncore_forcewake_get (uncore,FORCEWAKE_ALL ); +enable_rpm_wakeref_asserts (uncore->rpm);break ;case MBI_PMIC_BUS_ACCESS_END : -intel_uncore_forcewake_put (&dev_priv->uncore,FORCEWAKE_ALL ); +intel_uncore_forcewake_put (uncore,FORCEWAKE_ALL );break ; }
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 4/8 drm/i915: move and rename i915_runtime_pm
In reply to Daniele Ceraolo SpurioAsserts aside, all the code working on this structure is in intel_runtime_pm.c and uses the intel_ prefix, so move the structure to intel_runtime_pm.h and adopt the same prefix.
Since all the asserts are now working on the runtime_pm structure, bring them across as well.
v2: drop unneeded include (Chris), don't rename debugfs, rebase
--- drivers/gpu/drm/i915/i915_drv.c | 4 +- drivers/gpu/drm/i915/i915_drv.h | 52 +-------- drivers/gpu/drm/i915/intel_drv.h | 97 --------------- drivers/gpu/drm/i915/intel_runtime_pm.c | 42 +++---- drivers/gpu/drm/i915/intel_runtime_pm.h | 149 ++++++++++++++++++++++++ drivers/gpu/drm/i915/intel_uncore.h | 4 +- 6 files changed, 175 insertions(+), 173 deletions(-)
drivers/gpu/drm/i915/i915_drv.c +2 -2
@@ -2889,7 +2889,7 @@ static int intel_runtime_suspend(struct device *kdev)struct pci_dev *pdev =to_pci_dev (kdev);struct drm_device *dev =pci_get_drvdata (pdev);struct drm_i915_private *dev_priv =to_i915 (dev); -struct i915_runtime_pm *rpm = &dev_priv->runtime_pm; +struct intel_runtime_pm *rpm = &dev_priv->runtime_pm;int ret;if (WARN_ON_ONCE (!(dev_priv->gt_pm.rc6.enabled &&HAS_RC6 (dev_priv))))
@@ -2988,7 +2988,7 @@ static int intel_runtime_resume(struct device *kdev)struct pci_dev *pdev =to_pci_dev (kdev);struct drm_device *dev =pci_get_drvdata (pdev);struct drm_i915_private *dev_priv =to_i915 (dev); -struct i915_runtime_pm *rpm = &dev_priv->runtime_pm; +struct intel_runtime_pm *rpm = &dev_priv->runtime_pm;int ret =0 ;if (WARN_ON_ONCE (!HAS_RUNTIME_PM (dev_priv)))
drivers/gpu/drm/i915/i915_drv.h +1 -51
64 lines not on this page · raw message
drivers/gpu/drm/i915/intel_drv.h +0 -97
101 lines not on this page · raw message
drivers/gpu/drm/i915/intel_runtime_pm.c +21 -21
161 lines not on this page · raw message
drivers/gpu/drm/i915/intel_runtime_pm.h +149 -0
161 lines not on this page · raw message
drivers/gpu/drm/i915/intel_uncore.h +2 -2
@@ -33,7 +33,7 @@#include "i915_reg.h" struct drm_i915_private ; -struct i915_runtime_pm ; +struct intel_runtime_pm ;struct intel_uncore ;enum forcewake_domain_id {
@@ -97,7 +97,7 @@ struct intel_forcewake_range {struct intel_uncore {void __iomem *regs; -struct i915_runtime_pm *rpm; +struct intel_runtime_pm *rpm;spinlock_t lock;/** lock is also taken in irq contexts. */
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 5/8 drm/i915: move a few more functions to accept the rpm structure
In reply to Daniele Ceraolo SpurioFocusing on the functions called in few places.
--- drivers/gpu/drm/i915/i915_debugfs.c | 2 +- drivers/gpu/drm/i915/i915_drv.c | 22 ++++++++++--------- drivers/gpu/drm/i915/intel_runtime_pm.c | 19 +++++++--------- drivers/gpu/drm/i915/intel_runtime_pm.h | 12 +++++----- .../gpu/drm/i915/selftests/mock_gem_device.c | 2 +- 5 files changed, 28 insertions(+), 29 deletions(-)
drivers/gpu/drm/i915/i915_debugfs.c +1 -1
@@ -2459,7 +2459,7 @@ static int i915_runtime_pm_status(struct seq_file *m, void *unused)if (IS_ENABLED (CONFIG_DRM_I915_DEBUG_RUNTIME_PM )) {struct drm_printer p =drm_seq_file_printer (m); -print_intel_runtime_pm_wakeref (dev_priv, &p); +print_intel_runtime_pm_wakeref (&dev_priv->runtime_pm, &p); }return 0 ;
drivers/gpu/drm/i915/i915_drv.c +12 -10
@@ -909,7 +909,7 @@ static int i915_driver_init_early(struct drm_i915_private *dev_priv)mutex_init (&dev_priv->hdcp_comp_mutex);i915_memcpy_init_early (dev_priv); -intel_runtime_pm_init_early (dev_priv); +intel_runtime_pm_init_early (&dev_priv->runtime_pm); ret =i915_workqueues_init (dev_priv);if (ret <0 )
@@ -1751,7 +1751,7 @@ static void i915_driver_register(struct drm_i915_private *dev_priv)drm_kms_helper_poll_init (dev);intel_power_domains_enable (dev_priv); -intel_runtime_pm_enable (dev_priv); +intel_runtime_pm_enable (&dev_priv->runtime_pm); }/**
@@ -1760,7 +1760,7 @@ static void i915_driver_register(struct drm_i915_private *dev_priv)*/ static void i915_driver_unregister (struct drm_i915_private *dev_priv) { -intel_runtime_pm_disable (dev_priv); +intel_runtime_pm_disable (&dev_priv->runtime_pm);intel_power_domains_disable (dev_priv);intel_fbdev_unregister (dev_priv);
@@ -1977,16 +1977,17 @@ void i915_driver_unload(struct drm_device *dev)static void i915_driver_release (struct drm_device *dev) {struct drm_i915_private *dev_priv =to_i915 (dev); +struct intel_runtime_pm *rpm = &dev_priv->runtime_pm; -disable_rpm_wakeref_asserts (&dev_priv->runtime_pm); +disable_rpm_wakeref_asserts (rpm);i915_gem_fini (dev_priv);i915_ggtt_cleanup_hw (dev_priv);i915_driver_cleanup_mmio (dev_priv); -enable_rpm_wakeref_asserts (&dev_priv->runtime_pm); -intel_runtime_pm_cleanup (dev_priv); +enable_rpm_wakeref_asserts (rpm); +intel_runtime_pm_cleanup (rpm);i915_driver_cleanup_early (dev_priv);i915_driver_destroy (dev_priv);
@@ -2135,9 +2136,10 @@ static int i915_drm_suspend_late(struct drm_device *dev, bool hibernation) {struct drm_i915_private *dev_priv =to_i915 (dev);struct pci_dev *pdev = dev_priv->drm.pdev; +struct intel_runtime_pm *rpm = &dev_priv->runtime_pm;int ret; -disable_rpm_wakeref_asserts (&dev_priv->runtime_pm); +disable_rpm_wakeref_asserts (rpm);i915_gem_suspend_late (dev_priv);
@@ -2178,9 +2180,9 @@ static int i915_drm_suspend_late(struct drm_device *dev, bool hibernation)pci_set_power_state (pdev, PCI_D3hot); out: -enable_rpm_wakeref_asserts (&dev_priv->runtime_pm); +enable_rpm_wakeref_asserts (rpm);if (!dev_priv->uncore.user_forcewake.count) -intel_runtime_pm_cleanup (dev_priv); +intel_runtime_pm_cleanup (rpm);return ret; }
@@ -2944,7 +2946,7 @@ static int intel_runtime_suspend(struct device *kdev) }enable_rpm_wakeref_asserts (rpm); -intel_runtime_pm_cleanup (dev_priv); +intel_runtime_pm_cleanup (rpm);if (intel_uncore_arm_unclaimed_mmio_detection (&dev_priv->uncore))DRM_ERROR ("Unclaimed access detected prior to suspending\n" );
drivers/gpu/drm/i915/intel_runtime_pm.c +8 -11
@@ -262,13 +262,12 @@ untrack_all_intel_runtime_pm_wakerefs(struct intel_runtime_pm *rpm)dump_and_free_wakeref_tracking (&dbg); } -void print_intel_runtime_pm_wakeref (struct drm_i915_private *i915, +void print_intel_runtime_pm_wakeref (struct intel_runtime_pm *rpm,struct drm_printer *p) {struct intel_runtime_pm_debug dbg = {}; do { - struct intel_runtime_pm *rpm = &i915->runtime_pm; unsigned long alloc = dbg.count; depot_stack_handle_t *s;
@@ -537,7 +536,7 @@ void intel_runtime_pm_put(struct drm_i915_private *i915, intel_wakeref_t wref)/** * intel_runtime_pm_enable - enable runtime pm -* @i915: i915 device instance +* @rpm: the intel_runtime_pm structure * * This function enables runtime pm at the end of the driver load sequence. *
@@ -545,9 +544,8 @@ void intel_runtime_pm_put(struct drm_i915_private *i915, intel_wakeref_t wref)* subordinate display power domains. That is done by * intel_power_domains_enable(). */ -void intel_runtime_pm_enable (struct drm_i915_private *i915) +void intel_runtime_pm_enable (struct intel_runtime_pm *rpm) { -struct intel_runtime_pm *rpm = &i915->runtime_pm;struct device *kdev = rpm->kdev;/*
@@ -587,9 +585,8 @@ void intel_runtime_pm_enable(struct drm_i915_private *i915)pm_runtime_put_autosuspend (kdev); } -void intel_runtime_pm_disable (struct drm_i915_private *i915) +void intel_runtime_pm_disable (struct intel_runtime_pm *rpm) { -struct intel_runtime_pm *rpm = &i915->runtime_pm;struct device *kdev = rpm->kdev;/* Transfer rpm ownership back to core */
@@ -602,9 +599,8 @@ void intel_runtime_pm_disable(struct drm_i915_private *i915)pm_runtime_put (kdev); } -void intel_runtime_pm_cleanup (struct drm_i915_private *i915) +void intel_runtime_pm_cleanup (struct intel_runtime_pm *rpm) { -struct intel_runtime_pm *rpm = &i915->runtime_pm;int count =atomic_read (&rpm->wakeref_count); WARN(count,
@@ -615,9 +611,10 @@ void intel_runtime_pm_cleanup(struct drm_i915_private *i915)untrack_all_intel_runtime_pm_wakerefs (rpm); } -void intel_runtime_pm_init_early (struct drm_i915_private *i915) +void intel_runtime_pm_init_early (struct intel_runtime_pm *rpm) { -struct intel_runtime_pm *rpm = &i915->runtime_pm; +struct drm_i915_private *i915 = + container_of(rpm, struct drm_i915_private, runtime_pm);struct pci_dev *pdev = i915->drm.pdev;struct device *kdev = &pdev->dev;
drivers/gpu/drm/i915/intel_runtime_pm.h +6 -6
@@ -169,10 +169,10 @@ enable_rpm_wakeref_asserts(struct intel_runtime_pm *rpm) &rpm->wakeref_count); } -void intel_runtime_pm_init_early (struct drm_i915_private *dev_priv); -void intel_runtime_pm_enable (struct drm_i915_private *dev_priv); -void intel_runtime_pm_disable (struct drm_i915_private *dev_priv); -void intel_runtime_pm_cleanup (struct drm_i915_private *dev_priv); +void intel_runtime_pm_init_early (struct intel_runtime_pm *rpm); +void intel_runtime_pm_enable (struct intel_runtime_pm *rpm); +void intel_runtime_pm_disable (struct intel_runtime_pm *rpm); +void intel_runtime_pm_cleanup (struct intel_runtime_pm *rpm);intel_wakeref_t intel_runtime_pm_get (struct drm_i915_private *i915);intel_wakeref_t intel_runtime_pm_get_if_in_use (struct drm_i915_private *i915);
@@ -200,10 +200,10 @@ intel_runtime_pm_put(struct drm_i915_private *i915, intel_wakeref_t wref)void intel_runtime_pm_put_raw (struct drm_i915_private *i915,intel_wakeref_t wref);#if IS_ENABLED (CONFIG_DRM_I915_DEBUG_RUNTIME_PM ) -void print_intel_runtime_pm_wakeref (struct drm_i915_private *i915, +void print_intel_runtime_pm_wakeref (struct intel_runtime_pm *rpm,struct drm_printer *p);#else -static inline void print_intel_runtime_pm_wakeref (struct drm_i915_private *i915, +static inline void print_intel_runtime_pm_wakeref (struct intel_runtime_pm *rpm,struct drm_printer *p) { }
drivers/gpu/drm/i915/selftests/mock_gem_device.c +1 -1
@@ -167,7 +167,7 @@ struct drm_i915_private *mock_gem_device(void) i915->drm.pdev = pdev; i915->drm.dev_private = i915; -intel_runtime_pm_init_early (i915); +intel_runtime_pm_init_early (&i915->runtime_pm);/* Using the global GTT may ask questions about KMS users, so prepare */ drm_mode_config_init (&i915->drm);
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 6/8 drm/i915: update rpm_get/put to use the rpm structure
In reply to Daniele Ceraolo SpurioThe functions where internally already only using the structure, so we need to just flip the interface.
v2: rebase
--- drivers/gpu/drm/i915/gem/i915_gem_mman.c | 11 +++-- drivers/gpu/drm/i915/gem/i915_gem_object.c | 4 +- drivers/gpu/drm/i915/gem/i915_gem_shrinker.c | 4 +- .../gpu/drm/i915/gem/selftests/huge_pages.c | 4 +- .../i915/gem/selftests/i915_gem_coherency.c | 4 +- .../drm/i915/gem/selftests/i915_gem_context.c | 12 ++--- .../drm/i915/gem/selftests/i915_gem_mman.c | 4 +- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 8 +-- drivers/gpu/drm/i915/gt/intel_hangcheck.c | 4 +- drivers/gpu/drm/i915/gt/intel_reset.c | 4 +- drivers/gpu/drm/i915/gt/selftest_hangcheck.c | 12 ++--- drivers/gpu/drm/i915/gt/selftest_lrc.c | 36 +++++++------- drivers/gpu/drm/i915/gt/selftest_reset.c | 4 +- .../gpu/drm/i915/gt/selftest_workarounds.c | 12 ++--- drivers/gpu/drm/i915/gvt/aperture_gm.c | 15 +++--- drivers/gpu/drm/i915/gvt/gvt.h | 4 +- drivers/gpu/drm/i915/gvt/sched_policy.c | 4 +- drivers/gpu/drm/i915/gvt/scheduler.c | 4 +- drivers/gpu/drm/i915/i915_debugfs.c | 49 ++++++++++--------- drivers/gpu/drm/i915/i915_gem.c | 19 +++---- drivers/gpu/drm/i915/i915_gem_fence_reg.c | 4 +- drivers/gpu/drm/i915/i915_gem_gtt.c | 6 +-- drivers/gpu/drm/i915/i915_perf.c | 6 +-- drivers/gpu/drm/i915/i915_pmu.c | 12 ++--- drivers/gpu/drm/i915/i915_sysfs.c | 12 ++--- drivers/gpu/drm/i915/intel_display.c | 12 ++--- drivers/gpu/drm/i915/intel_display_power.c | 37 +++++++------- drivers/gpu/drm/i915/intel_fbdev.c | 6 +-- drivers/gpu/drm/i915/intel_hotplug.c | 4 +- drivers/gpu/drm/i915/intel_runtime_pm.c | 43 +++++++--------- drivers/gpu/drm/i915/intel_runtime_pm.h | 26 +++++----- drivers/gpu/drm/i915/intel_wakeref.c | 8 +-- drivers/gpu/drm/i915/selftests/i915_active.c | 8 +-- drivers/gpu/drm/i915/selftests/i915_gem.c | 4 +- .../gpu/drm/i915/selftests/i915_gem_evict.c | 4 +- drivers/gpu/drm/i915/selftests/i915_gem_gtt.c | 8 +-- drivers/gpu/drm/i915/selftests/i915_request.c | 20 ++++---- .../gpu/drm/i915/selftests/i915_timeline.c | 16 +++--- drivers/gpu/drm/i915/selftests/i915_vma.c | 4 +- drivers/gpu/drm/i915/selftests/intel_guc.c | 8 +-- drivers/gpu/drm/i915/selftests/intel_uncore.c | 4 +- 41 files changed, 236 insertions(+), 234 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_mman.c +6 -5
@@ -222,6 +222,7 @@ vm_fault_t i915_gem_fault(struct vm_fault *vmf)struct drm_i915_gem_object *obj =to_intel_bo (area->vm_private_data);struct drm_device *dev = obj->base.dev;struct drm_i915_private *i915 =to_i915 (dev); +struct intel_runtime_pm *rpm = &i915->runtime_pm;struct i915_ggtt *ggtt = &i915->ggtt;bool write = area->vm_flags &VM_WRITE ;intel_wakeref_t wakeref;
@@ -243,7 +244,7 @@ vm_fault_t i915_gem_fault(struct vm_fault *vmf)if (ret) goto err; - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (rpm); srcu =i915_reset_trylock (i915);if (srcu <0 ) {
@@ -308,7 +309,7 @@ vm_fault_t i915_gem_fault(struct vm_fault *vmf) goto err_fence;/* Mark as being mmapped into userspace for later revocation */ -assert_rpm_wakelock_held (&i915->runtime_pm); +assert_rpm_wakelock_held (rpm);if (!i915_vma_set_userfault (vma) && !obj->userfault_count++)list_add (&obj->userfault_link, &i915->ggtt.userfault_list);if (CONFIG_DRM_I915_USERFAULT_AUTOSUSPEND )
@@ -327,7 +328,7 @@ vm_fault_t i915_gem_fault(struct vm_fault *vmf) err_reset:i915_reset_unlock (i915, srcu); err_rpm: -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (rpm, wakeref);i915_gem_object_unpin_pages (obj); err:switch (ret) {
@@ -410,7 +411,7 @@ void i915_gem_object_release_mmap(struct drm_i915_gem_object *obj)* wakeref. */ lockdep_assert_held (&i915->drm.struct_mutex); - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm);if (!obj->userfault_count) goto out;
@@ -427,7 +428,7 @@ void i915_gem_object_release_mmap(struct drm_i915_gem_object *obj)wmb (); out: -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref); }static int create_mmap_offset (struct drm_i915_gem_object *obj)
drivers/gpu/drm/i915/gem/i915_gem_object.c +2 -2
@@ -181,7 +181,7 @@ static void __i915_gem_free_objects(struct drm_i915_private *i915,struct drm_i915_gem_object *obj, *on;intel_wakeref_t wakeref; - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm);llist_for_each_entry_safe (obj, on, freed, freed) {struct i915_vma *vma, *vn;
@@ -243,7 +243,7 @@ static void __i915_gem_free_objects(struct drm_i915_private *i915,cond_resched (); } -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref); }void i915_gem_flush_free_objects (struct drm_i915_private *i915)
drivers/gpu/drm/i915/gem/i915_gem_shrinker.c +2 -2
@@ -182,7 +182,7 @@ i915_gem_shrink(struct drm_i915_private *i915,* we will force the wake during oom-notifier. */ if (shrink &I915_SHRINK_BOUND ) { - wakeref =intel_runtime_pm_get_if_in_use (i915); + wakeref =intel_runtime_pm_get_if_in_use (&i915->runtime_pm);if (!wakeref) shrink &= ~I915_SHRINK_BOUND ; }
@@ -267,7 +267,7 @@ i915_gem_shrink(struct drm_i915_private *i915, }if (shrink &I915_SHRINK_BOUND ) -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);i915_retire_requests (i915);
drivers/gpu/drm/i915/gem/selftests/huge_pages.c +2 -2
@@ -1754,7 +1754,7 @@ int i915_gem_huge_page_live_selftests(struct drm_i915_private *dev_priv)return PTR_ERR (file);mutex_lock (&dev_priv->drm.struct_mutex); - wakeref =intel_runtime_pm_get (dev_priv); + wakeref =intel_runtime_pm_get (&dev_priv->runtime_pm); ctx =live_context (dev_priv, file);if (IS_ERR (ctx)) {
@@ -1768,7 +1768,7 @@ int i915_gem_huge_page_live_selftests(struct drm_i915_private *dev_priv) err =i915_subtests (tests, ctx); out_unlock: -intel_runtime_pm_put (dev_priv, wakeref); +intel_runtime_pm_put (&dev_priv->runtime_pm, wakeref);mutex_unlock (&dev_priv->drm.struct_mutex);mock_file_free (dev_priv, file);
drivers/gpu/drm/i915/gem/selftests/i915_gem_coherency.c +2 -2
@@ -293,7 +293,7 @@ static int igt_gem_coherency(void *arg) values = offsets + ncachelines;mutex_lock (&i915->drm.struct_mutex); - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm);for (over = igt_coherency_mode; over->name; over++) {if (!over->set)continue ;
@@ -371,7 +371,7 @@ static int igt_gem_coherency(void *arg) } } unlock: -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);mutex_unlock (&i915->drm.struct_mutex);kfree (offsets);return err;
drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c +6 -6
@@ -53,7 +53,7 @@ static int live_nop_switch(void *arg)return PTR_ERR (file);mutex_lock (&i915->drm.struct_mutex); - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm); ctx =kcalloc (nctx,sizeof (*ctx),GFP_KERNEL );if (!ctx) {
@@ -156,7 +156,7 @@ static int live_nop_switch(void *arg) } out_unlock: -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);mutex_unlock (&i915->drm.struct_mutex);mock_file_free (i915, file);return err;
@@ -1090,7 +1090,7 @@ __igt_ctx_sseu(struct drm_i915_private *i915, goto out_unlock; } - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm); ce =i915_gem_context_get_engine (ctx,RCS0 );if (IS_ERR (ce)) {
@@ -1130,7 +1130,7 @@ __igt_ctx_sseu(struct drm_i915_private *i915, out_context:intel_context_put (ce); out_rpm: -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);i915_gem_object_put (obj); out_unlock:
@@ -1547,7 +1547,7 @@ static int igt_vm_isolation(void *arg)GEM_BUG_ON (ctx_b->vm->total != vm_total); vm_total -=I915_GTT_PAGE_SIZE ; - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm); count =0 ;for_each_engine (engine, i915, id) {
@@ -1592,7 +1592,7 @@ static int igt_vm_isolation(void *arg) count, RUNTIME_INFO(i915)->num_engines); out_rpm: -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref); out_unlock:if (igt_live_test_end (&t)) err = -EIO ;
drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c +2 -2
@@ -205,7 +205,7 @@ static int igt_partial_tiling(void *arg) }mutex_lock (&i915->drm.struct_mutex); - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm);if (1 ) {IGT_TIMEOUT (end);
@@ -316,7 +316,7 @@ next_tiling: ; } out_unlock: -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);mutex_unlock (&i915->drm.struct_mutex);i915_gem_object_unpin_pages (obj); out:
drivers/gpu/drm/i915/gt/intel_engine_cs.c +4 -4
@@ -1103,7 +1103,7 @@ static bool ring_is_idle(struct intel_engine_cs *engine)return true;/* If the whole device is asleep, the engine must be idle */ - wakeref =intel_runtime_pm_get_if_in_use (dev_priv); + wakeref =intel_runtime_pm_get_if_in_use (&dev_priv->runtime_pm);if (!wakeref)return true;
@@ -1117,7 +1117,7 @@ static bool ring_is_idle(struct intel_engine_cs *engine) !(ENGINE_READ(engine, RING_MI_MODE) & MODE_IDLE)) idle = false; -intel_runtime_pm_put (dev_priv, wakeref); +intel_runtime_pm_put (&dev_priv->runtime_pm, wakeref);return idle; }
@@ -1531,10 +1531,10 @@ void intel_engine_dump(struct intel_engine_cs *engine,rcu_read_unlock (); - wakeref =intel_runtime_pm_get_if_in_use (engine->i915); + wakeref =intel_runtime_pm_get_if_in_use (&engine->i915->runtime_pm);if (wakeref) {intel_engine_print_registers (engine, m); -intel_runtime_pm_put (engine->i915, wakeref); +intel_runtime_pm_put (&engine->i915->runtime_pm, wakeref); }else {drm_printf (m,"\tDevice is asleep; skipping register dump\n" ); }
drivers/gpu/drm/i915/gt/intel_hangcheck.c +2 -2
@@ -273,7 +273,7 @@ static void i915_hangcheck_elapsed(struct work_struct *work)if (i915_terminally_wedged (dev_priv))return ; - wakeref =intel_runtime_pm_get_if_in_use (dev_priv); + wakeref =intel_runtime_pm_get_if_in_use (&dev_priv->runtime_pm);if (!wakeref)return ;
@@ -324,7 +324,7 @@ static void i915_hangcheck_elapsed(struct work_struct *work)if (hung)hangcheck_declare_hang (dev_priv, hung, stuck); -intel_runtime_pm_put (dev_priv, wakeref); +intel_runtime_pm_put (&dev_priv->runtime_pm, wakeref);/* Reset timer in case GPU hangs without another request being added */ i915_queue_hangcheck (dev_priv);
drivers/gpu/drm/i915/gt/intel_reset.c +2 -2
@@ -1313,7 +1313,7 @@ void i915_handle_error(struct drm_i915_private *i915,* isn't the case at least when we get here by doing a * simulated reset via debugfs, so get an RPM reference. */ - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm); engine_mask &=INTEL_INFO (i915)->engine_mask;
@@ -1376,7 +1376,7 @@ void i915_handle_error(struct drm_i915_private *i915,wake_up_all (&error->reset_queue); out: -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref); }int i915_reset_trylock (struct drm_i915_private *i915)
drivers/gpu/drm/i915/gt/selftest_hangcheck.c +6 -6
@@ -394,7 +394,7 @@ static int igt_reset_nop(void *arg) }i915_gem_context_clear_bannable (ctx); - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm); reset_count =i915_reset_count (&i915->gpu_error); count =0 ; do {
@@ -441,7 +441,7 @@ static int igt_reset_nop(void *arg) err =igt_flush_test (i915,I915_WAIT_LOCKED );mutex_unlock (&i915->drm.struct_mutex); -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref); out:mock_file_free (i915, file);
@@ -478,7 +478,7 @@ static int igt_reset_nop_engine(void *arg) }i915_gem_context_clear_bannable (ctx); - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm);for_each_engine (engine, i915, id) {unsigned int reset_count, reset_engine_count;unsigned int count;
@@ -549,7 +549,7 @@ static int igt_reset_nop_engine(void *arg) err =igt_flush_test (i915,I915_WAIT_LOCKED );mutex_unlock (&i915->drm.struct_mutex); -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref); out:mock_file_free (i915, file);if (i915_reset_failed (i915))
@@ -1749,7 +1749,7 @@ int intel_hangcheck_live_selftests(struct drm_i915_private *i915)if (i915_terminally_wedged (i915))return -EIO ;/* we're long past hope of a successful reset */ - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm); saved_hangcheck =fetch_and_zero (&i915_modparams.enable_hangcheck);drain_delayed_work (&i915->gpu_error.hangcheck_work);/* flush param */
@@ -1760,7 +1760,7 @@ int intel_hangcheck_live_selftests(struct drm_i915_private *i915)mutex_unlock (&i915->drm.struct_mutex); i915_modparams.enable_hangcheck = saved_hangcheck; -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);return err; }
drivers/gpu/drm/i915/gt/selftest_lrc.c +18 -18
@@ -33,7 +33,7 @@ static int live_sanitycheck(void *arg)return 0 ;mutex_lock (&i915->drm.struct_mutex); - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm);if (igt_spinner_init (&spin, i915)) goto err_unlock;
@@ -74,7 +74,7 @@ static int live_sanitycheck(void *arg)igt_spinner_fini (&spin); err_unlock:igt_flush_test (i915,I915_WAIT_LOCKED ); -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);mutex_unlock (&i915->drm.struct_mutex);return err; }
@@ -97,7 +97,7 @@ static int live_busywait_preempt(void *arg)*/ mutex_lock (&i915->drm.struct_mutex); - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm); ctx_hi =kernel_context (i915);if (!ctx_hi)
@@ -255,7 +255,7 @@ static int live_busywait_preempt(void *arg) err_unlock:if (igt_flush_test (i915,I915_WAIT_LOCKED )) err = -EIO ; -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);mutex_unlock (&i915->drm.struct_mutex);return err; }
@@ -277,7 +277,7 @@ static int live_preempt(void *arg)pr_err ("Logical preemption supported, but not exposed\n" );mutex_lock (&i915->drm.struct_mutex); - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm);if (igt_spinner_init (&spin_hi, i915)) goto err_unlock;
@@ -362,7 +362,7 @@ static int live_preempt(void *arg)igt_spinner_fini (&spin_hi); err_unlock:igt_flush_test (i915,I915_WAIT_LOCKED ); -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);mutex_unlock (&i915->drm.struct_mutex);return err; }
@@ -382,7 +382,7 @@ static int live_late_preempt(void *arg)return 0 ;mutex_lock (&i915->drm.struct_mutex); - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm);if (igt_spinner_init (&spin_hi, i915)) goto err_unlock;
@@ -466,7 +466,7 @@ static int live_late_preempt(void *arg)igt_spinner_fini (&spin_hi); err_unlock:igt_flush_test (i915,I915_WAIT_LOCKED ); -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);mutex_unlock (&i915->drm.struct_mutex);return err;
@@ -532,7 +532,7 @@ static int live_suppress_self_preempt(void *arg)return 0 ;/* presume black blox */ mutex_lock (&i915->drm.struct_mutex); - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm);if (preempt_client_init (i915, &a)) goto err_unlock;
@@ -606,7 +606,7 @@ static int live_suppress_self_preempt(void *arg) err_unlock:if (igt_flush_test (i915,I915_WAIT_LOCKED )) err = -EIO ; -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);mutex_unlock (&i915->drm.struct_mutex);return err;
@@ -683,7 +683,7 @@ static int live_suppress_wait_preempt(void *arg)return 0 ;mutex_lock (&i915->drm.struct_mutex); - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm);if (preempt_client_init (i915, &client[0 ]))/* ELSP[0] */ goto err_unlock;
@@ -776,7 +776,7 @@ static int live_suppress_wait_preempt(void *arg) err_unlock:if (igt_flush_test (i915,I915_WAIT_LOCKED )) err = -EIO ; -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);mutex_unlock (&i915->drm.struct_mutex);return err;
@@ -807,7 +807,7 @@ static int live_chain_preempt(void *arg)return 0 ;mutex_lock (&i915->drm.struct_mutex); - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm);if (preempt_client_init (i915, &hi)) goto err_unlock;
@@ -924,7 +924,7 @@ static int live_chain_preempt(void *arg) err_unlock:if (igt_flush_test (i915,I915_WAIT_LOCKED )) err = -EIO ; -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);mutex_unlock (&i915->drm.struct_mutex);return err;
@@ -953,7 +953,7 @@ static int live_preempt_hang(void *arg)return 0 ;mutex_lock (&i915->drm.struct_mutex); - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm);if (igt_spinner_init (&spin_hi, i915)) goto err_unlock;
@@ -1050,7 +1050,7 @@ static int live_preempt_hang(void *arg)igt_spinner_fini (&spin_hi); err_unlock:igt_flush_test (i915,I915_WAIT_LOCKED ); -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);mutex_unlock (&i915->drm.struct_mutex);return err; }
@@ -1256,7 +1256,7 @@ static int live_preempt_smoke(void *arg)return -ENOMEM ;mutex_lock (&smoke.i915->drm.struct_mutex); - wakeref =intel_runtime_pm_get (smoke.i915); + wakeref =intel_runtime_pm_get (&smoke.i915->runtime_pm); smoke.batch =i915_gem_object_create_internal (smoke.i915,PAGE_SIZE );if (IS_ERR (smoke.batch)) {
@@ -1309,7 +1309,7 @@ static int live_preempt_smoke(void *arg) err_batch:i915_gem_object_put (smoke.batch); err_unlock: -intel_runtime_pm_put (smoke.i915, wakeref); +intel_runtime_pm_put (&smoke.i915->runtime_pm, wakeref);mutex_unlock (&smoke.i915->drm.struct_mutex);kfree (smoke.contexts);
drivers/gpu/drm/i915/gt/selftest_reset.c +2 -2
@@ -42,14 +42,14 @@ static int igt_wedged_reset(void *arg)/* Check that we can recover a wedged device with a GPU reset */ igt_global_reset_lock (i915); - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm);i915_gem_set_wedged (i915);GEM_BUG_ON (!i915_reset_failed (i915));i915_reset (i915,ALL_ENGINES ,NULL ); -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);igt_global_reset_unlock (i915);return i915_reset_failed (i915) ? -EIO :0 ;
drivers/gpu/drm/i915/gt/selftest_workarounds.c +6 -6
@@ -642,7 +642,7 @@ static int live_dirty_whitelist(void *arg)if (INTEL_GEN (i915) <7 )/* minimum requirement for LRI, SRM, LRM */ return 0 ; - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm);mutex_unlock (&i915->drm.struct_mutex); file =mock_file (i915);
@@ -672,7 +672,7 @@ static int live_dirty_whitelist(void *arg)mock_file_free (i915, file);mutex_lock (&i915->drm.struct_mutex); out_rpm: -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);return err; }
@@ -1061,7 +1061,7 @@ live_gpu_reset_workarounds(void *arg)pr_info ("Verifying after GPU reset...\n" );igt_global_reset_lock (i915); - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm);reference_lists_init (i915, &lists);
@@ -1076,7 +1076,7 @@ live_gpu_reset_workarounds(void *arg) out:kernel_context_close (ctx);reference_lists_fini (i915, &lists); -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);igt_global_reset_unlock (i915);return ok ?0 : -ESRCH ;
@@ -1103,7 +1103,7 @@ live_engine_reset_workarounds(void *arg)return PTR_ERR (ctx);igt_global_reset_lock (i915); - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm);reference_lists_init (i915, &lists);
@@ -1160,7 +1160,7 @@ live_engine_reset_workarounds(void *arg) err:reference_lists_fini (i915, &lists); -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);igt_global_reset_unlock (i915);kernel_context_close (ctx);
drivers/gpu/drm/i915/gvt/aperture_gm.c +8 -7
@@ -170,7 +170,7 @@ static void free_vgpu_fence(struct intel_vgpu *vgpu)if (WARN_ON (!vgpu_fence_sz (vgpu)))return ; -intel_runtime_pm_get (dev_priv); +intel_runtime_pm_get (&dev_priv->runtime_pm);mutex_lock (&dev_priv->drm.struct_mutex);_clear_vgpu_fence (vgpu);
@@ -181,17 +181,18 @@ static void free_vgpu_fence(struct intel_vgpu *vgpu) }mutex_unlock (&dev_priv->drm.struct_mutex); -intel_runtime_pm_put_unchecked (dev_priv); +intel_runtime_pm_put_unchecked (&dev_priv->runtime_pm); }static int alloc_vgpu_fence (struct intel_vgpu *vgpu) {struct intel_gvt *gvt = vgpu->gvt;struct drm_i915_private *dev_priv = gvt->dev_priv; +struct intel_runtime_pm *rpm = &dev_priv->runtime_pm;struct i915_fence_reg *reg;int i; -intel_runtime_pm_get (dev_priv); +intel_runtime_pm_get (rpm);/* Request fences from host */ mutex_lock (&dev_priv->drm.struct_mutex);
@@ -207,7 +208,7 @@ static int alloc_vgpu_fence(struct intel_vgpu *vgpu)_clear_vgpu_fence (vgpu);mutex_unlock (&dev_priv->drm.struct_mutex); -intel_runtime_pm_put_unchecked (dev_priv); +intel_runtime_pm_put_unchecked (rpm);return 0 ; out_free_fence:gvt_vgpu_err ("Failed to alloc fences\n" );
@@ -220,7 +221,7 @@ static int alloc_vgpu_fence(struct intel_vgpu *vgpu) vgpu->fence.regs[i] =NULL ; }mutex_unlock (&dev_priv->drm.struct_mutex); -intel_runtime_pm_put_unchecked (dev_priv); +intel_runtime_pm_put_unchecked (rpm);return -ENOSPC ; }
@@ -316,9 +317,9 @@ void intel_vgpu_reset_resource(struct intel_vgpu *vgpu) {struct drm_i915_private *dev_priv = vgpu->gvt->dev_priv; -intel_runtime_pm_get (dev_priv); +intel_runtime_pm_get (&dev_priv->runtime_pm);_clear_vgpu_fence (vgpu); -intel_runtime_pm_put_unchecked (dev_priv); +intel_runtime_pm_put_unchecked (&dev_priv->runtime_pm); }/**
drivers/gpu/drm/i915/gvt/gvt.h +2 -2
@@ -584,12 +584,12 @@ enum {static inline void mmio_hw_access_pre (struct drm_i915_private *dev_priv) { -intel_runtime_pm_get (dev_priv); +intel_runtime_pm_get (&dev_priv->runtime_pm); }static inline void mmio_hw_access_post (struct drm_i915_private *dev_priv) { -intel_runtime_pm_put_unchecked (dev_priv); +intel_runtime_pm_put_unchecked (&dev_priv->runtime_pm); }/**
drivers/gpu/drm/i915/gvt/sched_policy.c +2 -2
@@ -465,7 +465,7 @@ void intel_vgpu_stop_schedule(struct intel_vgpu *vgpu) scheduler->current_vgpu =NULL ; } -intel_runtime_pm_get (dev_priv); +intel_runtime_pm_get (&dev_priv->runtime_pm);spin_lock_bh (&scheduler->mmio_context_lock);for (ring_id =0 ; ring_id <I915_NUM_ENGINES ; ring_id++) {if (scheduler->engine_owner[ring_id] == vgpu) {
@@ -474,6 +474,6 @@ void intel_vgpu_stop_schedule(struct intel_vgpu *vgpu) } }spin_unlock_bh (&scheduler->mmio_context_lock); -intel_runtime_pm_put_unchecked (dev_priv); +intel_runtime_pm_put_unchecked (&dev_priv->runtime_pm);mutex_unlock (&vgpu->gvt->sched_lock); }
drivers/gpu/drm/i915/gvt/scheduler.c +2 -2
@@ -1526,11 +1526,11 @@ intel_vgpu_create_workload(struct intel_vgpu *vgpu, int ring_id,* as there is only one pre-allocated buf-obj for shadow. */ if (list_empty (workload_q_head (vgpu, ring_id))) { -intel_runtime_pm_get (dev_priv); +intel_runtime_pm_get (&dev_priv->runtime_pm);mutex_lock (&dev_priv->drm.struct_mutex); ret =intel_gvt_scan_and_shadow_workload (workload);mutex_unlock (&dev_priv->drm.struct_mutex); -intel_runtime_pm_put_unchecked (dev_priv); +intel_runtime_pm_put_unchecked (&dev_priv->runtime_pm); }if (ret) {
drivers/gpu/drm/i915/i915_debugfs.c +25 -24
190 lines not on this page · raw message
drivers/gpu/drm/i915/i915_gem.c +10 -9
@@ -374,7 +374,7 @@ i915_gem_gtt_pread(struct drm_i915_gem_object *obj,if (ret)return ret; - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm); vma = i915_gem_object_ggtt_pin(obj, NULL, 0, 0, PIN_MAPPABLE | PIN_NONFAULT |
@@ -461,7 +461,7 @@ i915_gem_gtt_pread(struct drm_i915_gem_object *obj,i915_vma_unpin (vma); } out_unlock: -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);mutex_unlock (&i915->drm.struct_mutex);return ret;
@@ -561,6 +561,7 @@ i915_gem_gtt_pwrite_fast(struct drm_i915_gem_object *obj, {struct drm_i915_private *i915 =to_i915 (obj->base.dev);struct i915_ggtt *ggtt = &i915->ggtt; +struct intel_runtime_pm *rpm = &i915->runtime_pm;intel_wakeref_t wakeref;struct drm_mm_node node;struct dma_fence *fence;
@@ -581,14 +582,14 @@ i915_gem_gtt_pwrite_fast(struct drm_i915_gem_object *obj,* This easily dwarfs any performance advantage from * using the cache bypass of indirect GGTT access. */ - wakeref =intel_runtime_pm_get_if_in_use (i915); + wakeref =intel_runtime_pm_get_if_in_use (rpm);if (!wakeref) { ret = -EFAULT ; goto out_unlock; } }else {/* No backing pages, no fallback, we must force GGTT access */ - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (rpm); } vma = i915_gem_object_ggtt_pin(obj, NULL, 0, 0,
@@ -684,7 +685,7 @@ i915_gem_gtt_pwrite_fast(struct drm_i915_gem_object *obj,i915_vma_unpin (vma); } out_rpm: -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (rpm, wakeref); out_unlock:mutex_unlock (&i915->drm.struct_mutex);return ret;
@@ -1174,7 +1175,7 @@ void i915_gem_sanitize(struct drm_i915_private *i915)GEM_TRACE ("\n" ); - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm);intel_uncore_forcewake_get (&i915->uncore,FORCEWAKE_ALL );/*
@@ -1197,7 +1198,7 @@ void i915_gem_sanitize(struct drm_i915_private *i915)intel_gt_sanitize (i915, false);intel_uncore_forcewake_put (&i915->uncore,FORCEWAKE_ALL ); -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);mutex_lock (&i915->drm.struct_mutex);i915_gem_contexts_lost (i915);
@@ -1818,7 +1819,7 @@ int i915_gem_freeze_late(struct drm_i915_private *i915)* the objects as well, see i915_gem_freeze() */ - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm);i915_gem_shrink (i915,-1UL ,NULL , ~0 );i915_gem_drain_freed_objects (i915);
@@ -1829,7 +1830,7 @@ int i915_gem_freeze_late(struct drm_i915_private *i915)i915_gem_object_unlock (obj); } -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);return 0 ; }
drivers/gpu/drm/i915/i915_gem_fence_reg.c +2 -2
@@ -270,7 +270,7 @@ static int fence_update(struct i915_fence_reg *fence,* be cleared before we can use any other fences to ensure that * the new fences do not overlap the elided clears, confusing HW. */ - wakeref =intel_runtime_pm_get_if_in_use (fence->i915); + wakeref =intel_runtime_pm_get_if_in_use (&fence->i915->runtime_pm);if (!wakeref) {GEM_BUG_ON (vma);return 0 ;
@@ -284,7 +284,7 @@ static int fence_update(struct i915_fence_reg *fence,list_move_tail (&fence->link, &fence->i915->ggtt.fence_list); } -intel_runtime_pm_put (fence->i915, wakeref); +intel_runtime_pm_put (&fence->i915->runtime_pm, wakeref);return 0 ; }
drivers/gpu/drm/i915/i915_gem_gtt.c +3 -3
@@ -1825,7 +1825,7 @@ static int gen6_alloc_va_range(struct i915_address_space *vm,unsigned int pde;bool flush = false; - wakeref =intel_runtime_pm_get (vm->i915); + wakeref =intel_runtime_pm_get (&vm->i915->runtime_pm);spin_lock (&ppgtt->base.pd.lock);gen6_for_each_pde (pt, &ppgtt->base.pd, start, length, pde) {
@@ -1868,12 +1868,12 @@ static int gen6_alloc_va_range(struct i915_address_space *vm,gen6_ggtt_invalidate (vm->i915); } -intel_runtime_pm_put (vm->i915, wakeref); +intel_runtime_pm_put (&vm->i915->runtime_pm, wakeref);return 0 ; unwind_out: -intel_runtime_pm_put (vm->i915, wakeref); +intel_runtime_pm_put (&vm->i915->runtime_pm, wakeref);gen6_ppgtt_clear_range (vm, from, start - from);return -ENOMEM ; }
drivers/gpu/drm/i915/i915_perf.c +3 -3
@@ -1375,7 +1375,7 @@ static void i915_oa_stream_destroy(struct i915_perf_stream *stream)free_oa_buffer (dev_priv);intel_uncore_forcewake_put (&dev_priv->uncore,FORCEWAKE_ALL ); -intel_runtime_pm_put (dev_priv, stream->wakeref); +intel_runtime_pm_put (&dev_priv->runtime_pm, stream->wakeref);if (stream->ctx)oa_put_render_ctx_id (stream);
@@ -2112,7 +2112,7 @@ static int i915_oa_stream_init(struct i915_perf_stream *stream,* In our case we are expecting that taking pm + FORCEWAKE * references will effectively disable RC6. */ - stream->wakeref =intel_runtime_pm_get (dev_priv); + stream->wakeref =intel_runtime_pm_get (&dev_priv->runtime_pm);intel_uncore_forcewake_get (&dev_priv->uncore,FORCEWAKE_ALL ); ret =alloc_oa_buffer (dev_priv);
@@ -2148,7 +2148,7 @@ static int i915_oa_stream_init(struct i915_perf_stream *stream,put_oa_config (dev_priv, stream->oa_config);intel_uncore_forcewake_put (&dev_priv->uncore,FORCEWAKE_ALL ); -intel_runtime_pm_put (dev_priv, stream->wakeref); +intel_runtime_pm_put (&dev_priv->runtime_pm, stream->wakeref); err_config:if (stream->ctx)
drivers/gpu/drm/i915/i915_pmu.c +6 -6
@@ -171,7 +171,7 @@ engines_sample(struct drm_i915_private *dev_priv, unsigned int period_ns) wakeref =0 ;if (READ_ONCE (dev_priv->gt.awake)) - wakeref =intel_runtime_pm_get_if_in_use (dev_priv); + wakeref =intel_runtime_pm_get_if_in_use (&dev_priv->runtime_pm);if (!wakeref)return ;
@@ -207,7 +207,7 @@ engines_sample(struct drm_i915_private *dev_priv, unsigned int period_ns) }spin_unlock_irqrestore (&dev_priv->uncore.lock, flags); -intel_runtime_pm_put (dev_priv, wakeref); +intel_runtime_pm_put (&dev_priv->runtime_pm, wakeref); } static void
@@ -443,14 +443,15 @@ static u64 __get_rc6(struct drm_i915_private *i915)static u64 get_rc6 (struct drm_i915_private *i915) {#if IS_ENABLED (CONFIG_PM ) +struct intel_runtime_pm *rpm = &i915->runtime_pm;intel_wakeref_t wakeref;unsigned long flags;u64 val; - wakeref =intel_runtime_pm_get_if_in_use (i915); + wakeref =intel_runtime_pm_get_if_in_use (rpm);if (wakeref) { val =__get_rc6 (i915); -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (rpm, wakeref);/* * If we are coming back from being runtime suspended we must
@@ -469,8 +470,7 @@ static u64 get_rc6(struct drm_i915_private *i915)spin_unlock_irqrestore (&i915->pmu.lock, flags); }else { -struct pci_dev *pdev = i915->drm.pdev; -struct device *kdev = &pdev->dev; +struct device *kdev = rpm->kdev;/* * We are runtime suspended.
drivers/gpu/drm/i915/i915_sysfs.c +6 -6
@@ -264,7 +264,7 @@ static ssize_t gt_act_freq_mhz_show(struct device *kdev,intel_wakeref_t wakeref;u32 freq; - wakeref =intel_runtime_pm_get (dev_priv); + wakeref =intel_runtime_pm_get (&dev_priv->runtime_pm);if (IS_VALLEYVIEW (dev_priv) ||IS_CHERRYVIEW (dev_priv)) {vlv_punit_get (dev_priv);
@@ -276,7 +276,7 @@ static ssize_t gt_act_freq_mhz_show(struct device *kdev, freq =intel_get_cagf (dev_priv,I915_READ (GEN6_RPSTAT1 )); } -intel_runtime_pm_put (dev_priv, wakeref); +intel_runtime_pm_put (&dev_priv->runtime_pm, wakeref);return snprintf (buf,PAGE_SIZE ,"%d\n" ,intel_gpu_freq (dev_priv, freq)); }
@@ -364,7 +364,7 @@ static ssize_t gt_max_freq_mhz_store(struct device *kdev,if (ret)return ret; - wakeref =intel_runtime_pm_get (dev_priv); + wakeref =intel_runtime_pm_get (&dev_priv->runtime_pm);mutex_lock (&rps->lock); val =intel_freq_opcode (dev_priv, val);
@@ -392,7 +392,7 @@ static ssize_t gt_max_freq_mhz_store(struct device *kdev, unlock:mutex_unlock (&rps->lock); -intel_runtime_pm_put (dev_priv, wakeref); +intel_runtime_pm_put (&dev_priv->runtime_pm, wakeref);return ret ?: count; }
@@ -420,7 +420,7 @@ static ssize_t gt_min_freq_mhz_store(struct device *kdev,if (ret)return ret; - wakeref =intel_runtime_pm_get (dev_priv); + wakeref =intel_runtime_pm_get (&dev_priv->runtime_pm);mutex_lock (&rps->lock); val =intel_freq_opcode (dev_priv, val);
@@ -444,7 +444,7 @@ static ssize_t gt_min_freq_mhz_store(struct device *kdev, unlock:mutex_unlock (&rps->lock); -intel_runtime_pm_put (dev_priv, wakeref); +intel_runtime_pm_put (&dev_priv->runtime_pm, wakeref);return ret ?: count; }
drivers/gpu/drm/i915/intel_display.c +6 -6
@@ -2112,7 +2112,7 @@ intel_pin_and_fence_fb_obj(struct drm_framebuffer *fb,* intel_runtime_pm_put(), so it is correct to wrap only the * pin/unpin/fence and not more. */ - wakeref =intel_runtime_pm_get (dev_priv); + wakeref =intel_runtime_pm_get (&dev_priv->runtime_pm);i915_gem_object_lock (obj);atomic_inc (&dev_priv->gpu_error.pending_fb_pin);
@@ -2169,7 +2169,7 @@ intel_pin_and_fence_fb_obj(struct drm_framebuffer *fb,atomic_dec (&dev_priv->gpu_error.pending_fb_pin);i915_gem_object_unlock (obj); -intel_runtime_pm_put (dev_priv, wakeref); +intel_runtime_pm_put (&dev_priv->runtime_pm, wakeref);return vma; }
@@ -13927,7 +13927,7 @@ static void intel_atomic_commit_tail(struct drm_atomic_state *state)intel_uncore_arm_unclaimed_mmio_detection (&dev_priv->uncore);intel_display_power_put (dev_priv,POWER_DOMAIN_MODESET , wakeref); } -intel_runtime_pm_put (dev_priv, intel_state->wakeref); +intel_runtime_pm_put (&dev_priv->runtime_pm, intel_state->wakeref);/* * Defer the cleanup of the old state to a separate worker to not
@@ -14006,7 +14006,7 @@ static int intel_atomic_commit(struct drm_device *dev,struct drm_i915_private *dev_priv =to_i915 (dev);int ret =0 ; - intel_state->wakeref =intel_runtime_pm_get (dev_priv); + intel_state->wakeref =intel_runtime_pm_get (&dev_priv->runtime_pm);drm_atomic_state_get (state); i915_sw_fence_init(&intel_state->commit_ready,
@@ -14044,7 +14044,7 @@ static int intel_atomic_commit(struct drm_device *dev,if (ret) {DRM_DEBUG_ATOMIC ("Preparing state failed with %i\n" , ret);i915_sw_fence_commit (&intel_state->commit_ready); -intel_runtime_pm_put (dev_priv, intel_state->wakeref); +intel_runtime_pm_put (&dev_priv->runtime_pm, intel_state->wakeref);return ret; }
@@ -14056,7 +14056,7 @@ static int intel_atomic_commit(struct drm_device *dev,i915_sw_fence_commit (&intel_state->commit_ready);drm_atomic_helper_cleanup_planes (dev, state); -intel_runtime_pm_put (dev_priv, intel_state->wakeref); +intel_runtime_pm_put (&dev_priv->runtime_pm, intel_state->wakeref);return ret; } dev_priv->wm.distrust_bios_wm = false;
drivers/gpu/drm/i915/intel_display_power.c +20 -17
@@ -1644,7 +1644,7 @@ intel_display_power_grab_async_put_ref(struct drm_i915_private *dev_priv, goto out_verify;cancel_delayed_work (&power_domains->async_put_work); -intel_runtime_pm_put_raw (dev_priv, +intel_runtime_pm_put_raw (&dev_priv->runtime_pm,fetch_and_zero (&power_domains->async_put_wakeref)); out_verify:verify_async_put_domains_state (power_domains);
@@ -1684,7 +1684,7 @@ intel_wakeref_t intel_display_power_get(struct drm_i915_private *dev_priv, enum intel_display_power_domain domain) {struct i915_power_domains *power_domains = &dev_priv->power_domains; -intel_wakeref_t wakeref =intel_runtime_pm_get (dev_priv); +intel_wakeref_t wakeref =intel_runtime_pm_get (&dev_priv->runtime_pm);mutex_lock (&power_domains->lock);__intel_display_power_get_domain (dev_priv, domain);
@@ -1713,7 +1713,7 @@ intel_display_power_get_if_enabled(struct drm_i915_private *dev_priv,intel_wakeref_t wakeref;bool is_enabled; - wakeref =intel_runtime_pm_get_if_in_use (dev_priv); + wakeref =intel_runtime_pm_get_if_in_use (&dev_priv->runtime_pm);if (!wakeref)return false;
@@ -1729,7 +1729,7 @@ intel_display_power_get_if_enabled(struct drm_i915_private *dev_priv,mutex_unlock (&power_domains->lock);if (!is_enabled) { -intel_runtime_pm_put (dev_priv, wakeref); +intel_runtime_pm_put (&dev_priv->runtime_pm, wakeref); wakeref =0 ; }
@@ -1786,7 +1786,7 @@ void intel_display_power_put_unchecked(struct drm_i915_private *dev_priv, enum intel_display_power_domain domain) {__intel_display_power_put (dev_priv, domain); -intel_runtime_pm_put_unchecked (dev_priv); +intel_runtime_pm_put_unchecked (&dev_priv->runtime_pm); } static void
@@ -1806,6 +1806,7 @@ release_async_put_domains(struct i915_power_domains *power_domains, u64 mask)struct drm_i915_private *dev_priv = container_of(power_domains, struct drm_i915_private, power_domains); +struct intel_runtime_pm *rpm = &dev_priv->runtime_pm;enum intel_display_power_domain domain;intel_wakeref_t wakeref;
@@ -1814,8 +1815,8 @@ release_async_put_domains(struct i915_power_domains *power_domains, u64 mask)* wakeref to make the state checker happy about the HW access during * power well disabling. */ -assert_rpm_raw_wakeref_held (&dev_priv->runtime_pm); - wakeref =intel_runtime_pm_get (dev_priv); +assert_rpm_raw_wakeref_held (rpm); + wakeref =intel_runtime_pm_get (rpm);for_each_power_domain (domain, mask) {/* Clear before put, so put's sanity check is happy. */
@@ -1823,7 +1824,7 @@ release_async_put_domains(struct i915_power_domains *power_domains, u64 mask)__intel_display_power_put_domain (dev_priv, domain); } -intel_runtime_pm_put (dev_priv, wakeref); +intel_runtime_pm_put (rpm, wakeref); } static void
@@ -1833,7 +1834,8 @@ intel_display_power_put_async_work(struct work_struct *work) container_of(work, struct drm_i915_private, power_domains.async_put_work.work);struct i915_power_domains *power_domains = &dev_priv->power_domains; -intel_wakeref_t new_work_wakeref =intel_runtime_pm_get_raw (dev_priv); +struct intel_runtime_pm *rpm = &dev_priv->runtime_pm; +intel_wakeref_t new_work_wakeref =intel_runtime_pm_get_raw (rpm);intel_wakeref_t old_work_wakeref =0 ;mutex_lock (&power_domains->lock);
@@ -1863,9 +1865,9 @@ intel_display_power_put_async_work(struct work_struct *work)mutex_unlock (&power_domains->lock);if (old_work_wakeref) -intel_runtime_pm_put_raw (dev_priv, old_work_wakeref); +intel_runtime_pm_put_raw (rpm, old_work_wakeref);if (new_work_wakeref) -intel_runtime_pm_put_raw (dev_priv, new_work_wakeref); +intel_runtime_pm_put_raw (rpm, new_work_wakeref); }/**
@@ -1883,7 +1885,8 @@ void __intel_display_power_put_async(struct drm_i915_private *i915, intel_wakeref_t wakeref) {struct i915_power_domains *power_domains = &i915->power_domains; -intel_wakeref_t work_wakeref =intel_runtime_pm_get_raw (i915); +struct intel_runtime_pm *rpm = &i915->runtime_pm; +intel_wakeref_t work_wakeref =intel_runtime_pm_get_raw (rpm);mutex_lock (&power_domains->lock);
@@ -1910,9 +1913,9 @@ void __intel_display_power_put_async(struct drm_i915_private *i915,mutex_unlock (&power_domains->lock);if (work_wakeref) -intel_runtime_pm_put_raw (i915, work_wakeref); +intel_runtime_pm_put_raw (rpm, work_wakeref); -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (rpm, wakeref); }/**
@@ -1948,7 +1951,7 @@ void intel_display_power_flush_work(struct drm_i915_private *i915)mutex_unlock (&power_domains->lock);if (work_wakeref) -intel_runtime_pm_put_raw (i915, work_wakeref); +intel_runtime_pm_put_raw (&i915->runtime_pm, work_wakeref); }/**
@@ -1987,7 +1990,7 @@ void intel_display_power_put(struct drm_i915_private *dev_priv, intel_wakeref_t wakeref) {__intel_display_power_put (dev_priv, domain); -intel_runtime_pm_put (dev_priv, wakeref); +intel_runtime_pm_put (&dev_priv->runtime_pm, wakeref); }#endif
@@ -4402,7 +4405,7 @@ void intel_power_domains_fini_hw(struct drm_i915_private *i915)intel_power_domains_verify_state (i915);/* Keep the power well enabled, but cancel its rpm wakeref. */ -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref); }/**
drivers/gpu/drm/i915/intel_fbdev.c +3 -3
@@ -213,7 +213,7 @@ static int intelfb_create(struct drm_fb_helper *helper, }mutex_lock (&dev->struct_mutex); - wakeref =intel_runtime_pm_get (dev_priv); + wakeref =intel_runtime_pm_get (&dev_priv->runtime_pm);/* Pin the GGTT vma for our access via info->screen_base. * This also validates that any existing fb inherited from the
@@ -272,7 +272,7 @@ static int intelfb_create(struct drm_fb_helper *helper, ifbdev->vma = vma; ifbdev->vma_flags = flags; -intel_runtime_pm_put (dev_priv, wakeref); +intel_runtime_pm_put (&dev_priv->runtime_pm, wakeref);mutex_unlock (&dev->struct_mutex);vga_switcheroo_client_fb_set (pdev, info);return 0 ;
@@ -280,7 +280,7 @@ static int intelfb_create(struct drm_fb_helper *helper, out_unpin:intel_unpin_fb_vma (vma, flags); out_unlock: -intel_runtime_pm_put (dev_priv, wakeref); +intel_runtime_pm_put (&dev_priv->runtime_pm, wakeref);mutex_unlock (&dev->struct_mutex);return ret; }
drivers/gpu/drm/i915/intel_hotplug.c +2 -2
@@ -230,7 +230,7 @@ static void intel_hpd_irq_storm_reenable_work(struct work_struct *work)intel_wakeref_t wakeref;enum hpd_pin pin; - wakeref =intel_runtime_pm_get (dev_priv); + wakeref =intel_runtime_pm_get (&dev_priv->runtime_pm);spin_lock_irq (&dev_priv->irq_lock);for_each_hpd_pin (pin) {
@@ -263,7 +263,7 @@ static void intel_hpd_irq_storm_reenable_work(struct work_struct *work) dev_priv->display.hpd_irq_setup (dev_priv);spin_unlock_irq (&dev_priv->irq_lock); -intel_runtime_pm_put (dev_priv, wakeref); +intel_runtime_pm_put (&dev_priv->runtime_pm, wakeref); } bool intel_encoder_hotplug(struct intel_encoder *encoder,
drivers/gpu/drm/i915/intel_runtime_pm.c +19 -24
127 lines not on this page · raw message
drivers/gpu/drm/i915/intel_runtime_pm.h +13 -13
@@ -174,30 +174,30 @@ void intel_runtime_pm_enable(struct intel_runtime_pm *rpm);void intel_runtime_pm_disable (struct intel_runtime_pm *rpm);void intel_runtime_pm_cleanup (struct intel_runtime_pm *rpm); -intel_wakeref_t intel_runtime_pm_get (struct drm_i915_private *i915); -intel_wakeref_t intel_runtime_pm_get_if_in_use (struct drm_i915_private *i915); -intel_wakeref_t intel_runtime_pm_get_noresume (struct drm_i915_private *i915); -intel_wakeref_t intel_runtime_pm_get_raw (struct drm_i915_private *i915); +intel_wakeref_t intel_runtime_pm_get (struct intel_runtime_pm *rpm); +intel_wakeref_t intel_runtime_pm_get_if_in_use (struct intel_runtime_pm *rpm); +intel_wakeref_t intel_runtime_pm_get_noresume (struct intel_runtime_pm *rpm); +intel_wakeref_t intel_runtime_pm_get_raw (struct intel_runtime_pm *rpm);#define with_intel_runtime_pm (i915, wf) \ - for ((wf) = intel_runtime_pm_get(i915); (wf); \ - intel_runtime_pm_put((i915), (wf)), (wf) = 0) + for ((wf) = intel_runtime_pm_get(&(i915)->runtime_pm); (wf); \ + intel_runtime_pm_put(&(i915)->runtime_pm, (wf)), (wf) = 0)#define with_intel_runtime_pm_if_in_use (i915, wf) \ - for ((wf) = intel_runtime_pm_get_if_in_use(i915); (wf); \ - intel_runtime_pm_put((i915), (wf)), (wf) = 0) + for ((wf) = intel_runtime_pm_get_if_in_use(&(i915)->runtime_pm); (wf); \ + intel_runtime_pm_put(&(i915)->runtime_pm, (wf)), (wf) = 0) -void intel_runtime_pm_put_unchecked (struct drm_i915_private *i915); +void intel_runtime_pm_put_unchecked (struct intel_runtime_pm *rpm);#if IS_ENABLED (CONFIG_DRM_I915_DEBUG_RUNTIME_PM ) -void intel_runtime_pm_put (struct drm_i915_private *i915,intel_wakeref_t wref); +void intel_runtime_pm_put (struct intel_runtime_pm *rpm,intel_wakeref_t wref);#else static inline void -intel_runtime_pm_put (struct drm_i915_private *i915,intel_wakeref_t wref) +intel_runtime_pm_put (struct intel_runtime_pm *rpm,intel_wakeref_t wref) { -intel_runtime_pm_put_unchecked (i915); +intel_runtime_pm_put_unchecked (rpm); }#endif -void intel_runtime_pm_put_raw (struct drm_i915_private *i915,intel_wakeref_t wref); +void intel_runtime_pm_put_raw (struct intel_runtime_pm *rpm,intel_wakeref_t wref);#if IS_ENABLED (CONFIG_DRM_I915_DEBUG_RUNTIME_PM ) void print_intel_runtime_pm_wakeref(struct intel_runtime_pm *rpm,
drivers/gpu/drm/i915/intel_wakeref.c +4 -4
@@ -9,14 +9,14 @@static void rpm_get (struct drm_i915_private *i915,struct intel_wakeref *wf) { - wf->wakeref =intel_runtime_pm_get (i915); + wf->wakeref =intel_runtime_pm_get (&i915->runtime_pm); }static void rpm_put (struct drm_i915_private *i915,struct intel_wakeref *wf) {intel_wakeref_t wakeref =fetch_and_zero (&wf->wakeref); -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);GEM_BUG_ON (!wakeref); }
@@ -86,7 +86,7 @@ static void wakeref_auto_timeout(struct timer_list *t) wakeref =fetch_and_zero (&wf->wakeref);spin_unlock_irqrestore (&wf->lock, flags); -intel_runtime_pm_put (wf->i915, wakeref); +intel_runtime_pm_put (&wf->i915->runtime_pm, wakeref); } void intel_wakeref_auto_init(struct intel_wakeref_auto *wf,
@@ -116,7 +116,7 @@ void intel_wakeref_auto(struct intel_wakeref_auto *wf, unsigned long timeout)spin_lock_irqsave (&wf->lock, flags);if (!refcount_inc_not_zero (&wf->count)) {GEM_BUG_ON (wf->wakeref); - wf->wakeref =intel_runtime_pm_get_if_in_use (wf->i915); + wf->wakeref =intel_runtime_pm_get_if_in_use (&wf->i915->runtime_pm);refcount_set (&wf->count,1 ); }spin_unlock_irqrestore (&wf->lock, flags);
drivers/gpu/drm/i915/selftests/i915_active.c +4 -4
@@ -97,7 +97,7 @@ static int live_active_wait(void *arg)/* Check that we get a callback when requests retire upon waiting */ mutex_lock (&i915->drm.struct_mutex); - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm); err =__live_active_setup (i915, &active);
@@ -111,7 +111,7 @@ static int live_active_wait(void *arg)if (igt_flush_test (i915,I915_WAIT_LOCKED )) err = -EIO ; -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);mutex_unlock (&i915->drm.struct_mutex);return err; }
@@ -126,7 +126,7 @@ static int live_active_retire(void *arg)/* Check that we get a callback when requests are indirectly retired */ mutex_lock (&i915->drm.struct_mutex); - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm); err =__live_active_setup (i915, &active);
@@ -140,7 +140,7 @@ static int live_active_retire(void *arg) }i915_active_fini (&active.base); -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);mutex_unlock (&i915->drm.struct_mutex);return err; }
drivers/gpu/drm/i915/selftests/i915_gem.c +2 -2
@@ -63,7 +63,7 @@ static void simulate_hibernate(struct drm_i915_private *i915) {intel_wakeref_t wakeref; - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm);/* * As a final sting in the tail, invalidate stolen. Under a real S4,
@@ -74,7 +74,7 @@ static void simulate_hibernate(struct drm_i915_private *i915)*/ trash_stolen (i915); -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref); }static int pm_prepare (struct drm_i915_private *i915)
drivers/gpu/drm/i915/selftests/i915_gem_evict.c +2 -2
@@ -404,7 +404,7 @@ static int igt_evict_contexts(void *arg)return 0 ;mutex_lock (&i915->drm.struct_mutex); - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm);/* Reserve a block so that we know we have enough to fit a few rq */ memset (&hole,0 ,sizeof (hole));
@@ -515,7 +515,7 @@ static int igt_evict_contexts(void *arg) }if (drm_mm_node_allocated (&hole))drm_mm_remove_node (&hole); -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);mutex_unlock (&i915->drm.struct_mutex);return err;
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c +4 -4
@@ -295,9 +295,9 @@ static int lowlevel_hole(struct drm_i915_private *i915, mock_vma.node.size =BIT_ULL (size); mock_vma.node.start = addr; - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm); vm->insert_entries (vm, &mock_vma,I915_CACHE_NONE ,0 ); -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref); } count = n;
@@ -1171,7 +1171,7 @@ static int igt_ggtt_page(void *arg)if (err) goto out_unpin; - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm);for (n =0 ; n < count; n++) {u64 offset = tmp.start + n *PAGE_SIZE ;
@@ -1218,7 +1218,7 @@ static int igt_ggtt_page(void *arg)kfree (order); out_remove: ggtt->vm.clear_range (&ggtt->vm, tmp.start, tmp.size); -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);drm_mm_remove_node (&tmp); out_unpin:i915_gem_object_unpin_pages (obj);
drivers/gpu/drm/i915/selftests/i915_request.c +10 -10
@@ -537,7 +537,7 @@ static int live_nop_request(void *arg)*/ mutex_lock (&i915->drm.struct_mutex); - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm);for_each_engine (engine, i915, id) {struct i915_request *request =NULL ;
@@ -597,7 +597,7 @@ static int live_nop_request(void *arg) } out_unlock: -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);mutex_unlock (&i915->drm.struct_mutex);return err; }
@@ -682,7 +682,7 @@ static int live_empty_request(void *arg)*/ mutex_lock (&i915->drm.struct_mutex); - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm); batch =empty_batch (i915);if (IS_ERR (batch)) {
@@ -746,7 +746,7 @@ static int live_empty_request(void *arg)i915_vma_unpin (batch);i915_vma_put (batch); out_unlock: -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);mutex_unlock (&i915->drm.struct_mutex);return err; }
@@ -839,7 +839,7 @@ static int live_all_engines(void *arg)*/ mutex_lock (&i915->drm.struct_mutex); - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm); err =igt_live_test_begin (&t, i915, __func__,"" );if (err)
@@ -919,7 +919,7 @@ static int live_all_engines(void *arg)i915_vma_unpin (batch);i915_vma_put (batch); out_unlock: -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);mutex_unlock (&i915->drm.struct_mutex);return err; }
@@ -942,7 +942,7 @@ static int live_sequential_engines(void *arg)*/ mutex_lock (&i915->drm.struct_mutex); - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm); err =igt_live_test_begin (&t, i915, __func__,"" );if (err)
@@ -1048,7 +1048,7 @@ static int live_sequential_engines(void *arg)i915_request_put (request[id]); } out_unlock: -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);mutex_unlock (&i915->drm.struct_mutex);return err; }
@@ -1113,7 +1113,7 @@ static int live_breadcrumbs_smoketest(void *arg)* On real hardware this time. */ - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm); file =mock_file (i915);if (IS_ERR (file)) {
@@ -1220,7 +1220,7 @@ static int live_breadcrumbs_smoketest(void *arg) out_file:mock_file_free (i915, file); out_rpm: -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);return ret; }
drivers/gpu/drm/i915/selftests/i915_timeline.c +8 -8
@@ -515,7 +515,7 @@ static int live_hwsp_engine(void *arg)return -ENOMEM ;mutex_lock (&i915->drm.struct_mutex); - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm); count =0 ;for_each_engine (engine, i915, id) {
@@ -558,7 +558,7 @@ static int live_hwsp_engine(void *arg)i915_timeline_put (tl); } -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);mutex_unlock (&i915->drm.struct_mutex);kvfree (timelines);
@@ -591,7 +591,7 @@ static int live_hwsp_alternate(void *arg)return -ENOMEM ;mutex_lock (&i915->drm.struct_mutex); - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm); count =0 ;for (n =0 ; n <NUM_TIMELINES ; n++) {
@@ -634,7 +634,7 @@ static int live_hwsp_alternate(void *arg)i915_timeline_put (tl); } -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);mutex_unlock (&i915->drm.struct_mutex);kvfree (timelines);
@@ -658,7 +658,7 @@ static int live_hwsp_wrap(void *arg)*/ mutex_lock (&i915->drm.struct_mutex); - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm); tl =i915_timeline_create (i915,NULL );if (IS_ERR (tl)) {
@@ -749,7 +749,7 @@ static int live_hwsp_wrap(void *arg) out_free:i915_timeline_put (tl); out_rpm: -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);mutex_unlock (&i915->drm.struct_mutex);return err;
@@ -771,7 +771,7 @@ static int live_hwsp_recycle(void *arg)*/ mutex_lock (&i915->drm.struct_mutex); - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm); count =0 ;for_each_engine (engine, i915, id) {
@@ -825,7 +825,7 @@ static int live_hwsp_recycle(void *arg) out:if (igt_flush_test (i915,I915_WAIT_LOCKED )) err = -EIO ; -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);mutex_unlock (&i915->drm.struct_mutex);return err;
drivers/gpu/drm/i915/selftests/i915_vma.c +2 -2
@@ -873,7 +873,7 @@ static int igt_vma_remapped_gtt(void *arg)mutex_lock (&i915->drm.struct_mutex); - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm);for (t = types; *t; t++) {for (p = planes; p->width; p++) {
@@ -965,7 +965,7 @@ static int igt_vma_remapped_gtt(void *arg) } out: -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);mutex_unlock (&i915->drm.struct_mutex);i915_gem_object_put (obj);
drivers/gpu/drm/i915/selftests/intel_guc.c +4 -4
@@ -144,7 +144,7 @@ static int igt_guc_clients(void *args)GEM_BUG_ON (!HAS_GUC (dev_priv));mutex_lock (&dev_priv->drm.struct_mutex); - wakeref =intel_runtime_pm_get (dev_priv); + wakeref =intel_runtime_pm_get (&dev_priv->runtime_pm); guc = &dev_priv->guc;if (!guc) {
@@ -227,7 +227,7 @@ static int igt_guc_clients(void *args)guc_clients_create (guc);guc_clients_enable (guc); unlock: -intel_runtime_pm_put (dev_priv, wakeref); +intel_runtime_pm_put (&dev_priv->runtime_pm, wakeref);mutex_unlock (&dev_priv->drm.struct_mutex);return err; }
@@ -247,7 +247,7 @@ static int igt_guc_doorbells(void *arg)GEM_BUG_ON (!HAS_GUC (dev_priv));mutex_lock (&dev_priv->drm.struct_mutex); - wakeref =intel_runtime_pm_get (dev_priv); + wakeref =intel_runtime_pm_get (&dev_priv->runtime_pm); guc = &dev_priv->guc;if (!guc) {
@@ -340,7 +340,7 @@ static int igt_guc_doorbells(void *arg)guc_client_free (clients[i]); } unlock: -intel_runtime_pm_put (dev_priv, wakeref); +intel_runtime_pm_put (&dev_priv->runtime_pm, wakeref);mutex_unlock (&dev_priv->drm.struct_mutex);return err; }
drivers/gpu/drm/i915/selftests/intel_uncore.c +2 -2
@@ -176,7 +176,7 @@ static int live_forcewake_ops(void *arg)return 0 ; } - wakeref =intel_runtime_pm_get (i915); + wakeref =intel_runtime_pm_get (&i915->runtime_pm);for_each_fw_domain (domain, uncore, tmp) {smp_store_mb (domain->active, false);
@@ -247,7 +247,7 @@ static int live_forcewake_ops(void *arg) } out_rpm: -intel_runtime_pm_put (i915, wakeref); +intel_runtime_pm_put (&i915->runtime_pm, wakeref);return err; }
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 7/8 drm/i915: update with_intel_runtime_pm to use the rpm structure
In reply to Daniele Ceraolo SpurioMatching the underlying get/put functions.
--- drivers/gpu/drm/i915/gem/i915_gem_shrinker.c | 8 +++---- .../drm/i915/gem/selftests/i915_gem_context.c | 6 ++--- drivers/gpu/drm/i915/gt/intel_context.c | 2 +- drivers/gpu/drm/i915/gt/intel_reset.c | 2 +- drivers/gpu/drm/i915/gt/selftest_reset.c | 2 +- .../gpu/drm/i915/gt/selftest_workarounds.c | 4 ++-- drivers/gpu/drm/i915/i915_debugfs.c | 24 +++++++++---------- drivers/gpu/drm/i915/i915_gem.c | 2 +- drivers/gpu/drm/i915/i915_gem_gtt.c | 8 +++---- drivers/gpu/drm/i915/i915_pmu.c | 3 ++- drivers/gpu/drm/i915/i915_sysfs.c | 2 +- drivers/gpu/drm/i915/intel_guc_log.c | 6 ++--- drivers/gpu/drm/i915/intel_huc.c | 2 +- drivers/gpu/drm/i915/intel_panel.c | 2 +- drivers/gpu/drm/i915/intel_pm.c | 8 +++---- drivers/gpu/drm/i915/intel_runtime_pm.h | 12 +++++----- drivers/gpu/drm/i915/intel_uc.c | 2 +- drivers/gpu/drm/i915/intel_uncore.c | 2 +- drivers/gpu/drm/i915/selftests/i915_gem.c | 6 ++--- .../gpu/drm/i915/selftests/i915_gem_evict.c | 2 +- drivers/gpu/drm/i915/selftests/i915_request.c | 2 +- 21 files changed, 54 insertions(+), 53 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_shrinker.c +4 -4
@@ -297,7 +297,7 @@ unsigned long i915_gem_shrink_all(struct drm_i915_private *i915)intel_wakeref_t wakeref;unsigned long freed =0 ; - with_intel_runtime_pm(i915, wakeref) { + with_intel_runtime_pm(&i915->runtime_pm, wakeref) { freed = i915_gem_shrink(i915, -1UL, NULL, I915_SHRINK_BOUND | I915_SHRINK_UNBOUND |
@@ -358,7 +358,7 @@ i915_gem_shrinker_scan(struct shrinker *shrinker, struct shrink_control *sc)if (sc->nr_scanned < sc->nr_to_scan &¤t_is_kswapd ()) {intel_wakeref_t wakeref; - with_intel_runtime_pm(i915, wakeref) { + with_intel_runtime_pm(&i915->runtime_pm, wakeref) { freed += i915_gem_shrink(i915, sc->nr_to_scan - sc->nr_scanned, &sc->nr_scanned,
@@ -385,7 +385,7 @@ i915_gem_shrinker_oom(struct notifier_block *nb, unsigned long event, void *ptr)unsigned long flags; freed_pages =0 ; - with_intel_runtime_pm(i915, wakeref) + with_intel_runtime_pm(&i915->runtime_pm, wakeref) freed_pages += i915_gem_shrink(i915, -1UL, NULL, I915_SHRINK_BOUND | I915_SHRINK_UNBOUND |
@@ -433,7 +433,7 @@ i915_gem_shrinker_vmap(struct notifier_block *nb, unsigned long event, void *ptr MAX_SCHEDULE_TIMEOUT)) goto out; - with_intel_runtime_pm(i915, wakeref) + with_intel_runtime_pm(&i915->runtime_pm, wakeref) freed_pages += i915_gem_shrink(i915, -1UL, NULL, I915_SHRINK_BOUND | I915_SHRINK_UNBOUND |
drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c +3 -3
@@ -533,7 +533,7 @@ static int igt_ctx_exec(void *arg) } } -with_intel_runtime_pm (i915, wakeref) +with_intel_runtime_pm (&i915->runtime_pm, wakeref) err = gpu_fill(obj, ctx, engine, dw);if (err) { pr_err("Failed to fill dword %lu [%lu/%lu] with gpu (%s) in ctx %u [full-ppgtt? %s], err=%d\n",
@@ -653,7 +653,7 @@ static int igt_shared_ctx_exec(void *arg) } err =0 ; -with_intel_runtime_pm (i915, wakeref) +with_intel_runtime_pm (&i915->runtime_pm, wakeref) err = gpu_fill(obj, ctx, engine, dw);if (err) { pr_err("Failed to fill dword %lu [%lu/%lu] with gpu (%s) in ctx %u [full-ppgtt? %s], err=%d\n",
@@ -1236,7 +1236,7 @@ static int igt_ctx_readonly(void *arg) } err =0 ; -with_intel_runtime_pm (i915, wakeref) +with_intel_runtime_pm (&i915->runtime_pm, wakeref) err = gpu_fill(obj, ctx, engine, dw);if (err) { pr_err("Failed to fill dword %lu [%lu/%lu] with gpu (%s) in ctx %u [full-ppgtt? %s], err=%d\n",
drivers/gpu/drm/i915/gt/intel_context.c +1 -1
@@ -54,7 +54,7 @@ int __intel_context_do_pin(struct intel_context *ce)intel_wakeref_t wakeref; err =0 ; -with_intel_runtime_pm (ce->engine->i915, wakeref) +with_intel_runtime_pm (&ce->engine->i915->runtime_pm, wakeref) err = ce->ops->pin(ce);if (err) goto err;
drivers/gpu/drm/i915/gt/intel_reset.c +1 -1
@@ -851,7 +851,7 @@ void i915_gem_set_wedged(struct drm_i915_private *i915)intel_wakeref_t wakeref;mutex_lock (&error->wedge_mutex); - with_intel_runtime_pm(i915, wakeref) + with_intel_runtime_pm(&i915->runtime_pm, wakeref)__i915_gem_set_wedged (i915);mutex_unlock (&error->wedge_mutex); }
drivers/gpu/drm/i915/gt/selftest_reset.c +1 -1
@@ -111,7 +111,7 @@ int intel_reset_live_selftests(struct drm_i915_private *i915)if (i915_terminally_wedged (i915))return -EIO ;/* we're long past hope of a successful reset */ -with_intel_runtime_pm (i915, wakeref) +with_intel_runtime_pm (&i915->runtime_pm, wakeref) err = i915_subtests(tests, i915);return err;
drivers/gpu/drm/i915/gt/selftest_workarounds.c +2 -2
@@ -256,7 +256,7 @@ switch_to_scratch_context(struct intel_engine_cs *engine,GEM_BUG_ON (i915_gem_context_is_bannable (ctx)); rq =ERR_PTR (-ENODEV ); -with_intel_runtime_pm (engine->i915, wakeref) +with_intel_runtime_pm (&engine->i915->runtime_pm, wakeref) rq = igt_spinner_create_request(spin, ctx, engine, MI_NOOP);kernel_context_close (ctx);
@@ -312,7 +312,7 @@ static int check_whitelist_across_reset(struct intel_engine_cs *engine,if (err) goto out; -with_intel_runtime_pm (i915, wakeref) +with_intel_runtime_pm (&i915->runtime_pm, wakeref) err = reset(engine);igt_spinner_end (&spin);
drivers/gpu/drm/i915/i915_debugfs.c +12 -12
@@ -769,7 +769,7 @@ static int i915_gpu_info_open(struct inode *inode, struct file *file)intel_wakeref_t wakeref; gpu =NULL ; -with_intel_runtime_pm (i915, wakeref) +with_intel_runtime_pm (&i915->runtime_pm, wakeref) gpu = i915_capture_gpu_state(i915);if (IS_ERR (gpu))return PTR_ERR (gpu);
@@ -1097,7 +1097,7 @@ static int i915_hangcheck_info(struct seq_file *m, void *unused)return 0 ; } - with_intel_runtime_pm(dev_priv, wakeref) { + with_intel_runtime_pm(&dev_priv->runtime_pm, wakeref) {for_each_engine (engine, dev_priv, id) acthd[id] =intel_engine_get_active_head (engine);
@@ -1357,7 +1357,7 @@ static int i915_drpc_info(struct seq_file *m, void *unused)intel_wakeref_t wakeref;int err = -ENODEV ; - with_intel_runtime_pm(dev_priv, wakeref) { + with_intel_runtime_pm(&dev_priv->runtime_pm, wakeref) {if (IS_VALLEYVIEW (dev_priv) ||IS_CHERRYVIEW (dev_priv)) err =vlv_drpc_info (m);else if (INTEL_GEN (dev_priv) >=6 )
@@ -1524,7 +1524,7 @@ static int i915_emon_status(struct seq_file *m, void *unused)if (!IS_GEN (i915,5 ))return -ENODEV ; - with_intel_runtime_pm(i915, wakeref) { + with_intel_runtime_pm(&i915->runtime_pm, wakeref) {unsigned long temp, chipset, gfx; temp =i915_mch_val (i915);
@@ -1816,7 +1816,7 @@ static int i915_rps_boost_info(struct seq_file *m, void *data)u32 act_freq = rps->cur_freq;intel_wakeref_t wakeref; - with_intel_runtime_pm_if_in_use(dev_priv, wakeref) { + with_intel_runtime_pm_if_in_use(&dev_priv->runtime_pm, wakeref) {if (IS_VALLEYVIEW (dev_priv) ||IS_CHERRYVIEW (dev_priv)) {vlv_punit_get (dev_priv); act_freq = vlv_punit_read(dev_priv,
@@ -1899,7 +1899,7 @@ static int i915_huc_load_status_info(struct seq_file *m, void *data) p =drm_seq_file_printer (m);intel_uc_fw_dump (&dev_priv->huc.fw, &p); - with_intel_runtime_pm(dev_priv, wakeref) + with_intel_runtime_pm(&dev_priv->runtime_pm, wakeref)seq_printf (m,"\nHuC status 0x%08x:\n" ,I915_READ (HUC_STATUS2 ));return 0 ;
@@ -1917,7 +1917,7 @@ static int i915_guc_load_status_info(struct seq_file *m, void *data) p =drm_seq_file_printer (m);intel_uc_fw_dump (&dev_priv->guc.fw, &p); - with_intel_runtime_pm(dev_priv, wakeref) { + with_intel_runtime_pm(&dev_priv->runtime_pm, wakeref) {u32 tmp =I915_READ (GUC_STATUS );u32 i;
@@ -2423,7 +2423,7 @@ static int i915_energy_uJ(struct seq_file *m, void *data)return -ENODEV ; units = (power &0x1f00 ) >>8 ; -with_intel_runtime_pm (dev_priv, wakeref) +with_intel_runtime_pm (&dev_priv->runtime_pm, wakeref) power = I915_READ(MCH_SECP_NRG_STTS); power = (1000000 * power) >> units;/* convert to uJ */
@@ -3009,7 +3009,7 @@ static ssize_t i915_ipc_status_write(struct file *file, const char __user *ubuf,if (ret <0 )return ret; - with_intel_runtime_pm(dev_priv, wakeref) { + with_intel_runtime_pm(&dev_priv->runtime_pm, wakeref) {if (!dev_priv->ipc_enabled && enable)DRM_INFO ("Enabling IPC: WM will be proper only after next commit\n" ); dev_priv->wm.distrust_bios_wm = true;
@@ -3761,7 +3761,7 @@ i915_cache_sharing_get(void *data, u64 *val)if (!(IS_GEN_RANGE (dev_priv,6 ,7 )))return -ENODEV ; -with_intel_runtime_pm (dev_priv, wakeref) +with_intel_runtime_pm (&dev_priv->runtime_pm, wakeref) snpcr = I915_READ(GEN6_MBCUNIT_SNPCR); *val = (snpcr &GEN6_MBC_SNPCR_MASK ) >>GEN6_MBC_SNPCR_SHIFT ;
@@ -3782,7 +3782,7 @@ i915_cache_sharing_set(void *data, u64 val)return -EINVAL ;DRM_DEBUG_DRIVER ("Manually setting uncore sharing to %llu\n" , val); - with_intel_runtime_pm(dev_priv, wakeref) { + with_intel_runtime_pm(&dev_priv->runtime_pm, wakeref) {u32 snpcr;/* Update the cache sharing policy here as well */
@@ -4028,7 +4028,7 @@ static int i915_sseu_status(struct seq_file *m, void *unused) sseu.max_eus_per_subslice =RUNTIME_INFO (dev_priv)->sseu.max_eus_per_subslice; - with_intel_runtime_pm(dev_priv, wakeref) { + with_intel_runtime_pm(&dev_priv->runtime_pm, wakeref) {if (IS_CHERRYVIEW (dev_priv))cherryview_sseu_device_status (dev_priv, &sseu);else if (IS_BROADWELL (dev_priv))
drivers/gpu/drm/i915/i915_gem.c +1 -1
@@ -262,7 +262,7 @@ void i915_gem_flush_ggtt_writes(struct drm_i915_private *dev_priv)i915_gem_chipset_flush (dev_priv); - with_intel_runtime_pm(dev_priv, wakeref) { + with_intel_runtime_pm(&dev_priv->runtime_pm, wakeref) {struct intel_uncore *uncore = &dev_priv->uncore;spin_lock_irq (&uncore->lock);
drivers/gpu/drm/i915/i915_gem_gtt.c +4 -4
@@ -2619,7 +2619,7 @@ static int ggtt_bind_vma(struct i915_vma *vma,if (i915_gem_object_is_readonly (obj)) pte_flags |=PTE_READ_ONLY ; -with_intel_runtime_pm (i915, wakeref) +with_intel_runtime_pm (&i915->runtime_pm, wakeref) vma->vm->insert_entries(vma->vm, vma, cache_level, pte_flags); vma->page_sizes.gtt =I915_GTT_PAGE_SIZE ;
@@ -2639,7 +2639,7 @@ static void ggtt_unbind_vma(struct i915_vma *vma)struct drm_i915_private *i915 = vma->vm->i915;intel_wakeref_t wakeref; -with_intel_runtime_pm (i915, wakeref) +with_intel_runtime_pm (&i915->runtime_pm, wakeref) vma->vm->clear_range(vma->vm, vma->node.start, vma->size); }
@@ -2674,7 +2674,7 @@ static int aliasing_gtt_bind_vma(struct i915_vma *vma,if (flags &I915_VMA_GLOBAL_BIND ) {intel_wakeref_t wakeref; - with_intel_runtime_pm(i915, wakeref) { + with_intel_runtime_pm(&i915->runtime_pm, wakeref) { vma->vm->insert_entries (vma->vm, vma, cache_level, pte_flags); }
@@ -2691,7 +2691,7 @@ static void aliasing_gtt_unbind_vma(struct i915_vma *vma)struct i915_address_space *vm = vma->vm;intel_wakeref_t wakeref; -with_intel_runtime_pm (i915, wakeref) +with_intel_runtime_pm (&i915->runtime_pm, wakeref) vm->clear_range(vm, vma->node.start, vma->size); }
drivers/gpu/drm/i915/i915_pmu.c +2 -1
@@ -227,7 +227,8 @@ frequency_sample(struct drm_i915_private *dev_priv, unsigned int period_ns)if (dev_priv->gt.awake) {intel_wakeref_t wakeref; - with_intel_runtime_pm_if_in_use(dev_priv, wakeref) { +with_intel_runtime_pm_if_in_use (&dev_priv->runtime_pm, + wakeref) { val =intel_uncore_read_notrace (&dev_priv->uncore,GEN6_RPSTAT1 ); val =intel_get_cagf (dev_priv, val);
drivers/gpu/drm/i915/i915_sysfs.c +1 -1
@@ -48,7 +48,7 @@ static u32 calc_residency(struct drm_i915_private *dev_priv,intel_wakeref_t wakeref;u64 res =0 ; -with_intel_runtime_pm (dev_priv, wakeref) +with_intel_runtime_pm (&dev_priv->runtime_pm, wakeref) res = intel_rc6_residency_us(dev_priv, reg);return DIV_ROUND_CLOSEST_ULL (res,1000 );
drivers/gpu/drm/i915/intel_guc_log.c +3 -3
@@ -445,7 +445,7 @@ static void guc_log_capture_logs(struct intel_guc_log *log)* Generally device is expected to be active only at this * time, so get/put should be really quick. */ - with_intel_runtime_pm(dev_priv, wakeref) + with_intel_runtime_pm(&dev_priv->runtime_pm, wakeref)guc_action_flush_log_complete (guc); }
@@ -524,7 +524,7 @@ int intel_guc_log_set_level(struct intel_guc_log *log, u32 level)if (log->level == level) goto out_unlock; -with_intel_runtime_pm (dev_priv, wakeref) +with_intel_runtime_pm (&dev_priv->runtime_pm, wakeref) ret = guc_action_control_log(guc, GUC_LOG_LEVEL_IS_VERBOSE(level), GUC_LOG_LEVEL_IS_ENABLED(level),
@@ -609,7 +609,7 @@ void intel_guc_log_relay_flush(struct intel_guc_log *log)*/ flush_work (&log->relay.flush_work); - with_intel_runtime_pm(i915, wakeref) + with_intel_runtime_pm(&i915->runtime_pm, wakeref)guc_action_flush_log (guc);/* GuC would have updated log buffer by now, so capture it */
drivers/gpu/drm/i915/intel_huc.c +1 -1
@@ -174,7 +174,7 @@ int intel_huc_check_status(struct intel_huc *huc)if (!HAS_HUC (dev_priv))return -ENODEV ; -with_intel_runtime_pm (dev_priv, wakeref) +with_intel_runtime_pm (&dev_priv->runtime_pm, wakeref) status = (I915_READ(huc->status.reg) & huc->status.mask) == huc->status.value;
drivers/gpu/drm/i915/intel_panel.c +1 -1
@@ -1288,7 +1288,7 @@ static int intel_backlight_device_get_brightness(struct backlight_device *bd)intel_wakeref_t wakeref;int ret =0 ; - with_intel_runtime_pm(dev_priv, wakeref) { + with_intel_runtime_pm(&dev_priv->runtime_pm, wakeref) {u32 hw_level;drm_modeset_lock (&dev->mode_config.connection_mutex,NULL );
drivers/gpu/drm/i915/intel_pm.c +4 -4
@@ -8167,7 +8167,7 @@ unsigned long i915_chipset_val(struct drm_i915_private *dev_priv)if (!IS_GEN (dev_priv,5 ))return 0 ; - with_intel_runtime_pm(dev_priv, wakeref) { + with_intel_runtime_pm(&dev_priv->runtime_pm, wakeref) {spin_lock_irq (&mchdev_lock); val =__i915_chipset_val (dev_priv);spin_unlock_irq (&mchdev_lock);
@@ -8253,7 +8253,7 @@ void i915_update_gfx_val(struct drm_i915_private *dev_priv)if (!IS_GEN (dev_priv,5 ))return ; - with_intel_runtime_pm(dev_priv, wakeref) { + with_intel_runtime_pm(&dev_priv->runtime_pm, wakeref) {spin_lock_irq (&mchdev_lock);__i915_update_gfx_val (dev_priv);spin_unlock_irq (&mchdev_lock);
@@ -8305,7 +8305,7 @@ unsigned long i915_gfx_val(struct drm_i915_private *dev_priv)if (!IS_GEN (dev_priv,5 ))return 0 ; - with_intel_runtime_pm(dev_priv, wakeref) { + with_intel_runtime_pm(&dev_priv->runtime_pm, wakeref) {spin_lock_irq (&mchdev_lock); val =__i915_gfx_val (dev_priv);spin_unlock_irq (&mchdev_lock);
@@ -8346,7 +8346,7 @@ unsigned long i915_read_mch_val(void)if (!i915)return 0 ; - with_intel_runtime_pm(i915, wakeref) { + with_intel_runtime_pm(&i915->runtime_pm, wakeref) {spin_lock_irq (&mchdev_lock); chipset_val =__i915_chipset_val (i915); graphics_val =__i915_gfx_val (i915);
drivers/gpu/drm/i915/intel_runtime_pm.h +6 -6
@@ -179,13 +179,13 @@ intel_wakeref_t intel_runtime_pm_get_if_in_use(struct intel_runtime_pm *rpm);intel_wakeref_t intel_runtime_pm_get_noresume (struct intel_runtime_pm *rpm);intel_wakeref_t intel_runtime_pm_get_raw (struct intel_runtime_pm *rpm); -#define with_intel_runtime_pm (i915, wf) \ - for ((wf) = intel_runtime_pm_get(&(i915)->runtime_pm); (wf); \ - intel_runtime_pm_put(&(i915)->runtime_pm, (wf)), (wf) = 0) +#define with_intel_runtime_pm (rpm, wf) \ + for ((wf) = intel_runtime_pm_get(rpm); (wf); \ + intel_runtime_pm_put((rpm), (wf)), (wf) = 0) -#define with_intel_runtime_pm_if_in_use (i915, wf) \ - for ((wf) = intel_runtime_pm_get_if_in_use(&(i915)->runtime_pm); (wf); \ - intel_runtime_pm_put(&(i915)->runtime_pm, (wf)), (wf) = 0) +#define with_intel_runtime_pm_if_in_use (rpm, wf) \ + for ((wf) = intel_runtime_pm_get_if_in_use(rpm); (wf); \ + intel_runtime_pm_put((rpm), (wf)), (wf) = 0)void intel_runtime_pm_put_unchecked (struct intel_runtime_pm *rpm);#if IS_ENABLED (CONFIG_DRM_I915_DEBUG_RUNTIME_PM )
drivers/gpu/drm/i915/intel_uc.c +1 -1
@@ -537,7 +537,7 @@ void intel_uc_suspend(struct drm_i915_private *i915)if (!intel_guc_is_loaded (guc))return ; - with_intel_runtime_pm(i915, wakeref) + with_intel_runtime_pm(&i915->runtime_pm, wakeref)intel_uc_runtime_suspend (i915); }
drivers/gpu/drm/i915/intel_uncore.c +1 -1
@@ -1702,7 +1702,7 @@ int i915_reg_read_ioctl(struct drm_device *dev, flags = reg->offset & (entry->size -1 ); - with_intel_runtime_pm(i915, wakeref) { + with_intel_runtime_pm(&i915->runtime_pm, wakeref) {if (entry->size ==8 && flags ==I915_REG_READ_8B_WA ) reg->val = intel_uncore_read64_2x32(uncore, entry->offset_ldw,
drivers/gpu/drm/i915/selftests/i915_gem.c +3 -3
@@ -88,7 +88,7 @@ static void pm_suspend(struct drm_i915_private *i915) {intel_wakeref_t wakeref; - with_intel_runtime_pm(i915, wakeref) { + with_intel_runtime_pm(&i915->runtime_pm, wakeref) {i915_gem_suspend_gtt_mappings (i915);i915_gem_suspend_late (i915); }
@@ -98,7 +98,7 @@ static void pm_hibernate(struct drm_i915_private *i915) {intel_wakeref_t wakeref; - with_intel_runtime_pm(i915, wakeref) { + with_intel_runtime_pm(&i915->runtime_pm, wakeref) {i915_gem_suspend_gtt_mappings (i915);i915_gem_freeze (i915);
@@ -114,7 +114,7 @@ static void pm_resume(struct drm_i915_private *i915)* Both suspend and hibernate follow the same wakeup path and assume * that runtime-pm just works. */ - with_intel_runtime_pm(i915, wakeref) { + with_intel_runtime_pm(&i915->runtime_pm, wakeref) {intel_gt_sanitize (i915, false);i915_gem_sanitize (i915);i915_gem_resume (i915);
drivers/gpu/drm/i915/selftests/i915_gem_evict.c +1 -1
@@ -539,7 +539,7 @@ int i915_gem_evict_mock_selftests(void)return -ENOMEM ;mutex_lock (&i915->drm.struct_mutex); -with_intel_runtime_pm (i915, wakeref) +with_intel_runtime_pm (&i915->runtime_pm, wakeref) err = i915_subtests(tests, i915);mutex_unlock (&i915->drm.struct_mutex);
drivers/gpu/drm/i915/selftests/i915_request.c +1 -1
@@ -514,7 +514,7 @@ int i915_request_mock_selftests(void)if (!i915)return -ENOMEM ; -with_intel_runtime_pm (i915, wakeref) +with_intel_runtime_pm (&i915->runtime_pm, wakeref) err = i915_subtests(tests, i915);drm_dev_put (&i915->drm);
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 8/8 drm/i915: make intel_wakeref work on the rpm struct
In reply to Daniele Ceraolo Spuriointel_runtime_pm is the only thing they use from the i915 structure, so use that directly.
--- drivers/gpu/drm/i915/gt/intel_engine_pm.c | 4 +-- drivers/gpu/drm/i915/gt/intel_gt_pm.c | 4 +-- drivers/gpu/drm/i915/i915_gem_fence_reg.c | 2 +- drivers/gpu/drm/i915/intel_wakeref.c | 32 +++++++++++------------ drivers/gpu/drm/i915/intel_wakeref.h | 18 ++++++------- 5 files changed, 30 insertions(+), 30 deletions(-)
drivers/gpu/drm/i915/gt/intel_engine_pm.c +2 -2
@@ -37,7 +37,7 @@ static int __engine_unpark(struct intel_wakeref *wf)void intel_engine_pm_get (struct intel_engine_cs *engine) { -intel_wakeref_get (engine->i915, &engine->wakeref, __engine_unpark); +intel_wakeref_get (&engine->i915->runtime_pm, &engine->wakeref, __engine_unpark); }void intel_engine_park (struct intel_engine_cs *engine)
@@ -131,7 +131,7 @@ static int __engine_park(struct intel_wakeref *wf)void intel_engine_pm_put (struct intel_engine_cs *engine) { -intel_wakeref_put (engine->i915, &engine->wakeref, __engine_park); +intel_wakeref_put (&engine->i915->runtime_pm, &engine->wakeref, __engine_park); }void intel_engine_init__pm (struct intel_engine_cs *engine)
drivers/gpu/drm/i915/gt/intel_gt_pm.c +2 -2
@@ -52,7 +52,7 @@ static int intel_gt_unpark(struct intel_wakeref *wf)void intel_gt_pm_get (struct drm_i915_private *i915) { -intel_wakeref_get (i915, &i915->gt.wakeref, intel_gt_unpark); +intel_wakeref_get (&i915->runtime_pm, &i915->gt.wakeref, intel_gt_unpark); }static int intel_gt_park (struct intel_wakeref *wf)
@@ -77,7 +77,7 @@ static int intel_gt_park(struct intel_wakeref *wf)void intel_gt_pm_put (struct drm_i915_private *i915) { -intel_wakeref_put (i915, &i915->gt.wakeref, intel_gt_park); +intel_wakeref_put (&i915->runtime_pm, &i915->gt.wakeref, intel_gt_park); }void intel_gt_pm_init (struct drm_i915_private *i915)
drivers/gpu/drm/i915/i915_gem_fence_reg.c +1 -1
@@ -804,7 +804,7 @@ void i915_ggtt_init_fences(struct i915_ggtt *ggtt)INIT_LIST_HEAD (&ggtt->fence_list);INIT_LIST_HEAD (&ggtt->userfault_list); -intel_wakeref_auto_init (&ggtt->userfault_wakeref, i915); +intel_wakeref_auto_init (&ggtt->userfault_wakeref, &i915->runtime_pm);detect_bit_6_swizzle (i915);
drivers/gpu/drm/i915/intel_wakeref.c +16 -16
@@ -4,23 +4,23 @@* Copyright © 2019 Intel Corporation */ -#include "intel_drv.h" -#include "intel_wakeref.h" +#include "intel_runtime_pm.h" +#include "i915_gem.h" -static void rpm_get (struct drm_i915_private *i915,struct intel_wakeref *wf) +static void rpm_get (struct intel_runtime_pm *rpm,struct intel_wakeref *wf) { - wf->wakeref =intel_runtime_pm_get (&i915->runtime_pm); + wf->wakeref =intel_runtime_pm_get (rpm); } -static void rpm_put (struct drm_i915_private *i915,struct intel_wakeref *wf) +static void rpm_put (struct intel_runtime_pm *rpm,struct intel_wakeref *wf) {intel_wakeref_t wakeref =fetch_and_zero (&wf->wakeref); -intel_runtime_pm_put (&i915->runtime_pm, wakeref); +intel_runtime_pm_put (rpm, wakeref);GEM_BUG_ON (!wakeref); } -int __intel_wakeref_get_first (struct drm_i915_private *i915, +int __intel_wakeref_get_first (struct intel_runtime_pm *rpm,struct intel_wakeref *wf,int (*fn)(struct intel_wakeref *wf)) {
@@ -34,11 +34,11 @@ int __intel_wakeref_get_first(struct drm_i915_private *i915,if (!atomic_read (&wf->count)) {int err; -rpm_get (i915, wf); +rpm_get (rpm, wf); err =fn (wf);if (unlikely (err)) { -rpm_put (i915, wf); +rpm_put (rpm, wf);mutex_unlock (&wf->mutex);return err; }
@@ -51,7 +51,7 @@ int __intel_wakeref_get_first(struct drm_i915_private *i915,return 0 ; } -int __intel_wakeref_put_last (struct drm_i915_private *i915, +int __intel_wakeref_put_last (struct intel_runtime_pm *rpm,struct intel_wakeref *wf,int (*fn)(struct intel_wakeref *wf)) {
@@ -59,7 +59,7 @@ int __intel_wakeref_put_last(struct drm_i915_private *i915, err =fn (wf);if (likely (!err)) -rpm_put (i915, wf); +rpm_put (rpm, wf);else atomic_inc (&wf->count);mutex_unlock (&wf->mutex);
@@ -86,17 +86,17 @@ static void wakeref_auto_timeout(struct timer_list *t) wakeref =fetch_and_zero (&wf->wakeref);spin_unlock_irqrestore (&wf->lock, flags); -intel_runtime_pm_put (&wf->i915->runtime_pm, wakeref); +intel_runtime_pm_put (wf->rpm, wakeref); }void intel_wakeref_auto_init (struct intel_wakeref_auto *wf, -struct drm_i915_private *i915) +struct intel_runtime_pm *rpm) {spin_lock_init (&wf->lock);timer_setup (&wf->timer, wakeref_auto_timeout,0 );refcount_set (&wf->count,0 ); wf->wakeref =0 ; - wf->i915 = i915; + wf->rpm = rpm; }void intel_wakeref_auto (struct intel_wakeref_auto *wf,unsigned long timeout)
@@ -110,13 +110,13 @@ void intel_wakeref_auto(struct intel_wakeref_auto *wf, unsigned long timeout) }/* Our mission is that we only extend an already active wakeref */ -assert_rpm_wakelock_held (&wf->i915->runtime_pm); +assert_rpm_wakelock_held (wf->rpm);if (!refcount_inc_not_zero (&wf->count)) {spin_lock_irqsave (&wf->lock, flags);if (!refcount_inc_not_zero (&wf->count)) {GEM_BUG_ON (wf->wakeref); - wf->wakeref =intel_runtime_pm_get_if_in_use (&wf->i915->runtime_pm); + wf->wakeref =intel_runtime_pm_get_if_in_use (wf->rpm);refcount_set (&wf->count,1 ); }spin_unlock_irqrestore (&wf->lock, flags);
drivers/gpu/drm/i915/intel_wakeref.h +9 -9
@@ -13,7 +13,7 @@#include <linux/stackdepot.h> #include <linux/timer.h> -struct drm_i915_private ; +struct intel_runtime_pm ;typedef depot_stack_handle_t intel_wakeref_t ;
@@ -31,10 +31,10 @@ void __intel_wakeref_init(struct intel_wakeref *wf,__intel_wakeref_init ((wf), &__key); \ }while (0 ) -int __intel_wakeref_get_first(struct drm_i915_private *i915, +int __intel_wakeref_get_first(struct intel_runtime_pm *rpm, struct intel_wakeref *wf, int (*fn)(struct intel_wakeref *wf)); -int __intel_wakeref_put_last (struct drm_i915_private *i915, +int __intel_wakeref_put_last (struct intel_runtime_pm *rpm,struct intel_wakeref *wf,int (*fn)(struct intel_wakeref *wf));
@@ -55,12 +55,12 @@ int __intel_wakeref_put_last(struct drm_i915_private *i915,* code otherwise. */ static inline int -intel_wakeref_get (struct drm_i915_private *i915, +intel_wakeref_get (struct intel_runtime_pm *rpm,struct intel_wakeref *wf,int (*fn)(struct intel_wakeref *wf)) {if (unlikely (!atomic_inc_not_zero (&wf->count))) -return __intel_wakeref_get_first (i915, wf, fn); +return __intel_wakeref_get_first (rpm, wf, fn);return 0 ; }
@@ -82,12 +82,12 @@ intel_wakeref_get(struct drm_i915_private *i915,* code otherwise. */ static inline int -intel_wakeref_put (struct drm_i915_private *i915, +intel_wakeref_put (struct intel_runtime_pm *rpm,struct intel_wakeref *wf,int (*fn)(struct intel_wakeref *wf)) {if (atomic_dec_and_mutex_lock (&wf->count, &wf->mutex)) -return __intel_wakeref_put_last (i915, wf, fn); +return __intel_wakeref_put_last (rpm, wf, fn);return 0 ; }
@@ -133,7 +133,7 @@ intel_wakeref_active(struct intel_wakeref *wf) }struct intel_wakeref_auto { -struct drm_i915_private *i915; +struct intel_runtime_pm *rpm;struct timer_list timer;intel_wakeref_t wakeref;spinlock_t lock;
@@ -158,7 +158,7 @@ struct intel_wakeref_auto {void intel_wakeref_auto (struct intel_wakeref_auto *wf,unsigned long timeout);void intel_wakeref_auto_init (struct intel_wakeref_auto *wf, -struct drm_i915_private *i915); +struct intel_runtime_pm *rpm);void intel_wakeref_auto_fini (struct intel_wakeref_auto *wf);#endif /* INTEL_WAKEREF_H */
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.CHECKPATCH: warning for RPM Encapsulation (rev2)
In reply to Daniele Ceraolo Spurio== Series Details ==
== Series Details ==
Series: RPM Encapsulation (rev2)
URL : https://patchwork.freedesktop.org/series/61976/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip 997c1d60a119 drm/i915: prefer i915_runtime_pm in intel_runtime function 4017cb4a3083 drm/i915: Remove rpm asserts that use i915 d63294884cad drm/i915: make enable/disable rpm assert function use the rpm structure 768ac1cf35a5 drm/i915: move and rename i915_runtime_pm -:455: CHECK:UNCOMMENTED_DEFINITION: spinlock_t definition without comment #455: FILE: drivers/gpu/drm/i915/intel_runtime_pm.h:65: + spinlock_t lock;
total: 0 errors, 0 warnings, 1 checks, 519 lines checked 745e10797905 drm/i915: move a few more functions to accept the rpm structure 5a54e53a457b drm/i915: update rpm_get/put to use the rpm structure 319d7944d790 drm/i915: update with_intel_runtime_pm to use the rpm structure -:445: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'rpm' - possible side-effects? #445: FILE: drivers/gpu/drm/i915/intel_runtime_pm.h:182:
+#define with_intel_runtime_pm(rpm, wf) \
+ for ((wf) = intel_runtime_pm_get(rpm); (wf); \
+ intel_runtime_pm_put((rpm), (wf)), (wf) = 0)
-:445: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'wf' - possible side-effects? #445: FILE: drivers/gpu/drm/i915/intel_runtime_pm.h:182:
+#define with_intel_runtime_pm(rpm, wf) \
+ for ((wf) = intel_runtime_pm_get(rpm); (wf); \
+ intel_runtime_pm_put((rpm), (wf)), (wf) = 0)
-:452: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'rpm' - possible side-effects? #452: FILE: drivers/gpu/drm/i915/intel_runtime_pm.h:186:
+#define with_intel_runtime_pm_if_in_use(rpm, wf) \
+ for ((wf) = intel_runtime_pm_get_if_in_use(rpm); (wf); \
+ intel_runtime_pm_put((rpm), (wf)), (wf) = 0)
-:452: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'wf' - possible side-effects? #452: FILE: drivers/gpu/drm/i915/intel_runtime_pm.h:186:
+#define with_intel_runtime_pm_if_in_use(rpm, wf) \
+ for ((wf) = intel_runtime_pm_get_if_in_use(rpm); (wf); \
+ intel_runtime_pm_put((rpm), (wf)), (wf) = 0)
total: 0 errors, 0 warnings, 4 checks, 396 lines checked 8882c98e415d drm/i915: make intel_wakeref work on the rpm struct
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.SPARSE: warning for RPM Encapsulation (rev2)
In reply to Daniele Ceraolo Spurio== Series Details ==
== Series Details ==
Series: RPM Encapsulation (rev2)
URL : https://patchwork.freedesktop.org/series/61976/
State : warning
== Summary ==
$ dim sparse origin/drm-tip Sparse version: v0.5.2 Commit: drm/i915: prefer i915_runtime_pm in intel_runtime function Okay!
Commit: drm/i915: Remove rpm asserts that use i915 Okay!
Commit: drm/i915: make enable/disable rpm assert function use the rpm structure Okay!
Commit: drm/i915: move and rename i915_runtime_pm
Okay!
Commit: drm/i915: move a few more functions to accept the rpm structure Okay!
Commit: drm/i915: update rpm_get/put to use the rpm structure
-O:drivers/gpu/drm/i915/gt/intel_reset.c:1382:5: warning: context imbalance in 'i915_reset_trylock' - different lock contexts for basic block +drivers/gpu/drm/i915/gt/intel_reset.c:1382:5: warning: context imbalance in 'i915_reset_trylock' - different lock contexts for basic block -O:drivers/gpu/drm/i915/i915_gem_gtt.c:1831:9: warning: expression using sizeof(void) -O:drivers/gpu/drm/i915/i915_gem_gtt.c:1831:9: warning: expression using sizeof(void) +drivers/gpu/drm/i915/i915_gem_gtt.c:1831:9: warning: expression using sizeof(void) +drivers/gpu/drm/i915/i915_gem_gtt.c:1831:9: warning: expression using sizeof(void) -O:drivers/gpu/drm/i915/intel_wakeref.c:86:19: warning: context imbalance in 'wakeref_auto_timeout' - unexpected unlock +drivers/gpu/drm/i915/intel_wakeref.c:86:19: warning: context imbalance in 'wakeref_auto_timeout' - unexpected unlock
Commit: drm/i915: update with_intel_runtime_pm to use the rpm structure Okay!
Commit: drm/i915: make intel_wakeref work on the rpm struct -O:drivers/gpu/drm/i915/intel_wakeref.c:86:19: warning: context imbalance in 'wakeref_auto_timeout' - unexpected unlock +drivers/gpu/drm/i915/intel_wakeref.c:86:19: warning: context imbalance in 'wakeref_auto_timeout' - unexpected unlock -./include/uapi/linux/perf_event.h:147:56: warning: cast truncates bits from constant value (8000000000000000 becomes 0)
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 5 lines · Daniele Ceraolo Spurio
Same as v2, just rebased (some code moved + a couple of new get/put calls that had to be updated)
Cc Imre Deak <[email protected]>Reviewed-by Chris Wilson <[email protected]>
Looks ok to me:
Quoted 64 lines
Daniele Ceraolo Spurio (8):
drm/i915: preferi915_runtime_pminintel_runtimefunction drm/i915: Remove rpm asserts that use i915
drm/i915: make enable/disable rpm assert function use the rpm
structure
drm/i915: move and renamei915_runtime_pm
drm/i915: move a few more functions to accept the rpm structure drm/i915: update rpm_get/put to use the rpm structure drm/i915: updatewith_intel_runtime_pmto use the rpm structure drm/i915: makeintel_wakerefwork on the rpm structdrivers/gpu/drm/i915/gem/i915_gem_mman.c | 11 +- drivers/gpu/drm/i915/gem/i915_gem_object.c | 4 +- drivers/gpu/drm/i915/gem/i915_gem_shrinker.c | 12 +- .../gpu/drm/i915/gem/selftests/huge_pages.c | 4 +- .../i915/gem/selftests/i915_gem_coherency.c | 4 +- .../drm/i915/gem/selftests/i915_gem_context.c | 18 +- .../drm/i915/gem/selftests/i915_gem_mman.c | 4 +- drivers/gpu/drm/i915/gt/intel_context.c | 2 +- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 8 +- drivers/gpu/drm/i915/gt/intel_engine_pm.c | 4 +- drivers/gpu/drm/i915/gt/intel_gt_pm.c | 4 +- drivers/gpu/drm/i915/gt/intel_hangcheck.c | 4 +- drivers/gpu/drm/i915/gt/intel_reset.c | 6 +- drivers/gpu/drm/i915/gt/selftest_hangcheck.c | 12 +- drivers/gpu/drm/i915/gt/selftest_lrc.c | 36 ++-- drivers/gpu/drm/i915/gt/selftest_reset.c | 6 +- .../gpu/drm/i915/gt/selftest_workarounds.c | 16 +- drivers/gpu/drm/i915/gvt/aperture_gm.c | 17 +- drivers/gpu/drm/i915/gvt/gvt.h | 4 +- drivers/gpu/drm/i915/gvt/sched_policy.c | 4 +- drivers/gpu/drm/i915/gvt/scheduler.c | 4 +- drivers/gpu/drm/i915/i915_debugfs.c | 75 +++---- drivers/gpu/drm/i915/i915_drv.c | 62 +++--- drivers/gpu/drm/i915/i915_drv.h | 50 +---- drivers/gpu/drm/i915/i915_gem.c | 21 +- drivers/gpu/drm/i915/i915_gem_fence_reg.c | 8 +- drivers/gpu/drm/i915/i915_gem_gtt.c | 14 +- drivers/gpu/drm/i915/i915_irq.c | 38 ++-- drivers/gpu/drm/i915/i915_perf.c | 6 +- drivers/gpu/drm/i915/i915_pmu.c | 15 +- drivers/gpu/drm/i915/i915_sysfs.c | 14 +- drivers/gpu/drm/i915/i915_vma.c | 2 +- drivers/gpu/drm/i915/intel_csr.c | 2 +- drivers/gpu/drm/i915/intel_display.c | 12 +- drivers/gpu/drm/i915/intel_display_power.c | 39 ++-- drivers/gpu/drm/i915/intel_drv.h | 105 ---------- drivers/gpu/drm/i915/intel_fbdev.c | 6 +- drivers/gpu/drm/i915/intel_guc_log.c | 6 +- drivers/gpu/drm/i915/intel_hotplug.c | 4 +- drivers/gpu/drm/i915/intel_huc.c | 2 +- drivers/gpu/drm/i915/intel_panel.c | 2 +- drivers/gpu/drm/i915/intel_pm.c | 8 +- drivers/gpu/drm/i915/intel_runtime_pm.c | 162 +++++++-------- drivers/gpu/drm/i915/intel_runtime_pm.h | 191 ++++++++++++++++-- drivers/gpu/drm/i915/intel_uc.c | 2 +- drivers/gpu/drm/i915/intel_uncore.c | 26 +-- drivers/gpu/drm/i915/intel_uncore.h | 4 +- drivers/gpu/drm/i915/intel_wakeref.c | 32 +-- drivers/gpu/drm/i915/intel_wakeref.h | 18 +- drivers/gpu/drm/i915/selftests/i915_active.c | 8 +- drivers/gpu/drm/i915/selftests/i915_gem.c | 10 +- .../gpu/drm/i915/selftests/i915_gem_evict.c | 6 +-
Quoted 12 lines
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c | 8 +- drivers/gpu/drm/i915/selftests/i915_request.c | 22 +- .../gpu/drm/i915/selftests/i915_timeline.c | 16 +- drivers/gpu/drm/i915/selftests/i915_vma.c | 4 +- drivers/gpu/drm/i915/selftests/intel_guc.c | 8 +- drivers/gpu/drm/i915/selftests/intel_uncore.c | 4 +- .../gpu/drm/i915/selftests/mock_gem_device.c | 4 +- 59 files changed, 596 insertions(+), 604 deletions(-)Signature · 1 line
2.20.1
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoting Imre Deak (2019-06-14 14:21:42)
Quoted 9 lines · Daniele Ceraolo Spurio
Quoted 5 lines
Same as v2, just rebased (some code moved + a couple of new get/put calls that had to be updated)
Cc Imre Deak <[email protected]>Reviewed-by Chris Wilson <[email protected]>Looks ok to me:
Acked-by Imre Deak <[email protected]>
And pushed while it still applies :)
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for RPM Encapsulation (rev2)
In reply to Daniele Ceraolo Spurio== Series Details ==
== Series Details ==
Series: RPM Encapsulation (rev2)
URL : https://patchwork.freedesktop.org/series/61976/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6265 -> Patchwork_13277
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/
Known issues
------------
Here are the changes found in Patchwork_13277 that come from known issues:
### IGT changes ###
#### Possible fixes ####
* igt@gem_cpu_reloc@basic:
- fi-icl-dsi: [INCOMPLETE][1] ([fdo#107713] / [fdo#110246]) -> [PASS][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/fi-icl-dsi/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/fi-icl-dsi/igt@[email protected]
* igt@i915_selftest@live_hangcheck:
- fi-icl-y: [DMESG-FAIL][3] ([fdo#110917]) -> [PASS][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/fi-icl-y/igt@i915_selftest@live_hangcheck.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/fi-icl-y/igt@i915_selftest@live_hangcheck.html
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: [FAIL][5] ([fdo#109485]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/fi-kbl-7500u/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/fi-kbl-7500u/igt@[email protected]
* igt@vgem_basic@unload:
- fi-icl-u3: [DMESG-WARN][7] ([fdo#107724]) -> [PASS][8] +1 similar issue
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/fi-icl-u3/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/fi-icl-u3/igt@[email protected]
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
[fdo#109485]: https://bugs.freedesktop.org/show_bug.cgi?id=109485
[fdo#110246]: https://bugs.freedesktop.org/show_bug.cgi?id=110246
[fdo#110917]: https://bugs.freedesktop.org/show_bug.cgi?id=110917
Participating hosts (53 -> 46)
------------------------------
Additional (1): fi-byt-j1900
Missing (8): fi-kbl-soraka fi-ilk-m540 fi-hsw-4200u fi-hsw-peppy fi-byt-squawks fi-bsw-cyan fi-byt-clapper fi-bdw-samus
Build changes
-------------
* Linux: CI_DRM_6265 -> Patchwork_13277
CI_DRM_6265: 657b9f601946cab518d8911ea92dc0f437a1f4b4 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5055: 495287320225e7f180d384cad7b207b77154438f @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_13277: 8882c98e415da5a71cbd0943c8819fd01634add0 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
8882c98e415d drm/i915: make intel_wakeref work on the rpm struct 319d7944d790 drm/i915: update with_intel_runtime_pm to use the rpm structure 5a54e53a457b drm/i915: update rpm_get/put to use the rpm structure 745e10797905 drm/i915: move a few more functions to accept the rpm structure 768ac1cf35a5 drm/i915: move and rename i915_runtime_pmd63294884cad drm/i915: make enable/disable rpm assert function use the rpm structure 4017cb4a3083 drm/i915: Remove rpm asserts that use i915997c1d60a119 drm/i915: prefer i915_runtime_pm in intel_runtime function
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.IGT: success for RPM Encapsulation (rev2)
In reply to Daniele Ceraolo Spurio== Series Details ==
== Series Details ==
Series: RPM Encapsulation (rev2)
URL : https://patchwork.freedesktop.org/series/61976/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6265_full -> Patchwork_13277_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Known issues
------------
Here are the changes found in Patchwork_13277_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_eio@in-flight-contexts-10ms:
- shard-skl: ([PASS][1], [PASS][2]) -> [DMESG-WARN][3] ([fdo#110913 ]) +1 similar issue
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-skl8/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-skl5/igt@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-skl4/igt@[email protected]
* igt@gem_eio@in-flight-internal-immediate:
- shard-glk: [PASS][4] -> [DMESG-WARN][5] ([fdo#110913 ])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-glk9/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-glk6/igt@[email protected]
* igt@gem_eio@in-flight-suspend:
- shard-glk: ([PASS][6], [PASS][7]) -> [FAIL][8] ([fdo#110667])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-glk1/igt@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-glk6/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-glk7/igt@[email protected]
* igt@gem_eio@wait-wedge-1us:
- shard-iclb: [PASS][9] -> [DMESG-WARN][10] ([fdo#110913 ])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-iclb1/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-iclb5/igt@[email protected]
* igt@gem_persistent_relocs@forked-interruptible-thrashing:
- shard-hsw: [PASS][11] -> [DMESG-WARN][12] ([fdo#110789] / [fdo#110913 ])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-hsw5/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-hsw5/igt@[email protected]
* igt@gem_tiled_swapping@non-threaded:
- shard-iclb: [PASS][13] -> [FAIL][14] ([fdo#108686])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-iclb2/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-iclb8/igt@[email protected]
- shard-kbl: ([PASS][15], [PASS][16]) -> [DMESG-WARN][17] ([fdo#108686])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-kbl4/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-kbl7/igt@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-kbl3/igt@[email protected]
* igt@gem_userptr_blits@map-fixed-invalidate-overlap-busy:
- shard-kbl: ([PASS][18], [PASS][19]) -> [DMESG-WARN][20] ([fdo#110913 ])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-kbl2/igt@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-kbl6/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-kbl3/igt@[email protected]
- shard-apl: ([PASS][21], [PASS][22]) -> [DMESG-WARN][23] ([fdo#110913 ])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-apl3/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-apl1/igt@[email protected]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-apl5/igt@[email protected]
* igt@i915_suspend@fence-restore-tiled2untiled:
- shard-apl: ([PASS][24], [PASS][25]) -> [DMESG-WARN][26] ([fdo#108566]) +2 similar issues
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-apl4/igt@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-apl8/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-apl7/igt@[email protected]
* igt@kms_cursor_legacy@cursorb-vs-flipa-atomic-transitions-varying-size:
- shard-hsw: ([PASS][27], [PASS][28]) -> [SKIP][29] ([fdo#109271]) +3 similar issues
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-hsw6/igt@kms_cursor_legacy@cursorb-vs-flipa-atomic-transitions-varying-size.html
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-hsw4/igt@kms_cursor_legacy@cursorb-vs-flipa-atomic-transitions-varying-size.html
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-hsw1/igt@kms_cursor_legacy@cursorb-vs-flipa-atomic-transitions-varying-size.html
* igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-indfb-draw-render:
- shard-iclb: [PASS][30] -> [FAIL][31] ([fdo#103167]) +4 similar issues
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-iclb1/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-indfb-draw-render.html
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-iclb5/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-indfb-draw-render.html
* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-pri-shrfb-draw-pwrite:
- shard-hsw: [PASS][32] -> [SKIP][33] ([fdo#109271]) +6 similar issues
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-hsw6/igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-pri-shrfb-draw-pwrite.html
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-hsw1/igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-pri-shrfb-draw-pwrite.html
* igt@kms_psr@psr2_primary_page_flip:
- shard-iclb: [PASS][34] -> [SKIP][35] ([fdo#109441]) +3 similar issues
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-iclb2/igt@kms_psr@psr2_primary_page_flip.html
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-iclb4/igt@kms_psr@psr2_primary_page_flip.html
* igt@kms_vblank@pipe-a-ts-continuation-dpms-suspend:
- shard-skl: ([PASS][36], [PASS][37]) -> [INCOMPLETE][38] ([fdo#104108]) +1 similar issue
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-skl7/igt@[email protected]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-skl9/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-skl9/igt@[email protected]
#### Possible fixes ####
* igt@gem_eio@in-flight-10ms:
- shard-skl: ([PASS][39], [DMESG-WARN][40]) ([fdo#110913 ]) -> [PASS][41] +3 similar issues
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-skl9/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-skl7/igt@[email protected]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-skl10/igt@[email protected]
* igt@gem_eio@in-flight-suspend:
- shard-kbl: ([INCOMPLETE][42], [PASS][43]) ([fdo#103665]) -> [PASS][44]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-kbl6/igt@[email protected]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-kbl7/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-kbl7/igt@[email protected]
* igt@gem_eio@reset-stress:
- shard-snb: ([FAIL][45], [PASS][46]) ([fdo#109661]) -> [PASS][47]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-snb7/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-snb4/igt@[email protected]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-snb5/igt@[email protected]
* igt@gem_exec_balancer@smoke:
- shard-iclb: [SKIP][48] ([fdo#110854]) -> [PASS][49]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-iclb3/igt@[email protected]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-iclb4/igt@[email protected]
* igt@gem_persistent_relocs@forked-faulting-reloc-thrash-inactive:
- shard-apl: ([INCOMPLETE][50], [PASS][51]) ([fdo#103927]) -> [PASS][52]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-apl3/igt@[email protected]
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-apl6/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-apl8/igt@[email protected]
* igt@gem_persistent_relocs@forked-interruptible-faulting-reloc-thrashing:
- shard-snb: [DMESG-WARN][53] ([fdo#110789] / [fdo#110913 ]) -> [PASS][54]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-snb7/igt@gem_persistent_relocs@forked-interruptible-faulting-reloc-thrashing.html
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-snb4/igt@gem_persistent_relocs@forked-interruptible-faulting-reloc-thrashing.html
* igt@gem_persistent_relocs@forked-thrashing:
- shard-glk: ([PASS][55], [DMESG-WARN][56]) ([fdo#110913 ]) -> [PASS][57] +3 similar issues
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-glk2/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-glk8/igt@[email protected]
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-glk4/igt@[email protected]
- shard-skl: ([DMESG-WARN][58], [DMESG-WARN][59]) ([fdo#110913 ]) -> [PASS][60]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-skl5/igt@[email protected]
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-skl8/igt@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-skl4/igt@[email protected]
- shard-snb: ([PASS][61], [DMESG-WARN][62]) ([fdo#110789] / [fdo#110913 ]) -> [PASS][63]
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-snb4/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-snb5/igt@[email protected]
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-snb5/igt@[email protected]
* igt@gem_userptr_blits@map-fixed-invalidate-overlap-busy-gup:
- shard-apl: ([PASS][64], [DMESG-WARN][65]) ([fdo#110913 ]) -> [PASS][66] +3 similar issues
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-apl2/igt@[email protected]
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-apl8/igt@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-apl1/igt@[email protected]
- shard-snb: ([DMESG-WARN][67], [PASS][68]) ([fdo#110913 ]) -> [PASS][69]
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-snb1/igt@[email protected]
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-snb5/igt@[email protected]
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-snb7/igt@[email protected]
* igt@gem_userptr_blits@sync-unmap-cycles:
- shard-hsw: ([DMESG-WARN][70], [PASS][71]) ([fdo#110913 ]) -> [PASS][72]
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-hsw8/igt@[email protected]
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-hsw7/igt@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-hsw2/igt@[email protected]
- shard-kbl: ([DMESG-WARN][73], [PASS][74]) ([fdo#110913 ]) -> [PASS][75] +2 similar issues
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-kbl4/igt@[email protected]
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-kbl7/igt@[email protected]
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-kbl4/igt@[email protected]
* igt@kms_big_fb@x-tiled-32bpp-rotate-180:
- shard-snb: ([SKIP][76], [PASS][77]) ([fdo#109271]) -> [PASS][78]
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-snb4/igt@[email protected]
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-snb7/igt@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-snb1/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-suspend:
- shard-kbl: ([DMESG-WARN][79], [PASS][80]) ([fdo#108566]) -> [PASS][81] +2 similar issues
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-kbl7/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-kbl2/igt@[email protected]
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-kbl4/igt@[email protected]
* igt@kms_cursor_legacy@cursor-vs-flip-varying-size:
- shard-hsw: ([FAIL][82], [PASS][83]) ([fdo#103355]) -> [PASS][84]
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-hsw6/igt@[email protected]
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-hsw8/igt@[email protected]
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-hsw2/igt@[email protected]
* igt@kms_draw_crc@draw-method-xrgb2101010-mmap-gtt-untiled:
- shard-skl: ([FAIL][85], [PASS][86]) ([fdo#103184] / [fdo#103232] / [fdo#108472]) -> [PASS][87]
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-skl4/igt@[email protected]
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-skl10/igt@[email protected]
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-skl2/igt@[email protected]
* igt@kms_flip@2x-flip-vs-suspend:
- shard-hsw: [SKIP][88] ([fdo#109271]) -> [PASS][89] +8 similar issues
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-hsw1/igt@[email protected]
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-hsw4/igt@[email protected]
* igt@kms_flip@2x-plain-flip:
- shard-hsw: ([SKIP][90], [PASS][91]) ([fdo#109271]) -> [PASS][92] +35 similar issues
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-hsw1/igt@[email protected]
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-hsw7/igt@[email protected]
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-hsw7/igt@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible:
- shard-apl: ([DMESG-WARN][93], [PASS][94]) ([fdo#108566]) -> [PASS][95] +2 similar issues
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-apl3/igt@[email protected]
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-apl1/igt@[email protected]
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-apl8/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-badstride:
- shard-iclb: [FAIL][96] ([fdo#103167]) -> [PASS][97] +11 similar issues
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-iclb5/igt@[email protected]
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-iclb4/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-suspend:
- shard-skl: ([INCOMPLETE][98], [PASS][99]) ([fdo#104108]) -> [PASS][100]
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-skl8/igt@[email protected]
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-skl2/igt@[email protected]
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-skl8/igt@[email protected]
* igt@kms_psr@psr2_primary_mmap_cpu:
- shard-iclb: [SKIP][101] ([fdo#109441]) -> [PASS][102] +2 similar issues
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-iclb4/igt@kms_psr@psr2_primary_mmap_cpu.html
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-iclb2/igt@kms_psr@psr2_primary_mmap_cpu.html
* igt@kms_setmode@basic:
- shard-kbl: ([FAIL][103], [FAIL][104]) ([fdo#99912]) -> [PASS][105]
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-kbl6/igt@[email protected]
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-kbl4/igt@[email protected]
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-kbl1/igt@[email protected]
* igt@perf_pmu@rc6-runtime-pm:
- shard-hsw: ([FAIL][106], [FAIL][107]) ([fdo#105010]) -> [PASS][108]
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-hsw8/igt@[email protected]
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-hsw2/igt@[email protected]
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-hsw4/igt@[email protected]
#### Warnings ####
* igt@gem_persistent_relocs@forked-interruptible-faulting-reloc-thrashing:
- shard-glk: ([DMESG-WARN][109], [PASS][110]) ([fdo#110913 ]) -> [DMESG-WARN][111] ([fdo#110913 ]) +1 similar issue
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-glk2/igt@gem_persistent_relocs@forked-interruptible-faulting-reloc-thrashing.html
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-glk4/igt@gem_persistent_relocs@forked-interruptible-faulting-reloc-thrashing.html
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/shard-glk9/igt@gem_persistent_relocs@forked-interruptible-faulting-reloc-thrashing.html
- shard-hsw: ([DMESG-WARN][112], [PASS][113]) ([fdo#110789] / [fdo#110913 ]) -> [DMESG-WARN][114] ([fdo#110789] / [fdo#110913 ])
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-hsw7/igt@gem_persistent_relocs@forked-interruptible-faulting-reloc-thrashing.html
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6265/shard-hsw4/igt@gem_persistent_relocs@forked-interruptibl
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13277/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx