Skip to contentSkip to conversation

display device info as a separate debugfs entry

PATCH Superseded Vinod Govindapillai 1 participant 4 messages Oct 17, 2023

Subsystems (3)

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

v2 cover display device info as a separate debugfs entry

Expose the display device info as a separate debugfs entry to list out display device info and remove the same from i915_capabilities

v2: rename the debugs entry to i915_display_capabilities and patch
description changes

Vinod Govindapillai (2):
drm/i915/display: debugfs entry to list display capabilities drm/i915: remove display device info from i915 capabilities

 drivers/gpu/drm/i915/display/intel_display_debugfs.c | 12 ++++++++++++
 drivers/gpu/drm/i915/i915_debugfs.c                  |  1 -
 2 files changed, 12 insertions(+), 1 deletion(-)
Signature · 1 line
2.34.1
#1 lore raw

PATCH v2 1/2 drm/i915/display: debugfs entry to list display capabilities

Create a separate debugfs entry to list the display capabilities IGT can rely on this debugfs entry for tests that depend on display device and display runtime info for both xe and i915 drivers.

v2: rename the entry to i915_display_capabilities (Chaitanya)

---
 drivers/gpu/drm/i915/display/intel_display_debugfs.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)
drivers/gpu/drm/i915/display/intel_display_debugfs.c +12 -0
index fbe75d47a165..b0248dfa8dea 100644
@@ -641,6 +641,17 @@ static int i915_display_info(struct seq_file *m, void *unused)
 	return 0;
 }
 
+static int i915_display_capabilities(struct seq_file *m, void *unused)
+{
+	struct drm_i915_private *i915 = node_to_i915(m->private);
+	struct drm_printer p = drm_seq_file_printer(m);
+
+	intel_display_device_info_print(DISPLAY_INFO(i915),
+					DISPLAY_RUNTIME_INFO(i915), &p);
+
+	return 0;
+}
+
 static int i915_shared_dplls_info(struct seq_file *m, void *unused)
 {
 	struct drm_i915_private *dev_priv = node_to_i915(m->private);
@@ -1059,6 +1070,7 @@ static const struct drm_info_list intel_display_debugfs_list[] = {
 	{"i915_gem_framebuffer", i915_gem_framebuffer_info, 0},
 	{"i915_power_domain_info", i915_power_domain_info, 0},
 	{"i915_display_info", i915_display_info, 0},
+	{"i915_display_capabilities", i915_display_capabilities, 0},
 	{"i915_shared_dplls_info", i915_shared_dplls_info, 0},
 	{"i915_dp_mst_info", i915_dp_mst_info, 0},
 	{"i915_ddb_info", i915_ddb_info, 0},
Signature · 1 line
2.34.1
#2 lore raw

PATCH v2 2/2 drm/i915: remove display device info from i915 capabilities

In reply to Vinod Govindapillai

Display device and display runtime info is exposed as part of i915_display_capabilities debugfs entry. Remove this information from i915_ capabilities as it is now reduntant.

---
 drivers/gpu/drm/i915/i915_debugfs.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/i915/i915_debugfs.c +0 -1
index e9b79c2c37d8..bb48feb3b12e 100644
@@ -67,7 +67,6 @@ static int i915_capabilities(struct seq_file *m, void *data)
 	seq_printf(m, "pch: %d\n", INTEL_PCH_TYPE(i915));
 
 	intel_device_info_print(INTEL_INFO(i915), RUNTIME_INFO(i915), &p);
-	intel_display_device_info_print(DISPLAY_INFO(i915), DISPLAY_RUNTIME_INFO(i915), &p);
 	i915_print_iommu_status(i915, &p);
 	intel_gt_info_print(&to_gt(i915)->info, &p);
 	intel_driver_caps_print(&i915->caps, &p);
Signature · 1 line
2.34.1
#3 lore raw
In reply to Vinod Govindapillai

Hi Swati,

Realized that I cannot remove the display runtime info from i915_capabilties until IGT start using this new created entry.

So excluded the patch to remove the redundant info from i915_capabilties from this series A new version is sent! Sorry for the confusion!

BR
vinod

Quoted 14 lines · Vinod Govindapillai

Expose the display device info as a separate debugfs entry to list out display device info and remove the same from i915_capabilities

v2: rename the debugs entry to i915_display_capabilities and patch description changes

Vinod Govindapillai (2):
  drm/i915/display: debugfs entry to list display capabilities drm/i915: remove display device info from i915 capabilities

 drivers/gpu/drm/i915/display/intel_display_debugfs.c | 12 ++++++++++++ drivers/gpu/drm/i915/i915_debugfs.c                  |  1 -

 2 files changed, 12 insertions(+), 1 deletion(-)