]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915/debugfs: Remove i915_energy_uJ
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Thu, 6 Feb 2020 14:07:25 +0000 (14:07 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 8 Feb 2020 11:26:03 +0000 (11:26 +0000)
Last IGT user (intel_gpu_overlay) stopped using it in October 2019 so we
are good to remove the file.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200206140725.10973-1-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_reg.h

index c313c90405cb32fcaad654a08524ab1297770fd8..3cae18d1d20c07465a1851e892775e55e0c85e85 100644 (file)
@@ -2188,29 +2188,6 @@ DEFINE_SIMPLE_ATTRIBUTE(i915_edp_psr_debug_fops,
                        i915_edp_psr_debug_get, i915_edp_psr_debug_set,
                        "%llu\n");
 
-static int i915_energy_uJ(struct seq_file *m, void *data)
-{
-       struct drm_i915_private *dev_priv = node_to_i915(m->private);
-       unsigned long long power;
-       intel_wakeref_t wakeref;
-       u32 units;
-
-       if (INTEL_GEN(dev_priv) < 6)
-               return -ENODEV;
-
-       if (rdmsrl_safe(MSR_RAPL_POWER_UNIT, &power))
-               return -ENODEV;
-
-       units = (power & 0x1f00) >> 8;
-       with_intel_runtime_pm(&dev_priv->runtime_pm, wakeref)
-               power = I915_READ(MCH_SECP_NRG_STTS);
-
-       power = (1000000 * power) >> units; /* convert to uJ */
-       seq_printf(m, "%llu", power);
-
-       return 0;
-}
-
 static int i915_runtime_pm_status(struct seq_file *m, void *unused)
 {
        struct drm_i915_private *dev_priv = node_to_i915(m->private);
@@ -4258,7 +4235,6 @@ static const struct drm_info_list i915_debugfs_list[] = {
        {"i915_swizzle_info", i915_swizzle_info, 0},
        {"i915_llc", i915_llc, 0},
        {"i915_edp_psr_status", i915_edp_psr_status, 0},
-       {"i915_energy_uJ", i915_energy_uJ, 0},
        {"i915_runtime_pm_status", i915_runtime_pm_status, 0},
        {"i915_power_domain_info", i915_power_domain_info, 0},
        {"i915_dmc_info", i915_dmc_info, 0},
index 590eff9f03d54c1899e490d24523f187248fea8f..b09c1d6dc0aac43a03e9eac529c7532aefc8e2a7 100644 (file)
@@ -3749,8 +3749,6 @@ static inline bool i915_mmio_reg_valid(i915_reg_t reg)
 #define   MCH_SSKPD_WM0_MASK           0x3f
 #define   MCH_SSKPD_WM0_VAL            0xc
 
-#define MCH_SECP_NRG_STTS              _MMIO(MCHBAR_MIRROR_BASE_SNB + 0x592c)
-
 /* Clocking configuration register */
 #define CLKCFG                 _MMIO(MCHBAR_MIRROR_BASE + 0xc00)
 #define CLKCFG_FSB_400                                 (5 << 0)        /* hrawclk 100 */