drm/i915: drop intel_device_info_dump()
authorJani Nikula <jani.nikula@intel.com>
Mon, 31 Dec 2018 14:56:45 +0000 (16:56 +0200)
committerJani Nikula <jani.nikula@intel.com>
Wed, 2 Jan 2019 11:06:17 +0000 (13:06 +0200)
The debugfs, error state and regular dmesg logging dump needs seem to be
different. Remove the generic dump function only used for the welcome
message. This may be added back later when better abstractions are
identified, but at the moment this seems to be the simplest considering
the device info rework in progress. No longer rely on device info being
a substruct of dev_priv.

Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/70ff0c7c0ec3ef8747af3c78e272b5a82be3d55b.1546267488.git.jani.nikula@intel.com
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/intel_device_info.c
drivers/gpu/drm/i915/intel_device_info.h

index 8d7a3a852c106259f257628aec9a1e61c9626642..fe01d090f9bb6d4e9b547f414485c20d5b0c5a81 100644 (file)
@@ -1636,7 +1636,13 @@ static void i915_welcome_messages(struct drm_i915_private *dev_priv)
        if (drm_debug & DRM_UT_DRIVER) {
                struct drm_printer p = drm_debug_printer("i915 device info:");
 
-               intel_device_info_dump(INTEL_INFO(dev_priv), &p);
+               drm_printf(&p, "pciid=0x%04x rev=0x%02x platform=%s gen=%i\n",
+                          INTEL_DEVID(dev_priv),
+                          INTEL_REVID(dev_priv),
+                          intel_platform_name(INTEL_INFO(dev_priv)->platform),
+                          INTEL_GEN(dev_priv));
+
+               intel_device_info_dump_flags(INTEL_INFO(dev_priv), &p);
                intel_device_info_dump_runtime(RUNTIME_INFO(dev_priv), &p);
        }
 
index f35e8cff4b99771ea13fb5d3e9bfbb9d763936c4..e0ce0c9791fc81db72d2b729b984043b58e9d957 100644 (file)
@@ -113,21 +113,6 @@ void intel_device_info_dump_runtime(const struct intel_runtime_info *info,
                   info->cs_timestamp_frequency_khz);
 }
 
-void intel_device_info_dump(const struct intel_device_info *info,
-                           struct drm_printer *p)
-{
-       struct drm_i915_private *dev_priv =
-               container_of(info, struct drm_i915_private, info);
-
-       drm_printf(p, "pciid=0x%04x rev=0x%02x platform=%s gen=%i\n",
-                  INTEL_DEVID(dev_priv),
-                  INTEL_REVID(dev_priv),
-                  intel_platform_name(info->platform),
-                  info->gen);
-
-       intel_device_info_dump_flags(info, p);
-}
-
 void intel_device_info_dump_topology(const struct sseu_dev_info *sseu,
                                     struct drm_printer *p)
 {
index f0e6d374d4ecb1506cac6cb618d7ed1da35e8bbb..76735869e32df84ea19f5736817259ced289be33 100644 (file)
@@ -267,8 +267,6 @@ static inline void sseu_set_eus(struct sseu_dev_info *sseu,
 const char *intel_platform_name(enum intel_platform platform);
 
 void intel_device_info_runtime_init(struct drm_i915_private *dev_priv);
-void intel_device_info_dump(const struct intel_device_info *info,
-                           struct drm_printer *p);
 void intel_device_info_dump_flags(const struct intel_device_info *info,
                                  struct drm_printer *p);
 void intel_device_info_dump_runtime(const struct intel_runtime_info *info,